]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
Fixed typo
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53 /***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63 #include <string.h>
64
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
70 # else
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
73 # endif
74 # else
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
78 # else
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
81 # endif
82 # endif
83 #else
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
86 #endif
87
88 #ifdef SWIG_GLOBAL
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 #else
91 # define SWIGRUNTIME(a) static a
92 #endif
93
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109 } swig_type_info;
110
111
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124 #ifdef __cplusplus
125 }
126 #endif
127
128
129 /***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxTextUrlEvent swig_types[0]
212 #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1]
213 #define SWIGTYPE_p_wxSizer swig_types[2]
214 #define SWIGTYPE_p_wxCheckBox swig_types[3]
215 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4]
216 #define SWIGTYPE_p_wxEvent swig_types[5]
217 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6]
218 #define SWIGTYPE_p_bool swig_types[7]
219 #define SWIGTYPE_p_wxPyTreeItemData swig_types[8]
220 #define SWIGTYPE_p_wxItemContainer swig_types[9]
221 #define SWIGTYPE_p_wxPyListCtrl swig_types[10]
222 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11]
223 #define SWIGTYPE_p_wxStaticLine swig_types[12]
224 #define SWIGTYPE_p_wxControl swig_types[13]
225 #define SWIGTYPE_p_wxPyControl swig_types[14]
226 #define SWIGTYPE_p_wxGauge swig_types[15]
227 #define SWIGTYPE_p_wxToolBarBase swig_types[16]
228 #define SWIGTYPE_p_wxFont swig_types[17]
229 #define SWIGTYPE_p_wxToggleButton swig_types[18]
230 #define SWIGTYPE_p_wxRadioButton swig_types[19]
231 #define SWIGTYPE_p_wxChoice swig_types[20]
232 #define SWIGTYPE_p_wxMemoryDC swig_types[21]
233 #define SWIGTYPE_p_wxListItemAttr swig_types[22]
234 #define SWIGTYPE_p_void swig_types[23]
235 #define SWIGTYPE_p_int swig_types[24]
236 #define SWIGTYPE_p_wxSize swig_types[25]
237 #define SWIGTYPE_p_wxDC swig_types[26]
238 #define SWIGTYPE_p_wxListView swig_types[27]
239 #define SWIGTYPE_p_wxIcon swig_types[28]
240 #define SWIGTYPE_p_wxVisualAttributes swig_types[29]
241 #define SWIGTYPE_p_wxTextCtrl swig_types[30]
242 #define SWIGTYPE_p_wxNotebook swig_types[31]
243 #define SWIGTYPE_p_wxNotifyEvent swig_types[32]
244 #define SWIGTYPE_p_wxArrayString swig_types[33]
245 #define SWIGTYPE_p_wxListbook swig_types[34]
246 #define SWIGTYPE_p_wxStaticBitmap swig_types[35]
247 #define SWIGTYPE_p_wxSlider swig_types[36]
248 #define SWIGTYPE_p_wxStaticBox swig_types[37]
249 #define SWIGTYPE_p_wxArrayInt swig_types[38]
250 #define SWIGTYPE_p_wxContextHelp swig_types[39]
251 #define SWIGTYPE_p_long swig_types[40]
252 #define SWIGTYPE_p_wxEvtHandler swig_types[41]
253 #define SWIGTYPE_p_wxListEvent swig_types[42]
254 #define SWIGTYPE_p_wxCheckListBox swig_types[43]
255 #define SWIGTYPE_p_wxListBox swig_types[44]
256 #define SWIGTYPE_p_wxBookCtrl swig_types[45]
257 #define SWIGTYPE_p_wxSpinButton swig_types[46]
258 #define SWIGTYPE_p_wxButton swig_types[47]
259 #define SWIGTYPE_p_wxBitmapButton swig_types[48]
260 #define SWIGTYPE_p_wxRect swig_types[49]
261 #define SWIGTYPE_p_wxContextHelpButton swig_types[50]
262 #define SWIGTYPE_p_wxRadioBox swig_types[51]
263 #define SWIGTYPE_p_wxScrollBar swig_types[52]
264 #define SWIGTYPE_p_char swig_types[53]
265 #define SWIGTYPE_p_wxTreeItemId swig_types[54]
266 #define SWIGTYPE_p_wxComboBox swig_types[55]
267 #define SWIGTYPE_p_wxHelpEvent swig_types[56]
268 #define SWIGTYPE_p_wxListItem swig_types[57]
269 #define SWIGTYPE_p_wxNotebookSizer swig_types[58]
270 #define SWIGTYPE_p_wxSpinEvent swig_types[59]
271 #define SWIGTYPE_p_wxGenericDragImage swig_types[60]
272 #define SWIGTYPE_p_wxSpinCtrl swig_types[61]
273 #define SWIGTYPE_p_wxImageList swig_types[62]
274 #define SWIGTYPE_p_wxHelpProvider swig_types[63]
275 #define SWIGTYPE_p_wxTextAttr swig_types[64]
276 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65]
277 #define SWIGTYPE_p_wxPoint swig_types[66]
278 #define SWIGTYPE_p_wxListbookEvent swig_types[67]
279 #define SWIGTYPE_p_wxNotebookEvent swig_types[68]
280 #define SWIGTYPE_p_wxObject swig_types[69]
281 #define SWIGTYPE_p_wxCursor swig_types[70]
282 #define SWIGTYPE_p_wxKeyEvent swig_types[71]
283 #define SWIGTYPE_p_wxWindow swig_types[72]
284 #define SWIGTYPE_p_wxString swig_types[73]
285 #define SWIGTYPE_p_wxBitmap swig_types[74]
286 #define SWIGTYPE_p_wxTreeEvent swig_types[75]
287 #define SWIGTYPE_p_wxMouseEvent swig_types[76]
288 #define SWIGTYPE_p_wxCommandEvent swig_types[77]
289 #define SWIGTYPE_p_wxStaticText swig_types[78]
290 #define SWIGTYPE_p_wxControlWithItems swig_types[79]
291 #define SWIGTYPE_p_wxToolBarToolBase swig_types[80]
292 #define SWIGTYPE_p_wxColour swig_types[81]
293 #define SWIGTYPE_p_wxToolBar swig_types[82]
294 #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83]
295 #define SWIGTYPE_p_wxValidator swig_types[84]
296 static swig_type_info *swig_types[86];
297
298 /* -------- TYPES TABLE (END) -------- */
299
300
301 /*-----------------------------------------------
302 @(target):= _controls_.so
303 ------------------------------------------------*/
304 #define SWIG_init init_controls_
305
306 #define SWIG_name "_controls_"
307
308 /* Auxiliar swig macros that appear in the header */
309
310 #define SWIG_OLDOBJ 1
311 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
312 #define SWIG_PYSTR SWIG_NEWOBJ + 1
313
314 #ifdef __cplusplus
315 #define SWIGSTATICINLINE(a) static inline a
316 #define SWIGSTATIC(a) static a
317 #define swig_new_array(size,Type) (new Type[(size)])
318 #define swig_delete(cptr) delete cptr
319 #define swig_delete_array(cptr) delete[] cptr
320 #define swig_const_cast(a,Type) const_cast<Type >(a)
321 #define swig_static_cast(a,Type) static_cast<Type >(a)
322 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
323 #define swig_new_copy(ptr,Type) (new Type(*ptr))
324 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
325
326 #else /* C case */
327
328 #define SWIGSTATICINLINE(a) static a
329 #define SWIGSTATIC(a) static a
330 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
331 #define swig_delete(cptr) free((char*)cptr)
332 #define swig_delete_array(cptr) free((char*)cptr)
333 #define swig_const_cast(a,Type) (Type)(a)
334 #define swig_static_cast(a,Type) (Type)(a)
335 #define swig_reinterpret_cast(a,Type) (Type)(a)
336 #define swig_numeric_cast(a,Type) (Type)(a)
337 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
338
339 #endif /* __cplusplus */
340
341
342 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
343 #define SWIG_From_signed_SS_char PyInt_FromLong
344 /*@@*/
345 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
346 #define SWIG_From_unsigned_SS_char PyInt_FromLong
347 /*@@*/
348 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
349 #define SWIG_From_short PyInt_FromLong
350 /*@@*/
351 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
352 #define SWIG_From_unsigned_SS_short PyInt_FromLong
353 /*@@*/
354 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
355 #define SWIG_From_int PyInt_FromLong
356 /*@@*/
357 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
358 #define SWIG_From_long PyInt_FromLong
359 /*@@*/
360 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
361 #define SWIG_From_float PyFloat_FromDouble
362 /*@@*/
363 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
364 #define SWIG_From_double PyFloat_FromDouble
365 /*@@*/
366
367
368 #include "wx/wxPython/wxPython.h"
369 #include "wx/wxPython/pyclasses.h"
370
371 static const wxString wxPyPanelNameStr(wxPanelNameStr);
372 static const wxString wxPyEmptyString(wxEmptyString);
373 static const wxString wxPyControlNameStr(wxControlNameStr);
374
375 const wxArrayString wxPyEmptyStringArray;
376
377 static const wxString wxPyButtonNameStr(wxButtonNameStr);
378
379 #include <limits.h>
380
381
382 SWIGSTATICINLINE(int)
383 SWIG_CheckLongInRange(long value, long min_value, long max_value,
384 const char *errmsg)
385 {
386 if (value < min_value) {
387 if (errmsg) {
388 PyErr_Format(PyExc_OverflowError,
389 "value %ld is less than '%s' minimum %ld",
390 value, errmsg, min_value);
391 }
392 return 0;
393 } else if (value > max_value) {
394 if (errmsg) {
395 PyErr_Format(PyExc_OverflowError,
396 "value %ld is greater than '%s' maximum %ld",
397 value, errmsg, max_value);
398 }
399 return 0;
400 }
401 return 1;
402 }
403
404
405 // See my_fragments.i
406 SWIGSTATICINLINE(int)
407 SWIG_AsVal_long(PyObject* obj, long* val)
408 {
409 if (PyNumber_Check(obj)) {
410 if (val) *val = PyInt_AsLong(obj);
411 return 1;
412 }
413 else {
414 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
415 obj->ob_type->tp_name);
416 PyErr_SetObject(PyExc_TypeError, errmsg);
417 Py_DECREF(errmsg);
418 }
419 return 0;
420 }
421
422
423 #if INT_MAX != LONG_MAX
424 SWIGSTATICINLINE(int)
425 SWIG_AsVal_int(PyObject *obj, int *val)
426 {
427 const char* errmsg = val ? "int" : 0;
428 long v;
429 if (SWIG_AsVal_long(obj, &v)) {
430 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
431 if (val) *val = swig_numeric_cast(v, int);
432 return 1;
433 } else {
434 return 0;
435 }
436 } else {
437 PyErr_Clear();
438 }
439 if (val) {
440 PyErr_SetString(PyExc_TypeError, "an int is expected");
441 }
442 return 0;
443 }
444 #else
445 SWIGSTATICINLINE(int)
446 SWIG_AsVal_int(PyObject *obj, int *val)
447 {
448 return SWIG_AsVal_long(obj,(long*)val);
449 }
450 #endif
451
452
453 SWIGSTATICINLINE(int)
454 SWIG_As_int(PyObject* obj)
455 {
456 int v;
457 if (!SWIG_AsVal_int(obj, &v)) {
458 /*
459 this is needed to make valgrind/purify happier. the other
460 solution is throw an exception, but since this code should work
461 with plain C ....
462 */
463 memset((void*)&v, 0, sizeof(int));
464 }
465 return v;
466 }
467
468
469 SWIGSTATICINLINE(long)
470 SWIG_As_long(PyObject* obj)
471 {
472 long v;
473 if (!SWIG_AsVal_long(obj, &v)) {
474 /*
475 this is needed to make valgrind/purify happier. the other
476 solution is throw an exception, but since this code should work
477 with plain C ....
478 */
479 memset((void*)&v, 0, sizeof(long));
480 }
481 return v;
482 }
483
484
485 SWIGSTATICINLINE(int)
486 SWIG_Check_int(PyObject* obj)
487 {
488 return SWIG_AsVal_int(obj, (int*)0);
489 }
490
491
492 SWIGSTATICINLINE(int)
493 SWIG_Check_long(PyObject* obj)
494 {
495 return SWIG_AsVal_long(obj, (long*)0);
496 }
497
498 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
499
500 SWIGSTATICINLINE(int)
501 SWIG_AsVal_bool(PyObject *obj, bool *val)
502 {
503 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
504 if (obj == Py_True) {
505 if (val) *val = true;
506 return 1;
507 }
508 if (obj == Py_False) {
509 if (val) *val = false;
510 return 1;
511 }
512 int res = 0;
513 if (SWIG_AsVal_int(obj, &res)) {
514 if (val) *val = (bool)res;
515 return 1;
516 }
517 if (val) {
518 PyErr_SetString(PyExc_TypeError, "a bool is expected");
519 }
520 return 0;
521 }
522
523
524 SWIGSTATICINLINE(bool)
525 SWIG_As_bool(PyObject* obj)
526 {
527 bool v;
528 if (!SWIG_AsVal_bool(obj, &v)) {
529 /*
530 this is needed to make valgrind/purify happier. the other
531 solution is throw an exception, but since this code should work
532 with plain C ....
533 */
534 memset((void*)&v, 0, sizeof(bool));
535 }
536 return v;
537 }
538
539
540 SWIGSTATICINLINE(int)
541 SWIG_Check_bool(PyObject* obj)
542 {
543 return SWIG_AsVal_bool(obj, (bool*)0);
544 }
545
546 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
547 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
548 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
549 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
550 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
551 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
552
553 #include <wx/checklst.h>
554
555
556 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
557 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
558 if (clientData) {
559 wxPyClientData* data = new wxPyClientData(clientData);
560 self->Insert(item, pos, data);
561 } else
562 self->Insert(item, pos);
563 }
564 PyObject *wxListBox_GetSelections(wxListBox *self){
565 wxArrayInt lst;
566 self->GetSelections(lst);
567 PyObject *tup = PyTuple_New(lst.GetCount());
568 for(size_t i=0; i<lst.GetCount(); i++) {
569 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
570 }
571 return tup;
572 }
573 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
574 #ifdef __WXMSW__
575 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
576 self->GetItem(item)->SetTextColour(c);
577 #endif
578 }
579 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
580 #ifdef __WXMSW__
581 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
582 self->GetItem(item)->SetBackgroundColour(c);
583 #endif
584 }
585 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
586 #ifdef __WXMSW__
587 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
588 self->GetItem(item)->SetFont(f);
589 #endif
590 }
591 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
592
593 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
594 PyObject* o2;
595 PyObject* o3;
596
597 if (!target) {
598 target = o;
599 } else if (target == Py_None) {
600 Py_DECREF(Py_None);
601 target = o;
602 } else {
603 o2 = target;
604 target = PyTuple_New(1);
605 PyTuple_SetItem(target, 0, o2);
606
607 o3 = PyTuple_New(1);
608 PyTuple_SetItem(o3, 0, o);
609
610 o2 = target;
611 target = PySequence_Concat(o2, o3);
612 Py_DECREF(o2);
613 Py_DECREF(o3);
614 }
615 return target;
616 }
617
618
619
620 // See my_fragments.i
621 SWIGSTATICINLINE(int)
622 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
623 {
624 long v = 0;
625 if (SWIG_AsVal_long(obj, &v) && v < 0) {
626 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
627 return 0;
628 }
629 else if (val)
630 *val = (unsigned long)v;
631 return 1;
632 }
633
634
635 SWIGSTATICINLINE(unsigned long)
636 SWIG_As_unsigned_SS_long(PyObject* obj)
637 {
638 unsigned long v;
639 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
640 /*
641 this is needed to make valgrind/purify happier. the other
642 solution is throw an exception, but since this code should work
643 with plain C ....
644 */
645 memset((void*)&v, 0, sizeof(unsigned long));
646 }
647 return v;
648 }
649
650
651 SWIGSTATICINLINE(int)
652 SWIG_Check_unsigned_SS_long(PyObject* obj)
653 {
654 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
655 }
656
657 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
658 self->AppendText(text);
659 }
660 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
661 return self->GetValue().Mid(from, to - from);
662 }
663 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
664 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
665 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
666 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
667 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
668
669 #include <wx/slider.h>
670
671
672 static const wxString wxPySliderNameStr(wxSliderNameStr);
673 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
674
675 #if !wxUSE_TOGGLEBTN
676 // implement dummy items for platforms that don't have this class
677
678 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
679
680 class wxToggleButton : public wxControl
681 {
682 public:
683 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
684 const wxPoint&, const wxSize&, long,
685 const wxValidator&, const wxString&)
686 { wxPyRaiseNotImplemented(); }
687
688 wxToggleButton()
689 { wxPyRaiseNotImplemented(); }
690 };
691 #endif
692
693 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
694
695 SWIGSTATICINLINE(PyObject* )
696 SWIG_From_unsigned_SS_long(unsigned long value)
697 {
698 return (value > LONG_MAX) ?
699 PyLong_FromUnsignedLong(value)
700 : PyInt_FromLong(swig_numeric_cast(value,long));
701 }
702
703 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
704 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
705 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
706 if (udata) {
707 Py_INCREF(udata->m_obj);
708 return udata->m_obj;
709 } else {
710 Py_INCREF(Py_None);
711 return Py_None;
712 }
713 }
714 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
715 self->SetClientData(new wxPyUserData(clientData));
716 }
717 wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
718 wxPyUserData* udata = NULL;
719 if (clientData && clientData != Py_None)
720 udata = new wxPyUserData(clientData);
721 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
722 shortHelp, longHelp, udata);
723 }
724 wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
725 wxPyUserData* udata = NULL;
726 if (clientData && clientData != Py_None)
727 udata = new wxPyUserData(clientData);
728 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
729 shortHelp, longHelp, udata);
730 }
731 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
732 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
733 if (udata) {
734 Py_INCREF(udata->m_obj);
735 return udata->m_obj;
736 } else {
737 Py_INCREF(Py_None);
738 return Py_None;
739 }
740 }
741 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
742 self->SetToolClientData(id, new wxPyUserData(clientData));
743 }
744
745 #include <wx/listctrl.h>
746
747 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
748 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
749 // Python aware sorting function for wxPyListCtrl
750 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
751 int retval = 0;
752 PyObject* func = (PyObject*)funcPtr;
753 bool blocked = wxPyBeginBlockThreads();
754
755 PyObject* args = Py_BuildValue("(ii)", item1, item2);
756 PyObject* result = PyEval_CallObject(func, args);
757 Py_DECREF(args);
758 if (result) {
759 retval = PyInt_AsLong(result);
760 Py_DECREF(result);
761 }
762
763 wxPyEndBlockThreads(blocked);
764 return retval;
765 }
766
767 // C++ Version of a Python aware class
768 class wxPyListCtrl : public wxListCtrl {
769 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
770 public:
771 wxPyListCtrl() : wxListCtrl() {}
772 wxPyListCtrl(wxWindow* parent, wxWindowID id,
773 const wxPoint& pos,
774 const wxSize& size,
775 long style,
776 const wxValidator& validator,
777 const wxString& name) :
778 wxListCtrl(parent, id, pos, size, style, validator, name) {}
779
780 bool Create(wxWindow* parent, wxWindowID id,
781 const wxPoint& pos,
782 const wxSize& size,
783 long style,
784 const wxValidator& validator,
785 const wxString& name) {
786 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
787 }
788
789 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
790 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
791 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
792
793 PYPRIVATE;
794 };
795
796 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
797
798 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
799 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
800 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
801
802 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
803 wxListItem item;
804 item.SetMask( wxLIST_MASK_STATE |
805 wxLIST_MASK_TEXT |
806 wxLIST_MASK_IMAGE |
807 wxLIST_MASK_DATA |
808 wxLIST_SET_ITEM |
809 wxLIST_MASK_WIDTH |
810 wxLIST_MASK_FORMAT
811 );
812 if (self->GetColumn(col, item))
813 return new wxListItem(item);
814 else
815 return NULL;
816 }
817 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
818 wxListItem* info = new wxListItem;
819 info->m_itemId = itemId;
820 info->m_col = col;
821 info->m_mask = 0xFFFF;
822 self->GetItem(*info);
823 return info;
824 }
825 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
826 wxPoint pos;
827 self->GetItemPosition(item, pos);
828 return pos;
829 }
830 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
831 wxRect rect;
832 self->GetItemRect(item, rect, code);
833 return rect;
834 }
835
836 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
837 if (!PyCallable_Check(func))
838 return False;
839 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
840 }
841 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
842
843 return self;
844
845
846
847 }
848
849 #include <wx/treectrl.h>
850 #include "wx/wxPython/pytree.h"
851
852 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
853 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
854 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
855 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
856 // C++ version of Python aware wxTreeCtrl
857 class wxPyTreeCtrl : public wxTreeCtrl {
858 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
859 public:
860 wxPyTreeCtrl() : wxTreeCtrl() {}
861 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
862 const wxPoint& pos,
863 const wxSize& size,
864 long style,
865 const wxValidator& validator,
866 const wxString& name) :
867 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
868
869 bool Create(wxWindow *parent, wxWindowID id,
870 const wxPoint& pos,
871 const wxSize& size,
872 long style,
873 const wxValidator& validator,
874 const wxString& name) {
875 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
876 }
877
878
879 int OnCompareItems(const wxTreeItemId& item1,
880 const wxTreeItemId& item2) {
881 int rval = 0;
882 bool found;
883 bool blocked = wxPyBeginBlockThreads();
884 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
885 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
886 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
887 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
888 Py_DECREF(o1);
889 Py_DECREF(o2);
890 }
891 wxPyEndBlockThreads(blocked);
892 if (! found)
893 rval = wxTreeCtrl::OnCompareItems(item1, item2);
894 return rval;
895 }
896 PYPRIVATE;
897 };
898
899 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
900
901
902
903 #if UINT_MAX < LONG_MAX
904 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
905 #define SWIG_From_unsigned_SS_int SWIG_From_long
906 /*@@*/
907 #else
908 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
909 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
910 /*@@*/
911 #endif
912
913
914 SWIGSTATICINLINE(int)
915 SWIG_CheckUnsignedLongInRange(unsigned long value,
916 unsigned long max_value,
917 const char *errmsg)
918 {
919 if (value > max_value) {
920 if (errmsg) {
921 PyErr_Format(PyExc_OverflowError,
922 "value %ld is greater than '%s' minimum %ld",
923 value, errmsg, max_value);
924 }
925 return 0;
926 }
927 return 1;
928 }
929
930
931 #if UINT_MAX != ULONG_MAX
932 SWIGSTATICINLINE(int)
933 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
934 {
935 const char* errmsg = val ? "unsigned int" : 0;
936 unsigned long v;
937 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
938 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
939 if (val) *val = swig_numeric_cast(v, unsigned int);
940 return 1;
941 }
942 } else {
943 PyErr_Clear();
944 }
945 if (val) {
946 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
947 }
948 return 0;
949 }
950 #else
951 SWIGSTATICINLINE(unsigned int)
952 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
953 {
954 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
955 }
956 #endif
957
958
959 SWIGSTATICINLINE(unsigned int)
960 SWIG_As_unsigned_SS_int(PyObject* obj)
961 {
962 unsigned int v;
963 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
964 /*
965 this is needed to make valgrind/purify happier. the other
966 solution is throw an exception, but since this code should work
967 with plain C ....
968 */
969 memset((void*)&v, 0, sizeof(unsigned int));
970 }
971 return v;
972 }
973
974
975 SWIGSTATICINLINE(int)
976 SWIG_Check_unsigned_SS_int(PyObject* obj)
977 {
978 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
979 }
980
981 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
982 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
983 if (data == NULL) {
984 data = new wxPyTreeItemData();
985 data->SetId(item); // set the id
986 self->SetItemData(item, data);
987 }
988 return data;
989 }
990 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
991 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
992 if (data == NULL) {
993 data = new wxPyTreeItemData();
994 data->SetId(item); // set the id
995 self->SetItemData(item, data);
996 }
997 return data->GetData();
998 }
999 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
1000 data->SetId(item); // set the id
1001 self->SetItemData(item, data);
1002 }
1003 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
1004 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
1005 if (data == NULL) {
1006 data = new wxPyTreeItemData(obj);
1007 data->SetId(item); // set the id
1008 self->SetItemData(item, data);
1009 } else
1010 data->SetData(obj);
1011 }
1012 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
1013 bool blocked = wxPyBeginBlockThreads();
1014 PyObject* rval = PyList_New(0);
1015 wxArrayTreeItemIds array;
1016 size_t num, x;
1017 num = self->GetSelections(array);
1018 for (x=0; x < num; x++) {
1019 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
1020 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
1021 PyList_Append(rval, item);
1022 Py_DECREF(item);
1023 }
1024 wxPyEndBlockThreads(blocked);
1025 return rval;
1026 }
1027 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
1028 void* cookie = 0;
1029 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
1030 bool blocked = wxPyBeginBlockThreads();
1031 PyObject* tup = PyTuple_New(2);
1032 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
1033 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1034 wxPyEndBlockThreads(blocked);
1035 return tup;
1036 }
1037 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
1038 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
1039 bool blocked = wxPyBeginBlockThreads();
1040 PyObject* tup = PyTuple_New(2);
1041 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
1042 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1043 wxPyEndBlockThreads(blocked);
1044 return tup;
1045 }
1046 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
1047 wxRect rect;
1048 if (self->GetBoundingRect(item, rect, textOnly)) {
1049 bool blocked = wxPyBeginBlockThreads();
1050 wxRect* r = new wxRect(rect);
1051 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
1052 wxPyEndBlockThreads(blocked);
1053 return val;
1054 }
1055 else
1056 RETURN_NONE();
1057 }
1058 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
1059
1060 SWIGSTATICINLINE(PyObject*)
1061 SWIG_From_bool(bool value)
1062 {
1063 PyObject *obj = value ? Py_True : Py_False;
1064 Py_INCREF(obj);
1065 return obj;
1066 }
1067
1068
1069 // C++ version of Python aware wxControl
1070 class wxPyControl : public wxControl
1071 {
1072 DECLARE_DYNAMIC_CLASS(wxPyControl)
1073 public:
1074 wxPyControl() : wxControl() {}
1075 wxPyControl(wxWindow* parent, const wxWindowID id,
1076 const wxPoint& pos = wxDefaultPosition,
1077 const wxSize& size = wxDefaultSize,
1078 long style = 0,
1079 const wxValidator& validator=wxDefaultValidator,
1080 const wxString& name = wxPyControlNameStr)
1081 : wxControl(parent, id, pos, size, style, validator, name) {}
1082
1083 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
1084
1085 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
1086 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
1087 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
1088 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
1089
1090 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
1091 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
1092 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
1093
1094 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
1095 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
1096
1097 DEC_PYCALLBACK__(InitDialog);
1098 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
1099 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
1100 DEC_PYCALLBACK_BOOL_(Validate);
1101
1102 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
1103 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
1104 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
1105
1106 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
1107 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
1108
1109 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1110 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
1111 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
1112
1113 PYPRIVATE;
1114 };
1115
1116 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
1117
1118 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
1119 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
1120 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
1121 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
1122
1123 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
1124 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
1125 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
1126
1127 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
1128 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
1129
1130 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
1131 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
1132 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
1133 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1134
1135 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1136 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1137 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1138
1139 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1140 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1141
1142 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
1143 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1144 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
1145
1146
1147
1148 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1149
1150 #include <wx/generic/dragimgg.h>
1151
1152 #ifdef __cplusplus
1153 extern "C" {
1154 #endif
1155 static int _wrap_ButtonNameStr_set(PyObject *) {
1156 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1157 return 1;
1158 }
1159
1160
1161 static PyObject *_wrap_ButtonNameStr_get() {
1162 PyObject *pyobj;
1163
1164 {
1165 #if wxUSE_UNICODE
1166 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1167 #else
1168 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1169 #endif
1170 }
1171 return pyobj;
1172 }
1173
1174
1175 static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) {
1176 PyObject *resultobj;
1177 wxWindow *arg1 = (wxWindow *) 0 ;
1178 int arg2 = (int) -1 ;
1179 wxString const &arg3_defvalue = wxPyEmptyString ;
1180 wxString *arg3 = (wxString *) &arg3_defvalue ;
1181 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1182 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1183 wxSize const &arg5_defvalue = wxDefaultSize ;
1184 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1185 long arg6 = (long) 0 ;
1186 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1187 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1188 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1189 wxString *arg8 = (wxString *) &arg8_defvalue ;
1190 wxButton *result;
1191 bool temp3 = False ;
1192 wxPoint temp4 ;
1193 wxSize temp5 ;
1194 bool temp8 = False ;
1195 PyObject * obj0 = 0 ;
1196 PyObject * obj1 = 0 ;
1197 PyObject * obj2 = 0 ;
1198 PyObject * obj3 = 0 ;
1199 PyObject * obj4 = 0 ;
1200 PyObject * obj5 = 0 ;
1201 PyObject * obj6 = 0 ;
1202 PyObject * obj7 = 0 ;
1203 char *kwnames[] = {
1204 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1205 };
1206
1207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1210 if (obj1) {
1211 arg2 = (int)SWIG_As_int(obj1);
1212 if (PyErr_Occurred()) SWIG_fail;
1213 }
1214 if (obj2) {
1215 {
1216 arg3 = wxString_in_helper(obj2);
1217 if (arg3 == NULL) SWIG_fail;
1218 temp3 = True;
1219 }
1220 }
1221 if (obj3) {
1222 {
1223 arg4 = &temp4;
1224 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1225 }
1226 }
1227 if (obj4) {
1228 {
1229 arg5 = &temp5;
1230 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1231 }
1232 }
1233 if (obj5) {
1234 arg6 = (long)SWIG_As_long(obj5);
1235 if (PyErr_Occurred()) SWIG_fail;
1236 }
1237 if (obj6) {
1238 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1239 SWIG_POINTER_EXCEPTION | 0)) == -1)
1240 SWIG_fail;
1241 if (arg7 == NULL) {
1242 PyErr_SetString(PyExc_TypeError,"null reference");
1243 SWIG_fail;
1244 }
1245 }
1246 if (obj7) {
1247 {
1248 arg8 = wxString_in_helper(obj7);
1249 if (arg8 == NULL) SWIG_fail;
1250 temp8 = True;
1251 }
1252 }
1253 {
1254 if (!wxPyCheckForApp()) SWIG_fail;
1255 PyThreadState* __tstate = wxPyBeginAllowThreads();
1256 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1257
1258 wxPyEndAllowThreads(__tstate);
1259 if (PyErr_Occurred()) SWIG_fail;
1260 }
1261 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1262 {
1263 if (temp3)
1264 delete arg3;
1265 }
1266 {
1267 if (temp8)
1268 delete arg8;
1269 }
1270 return resultobj;
1271 fail:
1272 {
1273 if (temp3)
1274 delete arg3;
1275 }
1276 {
1277 if (temp8)
1278 delete arg8;
1279 }
1280 return NULL;
1281 }
1282
1283
1284 static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) {
1285 PyObject *resultobj;
1286 wxButton *result;
1287 char *kwnames[] = {
1288 NULL
1289 };
1290
1291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1292 {
1293 if (!wxPyCheckForApp()) SWIG_fail;
1294 PyThreadState* __tstate = wxPyBeginAllowThreads();
1295 result = (wxButton *)new wxButton();
1296
1297 wxPyEndAllowThreads(__tstate);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 }
1300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1301 return resultobj;
1302 fail:
1303 return NULL;
1304 }
1305
1306
1307 static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1308 PyObject *resultobj;
1309 wxButton *arg1 = (wxButton *) 0 ;
1310 wxWindow *arg2 = (wxWindow *) 0 ;
1311 int arg3 = (int) -1 ;
1312 wxString const &arg4_defvalue = wxPyEmptyString ;
1313 wxString *arg4 = (wxString *) &arg4_defvalue ;
1314 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1315 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1316 wxSize const &arg6_defvalue = wxDefaultSize ;
1317 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1318 long arg7 = (long) 0 ;
1319 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1320 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1321 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1322 wxString *arg9 = (wxString *) &arg9_defvalue ;
1323 bool result;
1324 bool temp4 = False ;
1325 wxPoint temp5 ;
1326 wxSize temp6 ;
1327 bool temp9 = False ;
1328 PyObject * obj0 = 0 ;
1329 PyObject * obj1 = 0 ;
1330 PyObject * obj2 = 0 ;
1331 PyObject * obj3 = 0 ;
1332 PyObject * obj4 = 0 ;
1333 PyObject * obj5 = 0 ;
1334 PyObject * obj6 = 0 ;
1335 PyObject * obj7 = 0 ;
1336 PyObject * obj8 = 0 ;
1337 char *kwnames[] = {
1338 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1339 };
1340
1341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1344 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1346 if (obj2) {
1347 arg3 = (int)SWIG_As_int(obj2);
1348 if (PyErr_Occurred()) SWIG_fail;
1349 }
1350 if (obj3) {
1351 {
1352 arg4 = wxString_in_helper(obj3);
1353 if (arg4 == NULL) SWIG_fail;
1354 temp4 = True;
1355 }
1356 }
1357 if (obj4) {
1358 {
1359 arg5 = &temp5;
1360 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1361 }
1362 }
1363 if (obj5) {
1364 {
1365 arg6 = &temp6;
1366 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1367 }
1368 }
1369 if (obj6) {
1370 arg7 = (long)SWIG_As_long(obj6);
1371 if (PyErr_Occurred()) SWIG_fail;
1372 }
1373 if (obj7) {
1374 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1375 SWIG_POINTER_EXCEPTION | 0)) == -1)
1376 SWIG_fail;
1377 if (arg8 == NULL) {
1378 PyErr_SetString(PyExc_TypeError,"null reference");
1379 SWIG_fail;
1380 }
1381 }
1382 if (obj8) {
1383 {
1384 arg9 = wxString_in_helper(obj8);
1385 if (arg9 == NULL) SWIG_fail;
1386 temp9 = True;
1387 }
1388 }
1389 {
1390 PyThreadState* __tstate = wxPyBeginAllowThreads();
1391 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1392
1393 wxPyEndAllowThreads(__tstate);
1394 if (PyErr_Occurred()) SWIG_fail;
1395 }
1396 {
1397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1398 }
1399 {
1400 if (temp4)
1401 delete arg4;
1402 }
1403 {
1404 if (temp9)
1405 delete arg9;
1406 }
1407 return resultobj;
1408 fail:
1409 {
1410 if (temp4)
1411 delete arg4;
1412 }
1413 {
1414 if (temp9)
1415 delete arg9;
1416 }
1417 return NULL;
1418 }
1419
1420
1421 static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
1422 PyObject *resultobj;
1423 wxButton *arg1 = (wxButton *) 0 ;
1424 PyObject * obj0 = 0 ;
1425 char *kwnames[] = {
1426 (char *) "self", NULL
1427 };
1428
1429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1432 {
1433 PyThreadState* __tstate = wxPyBeginAllowThreads();
1434 (arg1)->SetDefault();
1435
1436 wxPyEndAllowThreads(__tstate);
1437 if (PyErr_Occurred()) SWIG_fail;
1438 }
1439 Py_INCREF(Py_None); resultobj = Py_None;
1440 return resultobj;
1441 fail:
1442 return NULL;
1443 }
1444
1445
1446 static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
1447 PyObject *resultobj;
1448 wxSize result;
1449 char *kwnames[] = {
1450 NULL
1451 };
1452
1453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1454 {
1455 PyThreadState* __tstate = wxPyBeginAllowThreads();
1456 result = wxButton::GetDefaultSize();
1457
1458 wxPyEndAllowThreads(__tstate);
1459 if (PyErr_Occurred()) SWIG_fail;
1460 }
1461 {
1462 wxSize * resultptr;
1463 resultptr = new wxSize((wxSize &) result);
1464 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1465 }
1466 return resultobj;
1467 fail:
1468 return NULL;
1469 }
1470
1471
1472 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
1473 PyObject *resultobj;
1474 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1475 wxVisualAttributes result;
1476 PyObject * obj0 = 0 ;
1477 char *kwnames[] = {
1478 (char *) "variant", NULL
1479 };
1480
1481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1482 if (obj0) {
1483 arg1 = (int)SWIG_As_int(obj0);
1484 if (PyErr_Occurred()) SWIG_fail;
1485 }
1486 {
1487 if (!wxPyCheckForApp()) SWIG_fail;
1488 PyThreadState* __tstate = wxPyBeginAllowThreads();
1489 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1490
1491 wxPyEndAllowThreads(__tstate);
1492 if (PyErr_Occurred()) SWIG_fail;
1493 }
1494 {
1495 wxVisualAttributes * resultptr;
1496 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1497 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1498 }
1499 return resultobj;
1500 fail:
1501 return NULL;
1502 }
1503
1504
1505 static PyObject * Button_swigregister(PyObject *, PyObject *args) {
1506 PyObject *obj;
1507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1508 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1509 Py_INCREF(obj);
1510 return Py_BuildValue((char *)"");
1511 }
1512 static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1513 PyObject *resultobj;
1514 wxWindow *arg1 = (wxWindow *) 0 ;
1515 int arg2 = (int) -1 ;
1516 wxBitmap const &arg3_defvalue = wxNullBitmap ;
1517 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
1518 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1519 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1520 wxSize const &arg5_defvalue = wxDefaultSize ;
1521 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1522 long arg6 = (long) wxBU_AUTODRAW ;
1523 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1524 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1525 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1526 wxString *arg8 = (wxString *) &arg8_defvalue ;
1527 wxBitmapButton *result;
1528 wxPoint temp4 ;
1529 wxSize temp5 ;
1530 bool temp8 = False ;
1531 PyObject * obj0 = 0 ;
1532 PyObject * obj1 = 0 ;
1533 PyObject * obj2 = 0 ;
1534 PyObject * obj3 = 0 ;
1535 PyObject * obj4 = 0 ;
1536 PyObject * obj5 = 0 ;
1537 PyObject * obj6 = 0 ;
1538 PyObject * obj7 = 0 ;
1539 char *kwnames[] = {
1540 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1541 };
1542
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1546 if (obj1) {
1547 arg2 = (int)SWIG_As_int(obj1);
1548 if (PyErr_Occurred()) SWIG_fail;
1549 }
1550 if (obj2) {
1551 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1552 SWIG_POINTER_EXCEPTION | 0)) == -1)
1553 SWIG_fail;
1554 if (arg3 == NULL) {
1555 PyErr_SetString(PyExc_TypeError,"null reference");
1556 SWIG_fail;
1557 }
1558 }
1559 if (obj3) {
1560 {
1561 arg4 = &temp4;
1562 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1563 }
1564 }
1565 if (obj4) {
1566 {
1567 arg5 = &temp5;
1568 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1569 }
1570 }
1571 if (obj5) {
1572 arg6 = (long)SWIG_As_long(obj5);
1573 if (PyErr_Occurred()) SWIG_fail;
1574 }
1575 if (obj6) {
1576 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1577 SWIG_POINTER_EXCEPTION | 0)) == -1)
1578 SWIG_fail;
1579 if (arg7 == NULL) {
1580 PyErr_SetString(PyExc_TypeError,"null reference");
1581 SWIG_fail;
1582 }
1583 }
1584 if (obj7) {
1585 {
1586 arg8 = wxString_in_helper(obj7);
1587 if (arg8 == NULL) SWIG_fail;
1588 temp8 = True;
1589 }
1590 }
1591 {
1592 if (!wxPyCheckForApp()) SWIG_fail;
1593 PyThreadState* __tstate = wxPyBeginAllowThreads();
1594 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1595
1596 wxPyEndAllowThreads(__tstate);
1597 if (PyErr_Occurred()) SWIG_fail;
1598 }
1599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1600 {
1601 if (temp8)
1602 delete arg8;
1603 }
1604 return resultobj;
1605 fail:
1606 {
1607 if (temp8)
1608 delete arg8;
1609 }
1610 return NULL;
1611 }
1612
1613
1614 static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1615 PyObject *resultobj;
1616 wxBitmapButton *result;
1617 char *kwnames[] = {
1618 NULL
1619 };
1620
1621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1622 {
1623 if (!wxPyCheckForApp()) SWIG_fail;
1624 PyThreadState* __tstate = wxPyBeginAllowThreads();
1625 result = (wxBitmapButton *)new wxBitmapButton();
1626
1627 wxPyEndAllowThreads(__tstate);
1628 if (PyErr_Occurred()) SWIG_fail;
1629 }
1630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1631 return resultobj;
1632 fail:
1633 return NULL;
1634 }
1635
1636
1637 static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1638 PyObject *resultobj;
1639 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1640 wxWindow *arg2 = (wxWindow *) 0 ;
1641 int arg3 = (int) -1 ;
1642 wxBitmap const &arg4_defvalue = wxNullBitmap ;
1643 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1644 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1645 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1646 wxSize const &arg6_defvalue = wxDefaultSize ;
1647 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1648 long arg7 = (long) wxBU_AUTODRAW ;
1649 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1650 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1651 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1652 wxString *arg9 = (wxString *) &arg9_defvalue ;
1653 bool result;
1654 wxPoint temp5 ;
1655 wxSize temp6 ;
1656 bool temp9 = False ;
1657 PyObject * obj0 = 0 ;
1658 PyObject * obj1 = 0 ;
1659 PyObject * obj2 = 0 ;
1660 PyObject * obj3 = 0 ;
1661 PyObject * obj4 = 0 ;
1662 PyObject * obj5 = 0 ;
1663 PyObject * obj6 = 0 ;
1664 PyObject * obj7 = 0 ;
1665 PyObject * obj8 = 0 ;
1666 char *kwnames[] = {
1667 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1668 };
1669
1670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1673 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1675 if (obj2) {
1676 arg3 = (int)SWIG_As_int(obj2);
1677 if (PyErr_Occurred()) SWIG_fail;
1678 }
1679 if (obj3) {
1680 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1681 SWIG_POINTER_EXCEPTION | 0)) == -1)
1682 SWIG_fail;
1683 if (arg4 == NULL) {
1684 PyErr_SetString(PyExc_TypeError,"null reference");
1685 SWIG_fail;
1686 }
1687 }
1688 if (obj4) {
1689 {
1690 arg5 = &temp5;
1691 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1692 }
1693 }
1694 if (obj5) {
1695 {
1696 arg6 = &temp6;
1697 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1698 }
1699 }
1700 if (obj6) {
1701 arg7 = (long)SWIG_As_long(obj6);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
1704 if (obj7) {
1705 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1706 SWIG_POINTER_EXCEPTION | 0)) == -1)
1707 SWIG_fail;
1708 if (arg8 == NULL) {
1709 PyErr_SetString(PyExc_TypeError,"null reference");
1710 SWIG_fail;
1711 }
1712 }
1713 if (obj8) {
1714 {
1715 arg9 = wxString_in_helper(obj8);
1716 if (arg9 == NULL) SWIG_fail;
1717 temp9 = True;
1718 }
1719 }
1720 {
1721 PyThreadState* __tstate = wxPyBeginAllowThreads();
1722 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1723
1724 wxPyEndAllowThreads(__tstate);
1725 if (PyErr_Occurred()) SWIG_fail;
1726 }
1727 {
1728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1729 }
1730 {
1731 if (temp9)
1732 delete arg9;
1733 }
1734 return resultobj;
1735 fail:
1736 {
1737 if (temp9)
1738 delete arg9;
1739 }
1740 return NULL;
1741 }
1742
1743
1744 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1745 PyObject *resultobj;
1746 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1747 wxBitmap result;
1748 PyObject * obj0 = 0 ;
1749 char *kwnames[] = {
1750 (char *) "self", NULL
1751 };
1752
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1756 {
1757 PyThreadState* __tstate = wxPyBeginAllowThreads();
1758 result = (arg1)->GetBitmapLabel();
1759
1760 wxPyEndAllowThreads(__tstate);
1761 if (PyErr_Occurred()) SWIG_fail;
1762 }
1763 {
1764 wxBitmap * resultptr;
1765 resultptr = new wxBitmap((wxBitmap &) result);
1766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1767 }
1768 return resultobj;
1769 fail:
1770 return NULL;
1771 }
1772
1773
1774 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1775 PyObject *resultobj;
1776 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1777 wxBitmap result;
1778 PyObject * obj0 = 0 ;
1779 char *kwnames[] = {
1780 (char *) "self", NULL
1781 };
1782
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1786 {
1787 PyThreadState* __tstate = wxPyBeginAllowThreads();
1788 result = (arg1)->GetBitmapDisabled();
1789
1790 wxPyEndAllowThreads(__tstate);
1791 if (PyErr_Occurred()) SWIG_fail;
1792 }
1793 {
1794 wxBitmap * resultptr;
1795 resultptr = new wxBitmap((wxBitmap &) result);
1796 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1797 }
1798 return resultobj;
1799 fail:
1800 return NULL;
1801 }
1802
1803
1804 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1805 PyObject *resultobj;
1806 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1807 wxBitmap result;
1808 PyObject * obj0 = 0 ;
1809 char *kwnames[] = {
1810 (char *) "self", NULL
1811 };
1812
1813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1816 {
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 result = (arg1)->GetBitmapFocus();
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
1823 {
1824 wxBitmap * resultptr;
1825 resultptr = new wxBitmap((wxBitmap &) result);
1826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1827 }
1828 return resultobj;
1829 fail:
1830 return NULL;
1831 }
1832
1833
1834 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1835 PyObject *resultobj;
1836 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1837 wxBitmap result;
1838 PyObject * obj0 = 0 ;
1839 char *kwnames[] = {
1840 (char *) "self", NULL
1841 };
1842
1843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1846 {
1847 PyThreadState* __tstate = wxPyBeginAllowThreads();
1848 result = (arg1)->GetBitmapSelected();
1849
1850 wxPyEndAllowThreads(__tstate);
1851 if (PyErr_Occurred()) SWIG_fail;
1852 }
1853 {
1854 wxBitmap * resultptr;
1855 resultptr = new wxBitmap((wxBitmap &) result);
1856 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1857 }
1858 return resultobj;
1859 fail:
1860 return NULL;
1861 }
1862
1863
1864 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1865 PyObject *resultobj;
1866 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1867 wxBitmap *arg2 = 0 ;
1868 PyObject * obj0 = 0 ;
1869 PyObject * obj1 = 0 ;
1870 char *kwnames[] = {
1871 (char *) "self",(char *) "bitmap", NULL
1872 };
1873
1874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1877 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1878 SWIG_POINTER_EXCEPTION | 0)) == -1)
1879 SWIG_fail;
1880 if (arg2 == NULL) {
1881 PyErr_SetString(PyExc_TypeError,"null reference");
1882 SWIG_fail;
1883 }
1884 {
1885 PyThreadState* __tstate = wxPyBeginAllowThreads();
1886 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1887
1888 wxPyEndAllowThreads(__tstate);
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
1891 Py_INCREF(Py_None); resultobj = Py_None;
1892 return resultobj;
1893 fail:
1894 return NULL;
1895 }
1896
1897
1898 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1899 PyObject *resultobj;
1900 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1901 wxBitmap *arg2 = 0 ;
1902 PyObject * obj0 = 0 ;
1903 PyObject * obj1 = 0 ;
1904 char *kwnames[] = {
1905 (char *) "self",(char *) "bitmap", NULL
1906 };
1907
1908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1911 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1912 SWIG_POINTER_EXCEPTION | 0)) == -1)
1913 SWIG_fail;
1914 if (arg2 == NULL) {
1915 PyErr_SetString(PyExc_TypeError,"null reference");
1916 SWIG_fail;
1917 }
1918 {
1919 PyThreadState* __tstate = wxPyBeginAllowThreads();
1920 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1921
1922 wxPyEndAllowThreads(__tstate);
1923 if (PyErr_Occurred()) SWIG_fail;
1924 }
1925 Py_INCREF(Py_None); resultobj = Py_None;
1926 return resultobj;
1927 fail:
1928 return NULL;
1929 }
1930
1931
1932 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1933 PyObject *resultobj;
1934 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1935 wxBitmap *arg2 = 0 ;
1936 PyObject * obj0 = 0 ;
1937 PyObject * obj1 = 0 ;
1938 char *kwnames[] = {
1939 (char *) "self",(char *) "bitmap", NULL
1940 };
1941
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1945 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1946 SWIG_POINTER_EXCEPTION | 0)) == -1)
1947 SWIG_fail;
1948 if (arg2 == NULL) {
1949 PyErr_SetString(PyExc_TypeError,"null reference");
1950 SWIG_fail;
1951 }
1952 {
1953 PyThreadState* __tstate = wxPyBeginAllowThreads();
1954 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1955
1956 wxPyEndAllowThreads(__tstate);
1957 if (PyErr_Occurred()) SWIG_fail;
1958 }
1959 Py_INCREF(Py_None); resultobj = Py_None;
1960 return resultobj;
1961 fail:
1962 return NULL;
1963 }
1964
1965
1966 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1967 PyObject *resultobj;
1968 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1969 wxBitmap *arg2 = 0 ;
1970 PyObject * obj0 = 0 ;
1971 PyObject * obj1 = 0 ;
1972 char *kwnames[] = {
1973 (char *) "self",(char *) "bitmap", NULL
1974 };
1975
1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1979 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1980 SWIG_POINTER_EXCEPTION | 0)) == -1)
1981 SWIG_fail;
1982 if (arg2 == NULL) {
1983 PyErr_SetString(PyExc_TypeError,"null reference");
1984 SWIG_fail;
1985 }
1986 {
1987 PyThreadState* __tstate = wxPyBeginAllowThreads();
1988 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1989
1990 wxPyEndAllowThreads(__tstate);
1991 if (PyErr_Occurred()) SWIG_fail;
1992 }
1993 Py_INCREF(Py_None); resultobj = Py_None;
1994 return resultobj;
1995 fail:
1996 return NULL;
1997 }
1998
1999
2000 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
2001 PyObject *resultobj;
2002 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2003 int arg2 ;
2004 int arg3 ;
2005 PyObject * obj0 = 0 ;
2006 PyObject * obj1 = 0 ;
2007 PyObject * obj2 = 0 ;
2008 char *kwnames[] = {
2009 (char *) "self",(char *) "x",(char *) "y", NULL
2010 };
2011
2012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
2013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2015 arg2 = (int)SWIG_As_int(obj1);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 arg3 = (int)SWIG_As_int(obj2);
2018 if (PyErr_Occurred()) SWIG_fail;
2019 {
2020 PyThreadState* __tstate = wxPyBeginAllowThreads();
2021 (arg1)->SetMargins(arg2,arg3);
2022
2023 wxPyEndAllowThreads(__tstate);
2024 if (PyErr_Occurred()) SWIG_fail;
2025 }
2026 Py_INCREF(Py_None); resultobj = Py_None;
2027 return resultobj;
2028 fail:
2029 return NULL;
2030 }
2031
2032
2033 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) {
2034 PyObject *resultobj;
2035 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2036 int result;
2037 PyObject * obj0 = 0 ;
2038 char *kwnames[] = {
2039 (char *) "self", NULL
2040 };
2041
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
2043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2045 {
2046 PyThreadState* __tstate = wxPyBeginAllowThreads();
2047 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
2048
2049 wxPyEndAllowThreads(__tstate);
2050 if (PyErr_Occurred()) SWIG_fail;
2051 }
2052 resultobj = SWIG_From_int((int)result);
2053 return resultobj;
2054 fail:
2055 return NULL;
2056 }
2057
2058
2059 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) {
2060 PyObject *resultobj;
2061 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2062 int result;
2063 PyObject * obj0 = 0 ;
2064 char *kwnames[] = {
2065 (char *) "self", NULL
2066 };
2067
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
2069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2071 {
2072 PyThreadState* __tstate = wxPyBeginAllowThreads();
2073 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
2074
2075 wxPyEndAllowThreads(__tstate);
2076 if (PyErr_Occurred()) SWIG_fail;
2077 }
2078 resultobj = SWIG_From_int((int)result);
2079 return resultobj;
2080 fail:
2081 return NULL;
2082 }
2083
2084
2085 static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) {
2086 PyObject *obj;
2087 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2088 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
2089 Py_INCREF(obj);
2090 return Py_BuildValue((char *)"");
2091 }
2092 static int _wrap_CheckBoxNameStr_set(PyObject *) {
2093 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
2094 return 1;
2095 }
2096
2097
2098 static PyObject *_wrap_CheckBoxNameStr_get() {
2099 PyObject *pyobj;
2100
2101 {
2102 #if wxUSE_UNICODE
2103 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2104 #else
2105 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2106 #endif
2107 }
2108 return pyobj;
2109 }
2110
2111
2112 static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2113 PyObject *resultobj;
2114 wxWindow *arg1 = (wxWindow *) 0 ;
2115 int arg2 = (int) -1 ;
2116 wxString const &arg3_defvalue = wxPyEmptyString ;
2117 wxString *arg3 = (wxString *) &arg3_defvalue ;
2118 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2119 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2120 wxSize const &arg5_defvalue = wxDefaultSize ;
2121 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2122 long arg6 = (long) 0 ;
2123 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2124 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2125 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
2126 wxString *arg8 = (wxString *) &arg8_defvalue ;
2127 wxCheckBox *result;
2128 bool temp3 = False ;
2129 wxPoint temp4 ;
2130 wxSize temp5 ;
2131 bool temp8 = False ;
2132 PyObject * obj0 = 0 ;
2133 PyObject * obj1 = 0 ;
2134 PyObject * obj2 = 0 ;
2135 PyObject * obj3 = 0 ;
2136 PyObject * obj4 = 0 ;
2137 PyObject * obj5 = 0 ;
2138 PyObject * obj6 = 0 ;
2139 PyObject * obj7 = 0 ;
2140 char *kwnames[] = {
2141 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2142 };
2143
2144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2147 if (obj1) {
2148 arg2 = (int)SWIG_As_int(obj1);
2149 if (PyErr_Occurred()) SWIG_fail;
2150 }
2151 if (obj2) {
2152 {
2153 arg3 = wxString_in_helper(obj2);
2154 if (arg3 == NULL) SWIG_fail;
2155 temp3 = True;
2156 }
2157 }
2158 if (obj3) {
2159 {
2160 arg4 = &temp4;
2161 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2162 }
2163 }
2164 if (obj4) {
2165 {
2166 arg5 = &temp5;
2167 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2168 }
2169 }
2170 if (obj5) {
2171 arg6 = (long)SWIG_As_long(obj5);
2172 if (PyErr_Occurred()) SWIG_fail;
2173 }
2174 if (obj6) {
2175 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2176 SWIG_POINTER_EXCEPTION | 0)) == -1)
2177 SWIG_fail;
2178 if (arg7 == NULL) {
2179 PyErr_SetString(PyExc_TypeError,"null reference");
2180 SWIG_fail;
2181 }
2182 }
2183 if (obj7) {
2184 {
2185 arg8 = wxString_in_helper(obj7);
2186 if (arg8 == NULL) SWIG_fail;
2187 temp8 = True;
2188 }
2189 }
2190 {
2191 if (!wxPyCheckForApp()) SWIG_fail;
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2199 {
2200 if (temp3)
2201 delete arg3;
2202 }
2203 {
2204 if (temp8)
2205 delete arg8;
2206 }
2207 return resultobj;
2208 fail:
2209 {
2210 if (temp3)
2211 delete arg3;
2212 }
2213 {
2214 if (temp8)
2215 delete arg8;
2216 }
2217 return NULL;
2218 }
2219
2220
2221 static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2222 PyObject *resultobj;
2223 wxCheckBox *result;
2224 char *kwnames[] = {
2225 NULL
2226 };
2227
2228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2229 {
2230 if (!wxPyCheckForApp()) SWIG_fail;
2231 PyThreadState* __tstate = wxPyBeginAllowThreads();
2232 result = (wxCheckBox *)new wxCheckBox();
2233
2234 wxPyEndAllowThreads(__tstate);
2235 if (PyErr_Occurred()) SWIG_fail;
2236 }
2237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2238 return resultobj;
2239 fail:
2240 return NULL;
2241 }
2242
2243
2244 static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2245 PyObject *resultobj;
2246 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2247 wxWindow *arg2 = (wxWindow *) 0 ;
2248 int arg3 = (int) -1 ;
2249 wxString const &arg4_defvalue = wxPyEmptyString ;
2250 wxString *arg4 = (wxString *) &arg4_defvalue ;
2251 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2252 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2253 wxSize const &arg6_defvalue = wxDefaultSize ;
2254 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2255 long arg7 = (long) 0 ;
2256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2258 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2259 wxString *arg9 = (wxString *) &arg9_defvalue ;
2260 bool result;
2261 bool temp4 = False ;
2262 wxPoint temp5 ;
2263 wxSize temp6 ;
2264 bool temp9 = False ;
2265 PyObject * obj0 = 0 ;
2266 PyObject * obj1 = 0 ;
2267 PyObject * obj2 = 0 ;
2268 PyObject * obj3 = 0 ;
2269 PyObject * obj4 = 0 ;
2270 PyObject * obj5 = 0 ;
2271 PyObject * obj6 = 0 ;
2272 PyObject * obj7 = 0 ;
2273 PyObject * obj8 = 0 ;
2274 char *kwnames[] = {
2275 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2276 };
2277
2278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2283 if (obj2) {
2284 arg3 = (int)SWIG_As_int(obj2);
2285 if (PyErr_Occurred()) SWIG_fail;
2286 }
2287 if (obj3) {
2288 {
2289 arg4 = wxString_in_helper(obj3);
2290 if (arg4 == NULL) SWIG_fail;
2291 temp4 = True;
2292 }
2293 }
2294 if (obj4) {
2295 {
2296 arg5 = &temp5;
2297 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2298 }
2299 }
2300 if (obj5) {
2301 {
2302 arg6 = &temp6;
2303 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2304 }
2305 }
2306 if (obj6) {
2307 arg7 = (long)SWIG_As_long(obj6);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 }
2310 if (obj7) {
2311 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2312 SWIG_POINTER_EXCEPTION | 0)) == -1)
2313 SWIG_fail;
2314 if (arg8 == NULL) {
2315 PyErr_SetString(PyExc_TypeError,"null reference");
2316 SWIG_fail;
2317 }
2318 }
2319 if (obj8) {
2320 {
2321 arg9 = wxString_in_helper(obj8);
2322 if (arg9 == NULL) SWIG_fail;
2323 temp9 = True;
2324 }
2325 }
2326 {
2327 PyThreadState* __tstate = wxPyBeginAllowThreads();
2328 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2329
2330 wxPyEndAllowThreads(__tstate);
2331 if (PyErr_Occurred()) SWIG_fail;
2332 }
2333 {
2334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2335 }
2336 {
2337 if (temp4)
2338 delete arg4;
2339 }
2340 {
2341 if (temp9)
2342 delete arg9;
2343 }
2344 return resultobj;
2345 fail:
2346 {
2347 if (temp4)
2348 delete arg4;
2349 }
2350 {
2351 if (temp9)
2352 delete arg9;
2353 }
2354 return NULL;
2355 }
2356
2357
2358 static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2359 PyObject *resultobj;
2360 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2361 bool result;
2362 PyObject * obj0 = 0 ;
2363 char *kwnames[] = {
2364 (char *) "self", NULL
2365 };
2366
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2370 {
2371 PyThreadState* __tstate = wxPyBeginAllowThreads();
2372 result = (bool)(arg1)->GetValue();
2373
2374 wxPyEndAllowThreads(__tstate);
2375 if (PyErr_Occurred()) SWIG_fail;
2376 }
2377 {
2378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2379 }
2380 return resultobj;
2381 fail:
2382 return NULL;
2383 }
2384
2385
2386 static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
2387 PyObject *resultobj;
2388 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2389 bool result;
2390 PyObject * obj0 = 0 ;
2391 char *kwnames[] = {
2392 (char *) "self", NULL
2393 };
2394
2395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2398 {
2399 PyThreadState* __tstate = wxPyBeginAllowThreads();
2400 result = (bool)(arg1)->IsChecked();
2401
2402 wxPyEndAllowThreads(__tstate);
2403 if (PyErr_Occurred()) SWIG_fail;
2404 }
2405 {
2406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2407 }
2408 return resultobj;
2409 fail:
2410 return NULL;
2411 }
2412
2413
2414 static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2415 PyObject *resultobj;
2416 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2417 bool arg2 ;
2418 PyObject * obj0 = 0 ;
2419 PyObject * obj1 = 0 ;
2420 char *kwnames[] = {
2421 (char *) "self",(char *) "state", NULL
2422 };
2423
2424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2427 arg2 = (bool)SWIG_As_bool(obj1);
2428 if (PyErr_Occurred()) SWIG_fail;
2429 {
2430 PyThreadState* __tstate = wxPyBeginAllowThreads();
2431 (arg1)->SetValue(arg2);
2432
2433 wxPyEndAllowThreads(__tstate);
2434 if (PyErr_Occurred()) SWIG_fail;
2435 }
2436 Py_INCREF(Py_None); resultobj = Py_None;
2437 return resultobj;
2438 fail:
2439 return NULL;
2440 }
2441
2442
2443 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2444 PyObject *resultobj;
2445 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2446 int result;
2447 PyObject * obj0 = 0 ;
2448 char *kwnames[] = {
2449 (char *) "self", NULL
2450 };
2451
2452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2455 {
2456 PyThreadState* __tstate = wxPyBeginAllowThreads();
2457 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2458
2459 wxPyEndAllowThreads(__tstate);
2460 if (PyErr_Occurred()) SWIG_fail;
2461 }
2462 resultobj = SWIG_From_int((int)result);
2463 return resultobj;
2464 fail:
2465 return NULL;
2466 }
2467
2468
2469 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2470 PyObject *resultobj;
2471 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2472 int arg2 ;
2473 PyObject * obj0 = 0 ;
2474 PyObject * obj1 = 0 ;
2475 char *kwnames[] = {
2476 (char *) "self",(char *) "state", NULL
2477 };
2478
2479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2482 arg2 = (int)SWIG_As_int(obj1);
2483 if (PyErr_Occurred()) SWIG_fail;
2484 {
2485 PyThreadState* __tstate = wxPyBeginAllowThreads();
2486 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2487
2488 wxPyEndAllowThreads(__tstate);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 }
2491 Py_INCREF(Py_None); resultobj = Py_None;
2492 return resultobj;
2493 fail:
2494 return NULL;
2495 }
2496
2497
2498 static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) {
2499 PyObject *resultobj;
2500 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2501 bool result;
2502 PyObject * obj0 = 0 ;
2503 char *kwnames[] = {
2504 (char *) "self", NULL
2505 };
2506
2507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2510 {
2511 PyThreadState* __tstate = wxPyBeginAllowThreads();
2512 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2513
2514 wxPyEndAllowThreads(__tstate);
2515 if (PyErr_Occurred()) SWIG_fail;
2516 }
2517 {
2518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2519 }
2520 return resultobj;
2521 fail:
2522 return NULL;
2523 }
2524
2525
2526 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) {
2527 PyObject *resultobj;
2528 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2529 bool result;
2530 PyObject * obj0 = 0 ;
2531 char *kwnames[] = {
2532 (char *) "self", NULL
2533 };
2534
2535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2538 {
2539 PyThreadState* __tstate = wxPyBeginAllowThreads();
2540 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2541
2542 wxPyEndAllowThreads(__tstate);
2543 if (PyErr_Occurred()) SWIG_fail;
2544 }
2545 {
2546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2547 }
2548 return resultobj;
2549 fail:
2550 return NULL;
2551 }
2552
2553
2554 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
2555 PyObject *resultobj;
2556 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2557 wxVisualAttributes result;
2558 PyObject * obj0 = 0 ;
2559 char *kwnames[] = {
2560 (char *) "variant", NULL
2561 };
2562
2563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2564 if (obj0) {
2565 arg1 = (int)SWIG_As_int(obj0);
2566 if (PyErr_Occurred()) SWIG_fail;
2567 }
2568 {
2569 if (!wxPyCheckForApp()) SWIG_fail;
2570 PyThreadState* __tstate = wxPyBeginAllowThreads();
2571 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2572
2573 wxPyEndAllowThreads(__tstate);
2574 if (PyErr_Occurred()) SWIG_fail;
2575 }
2576 {
2577 wxVisualAttributes * resultptr;
2578 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2580 }
2581 return resultobj;
2582 fail:
2583 return NULL;
2584 }
2585
2586
2587 static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) {
2588 PyObject *obj;
2589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2590 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2591 Py_INCREF(obj);
2592 return Py_BuildValue((char *)"");
2593 }
2594 static int _wrap_ChoiceNameStr_set(PyObject *) {
2595 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2596 return 1;
2597 }
2598
2599
2600 static PyObject *_wrap_ChoiceNameStr_get() {
2601 PyObject *pyobj;
2602
2603 {
2604 #if wxUSE_UNICODE
2605 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2606 #else
2607 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2608 #endif
2609 }
2610 return pyobj;
2611 }
2612
2613
2614 static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) {
2615 PyObject *resultobj;
2616 wxWindow *arg1 = (wxWindow *) 0 ;
2617 int arg2 = (int) -1 ;
2618 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2619 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2620 wxSize const &arg4_defvalue = wxDefaultSize ;
2621 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2622 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2623 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2624 long arg6 = (long) 0 ;
2625 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2626 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2627 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2628 wxString *arg8 = (wxString *) &arg8_defvalue ;
2629 wxChoice *result;
2630 wxPoint temp3 ;
2631 wxSize temp4 ;
2632 bool temp5 = False ;
2633 bool temp8 = False ;
2634 PyObject * obj0 = 0 ;
2635 PyObject * obj1 = 0 ;
2636 PyObject * obj2 = 0 ;
2637 PyObject * obj3 = 0 ;
2638 PyObject * obj4 = 0 ;
2639 PyObject * obj5 = 0 ;
2640 PyObject * obj6 = 0 ;
2641 PyObject * obj7 = 0 ;
2642 char *kwnames[] = {
2643 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2644 };
2645
2646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2649 if (obj1) {
2650 arg2 = (int)SWIG_As_int(obj1);
2651 if (PyErr_Occurred()) SWIG_fail;
2652 }
2653 if (obj2) {
2654 {
2655 arg3 = &temp3;
2656 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2657 }
2658 }
2659 if (obj3) {
2660 {
2661 arg4 = &temp4;
2662 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2663 }
2664 }
2665 if (obj4) {
2666 {
2667 if (! PySequence_Check(obj4)) {
2668 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2669 SWIG_fail;
2670 }
2671 arg5 = new wxArrayString;
2672 temp5 = True;
2673 int i, len=PySequence_Length(obj4);
2674 for (i=0; i<len; i++) {
2675 PyObject* item = PySequence_GetItem(obj4, i);
2676 #if wxUSE_UNICODE
2677 PyObject* str = PyObject_Unicode(item);
2678 #else
2679 PyObject* str = PyObject_Str(item);
2680 #endif
2681 if (PyErr_Occurred()) SWIG_fail;
2682 arg5->Add(Py2wxString(str));
2683 Py_DECREF(item);
2684 Py_DECREF(str);
2685 }
2686 }
2687 }
2688 if (obj5) {
2689 arg6 = (long)SWIG_As_long(obj5);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 if (obj6) {
2693 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2694 SWIG_POINTER_EXCEPTION | 0)) == -1)
2695 SWIG_fail;
2696 if (arg7 == NULL) {
2697 PyErr_SetString(PyExc_TypeError,"null reference");
2698 SWIG_fail;
2699 }
2700 }
2701 if (obj7) {
2702 {
2703 arg8 = wxString_in_helper(obj7);
2704 if (arg8 == NULL) SWIG_fail;
2705 temp8 = True;
2706 }
2707 }
2708 {
2709 if (!wxPyCheckForApp()) SWIG_fail;
2710 PyThreadState* __tstate = wxPyBeginAllowThreads();
2711 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2712
2713 wxPyEndAllowThreads(__tstate);
2714 if (PyErr_Occurred()) SWIG_fail;
2715 }
2716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2717 {
2718 if (temp5) delete arg5;
2719 }
2720 {
2721 if (temp8)
2722 delete arg8;
2723 }
2724 return resultobj;
2725 fail:
2726 {
2727 if (temp5) delete arg5;
2728 }
2729 {
2730 if (temp8)
2731 delete arg8;
2732 }
2733 return NULL;
2734 }
2735
2736
2737 static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) {
2738 PyObject *resultobj;
2739 wxChoice *result;
2740 char *kwnames[] = {
2741 NULL
2742 };
2743
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2745 {
2746 if (!wxPyCheckForApp()) SWIG_fail;
2747 PyThreadState* __tstate = wxPyBeginAllowThreads();
2748 result = (wxChoice *)new wxChoice();
2749
2750 wxPyEndAllowThreads(__tstate);
2751 if (PyErr_Occurred()) SWIG_fail;
2752 }
2753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2754 return resultobj;
2755 fail:
2756 return NULL;
2757 }
2758
2759
2760 static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2761 PyObject *resultobj;
2762 wxChoice *arg1 = (wxChoice *) 0 ;
2763 wxWindow *arg2 = (wxWindow *) 0 ;
2764 int arg3 = (int) -1 ;
2765 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2766 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2767 wxSize const &arg5_defvalue = wxDefaultSize ;
2768 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2769 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2770 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2771 long arg7 = (long) 0 ;
2772 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2773 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2774 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2775 wxString *arg9 = (wxString *) &arg9_defvalue ;
2776 bool result;
2777 wxPoint temp4 ;
2778 wxSize temp5 ;
2779 bool temp6 = False ;
2780 bool temp9 = False ;
2781 PyObject * obj0 = 0 ;
2782 PyObject * obj1 = 0 ;
2783 PyObject * obj2 = 0 ;
2784 PyObject * obj3 = 0 ;
2785 PyObject * obj4 = 0 ;
2786 PyObject * obj5 = 0 ;
2787 PyObject * obj6 = 0 ;
2788 PyObject * obj7 = 0 ;
2789 PyObject * obj8 = 0 ;
2790 char *kwnames[] = {
2791 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2792 };
2793
2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2799 if (obj2) {
2800 arg3 = (int)SWIG_As_int(obj2);
2801 if (PyErr_Occurred()) SWIG_fail;
2802 }
2803 if (obj3) {
2804 {
2805 arg4 = &temp4;
2806 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2807 }
2808 }
2809 if (obj4) {
2810 {
2811 arg5 = &temp5;
2812 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2813 }
2814 }
2815 if (obj5) {
2816 {
2817 if (! PySequence_Check(obj5)) {
2818 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2819 SWIG_fail;
2820 }
2821 arg6 = new wxArrayString;
2822 temp6 = True;
2823 int i, len=PySequence_Length(obj5);
2824 for (i=0; i<len; i++) {
2825 PyObject* item = PySequence_GetItem(obj5, i);
2826 #if wxUSE_UNICODE
2827 PyObject* str = PyObject_Unicode(item);
2828 #else
2829 PyObject* str = PyObject_Str(item);
2830 #endif
2831 if (PyErr_Occurred()) SWIG_fail;
2832 arg6->Add(Py2wxString(str));
2833 Py_DECREF(item);
2834 Py_DECREF(str);
2835 }
2836 }
2837 }
2838 if (obj6) {
2839 arg7 = (long)SWIG_As_long(obj6);
2840 if (PyErr_Occurred()) SWIG_fail;
2841 }
2842 if (obj7) {
2843 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2844 SWIG_POINTER_EXCEPTION | 0)) == -1)
2845 SWIG_fail;
2846 if (arg8 == NULL) {
2847 PyErr_SetString(PyExc_TypeError,"null reference");
2848 SWIG_fail;
2849 }
2850 }
2851 if (obj8) {
2852 {
2853 arg9 = wxString_in_helper(obj8);
2854 if (arg9 == NULL) SWIG_fail;
2855 temp9 = True;
2856 }
2857 }
2858 {
2859 PyThreadState* __tstate = wxPyBeginAllowThreads();
2860 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2861
2862 wxPyEndAllowThreads(__tstate);
2863 if (PyErr_Occurred()) SWIG_fail;
2864 }
2865 {
2866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2867 }
2868 {
2869 if (temp6) delete arg6;
2870 }
2871 {
2872 if (temp9)
2873 delete arg9;
2874 }
2875 return resultobj;
2876 fail:
2877 {
2878 if (temp6) delete arg6;
2879 }
2880 {
2881 if (temp9)
2882 delete arg9;
2883 }
2884 return NULL;
2885 }
2886
2887
2888 static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2889 PyObject *resultobj;
2890 wxChoice *arg1 = (wxChoice *) 0 ;
2891 int arg2 ;
2892 PyObject * obj0 = 0 ;
2893 PyObject * obj1 = 0 ;
2894 char *kwnames[] = {
2895 (char *) "self",(char *) "n", NULL
2896 };
2897
2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2901 arg2 = (int)SWIG_As_int(obj1);
2902 if (PyErr_Occurred()) SWIG_fail;
2903 {
2904 PyThreadState* __tstate = wxPyBeginAllowThreads();
2905 (arg1)->SetSelection(arg2);
2906
2907 wxPyEndAllowThreads(__tstate);
2908 if (PyErr_Occurred()) SWIG_fail;
2909 }
2910 Py_INCREF(Py_None); resultobj = Py_None;
2911 return resultobj;
2912 fail:
2913 return NULL;
2914 }
2915
2916
2917 static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2918 PyObject *resultobj;
2919 wxChoice *arg1 = (wxChoice *) 0 ;
2920 wxString *arg2 = 0 ;
2921 bool result;
2922 bool temp2 = False ;
2923 PyObject * obj0 = 0 ;
2924 PyObject * obj1 = 0 ;
2925 char *kwnames[] = {
2926 (char *) "self",(char *) "string", NULL
2927 };
2928
2929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2932 {
2933 arg2 = wxString_in_helper(obj1);
2934 if (arg2 == NULL) SWIG_fail;
2935 temp2 = True;
2936 }
2937 {
2938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2939 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2940
2941 wxPyEndAllowThreads(__tstate);
2942 if (PyErr_Occurred()) SWIG_fail;
2943 }
2944 {
2945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2946 }
2947 {
2948 if (temp2)
2949 delete arg2;
2950 }
2951 return resultobj;
2952 fail:
2953 {
2954 if (temp2)
2955 delete arg2;
2956 }
2957 return NULL;
2958 }
2959
2960
2961 static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
2962 PyObject *resultobj;
2963 wxChoice *arg1 = (wxChoice *) 0 ;
2964 int arg2 ;
2965 wxString *arg3 = 0 ;
2966 bool temp3 = False ;
2967 PyObject * obj0 = 0 ;
2968 PyObject * obj1 = 0 ;
2969 PyObject * obj2 = 0 ;
2970 char *kwnames[] = {
2971 (char *) "self",(char *) "n",(char *) "string", NULL
2972 };
2973
2974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2977 arg2 = (int)SWIG_As_int(obj1);
2978 if (PyErr_Occurred()) SWIG_fail;
2979 {
2980 arg3 = wxString_in_helper(obj2);
2981 if (arg3 == NULL) SWIG_fail;
2982 temp3 = True;
2983 }
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 (arg1)->SetString(arg2,(wxString const &)*arg3);
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 Py_INCREF(Py_None); resultobj = Py_None;
2992 {
2993 if (temp3)
2994 delete arg3;
2995 }
2996 return resultobj;
2997 fail:
2998 {
2999 if (temp3)
3000 delete arg3;
3001 }
3002 return NULL;
3003 }
3004
3005
3006 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3007 PyObject *resultobj;
3008 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3009 wxVisualAttributes result;
3010 PyObject * obj0 = 0 ;
3011 char *kwnames[] = {
3012 (char *) "variant", NULL
3013 };
3014
3015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3016 if (obj0) {
3017 arg1 = (int)SWIG_As_int(obj0);
3018 if (PyErr_Occurred()) SWIG_fail;
3019 }
3020 {
3021 if (!wxPyCheckForApp()) SWIG_fail;
3022 PyThreadState* __tstate = wxPyBeginAllowThreads();
3023 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
3024
3025 wxPyEndAllowThreads(__tstate);
3026 if (PyErr_Occurred()) SWIG_fail;
3027 }
3028 {
3029 wxVisualAttributes * resultptr;
3030 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3031 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3032 }
3033 return resultobj;
3034 fail:
3035 return NULL;
3036 }
3037
3038
3039 static PyObject * Choice_swigregister(PyObject *, PyObject *args) {
3040 PyObject *obj;
3041 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3042 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
3043 Py_INCREF(obj);
3044 return Py_BuildValue((char *)"");
3045 }
3046 static int _wrap_ComboBoxNameStr_set(PyObject *) {
3047 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
3048 return 1;
3049 }
3050
3051
3052 static PyObject *_wrap_ComboBoxNameStr_get() {
3053 PyObject *pyobj;
3054
3055 {
3056 #if wxUSE_UNICODE
3057 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3058 #else
3059 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3060 #endif
3061 }
3062 return pyobj;
3063 }
3064
3065
3066 static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3067 PyObject *resultobj;
3068 wxWindow *arg1 = (wxWindow *) 0 ;
3069 int arg2 = (int) -1 ;
3070 wxString const &arg3_defvalue = wxPyEmptyString ;
3071 wxString *arg3 = (wxString *) &arg3_defvalue ;
3072 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3073 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3074 wxSize const &arg5_defvalue = wxDefaultSize ;
3075 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3076 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
3077 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
3078 long arg7 = (long) 0 ;
3079 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3080 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3081 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
3082 wxString *arg9 = (wxString *) &arg9_defvalue ;
3083 wxComboBox *result;
3084 bool temp3 = False ;
3085 wxPoint temp4 ;
3086 wxSize temp5 ;
3087 bool temp6 = False ;
3088 bool temp9 = False ;
3089 PyObject * obj0 = 0 ;
3090 PyObject * obj1 = 0 ;
3091 PyObject * obj2 = 0 ;
3092 PyObject * obj3 = 0 ;
3093 PyObject * obj4 = 0 ;
3094 PyObject * obj5 = 0 ;
3095 PyObject * obj6 = 0 ;
3096 PyObject * obj7 = 0 ;
3097 PyObject * obj8 = 0 ;
3098 char *kwnames[] = {
3099 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3100 };
3101
3102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3105 if (obj1) {
3106 arg2 = (int)SWIG_As_int(obj1);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 if (obj2) {
3110 {
3111 arg3 = wxString_in_helper(obj2);
3112 if (arg3 == NULL) SWIG_fail;
3113 temp3 = True;
3114 }
3115 }
3116 if (obj3) {
3117 {
3118 arg4 = &temp4;
3119 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3120 }
3121 }
3122 if (obj4) {
3123 {
3124 arg5 = &temp5;
3125 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3126 }
3127 }
3128 if (obj5) {
3129 {
3130 if (! PySequence_Check(obj5)) {
3131 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3132 SWIG_fail;
3133 }
3134 arg6 = new wxArrayString;
3135 temp6 = True;
3136 int i, len=PySequence_Length(obj5);
3137 for (i=0; i<len; i++) {
3138 PyObject* item = PySequence_GetItem(obj5, i);
3139 #if wxUSE_UNICODE
3140 PyObject* str = PyObject_Unicode(item);
3141 #else
3142 PyObject* str = PyObject_Str(item);
3143 #endif
3144 if (PyErr_Occurred()) SWIG_fail;
3145 arg6->Add(Py2wxString(str));
3146 Py_DECREF(item);
3147 Py_DECREF(str);
3148 }
3149 }
3150 }
3151 if (obj6) {
3152 arg7 = (long)SWIG_As_long(obj6);
3153 if (PyErr_Occurred()) SWIG_fail;
3154 }
3155 if (obj7) {
3156 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3157 SWIG_POINTER_EXCEPTION | 0)) == -1)
3158 SWIG_fail;
3159 if (arg8 == NULL) {
3160 PyErr_SetString(PyExc_TypeError,"null reference");
3161 SWIG_fail;
3162 }
3163 }
3164 if (obj8) {
3165 {
3166 arg9 = wxString_in_helper(obj8);
3167 if (arg9 == NULL) SWIG_fail;
3168 temp9 = True;
3169 }
3170 }
3171 {
3172 if (!wxPyCheckForApp()) SWIG_fail;
3173 PyThreadState* __tstate = wxPyBeginAllowThreads();
3174 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3175
3176 wxPyEndAllowThreads(__tstate);
3177 if (PyErr_Occurred()) SWIG_fail;
3178 }
3179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3180 {
3181 if (temp3)
3182 delete arg3;
3183 }
3184 {
3185 if (temp6) delete arg6;
3186 }
3187 {
3188 if (temp9)
3189 delete arg9;
3190 }
3191 return resultobj;
3192 fail:
3193 {
3194 if (temp3)
3195 delete arg3;
3196 }
3197 {
3198 if (temp6) delete arg6;
3199 }
3200 {
3201 if (temp9)
3202 delete arg9;
3203 }
3204 return NULL;
3205 }
3206
3207
3208 static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3209 PyObject *resultobj;
3210 wxComboBox *result;
3211 char *kwnames[] = {
3212 NULL
3213 };
3214
3215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3216 {
3217 if (!wxPyCheckForApp()) SWIG_fail;
3218 PyThreadState* __tstate = wxPyBeginAllowThreads();
3219 result = (wxComboBox *)new wxComboBox();
3220
3221 wxPyEndAllowThreads(__tstate);
3222 if (PyErr_Occurred()) SWIG_fail;
3223 }
3224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3225 return resultobj;
3226 fail:
3227 return NULL;
3228 }
3229
3230
3231 static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
3232 PyObject *resultobj;
3233 wxComboBox *arg1 = (wxComboBox *) 0 ;
3234 wxWindow *arg2 = (wxWindow *) 0 ;
3235 int arg3 = (int) -1 ;
3236 wxString const &arg4_defvalue = wxPyEmptyString ;
3237 wxString *arg4 = (wxString *) &arg4_defvalue ;
3238 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3239 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3240 wxSize const &arg6_defvalue = wxDefaultSize ;
3241 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3242 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3243 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3244 long arg8 = (long) 0 ;
3245 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3246 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3247 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3248 wxString *arg10 = (wxString *) &arg10_defvalue ;
3249 bool result;
3250 bool temp4 = False ;
3251 wxPoint temp5 ;
3252 wxSize temp6 ;
3253 bool temp7 = False ;
3254 bool temp10 = False ;
3255 PyObject * obj0 = 0 ;
3256 PyObject * obj1 = 0 ;
3257 PyObject * obj2 = 0 ;
3258 PyObject * obj3 = 0 ;
3259 PyObject * obj4 = 0 ;
3260 PyObject * obj5 = 0 ;
3261 PyObject * obj6 = 0 ;
3262 PyObject * obj7 = 0 ;
3263 PyObject * obj8 = 0 ;
3264 PyObject * obj9 = 0 ;
3265 char *kwnames[] = {
3266 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3267 };
3268
3269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3274 if (obj2) {
3275 arg3 = (int)SWIG_As_int(obj2);
3276 if (PyErr_Occurred()) SWIG_fail;
3277 }
3278 if (obj3) {
3279 {
3280 arg4 = wxString_in_helper(obj3);
3281 if (arg4 == NULL) SWIG_fail;
3282 temp4 = True;
3283 }
3284 }
3285 if (obj4) {
3286 {
3287 arg5 = &temp5;
3288 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3289 }
3290 }
3291 if (obj5) {
3292 {
3293 arg6 = &temp6;
3294 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3295 }
3296 }
3297 if (obj6) {
3298 {
3299 if (! PySequence_Check(obj6)) {
3300 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3301 SWIG_fail;
3302 }
3303 arg7 = new wxArrayString;
3304 temp7 = True;
3305 int i, len=PySequence_Length(obj6);
3306 for (i=0; i<len; i++) {
3307 PyObject* item = PySequence_GetItem(obj6, i);
3308 #if wxUSE_UNICODE
3309 PyObject* str = PyObject_Unicode(item);
3310 #else
3311 PyObject* str = PyObject_Str(item);
3312 #endif
3313 if (PyErr_Occurred()) SWIG_fail;
3314 arg7->Add(Py2wxString(str));
3315 Py_DECREF(item);
3316 Py_DECREF(str);
3317 }
3318 }
3319 }
3320 if (obj7) {
3321 arg8 = (long)SWIG_As_long(obj7);
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
3324 if (obj8) {
3325 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3326 SWIG_POINTER_EXCEPTION | 0)) == -1)
3327 SWIG_fail;
3328 if (arg9 == NULL) {
3329 PyErr_SetString(PyExc_TypeError,"null reference");
3330 SWIG_fail;
3331 }
3332 }
3333 if (obj9) {
3334 {
3335 arg10 = wxString_in_helper(obj9);
3336 if (arg10 == NULL) SWIG_fail;
3337 temp10 = True;
3338 }
3339 }
3340 {
3341 PyThreadState* __tstate = wxPyBeginAllowThreads();
3342 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
3343
3344 wxPyEndAllowThreads(__tstate);
3345 if (PyErr_Occurred()) SWIG_fail;
3346 }
3347 {
3348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3349 }
3350 {
3351 if (temp4)
3352 delete arg4;
3353 }
3354 {
3355 if (temp7) delete arg7;
3356 }
3357 {
3358 if (temp10)
3359 delete arg10;
3360 }
3361 return resultobj;
3362 fail:
3363 {
3364 if (temp4)
3365 delete arg4;
3366 }
3367 {
3368 if (temp7) delete arg7;
3369 }
3370 {
3371 if (temp10)
3372 delete arg10;
3373 }
3374 return NULL;
3375 }
3376
3377
3378 static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3379 PyObject *resultobj;
3380 wxComboBox *arg1 = (wxComboBox *) 0 ;
3381 wxString result;
3382 PyObject * obj0 = 0 ;
3383 char *kwnames[] = {
3384 (char *) "self", NULL
3385 };
3386
3387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3390 {
3391 PyThreadState* __tstate = wxPyBeginAllowThreads();
3392 result = ((wxComboBox const *)arg1)->GetValue();
3393
3394 wxPyEndAllowThreads(__tstate);
3395 if (PyErr_Occurred()) SWIG_fail;
3396 }
3397 {
3398 #if wxUSE_UNICODE
3399 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3400 #else
3401 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3402 #endif
3403 }
3404 return resultobj;
3405 fail:
3406 return NULL;
3407 }
3408
3409
3410 static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3411 PyObject *resultobj;
3412 wxComboBox *arg1 = (wxComboBox *) 0 ;
3413 wxString *arg2 = 0 ;
3414 bool temp2 = False ;
3415 PyObject * obj0 = 0 ;
3416 PyObject * obj1 = 0 ;
3417 char *kwnames[] = {
3418 (char *) "self",(char *) "value", NULL
3419 };
3420
3421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3424 {
3425 arg2 = wxString_in_helper(obj1);
3426 if (arg2 == NULL) SWIG_fail;
3427 temp2 = True;
3428 }
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 (arg1)->SetValue((wxString const &)*arg2);
3432
3433 wxPyEndAllowThreads(__tstate);
3434 if (PyErr_Occurred()) SWIG_fail;
3435 }
3436 Py_INCREF(Py_None); resultobj = Py_None;
3437 {
3438 if (temp2)
3439 delete arg2;
3440 }
3441 return resultobj;
3442 fail:
3443 {
3444 if (temp2)
3445 delete arg2;
3446 }
3447 return NULL;
3448 }
3449
3450
3451 static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj;
3453 wxComboBox *arg1 = (wxComboBox *) 0 ;
3454 PyObject * obj0 = 0 ;
3455 char *kwnames[] = {
3456 (char *) "self", NULL
3457 };
3458
3459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3462 {
3463 PyThreadState* __tstate = wxPyBeginAllowThreads();
3464 (arg1)->Copy();
3465
3466 wxPyEndAllowThreads(__tstate);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 Py_INCREF(Py_None); resultobj = Py_None;
3470 return resultobj;
3471 fail:
3472 return NULL;
3473 }
3474
3475
3476 static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
3477 PyObject *resultobj;
3478 wxComboBox *arg1 = (wxComboBox *) 0 ;
3479 PyObject * obj0 = 0 ;
3480 char *kwnames[] = {
3481 (char *) "self", NULL
3482 };
3483
3484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3487 {
3488 PyThreadState* __tstate = wxPyBeginAllowThreads();
3489 (arg1)->Cut();
3490
3491 wxPyEndAllowThreads(__tstate);
3492 if (PyErr_Occurred()) SWIG_fail;
3493 }
3494 Py_INCREF(Py_None); resultobj = Py_None;
3495 return resultobj;
3496 fail:
3497 return NULL;
3498 }
3499
3500
3501 static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
3502 PyObject *resultobj;
3503 wxComboBox *arg1 = (wxComboBox *) 0 ;
3504 PyObject * obj0 = 0 ;
3505 char *kwnames[] = {
3506 (char *) "self", NULL
3507 };
3508
3509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3512 {
3513 PyThreadState* __tstate = wxPyBeginAllowThreads();
3514 (arg1)->Paste();
3515
3516 wxPyEndAllowThreads(__tstate);
3517 if (PyErr_Occurred()) SWIG_fail;
3518 }
3519 Py_INCREF(Py_None); resultobj = Py_None;
3520 return resultobj;
3521 fail:
3522 return NULL;
3523 }
3524
3525
3526 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3527 PyObject *resultobj;
3528 wxComboBox *arg1 = (wxComboBox *) 0 ;
3529 long arg2 ;
3530 PyObject * obj0 = 0 ;
3531 PyObject * obj1 = 0 ;
3532 char *kwnames[] = {
3533 (char *) "self",(char *) "pos", NULL
3534 };
3535
3536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3539 arg2 = (long)SWIG_As_long(obj1);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 {
3542 PyThreadState* __tstate = wxPyBeginAllowThreads();
3543 (arg1)->SetInsertionPoint(arg2);
3544
3545 wxPyEndAllowThreads(__tstate);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 }
3548 Py_INCREF(Py_None); resultobj = Py_None;
3549 return resultobj;
3550 fail:
3551 return NULL;
3552 }
3553
3554
3555 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3556 PyObject *resultobj;
3557 wxComboBox *arg1 = (wxComboBox *) 0 ;
3558 long result;
3559 PyObject * obj0 = 0 ;
3560 char *kwnames[] = {
3561 (char *) "self", NULL
3562 };
3563
3564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3567 {
3568 PyThreadState* __tstate = wxPyBeginAllowThreads();
3569 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3570
3571 wxPyEndAllowThreads(__tstate);
3572 if (PyErr_Occurred()) SWIG_fail;
3573 }
3574 resultobj = SWIG_From_long((long)result);
3575 return resultobj;
3576 fail:
3577 return NULL;
3578 }
3579
3580
3581 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3582 PyObject *resultobj;
3583 wxComboBox *arg1 = (wxComboBox *) 0 ;
3584 long result;
3585 PyObject * obj0 = 0 ;
3586 char *kwnames[] = {
3587 (char *) "self", NULL
3588 };
3589
3590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3593 {
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3596
3597 wxPyEndAllowThreads(__tstate);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 resultobj = SWIG_From_long((long)result);
3601 return resultobj;
3602 fail:
3603 return NULL;
3604 }
3605
3606
3607 static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
3608 PyObject *resultobj;
3609 wxComboBox *arg1 = (wxComboBox *) 0 ;
3610 long arg2 ;
3611 long arg3 ;
3612 wxString *arg4 = 0 ;
3613 bool temp4 = False ;
3614 PyObject * obj0 = 0 ;
3615 PyObject * obj1 = 0 ;
3616 PyObject * obj2 = 0 ;
3617 PyObject * obj3 = 0 ;
3618 char *kwnames[] = {
3619 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3620 };
3621
3622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3625 arg2 = (long)SWIG_As_long(obj1);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 arg3 = (long)SWIG_As_long(obj2);
3628 if (PyErr_Occurred()) SWIG_fail;
3629 {
3630 arg4 = wxString_in_helper(obj3);
3631 if (arg4 == NULL) SWIG_fail;
3632 temp4 = True;
3633 }
3634 {
3635 PyThreadState* __tstate = wxPyBeginAllowThreads();
3636 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3637
3638 wxPyEndAllowThreads(__tstate);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 Py_INCREF(Py_None); resultobj = Py_None;
3642 {
3643 if (temp4)
3644 delete arg4;
3645 }
3646 return resultobj;
3647 fail:
3648 {
3649 if (temp4)
3650 delete arg4;
3651 }
3652 return NULL;
3653 }
3654
3655
3656 static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3657 PyObject *resultobj;
3658 wxComboBox *arg1 = (wxComboBox *) 0 ;
3659 int arg2 ;
3660 PyObject * obj0 = 0 ;
3661 PyObject * obj1 = 0 ;
3662 char *kwnames[] = {
3663 (char *) "self",(char *) "n", NULL
3664 };
3665
3666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3669 arg2 = (int)SWIG_As_int(obj1);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 {
3672 PyThreadState* __tstate = wxPyBeginAllowThreads();
3673 (arg1)->SetSelection(arg2);
3674
3675 wxPyEndAllowThreads(__tstate);
3676 if (PyErr_Occurred()) SWIG_fail;
3677 }
3678 Py_INCREF(Py_None); resultobj = Py_None;
3679 return resultobj;
3680 fail:
3681 return NULL;
3682 }
3683
3684
3685 static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) {
3686 PyObject *resultobj;
3687 wxComboBox *arg1 = (wxComboBox *) 0 ;
3688 long arg2 ;
3689 long arg3 ;
3690 PyObject * obj0 = 0 ;
3691 PyObject * obj1 = 0 ;
3692 PyObject * obj2 = 0 ;
3693 char *kwnames[] = {
3694 (char *) "self",(char *) "from",(char *) "to", NULL
3695 };
3696
3697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3700 arg2 = (long)SWIG_As_long(obj1);
3701 if (PyErr_Occurred()) SWIG_fail;
3702 arg3 = (long)SWIG_As_long(obj2);
3703 if (PyErr_Occurred()) SWIG_fail;
3704 {
3705 PyThreadState* __tstate = wxPyBeginAllowThreads();
3706 (arg1)->SetSelection(arg2,arg3);
3707
3708 wxPyEndAllowThreads(__tstate);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 }
3711 Py_INCREF(Py_None); resultobj = Py_None;
3712 return resultobj;
3713 fail:
3714 return NULL;
3715 }
3716
3717
3718 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3719 PyObject *resultobj;
3720 wxComboBox *arg1 = (wxComboBox *) 0 ;
3721 wxString *arg2 = 0 ;
3722 bool result;
3723 bool temp2 = False ;
3724 PyObject * obj0 = 0 ;
3725 PyObject * obj1 = 0 ;
3726 char *kwnames[] = {
3727 (char *) "self",(char *) "string", NULL
3728 };
3729
3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3733 {
3734 arg2 = wxString_in_helper(obj1);
3735 if (arg2 == NULL) SWIG_fail;
3736 temp2 = True;
3737 }
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 {
3746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3747 }
3748 {
3749 if (temp2)
3750 delete arg2;
3751 }
3752 return resultobj;
3753 fail:
3754 {
3755 if (temp2)
3756 delete arg2;
3757 }
3758 return NULL;
3759 }
3760
3761
3762 static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
3763 PyObject *resultobj;
3764 wxComboBox *arg1 = (wxComboBox *) 0 ;
3765 int arg2 ;
3766 wxString *arg3 = 0 ;
3767 bool temp3 = False ;
3768 PyObject * obj0 = 0 ;
3769 PyObject * obj1 = 0 ;
3770 PyObject * obj2 = 0 ;
3771 char *kwnames[] = {
3772 (char *) "self",(char *) "n",(char *) "string", NULL
3773 };
3774
3775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3778 arg2 = (int)SWIG_As_int(obj1);
3779 if (PyErr_Occurred()) SWIG_fail;
3780 {
3781 arg3 = wxString_in_helper(obj2);
3782 if (arg3 == NULL) SWIG_fail;
3783 temp3 = True;
3784 }
3785 {
3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
3787 (arg1)->SetString(arg2,(wxString const &)*arg3);
3788
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 Py_INCREF(Py_None); resultobj = Py_None;
3793 {
3794 if (temp3)
3795 delete arg3;
3796 }
3797 return resultobj;
3798 fail:
3799 {
3800 if (temp3)
3801 delete arg3;
3802 }
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3808 PyObject *resultobj;
3809 wxComboBox *arg1 = (wxComboBox *) 0 ;
3810 bool arg2 ;
3811 PyObject * obj0 = 0 ;
3812 PyObject * obj1 = 0 ;
3813 char *kwnames[] = {
3814 (char *) "self",(char *) "editable", NULL
3815 };
3816
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3820 arg2 = (bool)SWIG_As_bool(obj1);
3821 if (PyErr_Occurred()) SWIG_fail;
3822 {
3823 PyThreadState* __tstate = wxPyBeginAllowThreads();
3824 (arg1)->SetEditable(arg2);
3825
3826 wxPyEndAllowThreads(__tstate);
3827 if (PyErr_Occurred()) SWIG_fail;
3828 }
3829 Py_INCREF(Py_None); resultobj = Py_None;
3830 return resultobj;
3831 fail:
3832 return NULL;
3833 }
3834
3835
3836 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
3837 PyObject *resultobj;
3838 wxComboBox *arg1 = (wxComboBox *) 0 ;
3839 PyObject * obj0 = 0 ;
3840 char *kwnames[] = {
3841 (char *) "self", NULL
3842 };
3843
3844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3847 {
3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
3849 (arg1)->SetInsertionPointEnd();
3850
3851 wxPyEndAllowThreads(__tstate);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 }
3854 Py_INCREF(Py_None); resultobj = Py_None;
3855 return resultobj;
3856 fail:
3857 return NULL;
3858 }
3859
3860
3861 static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
3862 PyObject *resultobj;
3863 wxComboBox *arg1 = (wxComboBox *) 0 ;
3864 long arg2 ;
3865 long arg3 ;
3866 PyObject * obj0 = 0 ;
3867 PyObject * obj1 = 0 ;
3868 PyObject * obj2 = 0 ;
3869 char *kwnames[] = {
3870 (char *) "self",(char *) "from",(char *) "to", NULL
3871 };
3872
3873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3876 arg2 = (long)SWIG_As_long(obj1);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 arg3 = (long)SWIG_As_long(obj2);
3879 if (PyErr_Occurred()) SWIG_fail;
3880 {
3881 PyThreadState* __tstate = wxPyBeginAllowThreads();
3882 (arg1)->Remove(arg2,arg3);
3883
3884 wxPyEndAllowThreads(__tstate);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 }
3887 Py_INCREF(Py_None); resultobj = Py_None;
3888 return resultobj;
3889 fail:
3890 return NULL;
3891 }
3892
3893
3894 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3895 PyObject *resultobj;
3896 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3897 wxVisualAttributes result;
3898 PyObject * obj0 = 0 ;
3899 char *kwnames[] = {
3900 (char *) "variant", NULL
3901 };
3902
3903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3904 if (obj0) {
3905 arg1 = (int)SWIG_As_int(obj0);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 {
3909 if (!wxPyCheckForApp()) SWIG_fail;
3910 PyThreadState* __tstate = wxPyBeginAllowThreads();
3911 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3912
3913 wxPyEndAllowThreads(__tstate);
3914 if (PyErr_Occurred()) SWIG_fail;
3915 }
3916 {
3917 wxVisualAttributes * resultptr;
3918 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3919 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3920 }
3921 return resultobj;
3922 fail:
3923 return NULL;
3924 }
3925
3926
3927 static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) {
3928 PyObject *obj;
3929 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3930 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3931 Py_INCREF(obj);
3932 return Py_BuildValue((char *)"");
3933 }
3934 static int _wrap_GaugeNameStr_set(PyObject *) {
3935 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3936 return 1;
3937 }
3938
3939
3940 static PyObject *_wrap_GaugeNameStr_get() {
3941 PyObject *pyobj;
3942
3943 {
3944 #if wxUSE_UNICODE
3945 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3946 #else
3947 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3948 #endif
3949 }
3950 return pyobj;
3951 }
3952
3953
3954 static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) {
3955 PyObject *resultobj;
3956 wxWindow *arg1 = (wxWindow *) 0 ;
3957 int arg2 = (int) -1 ;
3958 int arg3 = (int) 100 ;
3959 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3960 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3961 wxSize const &arg5_defvalue = wxDefaultSize ;
3962 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3963 long arg6 = (long) wxGA_HORIZONTAL ;
3964 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3965 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3966 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3967 wxString *arg8 = (wxString *) &arg8_defvalue ;
3968 wxGauge *result;
3969 wxPoint temp4 ;
3970 wxSize temp5 ;
3971 bool temp8 = False ;
3972 PyObject * obj0 = 0 ;
3973 PyObject * obj1 = 0 ;
3974 PyObject * obj2 = 0 ;
3975 PyObject * obj3 = 0 ;
3976 PyObject * obj4 = 0 ;
3977 PyObject * obj5 = 0 ;
3978 PyObject * obj6 = 0 ;
3979 PyObject * obj7 = 0 ;
3980 char *kwnames[] = {
3981 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3982 };
3983
3984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3987 if (obj1) {
3988 arg2 = (int)SWIG_As_int(obj1);
3989 if (PyErr_Occurred()) SWIG_fail;
3990 }
3991 if (obj2) {
3992 arg3 = (int)SWIG_As_int(obj2);
3993 if (PyErr_Occurred()) SWIG_fail;
3994 }
3995 if (obj3) {
3996 {
3997 arg4 = &temp4;
3998 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3999 }
4000 }
4001 if (obj4) {
4002 {
4003 arg5 = &temp5;
4004 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4005 }
4006 }
4007 if (obj5) {
4008 arg6 = (long)SWIG_As_long(obj5);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 if (obj6) {
4012 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
4013 SWIG_POINTER_EXCEPTION | 0)) == -1)
4014 SWIG_fail;
4015 if (arg7 == NULL) {
4016 PyErr_SetString(PyExc_TypeError,"null reference");
4017 SWIG_fail;
4018 }
4019 }
4020 if (obj7) {
4021 {
4022 arg8 = wxString_in_helper(obj7);
4023 if (arg8 == NULL) SWIG_fail;
4024 temp8 = True;
4025 }
4026 }
4027 {
4028 if (!wxPyCheckForApp()) SWIG_fail;
4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
4030 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4031
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4036 {
4037 if (temp8)
4038 delete arg8;
4039 }
4040 return resultobj;
4041 fail:
4042 {
4043 if (temp8)
4044 delete arg8;
4045 }
4046 return NULL;
4047 }
4048
4049
4050 static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj;
4052 wxGauge *result;
4053 char *kwnames[] = {
4054 NULL
4055 };
4056
4057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
4058 {
4059 if (!wxPyCheckForApp()) SWIG_fail;
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (wxGauge *)new wxGauge();
4062
4063 wxPyEndAllowThreads(__tstate);
4064 if (PyErr_Occurred()) SWIG_fail;
4065 }
4066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4067 return resultobj;
4068 fail:
4069 return NULL;
4070 }
4071
4072
4073 static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4074 PyObject *resultobj;
4075 wxGauge *arg1 = (wxGauge *) 0 ;
4076 wxWindow *arg2 = (wxWindow *) 0 ;
4077 int arg3 = (int) -1 ;
4078 int arg4 = (int) 100 ;
4079 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4080 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4081 wxSize const &arg6_defvalue = wxDefaultSize ;
4082 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4083 long arg7 = (long) wxGA_HORIZONTAL ;
4084 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4085 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4086 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
4087 wxString *arg9 = (wxString *) &arg9_defvalue ;
4088 bool result;
4089 wxPoint temp5 ;
4090 wxSize temp6 ;
4091 bool temp9 = False ;
4092 PyObject * obj0 = 0 ;
4093 PyObject * obj1 = 0 ;
4094 PyObject * obj2 = 0 ;
4095 PyObject * obj3 = 0 ;
4096 PyObject * obj4 = 0 ;
4097 PyObject * obj5 = 0 ;
4098 PyObject * obj6 = 0 ;
4099 PyObject * obj7 = 0 ;
4100 PyObject * obj8 = 0 ;
4101 char *kwnames[] = {
4102 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4103 };
4104
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4110 if (obj2) {
4111 arg3 = (int)SWIG_As_int(obj2);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 if (obj3) {
4115 arg4 = (int)SWIG_As_int(obj3);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 if (obj4) {
4119 {
4120 arg5 = &temp5;
4121 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4122 }
4123 }
4124 if (obj5) {
4125 {
4126 arg6 = &temp6;
4127 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4128 }
4129 }
4130 if (obj6) {
4131 arg7 = (long)SWIG_As_long(obj6);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 if (obj7) {
4135 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
4136 SWIG_POINTER_EXCEPTION | 0)) == -1)
4137 SWIG_fail;
4138 if (arg8 == NULL) {
4139 PyErr_SetString(PyExc_TypeError,"null reference");
4140 SWIG_fail;
4141 }
4142 }
4143 if (obj8) {
4144 {
4145 arg9 = wxString_in_helper(obj8);
4146 if (arg9 == NULL) SWIG_fail;
4147 temp9 = True;
4148 }
4149 }
4150 {
4151 PyThreadState* __tstate = wxPyBeginAllowThreads();
4152 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4153
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 {
4158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4159 }
4160 {
4161 if (temp9)
4162 delete arg9;
4163 }
4164 return resultobj;
4165 fail:
4166 {
4167 if (temp9)
4168 delete arg9;
4169 }
4170 return NULL;
4171 }
4172
4173
4174 static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 wxGauge *arg1 = (wxGauge *) 0 ;
4177 int arg2 ;
4178 PyObject * obj0 = 0 ;
4179 PyObject * obj1 = 0 ;
4180 char *kwnames[] = {
4181 (char *) "self",(char *) "range", NULL
4182 };
4183
4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4187 arg2 = (int)SWIG_As_int(obj1);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 (arg1)->SetRange(arg2);
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 Py_INCREF(Py_None); resultobj = Py_None;
4197 return resultobj;
4198 fail:
4199 return NULL;
4200 }
4201
4202
4203 static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj;
4205 wxGauge *arg1 = (wxGauge *) 0 ;
4206 int result;
4207 PyObject * obj0 = 0 ;
4208 char *kwnames[] = {
4209 (char *) "self", NULL
4210 };
4211
4212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4215 {
4216 PyThreadState* __tstate = wxPyBeginAllowThreads();
4217 result = (int)((wxGauge const *)arg1)->GetRange();
4218
4219 wxPyEndAllowThreads(__tstate);
4220 if (PyErr_Occurred()) SWIG_fail;
4221 }
4222 resultobj = SWIG_From_int((int)result);
4223 return resultobj;
4224 fail:
4225 return NULL;
4226 }
4227
4228
4229 static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4230 PyObject *resultobj;
4231 wxGauge *arg1 = (wxGauge *) 0 ;
4232 int arg2 ;
4233 PyObject * obj0 = 0 ;
4234 PyObject * obj1 = 0 ;
4235 char *kwnames[] = {
4236 (char *) "self",(char *) "pos", NULL
4237 };
4238
4239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4242 arg2 = (int)SWIG_As_int(obj1);
4243 if (PyErr_Occurred()) SWIG_fail;
4244 {
4245 PyThreadState* __tstate = wxPyBeginAllowThreads();
4246 (arg1)->SetValue(arg2);
4247
4248 wxPyEndAllowThreads(__tstate);
4249 if (PyErr_Occurred()) SWIG_fail;
4250 }
4251 Py_INCREF(Py_None); resultobj = Py_None;
4252 return resultobj;
4253 fail:
4254 return NULL;
4255 }
4256
4257
4258 static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4259 PyObject *resultobj;
4260 wxGauge *arg1 = (wxGauge *) 0 ;
4261 int result;
4262 PyObject * obj0 = 0 ;
4263 char *kwnames[] = {
4264 (char *) "self", NULL
4265 };
4266
4267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4270 {
4271 PyThreadState* __tstate = wxPyBeginAllowThreads();
4272 result = (int)((wxGauge const *)arg1)->GetValue();
4273
4274 wxPyEndAllowThreads(__tstate);
4275 if (PyErr_Occurred()) SWIG_fail;
4276 }
4277 resultobj = SWIG_From_int((int)result);
4278 return resultobj;
4279 fail:
4280 return NULL;
4281 }
4282
4283
4284 static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4285 PyObject *resultobj;
4286 wxGauge *arg1 = (wxGauge *) 0 ;
4287 bool result;
4288 PyObject * obj0 = 0 ;
4289 char *kwnames[] = {
4290 (char *) "self", NULL
4291 };
4292
4293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4296 {
4297 PyThreadState* __tstate = wxPyBeginAllowThreads();
4298 result = (bool)((wxGauge const *)arg1)->IsVertical();
4299
4300 wxPyEndAllowThreads(__tstate);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 {
4304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4305 }
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4313 PyObject *resultobj;
4314 wxGauge *arg1 = (wxGauge *) 0 ;
4315 int arg2 ;
4316 PyObject * obj0 = 0 ;
4317 PyObject * obj1 = 0 ;
4318 char *kwnames[] = {
4319 (char *) "self",(char *) "w", NULL
4320 };
4321
4322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4325 arg2 = (int)SWIG_As_int(obj1);
4326 if (PyErr_Occurred()) SWIG_fail;
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 (arg1)->SetShadowWidth(arg2);
4330
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 Py_INCREF(Py_None); resultobj = Py_None;
4335 return resultobj;
4336 fail:
4337 return NULL;
4338 }
4339
4340
4341 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj;
4343 wxGauge *arg1 = (wxGauge *) 0 ;
4344 int result;
4345 PyObject * obj0 = 0 ;
4346 char *kwnames[] = {
4347 (char *) "self", NULL
4348 };
4349
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4356
4357 wxPyEndAllowThreads(__tstate);
4358 if (PyErr_Occurred()) SWIG_fail;
4359 }
4360 resultobj = SWIG_From_int((int)result);
4361 return resultobj;
4362 fail:
4363 return NULL;
4364 }
4365
4366
4367 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4368 PyObject *resultobj;
4369 wxGauge *arg1 = (wxGauge *) 0 ;
4370 int arg2 ;
4371 PyObject * obj0 = 0 ;
4372 PyObject * obj1 = 0 ;
4373 char *kwnames[] = {
4374 (char *) "self",(char *) "w", NULL
4375 };
4376
4377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4380 arg2 = (int)SWIG_As_int(obj1);
4381 if (PyErr_Occurred()) SWIG_fail;
4382 {
4383 PyThreadState* __tstate = wxPyBeginAllowThreads();
4384 (arg1)->SetBezelFace(arg2);
4385
4386 wxPyEndAllowThreads(__tstate);
4387 if (PyErr_Occurred()) SWIG_fail;
4388 }
4389 Py_INCREF(Py_None); resultobj = Py_None;
4390 return resultobj;
4391 fail:
4392 return NULL;
4393 }
4394
4395
4396 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4397 PyObject *resultobj;
4398 wxGauge *arg1 = (wxGauge *) 0 ;
4399 int result;
4400 PyObject * obj0 = 0 ;
4401 char *kwnames[] = {
4402 (char *) "self", NULL
4403 };
4404
4405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4408 {
4409 PyThreadState* __tstate = wxPyBeginAllowThreads();
4410 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4411
4412 wxPyEndAllowThreads(__tstate);
4413 if (PyErr_Occurred()) SWIG_fail;
4414 }
4415 resultobj = SWIG_From_int((int)result);
4416 return resultobj;
4417 fail:
4418 return NULL;
4419 }
4420
4421
4422 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4423 PyObject *resultobj;
4424 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4425 wxVisualAttributes result;
4426 PyObject * obj0 = 0 ;
4427 char *kwnames[] = {
4428 (char *) "variant", NULL
4429 };
4430
4431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4432 if (obj0) {
4433 arg1 = (int)SWIG_As_int(obj0);
4434 if (PyErr_Occurred()) SWIG_fail;
4435 }
4436 {
4437 if (!wxPyCheckForApp()) SWIG_fail;
4438 PyThreadState* __tstate = wxPyBeginAllowThreads();
4439 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4440
4441 wxPyEndAllowThreads(__tstate);
4442 if (PyErr_Occurred()) SWIG_fail;
4443 }
4444 {
4445 wxVisualAttributes * resultptr;
4446 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4447 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4448 }
4449 return resultobj;
4450 fail:
4451 return NULL;
4452 }
4453
4454
4455 static PyObject * Gauge_swigregister(PyObject *, PyObject *args) {
4456 PyObject *obj;
4457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4458 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4459 Py_INCREF(obj);
4460 return Py_BuildValue((char *)"");
4461 }
4462 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
4463 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4464 return 1;
4465 }
4466
4467
4468 static PyObject *_wrap_StaticBitmapNameStr_get() {
4469 PyObject *pyobj;
4470
4471 {
4472 #if wxUSE_UNICODE
4473 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4474 #else
4475 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4476 #endif
4477 }
4478 return pyobj;
4479 }
4480
4481
4482 static int _wrap_StaticBoxNameStr_set(PyObject *) {
4483 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4484 return 1;
4485 }
4486
4487
4488 static PyObject *_wrap_StaticBoxNameStr_get() {
4489 PyObject *pyobj;
4490
4491 {
4492 #if wxUSE_UNICODE
4493 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4494 #else
4495 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4496 #endif
4497 }
4498 return pyobj;
4499 }
4500
4501
4502 static int _wrap_StaticTextNameStr_set(PyObject *) {
4503 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4504 return 1;
4505 }
4506
4507
4508 static PyObject *_wrap_StaticTextNameStr_get() {
4509 PyObject *pyobj;
4510
4511 {
4512 #if wxUSE_UNICODE
4513 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4514 #else
4515 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4516 #endif
4517 }
4518 return pyobj;
4519 }
4520
4521
4522 static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4523 PyObject *resultobj;
4524 wxWindow *arg1 = (wxWindow *) 0 ;
4525 int arg2 = (int) -1 ;
4526 wxString const &arg3_defvalue = wxPyEmptyString ;
4527 wxString *arg3 = (wxString *) &arg3_defvalue ;
4528 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4529 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4530 wxSize const &arg5_defvalue = wxDefaultSize ;
4531 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4532 long arg6 = (long) 0 ;
4533 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4534 wxString *arg7 = (wxString *) &arg7_defvalue ;
4535 wxStaticBox *result;
4536 bool temp3 = False ;
4537 wxPoint temp4 ;
4538 wxSize temp5 ;
4539 bool temp7 = False ;
4540 PyObject * obj0 = 0 ;
4541 PyObject * obj1 = 0 ;
4542 PyObject * obj2 = 0 ;
4543 PyObject * obj3 = 0 ;
4544 PyObject * obj4 = 0 ;
4545 PyObject * obj5 = 0 ;
4546 PyObject * obj6 = 0 ;
4547 char *kwnames[] = {
4548 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4549 };
4550
4551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4554 if (obj1) {
4555 arg2 = (int)SWIG_As_int(obj1);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 if (obj2) {
4559 {
4560 arg3 = wxString_in_helper(obj2);
4561 if (arg3 == NULL) SWIG_fail;
4562 temp3 = True;
4563 }
4564 }
4565 if (obj3) {
4566 {
4567 arg4 = &temp4;
4568 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4569 }
4570 }
4571 if (obj4) {
4572 {
4573 arg5 = &temp5;
4574 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4575 }
4576 }
4577 if (obj5) {
4578 arg6 = (long)SWIG_As_long(obj5);
4579 if (PyErr_Occurred()) SWIG_fail;
4580 }
4581 if (obj6) {
4582 {
4583 arg7 = wxString_in_helper(obj6);
4584 if (arg7 == NULL) SWIG_fail;
4585 temp7 = True;
4586 }
4587 }
4588 {
4589 if (!wxPyCheckForApp()) SWIG_fail;
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4592
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4597 {
4598 if (temp3)
4599 delete arg3;
4600 }
4601 {
4602 if (temp7)
4603 delete arg7;
4604 }
4605 return resultobj;
4606 fail:
4607 {
4608 if (temp3)
4609 delete arg3;
4610 }
4611 {
4612 if (temp7)
4613 delete arg7;
4614 }
4615 return NULL;
4616 }
4617
4618
4619 static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4620 PyObject *resultobj;
4621 wxStaticBox *result;
4622 char *kwnames[] = {
4623 NULL
4624 };
4625
4626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4627 {
4628 if (!wxPyCheckForApp()) SWIG_fail;
4629 PyThreadState* __tstate = wxPyBeginAllowThreads();
4630 result = (wxStaticBox *)new wxStaticBox();
4631
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4636 return resultobj;
4637 fail:
4638 return NULL;
4639 }
4640
4641
4642 static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4643 PyObject *resultobj;
4644 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4645 wxWindow *arg2 = (wxWindow *) 0 ;
4646 int arg3 = (int) -1 ;
4647 wxString const &arg4_defvalue = wxPyEmptyString ;
4648 wxString *arg4 = (wxString *) &arg4_defvalue ;
4649 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4650 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4651 wxSize const &arg6_defvalue = wxDefaultSize ;
4652 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4653 long arg7 = (long) 0 ;
4654 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4655 wxString *arg8 = (wxString *) &arg8_defvalue ;
4656 bool result;
4657 bool temp4 = False ;
4658 wxPoint temp5 ;
4659 wxSize temp6 ;
4660 bool temp8 = False ;
4661 PyObject * obj0 = 0 ;
4662 PyObject * obj1 = 0 ;
4663 PyObject * obj2 = 0 ;
4664 PyObject * obj3 = 0 ;
4665 PyObject * obj4 = 0 ;
4666 PyObject * obj5 = 0 ;
4667 PyObject * obj6 = 0 ;
4668 PyObject * obj7 = 0 ;
4669 char *kwnames[] = {
4670 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4671 };
4672
4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4676 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4678 if (obj2) {
4679 arg3 = (int)SWIG_As_int(obj2);
4680 if (PyErr_Occurred()) SWIG_fail;
4681 }
4682 if (obj3) {
4683 {
4684 arg4 = wxString_in_helper(obj3);
4685 if (arg4 == NULL) SWIG_fail;
4686 temp4 = True;
4687 }
4688 }
4689 if (obj4) {
4690 {
4691 arg5 = &temp5;
4692 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4693 }
4694 }
4695 if (obj5) {
4696 {
4697 arg6 = &temp6;
4698 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4699 }
4700 }
4701 if (obj6) {
4702 arg7 = (long)SWIG_As_long(obj6);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 if (obj7) {
4706 {
4707 arg8 = wxString_in_helper(obj7);
4708 if (arg8 == NULL) SWIG_fail;
4709 temp8 = True;
4710 }
4711 }
4712 {
4713 PyThreadState* __tstate = wxPyBeginAllowThreads();
4714 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4715
4716 wxPyEndAllowThreads(__tstate);
4717 if (PyErr_Occurred()) SWIG_fail;
4718 }
4719 {
4720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4721 }
4722 {
4723 if (temp4)
4724 delete arg4;
4725 }
4726 {
4727 if (temp8)
4728 delete arg8;
4729 }
4730 return resultobj;
4731 fail:
4732 {
4733 if (temp4)
4734 delete arg4;
4735 }
4736 {
4737 if (temp8)
4738 delete arg8;
4739 }
4740 return NULL;
4741 }
4742
4743
4744 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4745 PyObject *resultobj;
4746 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4747 wxVisualAttributes result;
4748 PyObject * obj0 = 0 ;
4749 char *kwnames[] = {
4750 (char *) "variant", NULL
4751 };
4752
4753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4754 if (obj0) {
4755 arg1 = (int)SWIG_As_int(obj0);
4756 if (PyErr_Occurred()) SWIG_fail;
4757 }
4758 {
4759 if (!wxPyCheckForApp()) SWIG_fail;
4760 PyThreadState* __tstate = wxPyBeginAllowThreads();
4761 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4762
4763 wxPyEndAllowThreads(__tstate);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 }
4766 {
4767 wxVisualAttributes * resultptr;
4768 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4769 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4770 }
4771 return resultobj;
4772 fail:
4773 return NULL;
4774 }
4775
4776
4777 static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) {
4778 PyObject *obj;
4779 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4780 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4781 Py_INCREF(obj);
4782 return Py_BuildValue((char *)"");
4783 }
4784 static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4785 PyObject *resultobj;
4786 wxWindow *arg1 = (wxWindow *) 0 ;
4787 int arg2 = (int) -1 ;
4788 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4789 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4790 wxSize const &arg4_defvalue = wxDefaultSize ;
4791 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4792 long arg5 = (long) wxLI_HORIZONTAL ;
4793 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4794 wxString *arg6 = (wxString *) &arg6_defvalue ;
4795 wxStaticLine *result;
4796 wxPoint temp3 ;
4797 wxSize temp4 ;
4798 bool temp6 = False ;
4799 PyObject * obj0 = 0 ;
4800 PyObject * obj1 = 0 ;
4801 PyObject * obj2 = 0 ;
4802 PyObject * obj3 = 0 ;
4803 PyObject * obj4 = 0 ;
4804 PyObject * obj5 = 0 ;
4805 char *kwnames[] = {
4806 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4807 };
4808
4809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4812 if (obj1) {
4813 arg2 = (int)SWIG_As_int(obj1);
4814 if (PyErr_Occurred()) SWIG_fail;
4815 }
4816 if (obj2) {
4817 {
4818 arg3 = &temp3;
4819 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4820 }
4821 }
4822 if (obj3) {
4823 {
4824 arg4 = &temp4;
4825 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4826 }
4827 }
4828 if (obj4) {
4829 arg5 = (long)SWIG_As_long(obj4);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 if (obj5) {
4833 {
4834 arg6 = wxString_in_helper(obj5);
4835 if (arg6 == NULL) SWIG_fail;
4836 temp6 = True;
4837 }
4838 }
4839 {
4840 if (!wxPyCheckForApp()) SWIG_fail;
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
4842 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4843
4844 wxPyEndAllowThreads(__tstate);
4845 if (PyErr_Occurred()) SWIG_fail;
4846 }
4847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4848 {
4849 if (temp6)
4850 delete arg6;
4851 }
4852 return resultobj;
4853 fail:
4854 {
4855 if (temp6)
4856 delete arg6;
4857 }
4858 return NULL;
4859 }
4860
4861
4862 static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4863 PyObject *resultobj;
4864 wxStaticLine *result;
4865 char *kwnames[] = {
4866 NULL
4867 };
4868
4869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4870 {
4871 if (!wxPyCheckForApp()) SWIG_fail;
4872 PyThreadState* __tstate = wxPyBeginAllowThreads();
4873 result = (wxStaticLine *)new wxStaticLine();
4874
4875 wxPyEndAllowThreads(__tstate);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 }
4878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4879 return resultobj;
4880 fail:
4881 return NULL;
4882 }
4883
4884
4885 static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4886 PyObject *resultobj;
4887 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4888 wxWindow *arg2 = (wxWindow *) 0 ;
4889 int arg3 = (int) -1 ;
4890 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4891 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4892 wxSize const &arg5_defvalue = wxDefaultSize ;
4893 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4894 long arg6 = (long) wxLI_HORIZONTAL ;
4895 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4896 wxString *arg7 = (wxString *) &arg7_defvalue ;
4897 bool result;
4898 wxPoint temp4 ;
4899 wxSize temp5 ;
4900 bool temp7 = False ;
4901 PyObject * obj0 = 0 ;
4902 PyObject * obj1 = 0 ;
4903 PyObject * obj2 = 0 ;
4904 PyObject * obj3 = 0 ;
4905 PyObject * obj4 = 0 ;
4906 PyObject * obj5 = 0 ;
4907 PyObject * obj6 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4917 if (obj2) {
4918 arg3 = (int)SWIG_As_int(obj2);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 if (obj3) {
4922 {
4923 arg4 = &temp4;
4924 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4925 }
4926 }
4927 if (obj4) {
4928 {
4929 arg5 = &temp5;
4930 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4931 }
4932 }
4933 if (obj5) {
4934 arg6 = (long)SWIG_As_long(obj5);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 }
4937 if (obj6) {
4938 {
4939 arg7 = wxString_in_helper(obj6);
4940 if (arg7 == NULL) SWIG_fail;
4941 temp7 = True;
4942 }
4943 }
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 {
4952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4953 }
4954 {
4955 if (temp7)
4956 delete arg7;
4957 }
4958 return resultobj;
4959 fail:
4960 {
4961 if (temp7)
4962 delete arg7;
4963 }
4964 return NULL;
4965 }
4966
4967
4968 static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4969 PyObject *resultobj;
4970 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4971 bool result;
4972 PyObject * obj0 = 0 ;
4973 char *kwnames[] = {
4974 (char *) "self", NULL
4975 };
4976
4977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4983
4984 wxPyEndAllowThreads(__tstate);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 }
4987 {
4988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4989 }
4990 return resultobj;
4991 fail:
4992 return NULL;
4993 }
4994
4995
4996 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj;
4998 int result;
4999 char *kwnames[] = {
5000 NULL
5001 };
5002
5003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (int)wxStaticLine::GetDefaultSize();
5007
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 resultobj = SWIG_From_int((int)result);
5012 return resultobj;
5013 fail:
5014 return NULL;
5015 }
5016
5017
5018 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5019 PyObject *resultobj;
5020 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5021 wxVisualAttributes result;
5022 PyObject * obj0 = 0 ;
5023 char *kwnames[] = {
5024 (char *) "variant", NULL
5025 };
5026
5027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5028 if (obj0) {
5029 arg1 = (int)SWIG_As_int(obj0);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 {
5033 if (!wxPyCheckForApp()) SWIG_fail;
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
5036
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 {
5041 wxVisualAttributes * resultptr;
5042 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5043 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5044 }
5045 return resultobj;
5046 fail:
5047 return NULL;
5048 }
5049
5050
5051 static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) {
5052 PyObject *obj;
5053 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5054 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
5055 Py_INCREF(obj);
5056 return Py_BuildValue((char *)"");
5057 }
5058 static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj;
5060 wxWindow *arg1 = (wxWindow *) 0 ;
5061 int arg2 = (int) -1 ;
5062 wxString const &arg3_defvalue = wxPyEmptyString ;
5063 wxString *arg3 = (wxString *) &arg3_defvalue ;
5064 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5065 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5066 wxSize const &arg5_defvalue = wxDefaultSize ;
5067 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5068 long arg6 = (long) 0 ;
5069 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5070 wxString *arg7 = (wxString *) &arg7_defvalue ;
5071 wxStaticText *result;
5072 bool temp3 = False ;
5073 wxPoint temp4 ;
5074 wxSize temp5 ;
5075 bool temp7 = False ;
5076 PyObject * obj0 = 0 ;
5077 PyObject * obj1 = 0 ;
5078 PyObject * obj2 = 0 ;
5079 PyObject * obj3 = 0 ;
5080 PyObject * obj4 = 0 ;
5081 PyObject * obj5 = 0 ;
5082 PyObject * obj6 = 0 ;
5083 char *kwnames[] = {
5084 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5085 };
5086
5087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5090 if (obj1) {
5091 arg2 = (int)SWIG_As_int(obj1);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 if (obj2) {
5095 {
5096 arg3 = wxString_in_helper(obj2);
5097 if (arg3 == NULL) SWIG_fail;
5098 temp3 = True;
5099 }
5100 }
5101 if (obj3) {
5102 {
5103 arg4 = &temp4;
5104 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5105 }
5106 }
5107 if (obj4) {
5108 {
5109 arg5 = &temp5;
5110 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5111 }
5112 }
5113 if (obj5) {
5114 arg6 = (long)SWIG_As_long(obj5);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 if (obj6) {
5118 {
5119 arg7 = wxString_in_helper(obj6);
5120 if (arg7 == NULL) SWIG_fail;
5121 temp7 = True;
5122 }
5123 }
5124 {
5125 if (!wxPyCheckForApp()) SWIG_fail;
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5128
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5133 {
5134 if (temp3)
5135 delete arg3;
5136 }
5137 {
5138 if (temp7)
5139 delete arg7;
5140 }
5141 return resultobj;
5142 fail:
5143 {
5144 if (temp3)
5145 delete arg3;
5146 }
5147 {
5148 if (temp7)
5149 delete arg7;
5150 }
5151 return NULL;
5152 }
5153
5154
5155 static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5156 PyObject *resultobj;
5157 wxStaticText *result;
5158 char *kwnames[] = {
5159 NULL
5160 };
5161
5162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
5163 {
5164 if (!wxPyCheckForApp()) SWIG_fail;
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 result = (wxStaticText *)new wxStaticText();
5167
5168 wxPyEndAllowThreads(__tstate);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
5171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5172 return resultobj;
5173 fail:
5174 return NULL;
5175 }
5176
5177
5178 static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5179 PyObject *resultobj;
5180 wxStaticText *arg1 = (wxStaticText *) 0 ;
5181 wxWindow *arg2 = (wxWindow *) 0 ;
5182 int arg3 = (int) -1 ;
5183 wxString const &arg4_defvalue = wxPyEmptyString ;
5184 wxString *arg4 = (wxString *) &arg4_defvalue ;
5185 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5186 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5187 wxSize const &arg6_defvalue = wxDefaultSize ;
5188 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5189 long arg7 = (long) 0 ;
5190 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
5191 wxString *arg8 = (wxString *) &arg8_defvalue ;
5192 bool result;
5193 bool temp4 = False ;
5194 wxPoint temp5 ;
5195 wxSize temp6 ;
5196 bool temp8 = False ;
5197 PyObject * obj0 = 0 ;
5198 PyObject * obj1 = 0 ;
5199 PyObject * obj2 = 0 ;
5200 PyObject * obj3 = 0 ;
5201 PyObject * obj4 = 0 ;
5202 PyObject * obj5 = 0 ;
5203 PyObject * obj6 = 0 ;
5204 PyObject * obj7 = 0 ;
5205 char *kwnames[] = {
5206 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5207 };
5208
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5214 if (obj2) {
5215 arg3 = (int)SWIG_As_int(obj2);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 if (obj3) {
5219 {
5220 arg4 = wxString_in_helper(obj3);
5221 if (arg4 == NULL) SWIG_fail;
5222 temp4 = True;
5223 }
5224 }
5225 if (obj4) {
5226 {
5227 arg5 = &temp5;
5228 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5229 }
5230 }
5231 if (obj5) {
5232 {
5233 arg6 = &temp6;
5234 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5235 }
5236 }
5237 if (obj6) {
5238 arg7 = (long)SWIG_As_long(obj6);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 if (obj7) {
5242 {
5243 arg8 = wxString_in_helper(obj7);
5244 if (arg8 == NULL) SWIG_fail;
5245 temp8 = True;
5246 }
5247 }
5248 {
5249 PyThreadState* __tstate = wxPyBeginAllowThreads();
5250 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5251
5252 wxPyEndAllowThreads(__tstate);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 }
5255 {
5256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5257 }
5258 {
5259 if (temp4)
5260 delete arg4;
5261 }
5262 {
5263 if (temp8)
5264 delete arg8;
5265 }
5266 return resultobj;
5267 fail:
5268 {
5269 if (temp4)
5270 delete arg4;
5271 }
5272 {
5273 if (temp8)
5274 delete arg8;
5275 }
5276 return NULL;
5277 }
5278
5279
5280 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5281 PyObject *resultobj;
5282 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5283 wxVisualAttributes result;
5284 PyObject * obj0 = 0 ;
5285 char *kwnames[] = {
5286 (char *) "variant", NULL
5287 };
5288
5289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5290 if (obj0) {
5291 arg1 = (int)SWIG_As_int(obj0);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 }
5294 {
5295 if (!wxPyCheckForApp()) SWIG_fail;
5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
5297 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5298
5299 wxPyEndAllowThreads(__tstate);
5300 if (PyErr_Occurred()) SWIG_fail;
5301 }
5302 {
5303 wxVisualAttributes * resultptr;
5304 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5305 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5306 }
5307 return resultobj;
5308 fail:
5309 return NULL;
5310 }
5311
5312
5313 static PyObject * StaticText_swigregister(PyObject *, PyObject *args) {
5314 PyObject *obj;
5315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5316 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5317 Py_INCREF(obj);
5318 return Py_BuildValue((char *)"");
5319 }
5320 static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 wxWindow *arg1 = (wxWindow *) 0 ;
5323 int arg2 = (int) -1 ;
5324 wxBitmap const &arg3_defvalue = wxNullBitmap ;
5325 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
5326 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5327 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5328 wxSize const &arg5_defvalue = wxDefaultSize ;
5329 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5330 long arg6 = (long) 0 ;
5331 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5332 wxString *arg7 = (wxString *) &arg7_defvalue ;
5333 wxStaticBitmap *result;
5334 wxPoint temp4 ;
5335 wxSize temp5 ;
5336 bool temp7 = False ;
5337 PyObject * obj0 = 0 ;
5338 PyObject * obj1 = 0 ;
5339 PyObject * obj2 = 0 ;
5340 PyObject * obj3 = 0 ;
5341 PyObject * obj4 = 0 ;
5342 PyObject * obj5 = 0 ;
5343 PyObject * obj6 = 0 ;
5344 char *kwnames[] = {
5345 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5346 };
5347
5348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5351 if (obj1) {
5352 arg2 = (int)SWIG_As_int(obj1);
5353 if (PyErr_Occurred()) SWIG_fail;
5354 }
5355 if (obj2) {
5356 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5357 SWIG_POINTER_EXCEPTION | 0)) == -1)
5358 SWIG_fail;
5359 if (arg3 == NULL) {
5360 PyErr_SetString(PyExc_TypeError,"null reference");
5361 SWIG_fail;
5362 }
5363 }
5364 if (obj3) {
5365 {
5366 arg4 = &temp4;
5367 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5368 }
5369 }
5370 if (obj4) {
5371 {
5372 arg5 = &temp5;
5373 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5374 }
5375 }
5376 if (obj5) {
5377 arg6 = (long)SWIG_As_long(obj5);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 }
5380 if (obj6) {
5381 {
5382 arg7 = wxString_in_helper(obj6);
5383 if (arg7 == NULL) SWIG_fail;
5384 temp7 = True;
5385 }
5386 }
5387 {
5388 if (!wxPyCheckForApp()) SWIG_fail;
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5391
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5396 {
5397 if (temp7)
5398 delete arg7;
5399 }
5400 return resultobj;
5401 fail:
5402 {
5403 if (temp7)
5404 delete arg7;
5405 }
5406 return NULL;
5407 }
5408
5409
5410 static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5411 PyObject *resultobj;
5412 wxStaticBitmap *result;
5413 char *kwnames[] = {
5414 NULL
5415 };
5416
5417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5418 {
5419 if (!wxPyCheckForApp()) SWIG_fail;
5420 PyThreadState* __tstate = wxPyBeginAllowThreads();
5421 result = (wxStaticBitmap *)new wxStaticBitmap();
5422
5423 wxPyEndAllowThreads(__tstate);
5424 if (PyErr_Occurred()) SWIG_fail;
5425 }
5426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5427 return resultobj;
5428 fail:
5429 return NULL;
5430 }
5431
5432
5433 static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5434 PyObject *resultobj;
5435 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5436 wxWindow *arg2 = (wxWindow *) 0 ;
5437 int arg3 = (int) -1 ;
5438 wxBitmap const &arg4_defvalue = wxNullBitmap ;
5439 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
5440 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5441 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5442 wxSize const &arg6_defvalue = wxDefaultSize ;
5443 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5444 long arg7 = (long) 0 ;
5445 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5446 wxString *arg8 = (wxString *) &arg8_defvalue ;
5447 bool result;
5448 wxPoint temp5 ;
5449 wxSize temp6 ;
5450 bool temp8 = False ;
5451 PyObject * obj0 = 0 ;
5452 PyObject * obj1 = 0 ;
5453 PyObject * obj2 = 0 ;
5454 PyObject * obj3 = 0 ;
5455 PyObject * obj4 = 0 ;
5456 PyObject * obj5 = 0 ;
5457 PyObject * obj6 = 0 ;
5458 PyObject * obj7 = 0 ;
5459 char *kwnames[] = {
5460 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5461 };
5462
5463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5468 if (obj2) {
5469 arg3 = (int)SWIG_As_int(obj2);
5470 if (PyErr_Occurred()) SWIG_fail;
5471 }
5472 if (obj3) {
5473 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5474 SWIG_POINTER_EXCEPTION | 0)) == -1)
5475 SWIG_fail;
5476 if (arg4 == NULL) {
5477 PyErr_SetString(PyExc_TypeError,"null reference");
5478 SWIG_fail;
5479 }
5480 }
5481 if (obj4) {
5482 {
5483 arg5 = &temp5;
5484 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5485 }
5486 }
5487 if (obj5) {
5488 {
5489 arg6 = &temp6;
5490 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5491 }
5492 }
5493 if (obj6) {
5494 arg7 = (long)SWIG_As_long(obj6);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 if (obj7) {
5498 {
5499 arg8 = wxString_in_helper(obj7);
5500 if (arg8 == NULL) SWIG_fail;
5501 temp8 = True;
5502 }
5503 }
5504 {
5505 PyThreadState* __tstate = wxPyBeginAllowThreads();
5506 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5507
5508 wxPyEndAllowThreads(__tstate);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
5511 {
5512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5513 }
5514 {
5515 if (temp8)
5516 delete arg8;
5517 }
5518 return resultobj;
5519 fail:
5520 {
5521 if (temp8)
5522 delete arg8;
5523 }
5524 return NULL;
5525 }
5526
5527
5528 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5529 PyObject *resultobj;
5530 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5531 wxBitmap result;
5532 PyObject * obj0 = 0 ;
5533 char *kwnames[] = {
5534 (char *) "self", NULL
5535 };
5536
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 result = (arg1)->GetBitmap();
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 {
5548 wxBitmap * resultptr;
5549 resultptr = new wxBitmap((wxBitmap &) result);
5550 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5551 }
5552 return resultobj;
5553 fail:
5554 return NULL;
5555 }
5556
5557
5558 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5559 PyObject *resultobj;
5560 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5561 wxBitmap *arg2 = 0 ;
5562 PyObject * obj0 = 0 ;
5563 PyObject * obj1 = 0 ;
5564 char *kwnames[] = {
5565 (char *) "self",(char *) "bitmap", NULL
5566 };
5567
5568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5571 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5572 SWIG_POINTER_EXCEPTION | 0)) == -1)
5573 SWIG_fail;
5574 if (arg2 == NULL) {
5575 PyErr_SetString(PyExc_TypeError,"null reference");
5576 SWIG_fail;
5577 }
5578 {
5579 PyThreadState* __tstate = wxPyBeginAllowThreads();
5580 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5581
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 }
5585 Py_INCREF(Py_None); resultobj = Py_None;
5586 return resultobj;
5587 fail:
5588 return NULL;
5589 }
5590
5591
5592 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5593 PyObject *resultobj;
5594 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5595 wxIcon *arg2 = 0 ;
5596 PyObject * obj0 = 0 ;
5597 PyObject * obj1 = 0 ;
5598 char *kwnames[] = {
5599 (char *) "self",(char *) "icon", NULL
5600 };
5601
5602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5606 SWIG_POINTER_EXCEPTION | 0)) == -1)
5607 SWIG_fail;
5608 if (arg2 == NULL) {
5609 PyErr_SetString(PyExc_TypeError,"null reference");
5610 SWIG_fail;
5611 }
5612 {
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 (arg1)->SetIcon((wxIcon const &)*arg2);
5615
5616 wxPyEndAllowThreads(__tstate);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 }
5619 Py_INCREF(Py_None); resultobj = Py_None;
5620 return resultobj;
5621 fail:
5622 return NULL;
5623 }
5624
5625
5626 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5627 PyObject *resultobj;
5628 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5629 wxVisualAttributes result;
5630 PyObject * obj0 = 0 ;
5631 char *kwnames[] = {
5632 (char *) "variant", NULL
5633 };
5634
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5636 if (obj0) {
5637 arg1 = (int)SWIG_As_int(obj0);
5638 if (PyErr_Occurred()) SWIG_fail;
5639 }
5640 {
5641 if (!wxPyCheckForApp()) SWIG_fail;
5642 PyThreadState* __tstate = wxPyBeginAllowThreads();
5643 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5644
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 {
5649 wxVisualAttributes * resultptr;
5650 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5651 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5652 }
5653 return resultobj;
5654 fail:
5655 return NULL;
5656 }
5657
5658
5659 static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) {
5660 PyObject *obj;
5661 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5662 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5663 Py_INCREF(obj);
5664 return Py_BuildValue((char *)"");
5665 }
5666 static int _wrap_ListBoxNameStr_set(PyObject *) {
5667 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5668 return 1;
5669 }
5670
5671
5672 static PyObject *_wrap_ListBoxNameStr_get() {
5673 PyObject *pyobj;
5674
5675 {
5676 #if wxUSE_UNICODE
5677 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5678 #else
5679 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5680 #endif
5681 }
5682 return pyobj;
5683 }
5684
5685
5686 static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5687 PyObject *resultobj;
5688 wxWindow *arg1 = (wxWindow *) 0 ;
5689 int arg2 = (int) -1 ;
5690 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5691 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5692 wxSize const &arg4_defvalue = wxDefaultSize ;
5693 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5694 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5695 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5696 long arg6 = (long) 0 ;
5697 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5698 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5699 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5700 wxString *arg8 = (wxString *) &arg8_defvalue ;
5701 wxListBox *result;
5702 wxPoint temp3 ;
5703 wxSize temp4 ;
5704 bool temp5 = False ;
5705 bool temp8 = False ;
5706 PyObject * obj0 = 0 ;
5707 PyObject * obj1 = 0 ;
5708 PyObject * obj2 = 0 ;
5709 PyObject * obj3 = 0 ;
5710 PyObject * obj4 = 0 ;
5711 PyObject * obj5 = 0 ;
5712 PyObject * obj6 = 0 ;
5713 PyObject * obj7 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5721 if (obj1) {
5722 arg2 = (int)SWIG_As_int(obj1);
5723 if (PyErr_Occurred()) SWIG_fail;
5724 }
5725 if (obj2) {
5726 {
5727 arg3 = &temp3;
5728 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5729 }
5730 }
5731 if (obj3) {
5732 {
5733 arg4 = &temp4;
5734 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5735 }
5736 }
5737 if (obj4) {
5738 {
5739 if (! PySequence_Check(obj4)) {
5740 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5741 SWIG_fail;
5742 }
5743 arg5 = new wxArrayString;
5744 temp5 = True;
5745 int i, len=PySequence_Length(obj4);
5746 for (i=0; i<len; i++) {
5747 PyObject* item = PySequence_GetItem(obj4, i);
5748 #if wxUSE_UNICODE
5749 PyObject* str = PyObject_Unicode(item);
5750 #else
5751 PyObject* str = PyObject_Str(item);
5752 #endif
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg5->Add(Py2wxString(str));
5755 Py_DECREF(item);
5756 Py_DECREF(str);
5757 }
5758 }
5759 }
5760 if (obj5) {
5761 arg6 = (long)SWIG_As_long(obj5);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 if (obj6) {
5765 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5766 SWIG_POINTER_EXCEPTION | 0)) == -1)
5767 SWIG_fail;
5768 if (arg7 == NULL) {
5769 PyErr_SetString(PyExc_TypeError,"null reference");
5770 SWIG_fail;
5771 }
5772 }
5773 if (obj7) {
5774 {
5775 arg8 = wxString_in_helper(obj7);
5776 if (arg8 == NULL) SWIG_fail;
5777 temp8 = True;
5778 }
5779 }
5780 {
5781 if (!wxPyCheckForApp()) SWIG_fail;
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
5783 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5784
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5789 {
5790 if (temp5) delete arg5;
5791 }
5792 {
5793 if (temp8)
5794 delete arg8;
5795 }
5796 return resultobj;
5797 fail:
5798 {
5799 if (temp5) delete arg5;
5800 }
5801 {
5802 if (temp8)
5803 delete arg8;
5804 }
5805 return NULL;
5806 }
5807
5808
5809 static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5810 PyObject *resultobj;
5811 wxListBox *result;
5812 char *kwnames[] = {
5813 NULL
5814 };
5815
5816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5817 {
5818 if (!wxPyCheckForApp()) SWIG_fail;
5819 PyThreadState* __tstate = wxPyBeginAllowThreads();
5820 result = (wxListBox *)new wxListBox();
5821
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5826 return resultobj;
5827 fail:
5828 return NULL;
5829 }
5830
5831
5832 static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5833 PyObject *resultobj;
5834 wxListBox *arg1 = (wxListBox *) 0 ;
5835 wxWindow *arg2 = (wxWindow *) 0 ;
5836 int arg3 = (int) -1 ;
5837 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5838 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5839 wxSize const &arg5_defvalue = wxDefaultSize ;
5840 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5841 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5842 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5843 long arg7 = (long) 0 ;
5844 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5845 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5846 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5847 wxString *arg9 = (wxString *) &arg9_defvalue ;
5848 bool result;
5849 wxPoint temp4 ;
5850 wxSize temp5 ;
5851 bool temp6 = False ;
5852 bool temp9 = False ;
5853 PyObject * obj0 = 0 ;
5854 PyObject * obj1 = 0 ;
5855 PyObject * obj2 = 0 ;
5856 PyObject * obj3 = 0 ;
5857 PyObject * obj4 = 0 ;
5858 PyObject * obj5 = 0 ;
5859 PyObject * obj6 = 0 ;
5860 PyObject * obj7 = 0 ;
5861 PyObject * obj8 = 0 ;
5862 char *kwnames[] = {
5863 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5864 };
5865
5866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5871 if (obj2) {
5872 arg3 = (int)SWIG_As_int(obj2);
5873 if (PyErr_Occurred()) SWIG_fail;
5874 }
5875 if (obj3) {
5876 {
5877 arg4 = &temp4;
5878 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5879 }
5880 }
5881 if (obj4) {
5882 {
5883 arg5 = &temp5;
5884 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5885 }
5886 }
5887 if (obj5) {
5888 {
5889 if (! PySequence_Check(obj5)) {
5890 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5891 SWIG_fail;
5892 }
5893 arg6 = new wxArrayString;
5894 temp6 = True;
5895 int i, len=PySequence_Length(obj5);
5896 for (i=0; i<len; i++) {
5897 PyObject* item = PySequence_GetItem(obj5, i);
5898 #if wxUSE_UNICODE
5899 PyObject* str = PyObject_Unicode(item);
5900 #else
5901 PyObject* str = PyObject_Str(item);
5902 #endif
5903 if (PyErr_Occurred()) SWIG_fail;
5904 arg6->Add(Py2wxString(str));
5905 Py_DECREF(item);
5906 Py_DECREF(str);
5907 }
5908 }
5909 }
5910 if (obj6) {
5911 arg7 = (long)SWIG_As_long(obj6);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 if (obj7) {
5915 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5916 SWIG_POINTER_EXCEPTION | 0)) == -1)
5917 SWIG_fail;
5918 if (arg8 == NULL) {
5919 PyErr_SetString(PyExc_TypeError,"null reference");
5920 SWIG_fail;
5921 }
5922 }
5923 if (obj8) {
5924 {
5925 arg9 = wxString_in_helper(obj8);
5926 if (arg9 == NULL) SWIG_fail;
5927 temp9 = True;
5928 }
5929 }
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5933
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 {
5938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5939 }
5940 {
5941 if (temp6) delete arg6;
5942 }
5943 {
5944 if (temp9)
5945 delete arg9;
5946 }
5947 return resultobj;
5948 fail:
5949 {
5950 if (temp6) delete arg6;
5951 }
5952 {
5953 if (temp9)
5954 delete arg9;
5955 }
5956 return NULL;
5957 }
5958
5959
5960 static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
5961 PyObject *resultobj;
5962 wxListBox *arg1 = (wxListBox *) 0 ;
5963 wxString *arg2 = 0 ;
5964 int arg3 ;
5965 PyObject *arg4 = (PyObject *) NULL ;
5966 bool temp2 = False ;
5967 PyObject * obj0 = 0 ;
5968 PyObject * obj1 = 0 ;
5969 PyObject * obj2 = 0 ;
5970 PyObject * obj3 = 0 ;
5971 char *kwnames[] = {
5972 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5973 };
5974
5975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5978 {
5979 arg2 = wxString_in_helper(obj1);
5980 if (arg2 == NULL) SWIG_fail;
5981 temp2 = True;
5982 }
5983 arg3 = (int)SWIG_As_int(obj2);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 if (obj3) {
5986 arg4 = obj3;
5987 }
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5991
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 Py_INCREF(Py_None); resultobj = Py_None;
5996 {
5997 if (temp2)
5998 delete arg2;
5999 }
6000 return resultobj;
6001 fail:
6002 {
6003 if (temp2)
6004 delete arg2;
6005 }
6006 return NULL;
6007 }
6008
6009
6010 static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) {
6011 PyObject *resultobj;
6012 wxListBox *arg1 = (wxListBox *) 0 ;
6013 wxArrayString *arg2 = 0 ;
6014 int arg3 ;
6015 bool temp2 = False ;
6016 PyObject * obj0 = 0 ;
6017 PyObject * obj1 = 0 ;
6018 PyObject * obj2 = 0 ;
6019 char *kwnames[] = {
6020 (char *) "self",(char *) "items",(char *) "pos", NULL
6021 };
6022
6023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
6024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6026 {
6027 if (! PySequence_Check(obj1)) {
6028 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6029 SWIG_fail;
6030 }
6031 arg2 = new wxArrayString;
6032 temp2 = True;
6033 int i, len=PySequence_Length(obj1);
6034 for (i=0; i<len; i++) {
6035 PyObject* item = PySequence_GetItem(obj1, i);
6036 #if wxUSE_UNICODE
6037 PyObject* str = PyObject_Unicode(item);
6038 #else
6039 PyObject* str = PyObject_Str(item);
6040 #endif
6041 if (PyErr_Occurred()) SWIG_fail;
6042 arg2->Add(Py2wxString(str));
6043 Py_DECREF(item);
6044 Py_DECREF(str);
6045 }
6046 }
6047 arg3 = (int)SWIG_As_int(obj2);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 {
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
6052
6053 wxPyEndAllowThreads(__tstate);
6054 if (PyErr_Occurred()) SWIG_fail;
6055 }
6056 Py_INCREF(Py_None); resultobj = Py_None;
6057 {
6058 if (temp2) delete arg2;
6059 }
6060 return resultobj;
6061 fail:
6062 {
6063 if (temp2) delete arg2;
6064 }
6065 return NULL;
6066 }
6067
6068
6069 static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) {
6070 PyObject *resultobj;
6071 wxListBox *arg1 = (wxListBox *) 0 ;
6072 wxArrayString *arg2 = 0 ;
6073 bool temp2 = False ;
6074 PyObject * obj0 = 0 ;
6075 PyObject * obj1 = 0 ;
6076 char *kwnames[] = {
6077 (char *) "self",(char *) "items", NULL
6078 };
6079
6080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
6081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6083 {
6084 if (! PySequence_Check(obj1)) {
6085 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6086 SWIG_fail;
6087 }
6088 arg2 = new wxArrayString;
6089 temp2 = True;
6090 int i, len=PySequence_Length(obj1);
6091 for (i=0; i<len; i++) {
6092 PyObject* item = PySequence_GetItem(obj1, i);
6093 #if wxUSE_UNICODE
6094 PyObject* str = PyObject_Unicode(item);
6095 #else
6096 PyObject* str = PyObject_Str(item);
6097 #endif
6098 if (PyErr_Occurred()) SWIG_fail;
6099 arg2->Add(Py2wxString(str));
6100 Py_DECREF(item);
6101 Py_DECREF(str);
6102 }
6103 }
6104 {
6105 PyThreadState* __tstate = wxPyBeginAllowThreads();
6106 (arg1)->Set((wxArrayString const &)*arg2);
6107
6108 wxPyEndAllowThreads(__tstate);
6109 if (PyErr_Occurred()) SWIG_fail;
6110 }
6111 Py_INCREF(Py_None); resultobj = Py_None;
6112 {
6113 if (temp2) delete arg2;
6114 }
6115 return resultobj;
6116 fail:
6117 {
6118 if (temp2) delete arg2;
6119 }
6120 return NULL;
6121 }
6122
6123
6124 static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
6125 PyObject *resultobj;
6126 wxListBox *arg1 = (wxListBox *) 0 ;
6127 int arg2 ;
6128 bool result;
6129 PyObject * obj0 = 0 ;
6130 PyObject * obj1 = 0 ;
6131 char *kwnames[] = {
6132 (char *) "self",(char *) "n", NULL
6133 };
6134
6135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
6136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6138 arg2 = (int)SWIG_As_int(obj1);
6139 if (PyErr_Occurred()) SWIG_fail;
6140 {
6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
6142 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
6143
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 {
6148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6149 }
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj;
6158 wxListBox *arg1 = (wxListBox *) 0 ;
6159 int arg2 ;
6160 bool arg3 = (bool) True ;
6161 PyObject * obj0 = 0 ;
6162 PyObject * obj1 = 0 ;
6163 PyObject * obj2 = 0 ;
6164 char *kwnames[] = {
6165 (char *) "self",(char *) "n",(char *) "select", NULL
6166 };
6167
6168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6171 arg2 = (int)SWIG_As_int(obj1);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 if (obj2) {
6174 arg3 = (bool)SWIG_As_bool(obj2);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 {
6178 PyThreadState* __tstate = wxPyBeginAllowThreads();
6179 (arg1)->SetSelection(arg2,arg3);
6180
6181 wxPyEndAllowThreads(__tstate);
6182 if (PyErr_Occurred()) SWIG_fail;
6183 }
6184 Py_INCREF(Py_None); resultobj = Py_None;
6185 return resultobj;
6186 fail:
6187 return NULL;
6188 }
6189
6190
6191 static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) {
6192 PyObject *resultobj;
6193 wxListBox *arg1 = (wxListBox *) 0 ;
6194 int arg2 ;
6195 PyObject * obj0 = 0 ;
6196 PyObject * obj1 = 0 ;
6197 char *kwnames[] = {
6198 (char *) "self",(char *) "n", NULL
6199 };
6200
6201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
6202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6204 arg2 = (int)SWIG_As_int(obj1);
6205 if (PyErr_Occurred()) SWIG_fail;
6206 {
6207 PyThreadState* __tstate = wxPyBeginAllowThreads();
6208 (arg1)->Select(arg2);
6209
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 Py_INCREF(Py_None); resultobj = Py_None;
6214 return resultobj;
6215 fail:
6216 return NULL;
6217 }
6218
6219
6220 static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) {
6221 PyObject *resultobj;
6222 wxListBox *arg1 = (wxListBox *) 0 ;
6223 int arg2 ;
6224 PyObject * obj0 = 0 ;
6225 PyObject * obj1 = 0 ;
6226 char *kwnames[] = {
6227 (char *) "self",(char *) "n", NULL
6228 };
6229
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6233 arg2 = (int)SWIG_As_int(obj1);
6234 if (PyErr_Occurred()) SWIG_fail;
6235 {
6236 PyThreadState* __tstate = wxPyBeginAllowThreads();
6237 (arg1)->Deselect(arg2);
6238
6239 wxPyEndAllowThreads(__tstate);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 Py_INCREF(Py_None); resultobj = Py_None;
6243 return resultobj;
6244 fail:
6245 return NULL;
6246 }
6247
6248
6249 static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
6250 PyObject *resultobj;
6251 wxListBox *arg1 = (wxListBox *) 0 ;
6252 int arg2 = (int) -1 ;
6253 PyObject * obj0 = 0 ;
6254 PyObject * obj1 = 0 ;
6255 char *kwnames[] = {
6256 (char *) "self",(char *) "itemToLeaveSelected", NULL
6257 };
6258
6259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6262 if (obj1) {
6263 arg2 = (int)SWIG_As_int(obj1);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 {
6267 PyThreadState* __tstate = wxPyBeginAllowThreads();
6268 (arg1)->DeselectAll(arg2);
6269
6270 wxPyEndAllowThreads(__tstate);
6271 if (PyErr_Occurred()) SWIG_fail;
6272 }
6273 Py_INCREF(Py_None); resultobj = Py_None;
6274 return resultobj;
6275 fail:
6276 return NULL;
6277 }
6278
6279
6280 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6281 PyObject *resultobj;
6282 wxListBox *arg1 = (wxListBox *) 0 ;
6283 wxString *arg2 = 0 ;
6284 bool arg3 = (bool) True ;
6285 bool result;
6286 bool temp2 = False ;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6289 PyObject * obj2 = 0 ;
6290 char *kwnames[] = {
6291 (char *) "self",(char *) "s",(char *) "select", NULL
6292 };
6293
6294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6297 {
6298 arg2 = wxString_in_helper(obj1);
6299 if (arg2 == NULL) SWIG_fail;
6300 temp2 = True;
6301 }
6302 if (obj2) {
6303 arg3 = (bool)SWIG_As_bool(obj2);
6304 if (PyErr_Occurred()) SWIG_fail;
6305 }
6306 {
6307 PyThreadState* __tstate = wxPyBeginAllowThreads();
6308 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6309
6310 wxPyEndAllowThreads(__tstate);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 }
6313 {
6314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6315 }
6316 {
6317 if (temp2)
6318 delete arg2;
6319 }
6320 return resultobj;
6321 fail:
6322 {
6323 if (temp2)
6324 delete arg2;
6325 }
6326 return NULL;
6327 }
6328
6329
6330 static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
6331 PyObject *resultobj;
6332 wxListBox *arg1 = (wxListBox *) 0 ;
6333 PyObject *result;
6334 PyObject * obj0 = 0 ;
6335 char *kwnames[] = {
6336 (char *) "self", NULL
6337 };
6338
6339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6342 {
6343 PyThreadState* __tstate = wxPyBeginAllowThreads();
6344 result = (PyObject *)wxListBox_GetSelections(arg1);
6345
6346 wxPyEndAllowThreads(__tstate);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 resultobj = result;
6350 return resultobj;
6351 fail:
6352 return NULL;
6353 }
6354
6355
6356 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) {
6357 PyObject *resultobj;
6358 wxListBox *arg1 = (wxListBox *) 0 ;
6359 int arg2 ;
6360 PyObject * obj0 = 0 ;
6361 PyObject * obj1 = 0 ;
6362 char *kwnames[] = {
6363 (char *) "self",(char *) "n", NULL
6364 };
6365
6366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6369 arg2 = (int)SWIG_As_int(obj1);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 {
6372 PyThreadState* __tstate = wxPyBeginAllowThreads();
6373 (arg1)->SetFirstItem(arg2);
6374
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 Py_INCREF(Py_None); resultobj = Py_None;
6379 return resultobj;
6380 fail:
6381 return NULL;
6382 }
6383
6384
6385 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) {
6386 PyObject *resultobj;
6387 wxListBox *arg1 = (wxListBox *) 0 ;
6388 wxString *arg2 = 0 ;
6389 bool temp2 = False ;
6390 PyObject * obj0 = 0 ;
6391 PyObject * obj1 = 0 ;
6392 char *kwnames[] = {
6393 (char *) "self",(char *) "s", NULL
6394 };
6395
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6399 {
6400 arg2 = wxString_in_helper(obj1);
6401 if (arg2 == NULL) SWIG_fail;
6402 temp2 = True;
6403 }
6404 {
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 (arg1)->SetFirstItem((wxString const &)*arg2);
6407
6408 wxPyEndAllowThreads(__tstate);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 Py_INCREF(Py_None); resultobj = Py_None;
6412 {
6413 if (temp2)
6414 delete arg2;
6415 }
6416 return resultobj;
6417 fail:
6418 {
6419 if (temp2)
6420 delete arg2;
6421 }
6422 return NULL;
6423 }
6424
6425
6426 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6427 PyObject *resultobj;
6428 wxListBox *arg1 = (wxListBox *) 0 ;
6429 int arg2 ;
6430 PyObject * obj0 = 0 ;
6431 PyObject * obj1 = 0 ;
6432 char *kwnames[] = {
6433 (char *) "self",(char *) "n", NULL
6434 };
6435
6436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6439 arg2 = (int)SWIG_As_int(obj1);
6440 if (PyErr_Occurred()) SWIG_fail;
6441 {
6442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6443 (arg1)->EnsureVisible(arg2);
6444
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 Py_INCREF(Py_None); resultobj = Py_None;
6449 return resultobj;
6450 fail:
6451 return NULL;
6452 }
6453
6454
6455 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj;
6457 wxListBox *arg1 = (wxListBox *) 0 ;
6458 wxString *arg2 = 0 ;
6459 bool temp2 = False ;
6460 PyObject * obj0 = 0 ;
6461 PyObject * obj1 = 0 ;
6462 char *kwnames[] = {
6463 (char *) "self",(char *) "s", NULL
6464 };
6465
6466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6469 {
6470 arg2 = wxString_in_helper(obj1);
6471 if (arg2 == NULL) SWIG_fail;
6472 temp2 = True;
6473 }
6474 {
6475 PyThreadState* __tstate = wxPyBeginAllowThreads();
6476 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6477
6478 wxPyEndAllowThreads(__tstate);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 }
6481 Py_INCREF(Py_None); resultobj = Py_None;
6482 {
6483 if (temp2)
6484 delete arg2;
6485 }
6486 return resultobj;
6487 fail:
6488 {
6489 if (temp2)
6490 delete arg2;
6491 }
6492 return NULL;
6493 }
6494
6495
6496 static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) {
6497 PyObject *resultobj;
6498 wxListBox *arg1 = (wxListBox *) 0 ;
6499 bool result;
6500 PyObject * obj0 = 0 ;
6501 char *kwnames[] = {
6502 (char *) "self", NULL
6503 };
6504
6505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6508 {
6509 PyThreadState* __tstate = wxPyBeginAllowThreads();
6510 result = (bool)((wxListBox const *)arg1)->IsSorted();
6511
6512 wxPyEndAllowThreads(__tstate);
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 {
6516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6517 }
6518 return resultobj;
6519 fail:
6520 return NULL;
6521 }
6522
6523
6524 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6525 PyObject *resultobj;
6526 wxListBox *arg1 = (wxListBox *) 0 ;
6527 int arg2 ;
6528 wxColour *arg3 = 0 ;
6529 wxColour temp3 ;
6530 PyObject * obj0 = 0 ;
6531 PyObject * obj1 = 0 ;
6532 PyObject * obj2 = 0 ;
6533 char *kwnames[] = {
6534 (char *) "self",(char *) "item",(char *) "c", NULL
6535 };
6536
6537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6540 arg2 = (int)SWIG_As_int(obj1);
6541 if (PyErr_Occurred()) SWIG_fail;
6542 {
6543 arg3 = &temp3;
6544 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6545 }
6546 {
6547 PyThreadState* __tstate = wxPyBeginAllowThreads();
6548 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6549
6550 wxPyEndAllowThreads(__tstate);
6551 if (PyErr_Occurred()) SWIG_fail;
6552 }
6553 Py_INCREF(Py_None); resultobj = Py_None;
6554 return resultobj;
6555 fail:
6556 return NULL;
6557 }
6558
6559
6560 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6561 PyObject *resultobj;
6562 wxListBox *arg1 = (wxListBox *) 0 ;
6563 int arg2 ;
6564 wxColour *arg3 = 0 ;
6565 wxColour temp3 ;
6566 PyObject * obj0 = 0 ;
6567 PyObject * obj1 = 0 ;
6568 PyObject * obj2 = 0 ;
6569 char *kwnames[] = {
6570 (char *) "self",(char *) "item",(char *) "c", NULL
6571 };
6572
6573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6576 arg2 = (int)SWIG_As_int(obj1);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 {
6579 arg3 = &temp3;
6580 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6581 }
6582 {
6583 PyThreadState* __tstate = wxPyBeginAllowThreads();
6584 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6585
6586 wxPyEndAllowThreads(__tstate);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 Py_INCREF(Py_None); resultobj = Py_None;
6590 return resultobj;
6591 fail:
6592 return NULL;
6593 }
6594
6595
6596 static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
6597 PyObject *resultobj;
6598 wxListBox *arg1 = (wxListBox *) 0 ;
6599 int arg2 ;
6600 wxFont *arg3 = 0 ;
6601 PyObject * obj0 = 0 ;
6602 PyObject * obj1 = 0 ;
6603 PyObject * obj2 = 0 ;
6604 char *kwnames[] = {
6605 (char *) "self",(char *) "item",(char *) "f", NULL
6606 };
6607
6608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6611 arg2 = (int)SWIG_As_int(obj1);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6614 SWIG_POINTER_EXCEPTION | 0)) == -1)
6615 SWIG_fail;
6616 if (arg3 == NULL) {
6617 PyErr_SetString(PyExc_TypeError,"null reference");
6618 SWIG_fail;
6619 }
6620 {
6621 PyThreadState* __tstate = wxPyBeginAllowThreads();
6622 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6623
6624 wxPyEndAllowThreads(__tstate);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 Py_INCREF(Py_None); resultobj = Py_None;
6628 return resultobj;
6629 fail:
6630 return NULL;
6631 }
6632
6633
6634 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj;
6636 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6637 wxVisualAttributes result;
6638 PyObject * obj0 = 0 ;
6639 char *kwnames[] = {
6640 (char *) "variant", NULL
6641 };
6642
6643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6644 if (obj0) {
6645 arg1 = (int)SWIG_As_int(obj0);
6646 if (PyErr_Occurred()) SWIG_fail;
6647 }
6648 {
6649 if (!wxPyCheckForApp()) SWIG_fail;
6650 PyThreadState* __tstate = wxPyBeginAllowThreads();
6651 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6652
6653 wxPyEndAllowThreads(__tstate);
6654 if (PyErr_Occurred()) SWIG_fail;
6655 }
6656 {
6657 wxVisualAttributes * resultptr;
6658 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6659 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6660 }
6661 return resultobj;
6662 fail:
6663 return NULL;
6664 }
6665
6666
6667 static PyObject * ListBox_swigregister(PyObject *, PyObject *args) {
6668 PyObject *obj;
6669 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6670 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6671 Py_INCREF(obj);
6672 return Py_BuildValue((char *)"");
6673 }
6674 static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6675 PyObject *resultobj;
6676 wxWindow *arg1 = (wxWindow *) 0 ;
6677 int arg2 = (int) -1 ;
6678 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6679 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6680 wxSize const &arg4_defvalue = wxDefaultSize ;
6681 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6682 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6683 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6684 long arg6 = (long) 0 ;
6685 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6686 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6687 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6688 wxString *arg8 = (wxString *) &arg8_defvalue ;
6689 wxCheckListBox *result;
6690 wxPoint temp3 ;
6691 wxSize temp4 ;
6692 bool temp5 = False ;
6693 bool temp8 = False ;
6694 PyObject * obj0 = 0 ;
6695 PyObject * obj1 = 0 ;
6696 PyObject * obj2 = 0 ;
6697 PyObject * obj3 = 0 ;
6698 PyObject * obj4 = 0 ;
6699 PyObject * obj5 = 0 ;
6700 PyObject * obj6 = 0 ;
6701 PyObject * obj7 = 0 ;
6702 char *kwnames[] = {
6703 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6704 };
6705
6706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6709 if (obj1) {
6710 arg2 = (int)SWIG_As_int(obj1);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 if (obj2) {
6714 {
6715 arg3 = &temp3;
6716 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6717 }
6718 }
6719 if (obj3) {
6720 {
6721 arg4 = &temp4;
6722 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6723 }
6724 }
6725 if (obj4) {
6726 {
6727 if (! PySequence_Check(obj4)) {
6728 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6729 SWIG_fail;
6730 }
6731 arg5 = new wxArrayString;
6732 temp5 = True;
6733 int i, len=PySequence_Length(obj4);
6734 for (i=0; i<len; i++) {
6735 PyObject* item = PySequence_GetItem(obj4, i);
6736 #if wxUSE_UNICODE
6737 PyObject* str = PyObject_Unicode(item);
6738 #else
6739 PyObject* str = PyObject_Str(item);
6740 #endif
6741 if (PyErr_Occurred()) SWIG_fail;
6742 arg5->Add(Py2wxString(str));
6743 Py_DECREF(item);
6744 Py_DECREF(str);
6745 }
6746 }
6747 }
6748 if (obj5) {
6749 arg6 = (long)SWIG_As_long(obj5);
6750 if (PyErr_Occurred()) SWIG_fail;
6751 }
6752 if (obj6) {
6753 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6754 SWIG_POINTER_EXCEPTION | 0)) == -1)
6755 SWIG_fail;
6756 if (arg7 == NULL) {
6757 PyErr_SetString(PyExc_TypeError,"null reference");
6758 SWIG_fail;
6759 }
6760 }
6761 if (obj7) {
6762 {
6763 arg8 = wxString_in_helper(obj7);
6764 if (arg8 == NULL) SWIG_fail;
6765 temp8 = True;
6766 }
6767 }
6768 {
6769 if (!wxPyCheckForApp()) SWIG_fail;
6770 PyThreadState* __tstate = wxPyBeginAllowThreads();
6771 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6772
6773 wxPyEndAllowThreads(__tstate);
6774 if (PyErr_Occurred()) SWIG_fail;
6775 }
6776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6777 {
6778 if (temp5) delete arg5;
6779 }
6780 {
6781 if (temp8)
6782 delete arg8;
6783 }
6784 return resultobj;
6785 fail:
6786 {
6787 if (temp5) delete arg5;
6788 }
6789 {
6790 if (temp8)
6791 delete arg8;
6792 }
6793 return NULL;
6794 }
6795
6796
6797 static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6798 PyObject *resultobj;
6799 wxCheckListBox *result;
6800 char *kwnames[] = {
6801 NULL
6802 };
6803
6804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6805 {
6806 if (!wxPyCheckForApp()) SWIG_fail;
6807 PyThreadState* __tstate = wxPyBeginAllowThreads();
6808 result = (wxCheckListBox *)new wxCheckListBox();
6809
6810 wxPyEndAllowThreads(__tstate);
6811 if (PyErr_Occurred()) SWIG_fail;
6812 }
6813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6814 return resultobj;
6815 fail:
6816 return NULL;
6817 }
6818
6819
6820 static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6821 PyObject *resultobj;
6822 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6823 wxWindow *arg2 = (wxWindow *) 0 ;
6824 int arg3 = (int) -1 ;
6825 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6826 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6827 wxSize const &arg5_defvalue = wxDefaultSize ;
6828 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6829 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6830 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6831 long arg7 = (long) 0 ;
6832 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6833 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6834 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6835 wxString *arg9 = (wxString *) &arg9_defvalue ;
6836 bool result;
6837 wxPoint temp4 ;
6838 wxSize temp5 ;
6839 bool temp6 = False ;
6840 bool temp9 = False ;
6841 PyObject * obj0 = 0 ;
6842 PyObject * obj1 = 0 ;
6843 PyObject * obj2 = 0 ;
6844 PyObject * obj3 = 0 ;
6845 PyObject * obj4 = 0 ;
6846 PyObject * obj5 = 0 ;
6847 PyObject * obj6 = 0 ;
6848 PyObject * obj7 = 0 ;
6849 PyObject * obj8 = 0 ;
6850 char *kwnames[] = {
6851 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6852 };
6853
6854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6857 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6859 if (obj2) {
6860 arg3 = (int)SWIG_As_int(obj2);
6861 if (PyErr_Occurred()) SWIG_fail;
6862 }
6863 if (obj3) {
6864 {
6865 arg4 = &temp4;
6866 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6867 }
6868 }
6869 if (obj4) {
6870 {
6871 arg5 = &temp5;
6872 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6873 }
6874 }
6875 if (obj5) {
6876 {
6877 if (! PySequence_Check(obj5)) {
6878 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6879 SWIG_fail;
6880 }
6881 arg6 = new wxArrayString;
6882 temp6 = True;
6883 int i, len=PySequence_Length(obj5);
6884 for (i=0; i<len; i++) {
6885 PyObject* item = PySequence_GetItem(obj5, i);
6886 #if wxUSE_UNICODE
6887 PyObject* str = PyObject_Unicode(item);
6888 #else
6889 PyObject* str = PyObject_Str(item);
6890 #endif
6891 if (PyErr_Occurred()) SWIG_fail;
6892 arg6->Add(Py2wxString(str));
6893 Py_DECREF(item);
6894 Py_DECREF(str);
6895 }
6896 }
6897 }
6898 if (obj6) {
6899 arg7 = (long)SWIG_As_long(obj6);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 if (obj7) {
6903 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6904 SWIG_POINTER_EXCEPTION | 0)) == -1)
6905 SWIG_fail;
6906 if (arg8 == NULL) {
6907 PyErr_SetString(PyExc_TypeError,"null reference");
6908 SWIG_fail;
6909 }
6910 }
6911 if (obj8) {
6912 {
6913 arg9 = wxString_in_helper(obj8);
6914 if (arg9 == NULL) SWIG_fail;
6915 temp9 = True;
6916 }
6917 }
6918 {
6919 PyThreadState* __tstate = wxPyBeginAllowThreads();
6920 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6921
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 {
6926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6927 }
6928 {
6929 if (temp6) delete arg6;
6930 }
6931 {
6932 if (temp9)
6933 delete arg9;
6934 }
6935 return resultobj;
6936 fail:
6937 {
6938 if (temp6) delete arg6;
6939 }
6940 {
6941 if (temp9)
6942 delete arg9;
6943 }
6944 return NULL;
6945 }
6946
6947
6948 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
6949 PyObject *resultobj;
6950 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6951 int arg2 ;
6952 bool result;
6953 PyObject * obj0 = 0 ;
6954 PyObject * obj1 = 0 ;
6955 char *kwnames[] = {
6956 (char *) "self",(char *) "index", NULL
6957 };
6958
6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6962 arg2 = (int)SWIG_As_int(obj1);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 {
6965 PyThreadState* __tstate = wxPyBeginAllowThreads();
6966 result = (bool)(arg1)->IsChecked(arg2);
6967
6968 wxPyEndAllowThreads(__tstate);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 {
6972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6973 }
6974 return resultobj;
6975 fail:
6976 return NULL;
6977 }
6978
6979
6980 static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) {
6981 PyObject *resultobj;
6982 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6983 int arg2 ;
6984 int arg3 = (int) True ;
6985 PyObject * obj0 = 0 ;
6986 PyObject * obj1 = 0 ;
6987 PyObject * obj2 = 0 ;
6988 char *kwnames[] = {
6989 (char *) "self",(char *) "index",(char *) "check", NULL
6990 };
6991
6992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6995 arg2 = (int)SWIG_As_int(obj1);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 if (obj2) {
6998 arg3 = (int)SWIG_As_int(obj2);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 }
7001 {
7002 PyThreadState* __tstate = wxPyBeginAllowThreads();
7003 (arg1)->Check(arg2,arg3);
7004
7005 wxPyEndAllowThreads(__tstate);
7006 if (PyErr_Occurred()) SWIG_fail;
7007 }
7008 Py_INCREF(Py_None); resultobj = Py_None;
7009 return resultobj;
7010 fail:
7011 return NULL;
7012 }
7013
7014
7015 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) {
7016 PyObject *resultobj;
7017 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7018 int result;
7019 PyObject * obj0 = 0 ;
7020 char *kwnames[] = {
7021 (char *) "self", NULL
7022 };
7023
7024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
7025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 result = (int)(arg1)->GetItemHeight();
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_From_int((int)result);
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj;
7043 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7044 wxPoint *arg2 = 0 ;
7045 int result;
7046 wxPoint temp2 ;
7047 PyObject * obj0 = 0 ;
7048 PyObject * obj1 = 0 ;
7049 char *kwnames[] = {
7050 (char *) "self",(char *) "pt", NULL
7051 };
7052
7053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
7054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7056 {
7057 arg2 = &temp2;
7058 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7059 }
7060 {
7061 PyThreadState* __tstate = wxPyBeginAllowThreads();
7062 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
7063
7064 wxPyEndAllowThreads(__tstate);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 resultobj = SWIG_From_int((int)result);
7068 return resultobj;
7069 fail:
7070 return NULL;
7071 }
7072
7073
7074 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
7075 PyObject *resultobj;
7076 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7077 int arg2 ;
7078 int arg3 ;
7079 int result;
7080 PyObject * obj0 = 0 ;
7081 PyObject * obj1 = 0 ;
7082 PyObject * obj2 = 0 ;
7083 char *kwnames[] = {
7084 (char *) "self",(char *) "x",(char *) "y", NULL
7085 };
7086
7087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7090 arg2 = (int)SWIG_As_int(obj1);
7091 if (PyErr_Occurred()) SWIG_fail;
7092 arg3 = (int)SWIG_As_int(obj2);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 {
7095 PyThreadState* __tstate = wxPyBeginAllowThreads();
7096 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
7097
7098 wxPyEndAllowThreads(__tstate);
7099 if (PyErr_Occurred()) SWIG_fail;
7100 }
7101 resultobj = SWIG_From_int((int)result);
7102 return resultobj;
7103 fail:
7104 return NULL;
7105 }
7106
7107
7108 static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) {
7109 PyObject *obj;
7110 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7111 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
7112 Py_INCREF(obj);
7113 return Py_BuildValue((char *)"");
7114 }
7115 static int _wrap_TextCtrlNameStr_set(PyObject *) {
7116 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
7117 return 1;
7118 }
7119
7120
7121 static PyObject *_wrap_TextCtrlNameStr_get() {
7122 PyObject *pyobj;
7123
7124 {
7125 #if wxUSE_UNICODE
7126 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7127 #else
7128 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7129 #endif
7130 }
7131 return pyobj;
7132 }
7133
7134
7135 static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj;
7137 wxColour const &arg1_defvalue = wxNullColour ;
7138 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
7139 wxColour const &arg2_defvalue = wxNullColour ;
7140 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
7141 wxFont const &arg3_defvalue = wxNullFont ;
7142 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
7143 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
7144 wxTextAttr *result;
7145 wxColour temp1 ;
7146 wxColour temp2 ;
7147 PyObject * obj0 = 0 ;
7148 PyObject * obj1 = 0 ;
7149 PyObject * obj2 = 0 ;
7150 PyObject * obj3 = 0 ;
7151 char *kwnames[] = {
7152 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
7153 };
7154
7155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7156 if (obj0) {
7157 {
7158 arg1 = &temp1;
7159 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
7160 }
7161 }
7162 if (obj1) {
7163 {
7164 arg2 = &temp2;
7165 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7166 }
7167 }
7168 if (obj2) {
7169 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
7170 SWIG_POINTER_EXCEPTION | 0)) == -1)
7171 SWIG_fail;
7172 if (arg3 == NULL) {
7173 PyErr_SetString(PyExc_TypeError,"null reference");
7174 SWIG_fail;
7175 }
7176 }
7177 if (obj3) {
7178 arg4 = (int)SWIG_As_int(obj3);
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 {
7182 PyThreadState* __tstate = wxPyBeginAllowThreads();
7183 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
7184
7185 wxPyEndAllowThreads(__tstate);
7186 if (PyErr_Occurred()) SWIG_fail;
7187 }
7188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
7189 return resultobj;
7190 fail:
7191 return NULL;
7192 }
7193
7194
7195 static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7196 PyObject *resultobj;
7197 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7198 PyObject * obj0 = 0 ;
7199 char *kwnames[] = {
7200 (char *) "self", NULL
7201 };
7202
7203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7206 {
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 delete arg1;
7209
7210 wxPyEndAllowThreads(__tstate);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 Py_INCREF(Py_None); resultobj = Py_None;
7214 return resultobj;
7215 fail:
7216 return NULL;
7217 }
7218
7219
7220 static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7221 PyObject *resultobj;
7222 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7223 PyObject * obj0 = 0 ;
7224 char *kwnames[] = {
7225 (char *) "self", NULL
7226 };
7227
7228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 (arg1)->Init();
7234
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 Py_INCREF(Py_None); resultobj = Py_None;
7239 return resultobj;
7240 fail:
7241 return NULL;
7242 }
7243
7244
7245 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7246 PyObject *resultobj;
7247 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7248 wxColour *arg2 = 0 ;
7249 wxColour temp2 ;
7250 PyObject * obj0 = 0 ;
7251 PyObject * obj1 = 0 ;
7252 char *kwnames[] = {
7253 (char *) "self",(char *) "colText", NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7259 {
7260 arg2 = &temp2;
7261 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7262 }
7263 {
7264 PyThreadState* __tstate = wxPyBeginAllowThreads();
7265 (arg1)->SetTextColour((wxColour const &)*arg2);
7266
7267 wxPyEndAllowThreads(__tstate);
7268 if (PyErr_Occurred()) SWIG_fail;
7269 }
7270 Py_INCREF(Py_None); resultobj = Py_None;
7271 return resultobj;
7272 fail:
7273 return NULL;
7274 }
7275
7276
7277 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7278 PyObject *resultobj;
7279 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7280 wxColour *arg2 = 0 ;
7281 wxColour temp2 ;
7282 PyObject * obj0 = 0 ;
7283 PyObject * obj1 = 0 ;
7284 char *kwnames[] = {
7285 (char *) "self",(char *) "colBack", NULL
7286 };
7287
7288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7291 {
7292 arg2 = &temp2;
7293 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7294 }
7295 {
7296 PyThreadState* __tstate = wxPyBeginAllowThreads();
7297 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7298
7299 wxPyEndAllowThreads(__tstate);
7300 if (PyErr_Occurred()) SWIG_fail;
7301 }
7302 Py_INCREF(Py_None); resultobj = Py_None;
7303 return resultobj;
7304 fail:
7305 return NULL;
7306 }
7307
7308
7309 static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7310 PyObject *resultobj;
7311 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7312 wxFont *arg2 = 0 ;
7313 long arg3 = (long) wxTEXT_ATTR_FONT ;
7314 PyObject * obj0 = 0 ;
7315 PyObject * obj1 = 0 ;
7316 PyObject * obj2 = 0 ;
7317 char *kwnames[] = {
7318 (char *) "self",(char *) "font",(char *) "flags", NULL
7319 };
7320
7321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7324 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7325 SWIG_POINTER_EXCEPTION | 0)) == -1)
7326 SWIG_fail;
7327 if (arg2 == NULL) {
7328 PyErr_SetString(PyExc_TypeError,"null reference");
7329 SWIG_fail;
7330 }
7331 if (obj2) {
7332 arg3 = (long)SWIG_As_long(obj2);
7333 if (PyErr_Occurred()) SWIG_fail;
7334 }
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7338
7339 wxPyEndAllowThreads(__tstate);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 Py_INCREF(Py_None); resultobj = Py_None;
7343 return resultobj;
7344 fail:
7345 return NULL;
7346 }
7347
7348
7349 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7350 PyObject *resultobj;
7351 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7352 int arg2 ;
7353 PyObject * obj0 = 0 ;
7354 PyObject * obj1 = 0 ;
7355 char *kwnames[] = {
7356 (char *) "self",(char *) "alignment", NULL
7357 };
7358
7359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7362 arg2 = (int)SWIG_As_int(obj1);
7363 if (PyErr_Occurred()) SWIG_fail;
7364 {
7365 PyThreadState* __tstate = wxPyBeginAllowThreads();
7366 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7367
7368 wxPyEndAllowThreads(__tstate);
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 Py_INCREF(Py_None); resultobj = Py_None;
7372 return resultobj;
7373 fail:
7374 return NULL;
7375 }
7376
7377
7378 static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7379 PyObject *resultobj;
7380 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7381 wxArrayInt *arg2 = 0 ;
7382 bool temp2 = False ;
7383 PyObject * obj0 = 0 ;
7384 PyObject * obj1 = 0 ;
7385 char *kwnames[] = {
7386 (char *) "self",(char *) "tabs", NULL
7387 };
7388
7389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7392 {
7393 if (! PySequence_Check(obj1)) {
7394 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7395 SWIG_fail;
7396 }
7397 arg2 = new wxArrayInt;
7398 temp2 = True;
7399 int i, len=PySequence_Length(obj1);
7400 for (i=0; i<len; i++) {
7401 PyObject* item = PySequence_GetItem(obj1, i);
7402 PyObject* number = PyNumber_Int(item);
7403 arg2->Add(PyInt_AS_LONG(number));
7404 Py_DECREF(item);
7405 Py_DECREF(number);
7406 }
7407 }
7408 {
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7411
7412 wxPyEndAllowThreads(__tstate);
7413 if (PyErr_Occurred()) SWIG_fail;
7414 }
7415 Py_INCREF(Py_None); resultobj = Py_None;
7416 {
7417 if (temp2) delete arg2;
7418 }
7419 return resultobj;
7420 fail:
7421 {
7422 if (temp2) delete arg2;
7423 }
7424 return NULL;
7425 }
7426
7427
7428 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7429 PyObject *resultobj;
7430 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7431 int arg2 ;
7432 int arg3 = (int) 0 ;
7433 PyObject * obj0 = 0 ;
7434 PyObject * obj1 = 0 ;
7435 PyObject * obj2 = 0 ;
7436 char *kwnames[] = {
7437 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7438 };
7439
7440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7443 arg2 = (int)SWIG_As_int(obj1);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 if (obj2) {
7446 arg3 = (int)SWIG_As_int(obj2);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 }
7449 {
7450 PyThreadState* __tstate = wxPyBeginAllowThreads();
7451 (arg1)->SetLeftIndent(arg2,arg3);
7452
7453 wxPyEndAllowThreads(__tstate);
7454 if (PyErr_Occurred()) SWIG_fail;
7455 }
7456 Py_INCREF(Py_None); resultobj = Py_None;
7457 return resultobj;
7458 fail:
7459 return NULL;
7460 }
7461
7462
7463 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7464 PyObject *resultobj;
7465 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7466 int arg2 ;
7467 PyObject * obj0 = 0 ;
7468 PyObject * obj1 = 0 ;
7469 char *kwnames[] = {
7470 (char *) "self",(char *) "indent", NULL
7471 };
7472
7473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7476 arg2 = (int)SWIG_As_int(obj1);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 {
7479 PyThreadState* __tstate = wxPyBeginAllowThreads();
7480 (arg1)->SetRightIndent(arg2);
7481
7482 wxPyEndAllowThreads(__tstate);
7483 if (PyErr_Occurred()) SWIG_fail;
7484 }
7485 Py_INCREF(Py_None); resultobj = Py_None;
7486 return resultobj;
7487 fail:
7488 return NULL;
7489 }
7490
7491
7492 static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7493 PyObject *resultobj;
7494 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7495 long arg2 ;
7496 PyObject * obj0 = 0 ;
7497 PyObject * obj1 = 0 ;
7498 char *kwnames[] = {
7499 (char *) "self",(char *) "flags", NULL
7500 };
7501
7502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7505 arg2 = (long)SWIG_As_long(obj1);
7506 if (PyErr_Occurred()) SWIG_fail;
7507 {
7508 PyThreadState* __tstate = wxPyBeginAllowThreads();
7509 (arg1)->SetFlags(arg2);
7510
7511 wxPyEndAllowThreads(__tstate);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 Py_INCREF(Py_None); resultobj = Py_None;
7515 return resultobj;
7516 fail:
7517 return NULL;
7518 }
7519
7520
7521 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7522 PyObject *resultobj;
7523 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7524 bool result;
7525 PyObject * obj0 = 0 ;
7526 char *kwnames[] = {
7527 (char *) "self", NULL
7528 };
7529
7530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7533 {
7534 PyThreadState* __tstate = wxPyBeginAllowThreads();
7535 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7536
7537 wxPyEndAllowThreads(__tstate);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 {
7541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7542 }
7543 return resultobj;
7544 fail:
7545 return NULL;
7546 }
7547
7548
7549 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7550 PyObject *resultobj;
7551 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7552 bool result;
7553 PyObject * obj0 = 0 ;
7554 char *kwnames[] = {
7555 (char *) "self", NULL
7556 };
7557
7558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7561 {
7562 PyThreadState* __tstate = wxPyBeginAllowThreads();
7563 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7564
7565 wxPyEndAllowThreads(__tstate);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 {
7569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7570 }
7571 return resultobj;
7572 fail:
7573 return NULL;
7574 }
7575
7576
7577 static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
7578 PyObject *resultobj;
7579 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7580 bool result;
7581 PyObject * obj0 = 0 ;
7582 char *kwnames[] = {
7583 (char *) "self", NULL
7584 };
7585
7586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7589 {
7590 PyThreadState* __tstate = wxPyBeginAllowThreads();
7591 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7592
7593 wxPyEndAllowThreads(__tstate);
7594 if (PyErr_Occurred()) SWIG_fail;
7595 }
7596 {
7597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7598 }
7599 return resultobj;
7600 fail:
7601 return NULL;
7602 }
7603
7604
7605 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7606 PyObject *resultobj;
7607 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7608 bool result;
7609 PyObject * obj0 = 0 ;
7610 char *kwnames[] = {
7611 (char *) "self", NULL
7612 };
7613
7614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7617 {
7618 PyThreadState* __tstate = wxPyBeginAllowThreads();
7619 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7620
7621 wxPyEndAllowThreads(__tstate);
7622 if (PyErr_Occurred()) SWIG_fail;
7623 }
7624 {
7625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7626 }
7627 return resultobj;
7628 fail:
7629 return NULL;
7630 }
7631
7632
7633 static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7634 PyObject *resultobj;
7635 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7636 bool result;
7637 PyObject * obj0 = 0 ;
7638 char *kwnames[] = {
7639 (char *) "self", NULL
7640 };
7641
7642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7645 {
7646 PyThreadState* __tstate = wxPyBeginAllowThreads();
7647 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7648
7649 wxPyEndAllowThreads(__tstate);
7650 if (PyErr_Occurred()) SWIG_fail;
7651 }
7652 {
7653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7654 }
7655 return resultobj;
7656 fail:
7657 return NULL;
7658 }
7659
7660
7661 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj;
7663 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7664 bool result;
7665 PyObject * obj0 = 0 ;
7666 char *kwnames[] = {
7667 (char *) "self", NULL
7668 };
7669
7670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7673 {
7674 PyThreadState* __tstate = wxPyBeginAllowThreads();
7675 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7676
7677 wxPyEndAllowThreads(__tstate);
7678 if (PyErr_Occurred()) SWIG_fail;
7679 }
7680 {
7681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7682 }
7683 return resultobj;
7684 fail:
7685 return NULL;
7686 }
7687
7688
7689 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7690 PyObject *resultobj;
7691 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7692 bool result;
7693 PyObject * obj0 = 0 ;
7694 char *kwnames[] = {
7695 (char *) "self", NULL
7696 };
7697
7698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7701 {
7702 PyThreadState* __tstate = wxPyBeginAllowThreads();
7703 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7704
7705 wxPyEndAllowThreads(__tstate);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 }
7708 {
7709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7710 }
7711 return resultobj;
7712 fail:
7713 return NULL;
7714 }
7715
7716
7717 static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
7718 PyObject *resultobj;
7719 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7720 long arg2 ;
7721 bool result;
7722 PyObject * obj0 = 0 ;
7723 PyObject * obj1 = 0 ;
7724 char *kwnames[] = {
7725 (char *) "self",(char *) "flag", NULL
7726 };
7727
7728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7731 arg2 = (long)SWIG_As_long(obj1);
7732 if (PyErr_Occurred()) SWIG_fail;
7733 {
7734 PyThreadState* __tstate = wxPyBeginAllowThreads();
7735 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7736
7737 wxPyEndAllowThreads(__tstate);
7738 if (PyErr_Occurred()) SWIG_fail;
7739 }
7740 {
7741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7742 }
7743 return resultobj;
7744 fail:
7745 return NULL;
7746 }
7747
7748
7749 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7750 PyObject *resultobj;
7751 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7752 wxColour *result;
7753 PyObject * obj0 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "self", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7761 {
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 {
7764 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7765 result = (wxColour *) &_result_ref;
7766 }
7767
7768 wxPyEndAllowThreads(__tstate);
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7772 return resultobj;
7773 fail:
7774 return NULL;
7775 }
7776
7777
7778 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7779 PyObject *resultobj;
7780 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7781 wxColour *result;
7782 PyObject * obj0 = 0 ;
7783 char *kwnames[] = {
7784 (char *) "self", NULL
7785 };
7786
7787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 {
7793 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7794 result = (wxColour *) &_result_ref;
7795 }
7796
7797 wxPyEndAllowThreads(__tstate);
7798 if (PyErr_Occurred()) SWIG_fail;
7799 }
7800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7801 return resultobj;
7802 fail:
7803 return NULL;
7804 }
7805
7806
7807 static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7808 PyObject *resultobj;
7809 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7810 wxFont *result;
7811 PyObject * obj0 = 0 ;
7812 char *kwnames[] = {
7813 (char *) "self", NULL
7814 };
7815
7816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7819 {
7820 PyThreadState* __tstate = wxPyBeginAllowThreads();
7821 {
7822 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7823 result = (wxFont *) &_result_ref;
7824 }
7825
7826 wxPyEndAllowThreads(__tstate);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 {
7830 wxFont* resultptr = new wxFont(*result);
7831 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7832 }
7833 return resultobj;
7834 fail:
7835 return NULL;
7836 }
7837
7838
7839 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7840 PyObject *resultobj;
7841 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7842 int result;
7843 PyObject * obj0 = 0 ;
7844 char *kwnames[] = {
7845 (char *) "self", NULL
7846 };
7847
7848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7851 {
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7854
7855 wxPyEndAllowThreads(__tstate);
7856 if (PyErr_Occurred()) SWIG_fail;
7857 }
7858 resultobj = SWIG_From_int((int)result);
7859 return resultobj;
7860 fail:
7861 return NULL;
7862 }
7863
7864
7865 static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7866 PyObject *resultobj;
7867 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7868 wxArrayInt *result;
7869 PyObject * obj0 = 0 ;
7870 char *kwnames[] = {
7871 (char *) "self", NULL
7872 };
7873
7874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7877 {
7878 PyThreadState* __tstate = wxPyBeginAllowThreads();
7879 {
7880 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7881 result = (wxArrayInt *) &_result_ref;
7882 }
7883
7884 wxPyEndAllowThreads(__tstate);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
7887 {
7888 resultobj = PyList_New(0);
7889 size_t idx;
7890 for (idx = 0; idx < result->GetCount(); idx += 1) {
7891 PyObject* val = PyInt_FromLong( result->Item(idx) );
7892 PyList_Append(resultobj, val);
7893 Py_DECREF(val);
7894 }
7895 }
7896 return resultobj;
7897 fail:
7898 return NULL;
7899 }
7900
7901
7902 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7903 PyObject *resultobj;
7904 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7905 long result;
7906 PyObject * obj0 = 0 ;
7907 char *kwnames[] = {
7908 (char *) "self", NULL
7909 };
7910
7911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7917
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
7921 resultobj = SWIG_From_long((long)result);
7922 return resultobj;
7923 fail:
7924 return NULL;
7925 }
7926
7927
7928 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7929 PyObject *resultobj;
7930 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7931 long result;
7932 PyObject * obj0 = 0 ;
7933 char *kwnames[] = {
7934 (char *) "self", NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
7938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7940 {
7941 PyThreadState* __tstate = wxPyBeginAllowThreads();
7942 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
7943
7944 wxPyEndAllowThreads(__tstate);
7945 if (PyErr_Occurred()) SWIG_fail;
7946 }
7947 resultobj = SWIG_From_long((long)result);
7948 return resultobj;
7949 fail:
7950 return NULL;
7951 }
7952
7953
7954 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7955 PyObject *resultobj;
7956 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7957 long result;
7958 PyObject * obj0 = 0 ;
7959 char *kwnames[] = {
7960 (char *) "self", NULL
7961 };
7962
7963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7966 {
7967 PyThreadState* __tstate = wxPyBeginAllowThreads();
7968 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7969
7970 wxPyEndAllowThreads(__tstate);
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 resultobj = SWIG_From_long((long)result);
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7981 PyObject *resultobj;
7982 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7983 long result;
7984 PyObject * obj0 = 0 ;
7985 char *kwnames[] = {
7986 (char *) "self", NULL
7987 };
7988
7989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7992 {
7993 PyThreadState* __tstate = wxPyBeginAllowThreads();
7994 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7995
7996 wxPyEndAllowThreads(__tstate);
7997 if (PyErr_Occurred()) SWIG_fail;
7998 }
7999 resultobj = SWIG_From_long((long)result);
8000 return resultobj;
8001 fail:
8002 return NULL;
8003 }
8004
8005
8006 static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) {
8007 PyObject *resultobj;
8008 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8009 bool result;
8010 PyObject * obj0 = 0 ;
8011 char *kwnames[] = {
8012 (char *) "self", NULL
8013 };
8014
8015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
8016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8018 {
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
8021
8022 wxPyEndAllowThreads(__tstate);
8023 if (PyErr_Occurred()) SWIG_fail;
8024 }
8025 {
8026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8027 }
8028 return resultobj;
8029 fail:
8030 return NULL;
8031 }
8032
8033
8034 static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) {
8035 PyObject *resultobj;
8036 wxTextAttr *arg1 = 0 ;
8037 wxTextAttr *arg2 = 0 ;
8038 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
8039 wxTextAttr result;
8040 PyObject * obj0 = 0 ;
8041 PyObject * obj1 = 0 ;
8042 PyObject * obj2 = 0 ;
8043 char *kwnames[] = {
8044 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
8045 };
8046
8047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
8048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8049 SWIG_POINTER_EXCEPTION | 0)) == -1)
8050 SWIG_fail;
8051 if (arg1 == NULL) {
8052 PyErr_SetString(PyExc_TypeError,"null reference");
8053 SWIG_fail;
8054 }
8055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8056 SWIG_POINTER_EXCEPTION | 0)) == -1)
8057 SWIG_fail;
8058 if (arg2 == NULL) {
8059 PyErr_SetString(PyExc_TypeError,"null reference");
8060 SWIG_fail;
8061 }
8062 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
8063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8064 {
8065 PyThreadState* __tstate = wxPyBeginAllowThreads();
8066 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
8067
8068 wxPyEndAllowThreads(__tstate);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 {
8072 wxTextAttr * resultptr;
8073 resultptr = new wxTextAttr((wxTextAttr &) result);
8074 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
8075 }
8076 return resultobj;
8077 fail:
8078 return NULL;
8079 }
8080
8081
8082 static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) {
8083 PyObject *obj;
8084 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8085 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
8086 Py_INCREF(obj);
8087 return Py_BuildValue((char *)"");
8088 }
8089 static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj;
8091 wxWindow *arg1 = (wxWindow *) 0 ;
8092 int arg2 = (int) -1 ;
8093 wxString const &arg3_defvalue = wxPyEmptyString ;
8094 wxString *arg3 = (wxString *) &arg3_defvalue ;
8095 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8096 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8097 wxSize const &arg5_defvalue = wxDefaultSize ;
8098 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8099 long arg6 = (long) 0 ;
8100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8102 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
8103 wxString *arg8 = (wxString *) &arg8_defvalue ;
8104 wxTextCtrl *result;
8105 bool temp3 = False ;
8106 wxPoint temp4 ;
8107 wxSize temp5 ;
8108 bool temp8 = False ;
8109 PyObject * obj0 = 0 ;
8110 PyObject * obj1 = 0 ;
8111 PyObject * obj2 = 0 ;
8112 PyObject * obj3 = 0 ;
8113 PyObject * obj4 = 0 ;
8114 PyObject * obj5 = 0 ;
8115 PyObject * obj6 = 0 ;
8116 PyObject * obj7 = 0 ;
8117 char *kwnames[] = {
8118 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8119 };
8120
8121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
8122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
8123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8124 if (obj1) {
8125 arg2 = (int)SWIG_As_int(obj1);
8126 if (PyErr_Occurred()) SWIG_fail;
8127 }
8128 if (obj2) {
8129 {
8130 arg3 = wxString_in_helper(obj2);
8131 if (arg3 == NULL) SWIG_fail;
8132 temp3 = True;
8133 }
8134 }
8135 if (obj3) {
8136 {
8137 arg4 = &temp4;
8138 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8139 }
8140 }
8141 if (obj4) {
8142 {
8143 arg5 = &temp5;
8144 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8145 }
8146 }
8147 if (obj5) {
8148 arg6 = (long)SWIG_As_long(obj5);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 if (obj6) {
8152 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
8153 SWIG_POINTER_EXCEPTION | 0)) == -1)
8154 SWIG_fail;
8155 if (arg7 == NULL) {
8156 PyErr_SetString(PyExc_TypeError,"null reference");
8157 SWIG_fail;
8158 }
8159 }
8160 if (obj7) {
8161 {
8162 arg8 = wxString_in_helper(obj7);
8163 if (arg8 == NULL) SWIG_fail;
8164 temp8 = True;
8165 }
8166 }
8167 {
8168 if (!wxPyCheckForApp()) SWIG_fail;
8169 PyThreadState* __tstate = wxPyBeginAllowThreads();
8170 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8171
8172 wxPyEndAllowThreads(__tstate);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8176 {
8177 if (temp3)
8178 delete arg3;
8179 }
8180 {
8181 if (temp8)
8182 delete arg8;
8183 }
8184 return resultobj;
8185 fail:
8186 {
8187 if (temp3)
8188 delete arg3;
8189 }
8190 {
8191 if (temp8)
8192 delete arg8;
8193 }
8194 return NULL;
8195 }
8196
8197
8198 static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8199 PyObject *resultobj;
8200 wxTextCtrl *result;
8201 char *kwnames[] = {
8202 NULL
8203 };
8204
8205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8206 {
8207 if (!wxPyCheckForApp()) SWIG_fail;
8208 PyThreadState* __tstate = wxPyBeginAllowThreads();
8209 result = (wxTextCtrl *)new wxTextCtrl();
8210
8211 wxPyEndAllowThreads(__tstate);
8212 if (PyErr_Occurred()) SWIG_fail;
8213 }
8214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8215 return resultobj;
8216 fail:
8217 return NULL;
8218 }
8219
8220
8221 static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8222 PyObject *resultobj;
8223 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8224 wxWindow *arg2 = (wxWindow *) 0 ;
8225 int arg3 = (int) -1 ;
8226 wxString const &arg4_defvalue = wxPyEmptyString ;
8227 wxString *arg4 = (wxString *) &arg4_defvalue ;
8228 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8229 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8230 wxSize const &arg6_defvalue = wxDefaultSize ;
8231 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8232 long arg7 = (long) 0 ;
8233 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8234 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8235 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8236 wxString *arg9 = (wxString *) &arg9_defvalue ;
8237 bool result;
8238 bool temp4 = False ;
8239 wxPoint temp5 ;
8240 wxSize temp6 ;
8241 bool temp9 = False ;
8242 PyObject * obj0 = 0 ;
8243 PyObject * obj1 = 0 ;
8244 PyObject * obj2 = 0 ;
8245 PyObject * obj3 = 0 ;
8246 PyObject * obj4 = 0 ;
8247 PyObject * obj5 = 0 ;
8248 PyObject * obj6 = 0 ;
8249 PyObject * obj7 = 0 ;
8250 PyObject * obj8 = 0 ;
8251 char *kwnames[] = {
8252 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8253 };
8254
8255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8258 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8260 if (obj2) {
8261 arg3 = (int)SWIG_As_int(obj2);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
8264 if (obj3) {
8265 {
8266 arg4 = wxString_in_helper(obj3);
8267 if (arg4 == NULL) SWIG_fail;
8268 temp4 = True;
8269 }
8270 }
8271 if (obj4) {
8272 {
8273 arg5 = &temp5;
8274 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8275 }
8276 }
8277 if (obj5) {
8278 {
8279 arg6 = &temp6;
8280 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8281 }
8282 }
8283 if (obj6) {
8284 arg7 = (long)SWIG_As_long(obj6);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 if (obj7) {
8288 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8289 SWIG_POINTER_EXCEPTION | 0)) == -1)
8290 SWIG_fail;
8291 if (arg8 == NULL) {
8292 PyErr_SetString(PyExc_TypeError,"null reference");
8293 SWIG_fail;
8294 }
8295 }
8296 if (obj8) {
8297 {
8298 arg9 = wxString_in_helper(obj8);
8299 if (arg9 == NULL) SWIG_fail;
8300 temp9 = True;
8301 }
8302 }
8303 {
8304 PyThreadState* __tstate = wxPyBeginAllowThreads();
8305 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8306
8307 wxPyEndAllowThreads(__tstate);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 {
8311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8312 }
8313 {
8314 if (temp4)
8315 delete arg4;
8316 }
8317 {
8318 if (temp9)
8319 delete arg9;
8320 }
8321 return resultobj;
8322 fail:
8323 {
8324 if (temp4)
8325 delete arg4;
8326 }
8327 {
8328 if (temp9)
8329 delete arg9;
8330 }
8331 return NULL;
8332 }
8333
8334
8335 static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8336 PyObject *resultobj;
8337 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8338 wxString result;
8339 PyObject * obj0 = 0 ;
8340 char *kwnames[] = {
8341 (char *) "self", NULL
8342 };
8343
8344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8347 {
8348 PyThreadState* __tstate = wxPyBeginAllowThreads();
8349 result = ((wxTextCtrl const *)arg1)->GetValue();
8350
8351 wxPyEndAllowThreads(__tstate);
8352 if (PyErr_Occurred()) SWIG_fail;
8353 }
8354 {
8355 #if wxUSE_UNICODE
8356 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8357 #else
8358 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8359 #endif
8360 }
8361 return resultobj;
8362 fail:
8363 return NULL;
8364 }
8365
8366
8367 static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8368 PyObject *resultobj;
8369 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8370 wxString *arg2 = 0 ;
8371 bool temp2 = False ;
8372 PyObject * obj0 = 0 ;
8373 PyObject * obj1 = 0 ;
8374 char *kwnames[] = {
8375 (char *) "self",(char *) "value", NULL
8376 };
8377
8378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8381 {
8382 arg2 = wxString_in_helper(obj1);
8383 if (arg2 == NULL) SWIG_fail;
8384 temp2 = True;
8385 }
8386 {
8387 PyThreadState* __tstate = wxPyBeginAllowThreads();
8388 (arg1)->SetValue((wxString const &)*arg2);
8389
8390 wxPyEndAllowThreads(__tstate);
8391 if (PyErr_Occurred()) SWIG_fail;
8392 }
8393 Py_INCREF(Py_None); resultobj = Py_None;
8394 {
8395 if (temp2)
8396 delete arg2;
8397 }
8398 return resultobj;
8399 fail:
8400 {
8401 if (temp2)
8402 delete arg2;
8403 }
8404 return NULL;
8405 }
8406
8407
8408 static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
8409 PyObject *resultobj;
8410 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8411 long arg2 ;
8412 long arg3 ;
8413 wxString result;
8414 PyObject * obj0 = 0 ;
8415 PyObject * obj1 = 0 ;
8416 PyObject * obj2 = 0 ;
8417 char *kwnames[] = {
8418 (char *) "self",(char *) "from",(char *) "to", NULL
8419 };
8420
8421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8424 arg2 = (long)SWIG_As_long(obj1);
8425 if (PyErr_Occurred()) SWIG_fail;
8426 arg3 = (long)SWIG_As_long(obj2);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 {
8429 PyThreadState* __tstate = wxPyBeginAllowThreads();
8430 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8431
8432 wxPyEndAllowThreads(__tstate);
8433 if (PyErr_Occurred()) SWIG_fail;
8434 }
8435 {
8436 #if wxUSE_UNICODE
8437 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8438 #else
8439 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8440 #endif
8441 }
8442 return resultobj;
8443 fail:
8444 return NULL;
8445 }
8446
8447
8448 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) {
8449 PyObject *resultobj;
8450 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8451 long arg2 ;
8452 int result;
8453 PyObject * obj0 = 0 ;
8454 PyObject * obj1 = 0 ;
8455 char *kwnames[] = {
8456 (char *) "self",(char *) "lineNo", NULL
8457 };
8458
8459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8462 arg2 = (long)SWIG_As_long(obj1);
8463 if (PyErr_Occurred()) SWIG_fail;
8464 {
8465 PyThreadState* __tstate = wxPyBeginAllowThreads();
8466 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8467
8468 wxPyEndAllowThreads(__tstate);
8469 if (PyErr_Occurred()) SWIG_fail;
8470 }
8471 resultobj = SWIG_From_int((int)result);
8472 return resultobj;
8473 fail:
8474 return NULL;
8475 }
8476
8477
8478 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) {
8479 PyObject *resultobj;
8480 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8481 long arg2 ;
8482 wxString result;
8483 PyObject * obj0 = 0 ;
8484 PyObject * obj1 = 0 ;
8485 char *kwnames[] = {
8486 (char *) "self",(char *) "lineNo", NULL
8487 };
8488
8489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8492 arg2 = (long)SWIG_As_long(obj1);
8493 if (PyErr_Occurred()) SWIG_fail;
8494 {
8495 PyThreadState* __tstate = wxPyBeginAllowThreads();
8496 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8497
8498 wxPyEndAllowThreads(__tstate);
8499 if (PyErr_Occurred()) SWIG_fail;
8500 }
8501 {
8502 #if wxUSE_UNICODE
8503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8504 #else
8505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8506 #endif
8507 }
8508 return resultobj;
8509 fail:
8510 return NULL;
8511 }
8512
8513
8514 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) {
8515 PyObject *resultobj;
8516 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8517 int result;
8518 PyObject * obj0 = 0 ;
8519 char *kwnames[] = {
8520 (char *) "self", NULL
8521 };
8522
8523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8526 {
8527 PyThreadState* __tstate = wxPyBeginAllowThreads();
8528 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8529
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 resultobj = SWIG_From_int((int)result);
8534 return resultobj;
8535 fail:
8536 return NULL;
8537 }
8538
8539
8540 static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) {
8541 PyObject *resultobj;
8542 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8543 bool result;
8544 PyObject * obj0 = 0 ;
8545 char *kwnames[] = {
8546 (char *) "self", NULL
8547 };
8548
8549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8552 {
8553 PyThreadState* __tstate = wxPyBeginAllowThreads();
8554 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8555
8556 wxPyEndAllowThreads(__tstate);
8557 if (PyErr_Occurred()) SWIG_fail;
8558 }
8559 {
8560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8561 }
8562 return resultobj;
8563 fail:
8564 return NULL;
8565 }
8566
8567
8568 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
8569 PyObject *resultobj;
8570 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8571 bool result;
8572 PyObject * obj0 = 0 ;
8573 char *kwnames[] = {
8574 (char *) "self", NULL
8575 };
8576
8577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8580 {
8581 PyThreadState* __tstate = wxPyBeginAllowThreads();
8582 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8583
8584 wxPyEndAllowThreads(__tstate);
8585 if (PyErr_Occurred()) SWIG_fail;
8586 }
8587 {
8588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8589 }
8590 return resultobj;
8591 fail:
8592 return NULL;
8593 }
8594
8595
8596 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) {
8597 PyObject *resultobj;
8598 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8599 bool result;
8600 PyObject * obj0 = 0 ;
8601 char *kwnames[] = {
8602 (char *) "self", NULL
8603 };
8604
8605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8608 {
8609 PyThreadState* __tstate = wxPyBeginAllowThreads();
8610 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8611
8612 wxPyEndAllowThreads(__tstate);
8613 if (PyErr_Occurred()) SWIG_fail;
8614 }
8615 {
8616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8617 }
8618 return resultobj;
8619 fail:
8620 return NULL;
8621 }
8622
8623
8624 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) {
8625 PyObject *resultobj;
8626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8627 bool result;
8628 PyObject * obj0 = 0 ;
8629 char *kwnames[] = {
8630 (char *) "self", NULL
8631 };
8632
8633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8636 {
8637 PyThreadState* __tstate = wxPyBeginAllowThreads();
8638 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8639
8640 wxPyEndAllowThreads(__tstate);
8641 if (PyErr_Occurred()) SWIG_fail;
8642 }
8643 {
8644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8645 }
8646 return resultobj;
8647 fail:
8648 return NULL;
8649 }
8650
8651
8652 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8653 PyObject *resultobj;
8654 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8655 long *arg2 = (long *) 0 ;
8656 long *arg3 = (long *) 0 ;
8657 long temp2 ;
8658 int res2 = 0 ;
8659 long temp3 ;
8660 int res3 = 0 ;
8661 PyObject * obj0 = 0 ;
8662 char *kwnames[] = {
8663 (char *) "self", NULL
8664 };
8665
8666 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8667 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8671 {
8672 PyThreadState* __tstate = wxPyBeginAllowThreads();
8673 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8674
8675 wxPyEndAllowThreads(__tstate);
8676 if (PyErr_Occurred()) SWIG_fail;
8677 }
8678 Py_INCREF(Py_None); resultobj = Py_None;
8679 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8680 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
8681 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8682 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
8683 return resultobj;
8684 fail:
8685 return NULL;
8686 }
8687
8688
8689 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8690 PyObject *resultobj;
8691 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8692 wxString result;
8693 PyObject * obj0 = 0 ;
8694 char *kwnames[] = {
8695 (char *) "self", NULL
8696 };
8697
8698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8701 {
8702 PyThreadState* __tstate = wxPyBeginAllowThreads();
8703 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8704
8705 wxPyEndAllowThreads(__tstate);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 {
8709 #if wxUSE_UNICODE
8710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8711 #else
8712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8713 #endif
8714 }
8715 return resultobj;
8716 fail:
8717 return NULL;
8718 }
8719
8720
8721 static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
8722 PyObject *resultobj;
8723 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8724 PyObject * obj0 = 0 ;
8725 char *kwnames[] = {
8726 (char *) "self", NULL
8727 };
8728
8729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8732 {
8733 PyThreadState* __tstate = wxPyBeginAllowThreads();
8734 (arg1)->Clear();
8735
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 Py_INCREF(Py_None); resultobj = Py_None;
8740 return resultobj;
8741 fail:
8742 return NULL;
8743 }
8744
8745
8746 static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
8747 PyObject *resultobj;
8748 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8749 long arg2 ;
8750 long arg3 ;
8751 wxString *arg4 = 0 ;
8752 bool temp4 = False ;
8753 PyObject * obj0 = 0 ;
8754 PyObject * obj1 = 0 ;
8755 PyObject * obj2 = 0 ;
8756 PyObject * obj3 = 0 ;
8757 char *kwnames[] = {
8758 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8759 };
8760
8761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8764 arg2 = (long)SWIG_As_long(obj1);
8765 if (PyErr_Occurred()) SWIG_fail;
8766 arg3 = (long)SWIG_As_long(obj2);
8767 if (PyErr_Occurred()) SWIG_fail;
8768 {
8769 arg4 = wxString_in_helper(obj3);
8770 if (arg4 == NULL) SWIG_fail;
8771 temp4 = True;
8772 }
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8776
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 Py_INCREF(Py_None); resultobj = Py_None;
8781 {
8782 if (temp4)
8783 delete arg4;
8784 }
8785 return resultobj;
8786 fail:
8787 {
8788 if (temp4)
8789 delete arg4;
8790 }
8791 return NULL;
8792 }
8793
8794
8795 static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
8796 PyObject *resultobj;
8797 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8798 long arg2 ;
8799 long arg3 ;
8800 PyObject * obj0 = 0 ;
8801 PyObject * obj1 = 0 ;
8802 PyObject * obj2 = 0 ;
8803 char *kwnames[] = {
8804 (char *) "self",(char *) "from",(char *) "to", NULL
8805 };
8806
8807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8810 arg2 = (long)SWIG_As_long(obj1);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 arg3 = (long)SWIG_As_long(obj2);
8813 if (PyErr_Occurred()) SWIG_fail;
8814 {
8815 PyThreadState* __tstate = wxPyBeginAllowThreads();
8816 (arg1)->Remove(arg2,arg3);
8817
8818 wxPyEndAllowThreads(__tstate);
8819 if (PyErr_Occurred()) SWIG_fail;
8820 }
8821 Py_INCREF(Py_None); resultobj = Py_None;
8822 return resultobj;
8823 fail:
8824 return NULL;
8825 }
8826
8827
8828 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
8829 PyObject *resultobj;
8830 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8831 wxString *arg2 = 0 ;
8832 bool result;
8833 bool temp2 = False ;
8834 PyObject * obj0 = 0 ;
8835 PyObject * obj1 = 0 ;
8836 char *kwnames[] = {
8837 (char *) "self",(char *) "file", NULL
8838 };
8839
8840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8843 {
8844 arg2 = wxString_in_helper(obj1);
8845 if (arg2 == NULL) SWIG_fail;
8846 temp2 = True;
8847 }
8848 {
8849 PyThreadState* __tstate = wxPyBeginAllowThreads();
8850 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8851
8852 wxPyEndAllowThreads(__tstate);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
8855 {
8856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8857 }
8858 {
8859 if (temp2)
8860 delete arg2;
8861 }
8862 return resultobj;
8863 fail:
8864 {
8865 if (temp2)
8866 delete arg2;
8867 }
8868 return NULL;
8869 }
8870
8871
8872 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
8873 PyObject *resultobj;
8874 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8875 wxString const &arg2_defvalue = wxPyEmptyString ;
8876 wxString *arg2 = (wxString *) &arg2_defvalue ;
8877 bool result;
8878 bool temp2 = False ;
8879 PyObject * obj0 = 0 ;
8880 PyObject * obj1 = 0 ;
8881 char *kwnames[] = {
8882 (char *) "self",(char *) "file", NULL
8883 };
8884
8885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8888 if (obj1) {
8889 {
8890 arg2 = wxString_in_helper(obj1);
8891 if (arg2 == NULL) SWIG_fail;
8892 temp2 = True;
8893 }
8894 }
8895 {
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8898
8899 wxPyEndAllowThreads(__tstate);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 }
8902 {
8903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8904 }
8905 {
8906 if (temp2)
8907 delete arg2;
8908 }
8909 return resultobj;
8910 fail:
8911 {
8912 if (temp2)
8913 delete arg2;
8914 }
8915 return NULL;
8916 }
8917
8918
8919 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) {
8920 PyObject *resultobj;
8921 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8922 PyObject * obj0 = 0 ;
8923 char *kwnames[] = {
8924 (char *) "self", NULL
8925 };
8926
8927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8930 {
8931 PyThreadState* __tstate = wxPyBeginAllowThreads();
8932 (arg1)->MarkDirty();
8933
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 Py_INCREF(Py_None); resultobj = Py_None;
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj;
8946 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8947 PyObject * obj0 = 0 ;
8948 char *kwnames[] = {
8949 (char *) "self", NULL
8950 };
8951
8952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8955 {
8956 PyThreadState* __tstate = wxPyBeginAllowThreads();
8957 (arg1)->DiscardEdits();
8958
8959 wxPyEndAllowThreads(__tstate);
8960 if (PyErr_Occurred()) SWIG_fail;
8961 }
8962 Py_INCREF(Py_None); resultobj = Py_None;
8963 return resultobj;
8964 fail:
8965 return NULL;
8966 }
8967
8968
8969 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) {
8970 PyObject *resultobj;
8971 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8972 unsigned long arg2 ;
8973 PyObject * obj0 = 0 ;
8974 PyObject * obj1 = 0 ;
8975 char *kwnames[] = {
8976 (char *) "self",(char *) "len", NULL
8977 };
8978
8979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8982 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 {
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 (arg1)->SetMaxLength(arg2);
8987
8988 wxPyEndAllowThreads(__tstate);
8989 if (PyErr_Occurred()) SWIG_fail;
8990 }
8991 Py_INCREF(Py_None); resultobj = Py_None;
8992 return resultobj;
8993 fail:
8994 return NULL;
8995 }
8996
8997
8998 static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) {
8999 PyObject *resultobj;
9000 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9001 wxString *arg2 = 0 ;
9002 bool temp2 = False ;
9003 PyObject * obj0 = 0 ;
9004 PyObject * obj1 = 0 ;
9005 char *kwnames[] = {
9006 (char *) "self",(char *) "text", NULL
9007 };
9008
9009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
9010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9012 {
9013 arg2 = wxString_in_helper(obj1);
9014 if (arg2 == NULL) SWIG_fail;
9015 temp2 = True;
9016 }
9017 {
9018 PyThreadState* __tstate = wxPyBeginAllowThreads();
9019 (arg1)->WriteText((wxString const &)*arg2);
9020
9021 wxPyEndAllowThreads(__tstate);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 }
9024 Py_INCREF(Py_None); resultobj = Py_None;
9025 {
9026 if (temp2)
9027 delete arg2;
9028 }
9029 return resultobj;
9030 fail:
9031 {
9032 if (temp2)
9033 delete arg2;
9034 }
9035 return NULL;
9036 }
9037
9038
9039 static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) {
9040 PyObject *resultobj;
9041 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9042 wxString *arg2 = 0 ;
9043 bool temp2 = False ;
9044 PyObject * obj0 = 0 ;
9045 PyObject * obj1 = 0 ;
9046 char *kwnames[] = {
9047 (char *) "self",(char *) "text", NULL
9048 };
9049
9050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
9051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9053 {
9054 arg2 = wxString_in_helper(obj1);
9055 if (arg2 == NULL) SWIG_fail;
9056 temp2 = True;
9057 }
9058 {
9059 PyThreadState* __tstate = wxPyBeginAllowThreads();
9060 (arg1)->AppendText((wxString const &)*arg2);
9061
9062 wxPyEndAllowThreads(__tstate);
9063 if (PyErr_Occurred()) SWIG_fail;
9064 }
9065 Py_INCREF(Py_None); resultobj = Py_None;
9066 {
9067 if (temp2)
9068 delete arg2;
9069 }
9070 return resultobj;
9071 fail:
9072 {
9073 if (temp2)
9074 delete arg2;
9075 }
9076 return NULL;
9077 }
9078
9079
9080 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) {
9081 PyObject *resultobj;
9082 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9083 wxKeyEvent *arg2 = 0 ;
9084 bool result;
9085 PyObject * obj0 = 0 ;
9086 PyObject * obj1 = 0 ;
9087 char *kwnames[] = {
9088 (char *) "self",(char *) "event", NULL
9089 };
9090
9091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
9092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9094 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
9095 SWIG_POINTER_EXCEPTION | 0)) == -1)
9096 SWIG_fail;
9097 if (arg2 == NULL) {
9098 PyErr_SetString(PyExc_TypeError,"null reference");
9099 SWIG_fail;
9100 }
9101 {
9102 PyThreadState* __tstate = wxPyBeginAllowThreads();
9103 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
9104
9105 wxPyEndAllowThreads(__tstate);
9106 if (PyErr_Occurred()) SWIG_fail;
9107 }
9108 {
9109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9110 }
9111 return resultobj;
9112 fail:
9113 return NULL;
9114 }
9115
9116
9117 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9118 PyObject *resultobj;
9119 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9120 long arg2 ;
9121 long arg3 ;
9122 wxTextAttr *arg4 = 0 ;
9123 bool result;
9124 PyObject * obj0 = 0 ;
9125 PyObject * obj1 = 0 ;
9126 PyObject * obj2 = 0 ;
9127 PyObject * obj3 = 0 ;
9128 char *kwnames[] = {
9129 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
9130 };
9131
9132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9135 arg2 = (long)SWIG_As_long(obj1);
9136 if (PyErr_Occurred()) SWIG_fail;
9137 arg3 = (long)SWIG_As_long(obj2);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
9140 SWIG_POINTER_EXCEPTION | 0)) == -1)
9141 SWIG_fail;
9142 if (arg4 == NULL) {
9143 PyErr_SetString(PyExc_TypeError,"null reference");
9144 SWIG_fail;
9145 }
9146 {
9147 PyThreadState* __tstate = wxPyBeginAllowThreads();
9148 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
9149
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 {
9154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9155 }
9156 return resultobj;
9157 fail:
9158 return NULL;
9159 }
9160
9161
9162 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9163 PyObject *resultobj;
9164 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9165 long arg2 ;
9166 wxTextAttr *arg3 = 0 ;
9167 bool result;
9168 PyObject * obj0 = 0 ;
9169 PyObject * obj1 = 0 ;
9170 PyObject * obj2 = 0 ;
9171 char *kwnames[] = {
9172 (char *) "self",(char *) "position",(char *) "style", NULL
9173 };
9174
9175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9178 arg2 = (long)SWIG_As_long(obj1);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9181 SWIG_POINTER_EXCEPTION | 0)) == -1)
9182 SWIG_fail;
9183 if (arg3 == NULL) {
9184 PyErr_SetString(PyExc_TypeError,"null reference");
9185 SWIG_fail;
9186 }
9187 {
9188 PyThreadState* __tstate = wxPyBeginAllowThreads();
9189 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9190
9191 wxPyEndAllowThreads(__tstate);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 }
9194 {
9195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9196 }
9197 return resultobj;
9198 fail:
9199 return NULL;
9200 }
9201
9202
9203 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9204 PyObject *resultobj;
9205 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9206 wxTextAttr *arg2 = 0 ;
9207 bool result;
9208 PyObject * obj0 = 0 ;
9209 PyObject * obj1 = 0 ;
9210 char *kwnames[] = {
9211 (char *) "self",(char *) "style", NULL
9212 };
9213
9214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9217 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9218 SWIG_POINTER_EXCEPTION | 0)) == -1)
9219 SWIG_fail;
9220 if (arg2 == NULL) {
9221 PyErr_SetString(PyExc_TypeError,"null reference");
9222 SWIG_fail;
9223 }
9224 {
9225 PyThreadState* __tstate = wxPyBeginAllowThreads();
9226 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9227
9228 wxPyEndAllowThreads(__tstate);
9229 if (PyErr_Occurred()) SWIG_fail;
9230 }
9231 {
9232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9233 }
9234 return resultobj;
9235 fail:
9236 return NULL;
9237 }
9238
9239
9240 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9241 PyObject *resultobj;
9242 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9243 wxTextAttr *result;
9244 PyObject * obj0 = 0 ;
9245 char *kwnames[] = {
9246 (char *) "self", NULL
9247 };
9248
9249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9252 {
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 {
9255 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9256 result = (wxTextAttr *) &_result_ref;
9257 }
9258
9259 wxPyEndAllowThreads(__tstate);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 }
9262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9263 return resultobj;
9264 fail:
9265 return NULL;
9266 }
9267
9268
9269 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9270 PyObject *resultobj;
9271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9272 long arg2 ;
9273 long arg3 ;
9274 long result;
9275 PyObject * obj0 = 0 ;
9276 PyObject * obj1 = 0 ;
9277 PyObject * obj2 = 0 ;
9278 char *kwnames[] = {
9279 (char *) "self",(char *) "x",(char *) "y", NULL
9280 };
9281
9282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9285 arg2 = (long)SWIG_As_long(obj1);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 arg3 = (long)SWIG_As_long(obj2);
9288 if (PyErr_Occurred()) SWIG_fail;
9289 {
9290 PyThreadState* __tstate = wxPyBeginAllowThreads();
9291 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9292
9293 wxPyEndAllowThreads(__tstate);
9294 if (PyErr_Occurred()) SWIG_fail;
9295 }
9296 resultobj = SWIG_From_long((long)result);
9297 return resultobj;
9298 fail:
9299 return NULL;
9300 }
9301
9302
9303 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) {
9304 PyObject *resultobj;
9305 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9306 long arg2 ;
9307 long *arg3 = (long *) 0 ;
9308 long *arg4 = (long *) 0 ;
9309 long temp3 ;
9310 int res3 = 0 ;
9311 long temp4 ;
9312 int res4 = 0 ;
9313 PyObject * obj0 = 0 ;
9314 PyObject * obj1 = 0 ;
9315 char *kwnames[] = {
9316 (char *) "self",(char *) "pos", NULL
9317 };
9318
9319 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9320 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9324 arg2 = (long)SWIG_As_long(obj1);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9329
9330 wxPyEndAllowThreads(__tstate);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 }
9333 Py_INCREF(Py_None); resultobj = Py_None;
9334 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9335 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9336 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9337 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9338 return resultobj;
9339 fail:
9340 return NULL;
9341 }
9342
9343
9344 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9345 PyObject *resultobj;
9346 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9347 long arg2 ;
9348 PyObject * obj0 = 0 ;
9349 PyObject * obj1 = 0 ;
9350 char *kwnames[] = {
9351 (char *) "self",(char *) "pos", NULL
9352 };
9353
9354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9357 arg2 = (long)SWIG_As_long(obj1);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 (arg1)->ShowPosition(arg2);
9362
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 Py_INCREF(Py_None); resultobj = Py_None;
9367 return resultobj;
9368 fail:
9369 return NULL;
9370 }
9371
9372
9373 static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
9374 PyObject *resultobj;
9375 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9376 wxPoint *arg2 = 0 ;
9377 long *arg3 = (long *) 0 ;
9378 long *arg4 = (long *) 0 ;
9379 int result;
9380 wxPoint temp2 ;
9381 long temp3 ;
9382 int res3 = 0 ;
9383 long temp4 ;
9384 int res4 = 0 ;
9385 PyObject * obj0 = 0 ;
9386 PyObject * obj1 = 0 ;
9387 char *kwnames[] = {
9388 (char *) "self",(char *) "pt", NULL
9389 };
9390
9391 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9392 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9396 {
9397 arg2 = &temp2;
9398 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9399 }
9400 {
9401 PyThreadState* __tstate = wxPyBeginAllowThreads();
9402 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9403
9404 wxPyEndAllowThreads(__tstate);
9405 if (PyErr_Occurred()) SWIG_fail;
9406 }
9407 resultobj = SWIG_From_int((int)result);
9408 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9409 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9410 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9411 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9412 return resultobj;
9413 fail:
9414 return NULL;
9415 }
9416
9417
9418 static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) {
9419 PyObject *resultobj;
9420 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9421 wxPoint *arg2 = 0 ;
9422 long *arg3 = (long *) 0 ;
9423 int result;
9424 wxPoint temp2 ;
9425 long temp3 ;
9426 int res3 = 0 ;
9427 PyObject * obj0 = 0 ;
9428 PyObject * obj1 = 0 ;
9429 char *kwnames[] = {
9430 (char *) "self",(char *) "pt", NULL
9431 };
9432
9433 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail;
9435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9437 {
9438 arg2 = &temp2;
9439 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9440 }
9441 {
9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
9443 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
9444
9445 wxPyEndAllowThreads(__tstate);
9446 if (PyErr_Occurred()) SWIG_fail;
9447 }
9448 resultobj = SWIG_From_int((int)result);
9449 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9450 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9451 return resultobj;
9452 fail:
9453 return NULL;
9454 }
9455
9456
9457 static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj;
9459 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9460 PyObject * obj0 = 0 ;
9461 char *kwnames[] = {
9462 (char *) "self", NULL
9463 };
9464
9465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9468 {
9469 PyThreadState* __tstate = wxPyBeginAllowThreads();
9470 (arg1)->Copy();
9471
9472 wxPyEndAllowThreads(__tstate);
9473 if (PyErr_Occurred()) SWIG_fail;
9474 }
9475 Py_INCREF(Py_None); resultobj = Py_None;
9476 return resultobj;
9477 fail:
9478 return NULL;
9479 }
9480
9481
9482 static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
9483 PyObject *resultobj;
9484 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9485 PyObject * obj0 = 0 ;
9486 char *kwnames[] = {
9487 (char *) "self", NULL
9488 };
9489
9490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9493 {
9494 PyThreadState* __tstate = wxPyBeginAllowThreads();
9495 (arg1)->Cut();
9496
9497 wxPyEndAllowThreads(__tstate);
9498 if (PyErr_Occurred()) SWIG_fail;
9499 }
9500 Py_INCREF(Py_None); resultobj = Py_None;
9501 return resultobj;
9502 fail:
9503 return NULL;
9504 }
9505
9506
9507 static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
9508 PyObject *resultobj;
9509 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9510 PyObject * obj0 = 0 ;
9511 char *kwnames[] = {
9512 (char *) "self", NULL
9513 };
9514
9515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9518 {
9519 PyThreadState* __tstate = wxPyBeginAllowThreads();
9520 (arg1)->Paste();
9521
9522 wxPyEndAllowThreads(__tstate);
9523 if (PyErr_Occurred()) SWIG_fail;
9524 }
9525 Py_INCREF(Py_None); resultobj = Py_None;
9526 return resultobj;
9527 fail:
9528 return NULL;
9529 }
9530
9531
9532 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
9533 PyObject *resultobj;
9534 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9535 bool result;
9536 PyObject * obj0 = 0 ;
9537 char *kwnames[] = {
9538 (char *) "self", NULL
9539 };
9540
9541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9544 {
9545 PyThreadState* __tstate = wxPyBeginAllowThreads();
9546 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9547
9548 wxPyEndAllowThreads(__tstate);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 {
9552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9553 }
9554 return resultobj;
9555 fail:
9556 return NULL;
9557 }
9558
9559
9560 static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
9561 PyObject *resultobj;
9562 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9563 bool result;
9564 PyObject * obj0 = 0 ;
9565 char *kwnames[] = {
9566 (char *) "self", NULL
9567 };
9568
9569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9572 {
9573 PyThreadState* __tstate = wxPyBeginAllowThreads();
9574 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9575
9576 wxPyEndAllowThreads(__tstate);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 }
9579 {
9580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9581 }
9582 return resultobj;
9583 fail:
9584 return NULL;
9585 }
9586
9587
9588 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
9589 PyObject *resultobj;
9590 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9591 bool result;
9592 PyObject * obj0 = 0 ;
9593 char *kwnames[] = {
9594 (char *) "self", NULL
9595 };
9596
9597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9600 {
9601 PyThreadState* __tstate = wxPyBeginAllowThreads();
9602 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9603
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 {
9608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9609 }
9610 return resultobj;
9611 fail:
9612 return NULL;
9613 }
9614
9615
9616 static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
9617 PyObject *resultobj;
9618 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9619 PyObject * obj0 = 0 ;
9620 char *kwnames[] = {
9621 (char *) "self", NULL
9622 };
9623
9624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9627 {
9628 PyThreadState* __tstate = wxPyBeginAllowThreads();
9629 (arg1)->Undo();
9630
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 Py_INCREF(Py_None); resultobj = Py_None;
9635 return resultobj;
9636 fail:
9637 return NULL;
9638 }
9639
9640
9641 static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj;
9643 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9644 PyObject * obj0 = 0 ;
9645 char *kwnames[] = {
9646 (char *) "self", NULL
9647 };
9648
9649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9652 {
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 (arg1)->Redo();
9655
9656 wxPyEndAllowThreads(__tstate);
9657 if (PyErr_Occurred()) SWIG_fail;
9658 }
9659 Py_INCREF(Py_None); resultobj = Py_None;
9660 return resultobj;
9661 fail:
9662 return NULL;
9663 }
9664
9665
9666 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
9667 PyObject *resultobj;
9668 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9669 bool result;
9670 PyObject * obj0 = 0 ;
9671 char *kwnames[] = {
9672 (char *) "self", NULL
9673 };
9674
9675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9678 {
9679 PyThreadState* __tstate = wxPyBeginAllowThreads();
9680 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9681
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 {
9686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9687 }
9688 return resultobj;
9689 fail:
9690 return NULL;
9691 }
9692
9693
9694 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
9695 PyObject *resultobj;
9696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9697 bool result;
9698 PyObject * obj0 = 0 ;
9699 char *kwnames[] = {
9700 (char *) "self", NULL
9701 };
9702
9703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9709
9710 wxPyEndAllowThreads(__tstate);
9711 if (PyErr_Occurred()) SWIG_fail;
9712 }
9713 {
9714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9715 }
9716 return resultobj;
9717 fail:
9718 return NULL;
9719 }
9720
9721
9722 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9723 PyObject *resultobj;
9724 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9725 long arg2 ;
9726 PyObject * obj0 = 0 ;
9727 PyObject * obj1 = 0 ;
9728 char *kwnames[] = {
9729 (char *) "self",(char *) "pos", NULL
9730 };
9731
9732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9735 arg2 = (long)SWIG_As_long(obj1);
9736 if (PyErr_Occurred()) SWIG_fail;
9737 {
9738 PyThreadState* __tstate = wxPyBeginAllowThreads();
9739 (arg1)->SetInsertionPoint(arg2);
9740
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 Py_INCREF(Py_None); resultobj = Py_None;
9745 return resultobj;
9746 fail:
9747 return NULL;
9748 }
9749
9750
9751 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
9752 PyObject *resultobj;
9753 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9754 PyObject * obj0 = 0 ;
9755 char *kwnames[] = {
9756 (char *) "self", NULL
9757 };
9758
9759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 (arg1)->SetInsertionPointEnd();
9765
9766 wxPyEndAllowThreads(__tstate);
9767 if (PyErr_Occurred()) SWIG_fail;
9768 }
9769 Py_INCREF(Py_None); resultobj = Py_None;
9770 return resultobj;
9771 fail:
9772 return NULL;
9773 }
9774
9775
9776 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9777 PyObject *resultobj;
9778 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9779 long result;
9780 PyObject * obj0 = 0 ;
9781 char *kwnames[] = {
9782 (char *) "self", NULL
9783 };
9784
9785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9788 {
9789 PyThreadState* __tstate = wxPyBeginAllowThreads();
9790 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9791
9792 wxPyEndAllowThreads(__tstate);
9793 if (PyErr_Occurred()) SWIG_fail;
9794 }
9795 resultobj = SWIG_From_long((long)result);
9796 return resultobj;
9797 fail:
9798 return NULL;
9799 }
9800
9801
9802 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj;
9804 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9805 long result;
9806 PyObject * obj0 = 0 ;
9807 char *kwnames[] = {
9808 (char *) "self", NULL
9809 };
9810
9811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9814 {
9815 PyThreadState* __tstate = wxPyBeginAllowThreads();
9816 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9817
9818 wxPyEndAllowThreads(__tstate);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 }
9821 resultobj = SWIG_From_long((long)result);
9822 return resultobj;
9823 fail:
9824 return NULL;
9825 }
9826
9827
9828 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
9829 PyObject *resultobj;
9830 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9831 long arg2 ;
9832 long arg3 ;
9833 PyObject * obj0 = 0 ;
9834 PyObject * obj1 = 0 ;
9835 PyObject * obj2 = 0 ;
9836 char *kwnames[] = {
9837 (char *) "self",(char *) "from",(char *) "to", NULL
9838 };
9839
9840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9843 arg2 = (long)SWIG_As_long(obj1);
9844 if (PyErr_Occurred()) SWIG_fail;
9845 arg3 = (long)SWIG_As_long(obj2);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 (arg1)->SetSelection(arg2,arg3);
9850
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 Py_INCREF(Py_None); resultobj = Py_None;
9855 return resultobj;
9856 fail:
9857 return NULL;
9858 }
9859
9860
9861 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
9862 PyObject *resultobj;
9863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9864 PyObject * obj0 = 0 ;
9865 char *kwnames[] = {
9866 (char *) "self", NULL
9867 };
9868
9869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9872 {
9873 PyThreadState* __tstate = wxPyBeginAllowThreads();
9874 (arg1)->SelectAll();
9875
9876 wxPyEndAllowThreads(__tstate);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
9879 Py_INCREF(Py_None); resultobj = Py_None;
9880 return resultobj;
9881 fail:
9882 return NULL;
9883 }
9884
9885
9886 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
9887 PyObject *resultobj;
9888 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9889 bool arg2 ;
9890 PyObject * obj0 = 0 ;
9891 PyObject * obj1 = 0 ;
9892 char *kwnames[] = {
9893 (char *) "self",(char *) "editable", NULL
9894 };
9895
9896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9899 arg2 = (bool)SWIG_As_bool(obj1);
9900 if (PyErr_Occurred()) SWIG_fail;
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 (arg1)->SetEditable(arg2);
9904
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 Py_INCREF(Py_None); resultobj = Py_None;
9909 return resultobj;
9910 fail:
9911 return NULL;
9912 }
9913
9914
9915 static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) {
9916 PyObject *resultobj;
9917 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9918 bool arg2 = (bool) True ;
9919 bool result;
9920 PyObject * obj0 = 0 ;
9921 PyObject * obj1 = 0 ;
9922 char *kwnames[] = {
9923 (char *) "self",(char *) "show", NULL
9924 };
9925
9926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail;
9927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9929 if (obj1) {
9930 arg2 = (bool)SWIG_As_bool(obj1);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 {
9934 PyThreadState* __tstate = wxPyBeginAllowThreads();
9935 result = (bool)(arg1)->ShowNativeCaret(arg2);
9936
9937 wxPyEndAllowThreads(__tstate);
9938 if (PyErr_Occurred()) SWIG_fail;
9939 }
9940 {
9941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9942 }
9943 return resultobj;
9944 fail:
9945 return NULL;
9946 }
9947
9948
9949 static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) {
9950 PyObject *resultobj;
9951 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9952 bool result;
9953 PyObject * obj0 = 0 ;
9954 char *kwnames[] = {
9955 (char *) "self", NULL
9956 };
9957
9958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail;
9959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 result = (bool)(arg1)->HideNativeCaret();
9964
9965 wxPyEndAllowThreads(__tstate);
9966 if (PyErr_Occurred()) SWIG_fail;
9967 }
9968 {
9969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9970 }
9971 return resultobj;
9972 fail:
9973 return NULL;
9974 }
9975
9976
9977 static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) {
9978 PyObject *resultobj;
9979 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9980 wxString *arg2 = 0 ;
9981 bool temp2 = False ;
9982 PyObject * obj0 = 0 ;
9983 PyObject * obj1 = 0 ;
9984 char *kwnames[] = {
9985 (char *) "self",(char *) "text", NULL
9986 };
9987
9988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9991 {
9992 arg2 = wxString_in_helper(obj1);
9993 if (arg2 == NULL) SWIG_fail;
9994 temp2 = True;
9995 }
9996 {
9997 PyThreadState* __tstate = wxPyBeginAllowThreads();
9998 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9999
10000 wxPyEndAllowThreads(__tstate);
10001 if (PyErr_Occurred()) SWIG_fail;
10002 }
10003 Py_INCREF(Py_None); resultobj = Py_None;
10004 {
10005 if (temp2)
10006 delete arg2;
10007 }
10008 return resultobj;
10009 fail:
10010 {
10011 if (temp2)
10012 delete arg2;
10013 }
10014 return NULL;
10015 }
10016
10017
10018 static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
10019 PyObject *resultobj;
10020 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10021 long arg2 ;
10022 long arg3 ;
10023 wxString result;
10024 PyObject * obj0 = 0 ;
10025 PyObject * obj1 = 0 ;
10026 PyObject * obj2 = 0 ;
10027 char *kwnames[] = {
10028 (char *) "self",(char *) "from",(char *) "to", NULL
10029 };
10030
10031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10034 arg2 = (long)SWIG_As_long(obj1);
10035 if (PyErr_Occurred()) SWIG_fail;
10036 arg3 = (long)SWIG_As_long(obj2);
10037 if (PyErr_Occurred()) SWIG_fail;
10038 {
10039 PyThreadState* __tstate = wxPyBeginAllowThreads();
10040 result = wxTextCtrl_GetString(arg1,arg2,arg3);
10041
10042 wxPyEndAllowThreads(__tstate);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 }
10045 {
10046 #if wxUSE_UNICODE
10047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10048 #else
10049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10050 #endif
10051 }
10052 return resultobj;
10053 fail:
10054 return NULL;
10055 }
10056
10057
10058 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10059 PyObject *resultobj;
10060 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10061 wxVisualAttributes result;
10062 PyObject * obj0 = 0 ;
10063 char *kwnames[] = {
10064 (char *) "variant", NULL
10065 };
10066
10067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10068 if (obj0) {
10069 arg1 = (int)SWIG_As_int(obj0);
10070 if (PyErr_Occurred()) SWIG_fail;
10071 }
10072 {
10073 if (!wxPyCheckForApp()) SWIG_fail;
10074 PyThreadState* __tstate = wxPyBeginAllowThreads();
10075 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
10076
10077 wxPyEndAllowThreads(__tstate);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 }
10080 {
10081 wxVisualAttributes * resultptr;
10082 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10083 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10084 }
10085 return resultobj;
10086 fail:
10087 return NULL;
10088 }
10089
10090
10091 static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) {
10092 PyObject *obj;
10093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10094 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
10095 Py_INCREF(obj);
10096 return Py_BuildValue((char *)"");
10097 }
10098 static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10099 PyObject *resultobj;
10100 int arg1 ;
10101 wxMouseEvent *arg2 = 0 ;
10102 long arg3 ;
10103 long arg4 ;
10104 wxTextUrlEvent *result;
10105 PyObject * obj0 = 0 ;
10106 PyObject * obj1 = 0 ;
10107 PyObject * obj2 = 0 ;
10108 PyObject * obj3 = 0 ;
10109 char *kwnames[] = {
10110 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
10111 };
10112
10113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10114 arg1 = (int)SWIG_As_int(obj0);
10115 if (PyErr_Occurred()) SWIG_fail;
10116 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
10117 SWIG_POINTER_EXCEPTION | 0)) == -1)
10118 SWIG_fail;
10119 if (arg2 == NULL) {
10120 PyErr_SetString(PyExc_TypeError,"null reference");
10121 SWIG_fail;
10122 }
10123 arg3 = (long)SWIG_As_long(obj2);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 arg4 = (long)SWIG_As_long(obj3);
10126 if (PyErr_Occurred()) SWIG_fail;
10127 {
10128 PyThreadState* __tstate = wxPyBeginAllowThreads();
10129 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
10130
10131 wxPyEndAllowThreads(__tstate);
10132 if (PyErr_Occurred()) SWIG_fail;
10133 }
10134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
10135 return resultobj;
10136 fail:
10137 return NULL;
10138 }
10139
10140
10141 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10142 PyObject *resultobj;
10143 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10144 wxMouseEvent *result;
10145 PyObject * obj0 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
10151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10153 {
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 {
10156 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
10157 result = (wxMouseEvent *) &_result_ref;
10158 }
10159
10160 wxPyEndAllowThreads(__tstate);
10161 if (PyErr_Occurred()) SWIG_fail;
10162 }
10163 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
10164 return resultobj;
10165 fail:
10166 return NULL;
10167 }
10168
10169
10170 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) {
10171 PyObject *resultobj;
10172 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10173 long result;
10174 PyObject * obj0 = 0 ;
10175 char *kwnames[] = {
10176 (char *) "self", NULL
10177 };
10178
10179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
10180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10182 {
10183 PyThreadState* __tstate = wxPyBeginAllowThreads();
10184 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
10185
10186 wxPyEndAllowThreads(__tstate);
10187 if (PyErr_Occurred()) SWIG_fail;
10188 }
10189 resultobj = SWIG_From_long((long)result);
10190 return resultobj;
10191 fail:
10192 return NULL;
10193 }
10194
10195
10196 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) {
10197 PyObject *resultobj;
10198 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10199 long result;
10200 PyObject * obj0 = 0 ;
10201 char *kwnames[] = {
10202 (char *) "self", NULL
10203 };
10204
10205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
10206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10208 {
10209 PyThreadState* __tstate = wxPyBeginAllowThreads();
10210 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
10211
10212 wxPyEndAllowThreads(__tstate);
10213 if (PyErr_Occurred()) SWIG_fail;
10214 }
10215 resultobj = SWIG_From_long((long)result);
10216 return resultobj;
10217 fail:
10218 return NULL;
10219 }
10220
10221
10222 static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) {
10223 PyObject *obj;
10224 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10225 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10226 Py_INCREF(obj);
10227 return Py_BuildValue((char *)"");
10228 }
10229 static int _wrap_ScrollBarNameStr_set(PyObject *) {
10230 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10231 return 1;
10232 }
10233
10234
10235 static PyObject *_wrap_ScrollBarNameStr_get() {
10236 PyObject *pyobj;
10237
10238 {
10239 #if wxUSE_UNICODE
10240 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10241 #else
10242 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10243 #endif
10244 }
10245 return pyobj;
10246 }
10247
10248
10249 static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10250 PyObject *resultobj;
10251 wxWindow *arg1 = (wxWindow *) 0 ;
10252 int arg2 = (int) -1 ;
10253 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10254 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10255 wxSize const &arg4_defvalue = wxDefaultSize ;
10256 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10257 long arg5 = (long) wxSB_HORIZONTAL ;
10258 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10259 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10260 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10261 wxString *arg7 = (wxString *) &arg7_defvalue ;
10262 wxScrollBar *result;
10263 wxPoint temp3 ;
10264 wxSize temp4 ;
10265 bool temp7 = False ;
10266 PyObject * obj0 = 0 ;
10267 PyObject * obj1 = 0 ;
10268 PyObject * obj2 = 0 ;
10269 PyObject * obj3 = 0 ;
10270 PyObject * obj4 = 0 ;
10271 PyObject * obj5 = 0 ;
10272 PyObject * obj6 = 0 ;
10273 char *kwnames[] = {
10274 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10275 };
10276
10277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10280 if (obj1) {
10281 arg2 = (int)SWIG_As_int(obj1);
10282 if (PyErr_Occurred()) SWIG_fail;
10283 }
10284 if (obj2) {
10285 {
10286 arg3 = &temp3;
10287 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10288 }
10289 }
10290 if (obj3) {
10291 {
10292 arg4 = &temp4;
10293 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10294 }
10295 }
10296 if (obj4) {
10297 arg5 = (long)SWIG_As_long(obj4);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 if (obj5) {
10301 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10302 SWIG_POINTER_EXCEPTION | 0)) == -1)
10303 SWIG_fail;
10304 if (arg6 == NULL) {
10305 PyErr_SetString(PyExc_TypeError,"null reference");
10306 SWIG_fail;
10307 }
10308 }
10309 if (obj6) {
10310 {
10311 arg7 = wxString_in_helper(obj6);
10312 if (arg7 == NULL) SWIG_fail;
10313 temp7 = True;
10314 }
10315 }
10316 {
10317 if (!wxPyCheckForApp()) SWIG_fail;
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10325 {
10326 if (temp7)
10327 delete arg7;
10328 }
10329 return resultobj;
10330 fail:
10331 {
10332 if (temp7)
10333 delete arg7;
10334 }
10335 return NULL;
10336 }
10337
10338
10339 static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10340 PyObject *resultobj;
10341 wxScrollBar *result;
10342 char *kwnames[] = {
10343 NULL
10344 };
10345
10346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10347 {
10348 if (!wxPyCheckForApp()) SWIG_fail;
10349 PyThreadState* __tstate = wxPyBeginAllowThreads();
10350 result = (wxScrollBar *)new wxScrollBar();
10351
10352 wxPyEndAllowThreads(__tstate);
10353 if (PyErr_Occurred()) SWIG_fail;
10354 }
10355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10356 return resultobj;
10357 fail:
10358 return NULL;
10359 }
10360
10361
10362 static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10363 PyObject *resultobj;
10364 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10365 wxWindow *arg2 = (wxWindow *) 0 ;
10366 int arg3 = (int) -1 ;
10367 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10368 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10369 wxSize const &arg5_defvalue = wxDefaultSize ;
10370 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10371 long arg6 = (long) wxSB_HORIZONTAL ;
10372 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10373 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10374 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10375 wxString *arg8 = (wxString *) &arg8_defvalue ;
10376 bool result;
10377 wxPoint temp4 ;
10378 wxSize temp5 ;
10379 bool temp8 = False ;
10380 PyObject * obj0 = 0 ;
10381 PyObject * obj1 = 0 ;
10382 PyObject * obj2 = 0 ;
10383 PyObject * obj3 = 0 ;
10384 PyObject * obj4 = 0 ;
10385 PyObject * obj5 = 0 ;
10386 PyObject * obj6 = 0 ;
10387 PyObject * obj7 = 0 ;
10388 char *kwnames[] = {
10389 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10390 };
10391
10392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10395 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10397 if (obj2) {
10398 arg3 = (int)SWIG_As_int(obj2);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 if (obj3) {
10402 {
10403 arg4 = &temp4;
10404 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10405 }
10406 }
10407 if (obj4) {
10408 {
10409 arg5 = &temp5;
10410 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10411 }
10412 }
10413 if (obj5) {
10414 arg6 = (long)SWIG_As_long(obj5);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 }
10417 if (obj6) {
10418 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10419 SWIG_POINTER_EXCEPTION | 0)) == -1)
10420 SWIG_fail;
10421 if (arg7 == NULL) {
10422 PyErr_SetString(PyExc_TypeError,"null reference");
10423 SWIG_fail;
10424 }
10425 }
10426 if (obj7) {
10427 {
10428 arg8 = wxString_in_helper(obj7);
10429 if (arg8 == NULL) SWIG_fail;
10430 temp8 = True;
10431 }
10432 }
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10436
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 {
10441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10442 }
10443 {
10444 if (temp8)
10445 delete arg8;
10446 }
10447 return resultobj;
10448 fail:
10449 {
10450 if (temp8)
10451 delete arg8;
10452 }
10453 return NULL;
10454 }
10455
10456
10457 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10458 PyObject *resultobj;
10459 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10460 int result;
10461 PyObject * obj0 = 0 ;
10462 char *kwnames[] = {
10463 (char *) "self", NULL
10464 };
10465
10466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10469 {
10470 PyThreadState* __tstate = wxPyBeginAllowThreads();
10471 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10472
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_From_int((int)result);
10477 return resultobj;
10478 fail:
10479 return NULL;
10480 }
10481
10482
10483 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) {
10484 PyObject *resultobj;
10485 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10486 int result;
10487 PyObject * obj0 = 0 ;
10488 char *kwnames[] = {
10489 (char *) "self", NULL
10490 };
10491
10492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10495 {
10496 PyThreadState* __tstate = wxPyBeginAllowThreads();
10497 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10498
10499 wxPyEndAllowThreads(__tstate);
10500 if (PyErr_Occurred()) SWIG_fail;
10501 }
10502 resultobj = SWIG_From_int((int)result);
10503 return resultobj;
10504 fail:
10505 return NULL;
10506 }
10507
10508
10509 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
10510 PyObject *resultobj;
10511 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10512 int result;
10513 PyObject * obj0 = 0 ;
10514 char *kwnames[] = {
10515 (char *) "self", NULL
10516 };
10517
10518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10521 {
10522 PyThreadState* __tstate = wxPyBeginAllowThreads();
10523 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10524
10525 wxPyEndAllowThreads(__tstate);
10526 if (PyErr_Occurred()) SWIG_fail;
10527 }
10528 resultobj = SWIG_From_int((int)result);
10529 return resultobj;
10530 fail:
10531 return NULL;
10532 }
10533
10534
10535 static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10536 PyObject *resultobj;
10537 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10538 int result;
10539 PyObject * obj0 = 0 ;
10540 char *kwnames[] = {
10541 (char *) "self", NULL
10542 };
10543
10544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10547 {
10548 PyThreadState* __tstate = wxPyBeginAllowThreads();
10549 result = (int)((wxScrollBar const *)arg1)->GetRange();
10550
10551 wxPyEndAllowThreads(__tstate);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 resultobj = SWIG_From_int((int)result);
10555 return resultobj;
10556 fail:
10557 return NULL;
10558 }
10559
10560
10561 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
10562 PyObject *resultobj;
10563 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10564 bool result;
10565 PyObject * obj0 = 0 ;
10566 char *kwnames[] = {
10567 (char *) "self", NULL
10568 };
10569
10570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10573 {
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10576
10577 wxPyEndAllowThreads(__tstate);
10578 if (PyErr_Occurred()) SWIG_fail;
10579 }
10580 {
10581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10582 }
10583 return resultobj;
10584 fail:
10585 return NULL;
10586 }
10587
10588
10589 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10590 PyObject *resultobj;
10591 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10592 int arg2 ;
10593 PyObject * obj0 = 0 ;
10594 PyObject * obj1 = 0 ;
10595 char *kwnames[] = {
10596 (char *) "self",(char *) "viewStart", NULL
10597 };
10598
10599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10602 arg2 = (int)SWIG_As_int(obj1);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 {
10605 PyThreadState* __tstate = wxPyBeginAllowThreads();
10606 (arg1)->SetThumbPosition(arg2);
10607
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 Py_INCREF(Py_None); resultobj = Py_None;
10612 return resultobj;
10613 fail:
10614 return NULL;
10615 }
10616
10617
10618 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj;
10620 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10621 int arg2 ;
10622 int arg3 ;
10623 int arg4 ;
10624 int arg5 ;
10625 bool arg6 = (bool) True ;
10626 PyObject * obj0 = 0 ;
10627 PyObject * obj1 = 0 ;
10628 PyObject * obj2 = 0 ;
10629 PyObject * obj3 = 0 ;
10630 PyObject * obj4 = 0 ;
10631 PyObject * obj5 = 0 ;
10632 char *kwnames[] = {
10633 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10634 };
10635
10636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10639 arg2 = (int)SWIG_As_int(obj1);
10640 if (PyErr_Occurred()) SWIG_fail;
10641 arg3 = (int)SWIG_As_int(obj2);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 arg4 = (int)SWIG_As_int(obj3);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 arg5 = (int)SWIG_As_int(obj4);
10646 if (PyErr_Occurred()) SWIG_fail;
10647 if (obj5) {
10648 arg6 = (bool)SWIG_As_bool(obj5);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 {
10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
10653 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10654
10655 wxPyEndAllowThreads(__tstate);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 Py_INCREF(Py_None); resultobj = Py_None;
10659 return resultobj;
10660 fail:
10661 return NULL;
10662 }
10663
10664
10665 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10666 PyObject *resultobj;
10667 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10668 wxVisualAttributes result;
10669 PyObject * obj0 = 0 ;
10670 char *kwnames[] = {
10671 (char *) "variant", NULL
10672 };
10673
10674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10675 if (obj0) {
10676 arg1 = (int)SWIG_As_int(obj0);
10677 if (PyErr_Occurred()) SWIG_fail;
10678 }
10679 {
10680 if (!wxPyCheckForApp()) SWIG_fail;
10681 PyThreadState* __tstate = wxPyBeginAllowThreads();
10682 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10683
10684 wxPyEndAllowThreads(__tstate);
10685 if (PyErr_Occurred()) SWIG_fail;
10686 }
10687 {
10688 wxVisualAttributes * resultptr;
10689 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10690 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10691 }
10692 return resultobj;
10693 fail:
10694 return NULL;
10695 }
10696
10697
10698 static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) {
10699 PyObject *obj;
10700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10701 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10702 Py_INCREF(obj);
10703 return Py_BuildValue((char *)"");
10704 }
10705 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
10706 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10707 return 1;
10708 }
10709
10710
10711 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10712 PyObject *pyobj;
10713
10714 {
10715 #if wxUSE_UNICODE
10716 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10717 #else
10718 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10719 #endif
10720 }
10721 return pyobj;
10722 }
10723
10724
10725 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
10726 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10727 return 1;
10728 }
10729
10730
10731 static PyObject *_wrap_SpinCtrlNameStr_get() {
10732 PyObject *pyobj;
10733
10734 {
10735 #if wxUSE_UNICODE
10736 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10737 #else
10738 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10739 #endif
10740 }
10741 return pyobj;
10742 }
10743
10744
10745 static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10746 PyObject *resultobj;
10747 wxWindow *arg1 = (wxWindow *) 0 ;
10748 int arg2 = (int) -1 ;
10749 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10750 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10751 wxSize const &arg4_defvalue = wxDefaultSize ;
10752 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10753 long arg5 = (long) wxSP_HORIZONTAL ;
10754 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10755 wxString *arg6 = (wxString *) &arg6_defvalue ;
10756 wxSpinButton *result;
10757 wxPoint temp3 ;
10758 wxSize temp4 ;
10759 bool temp6 = False ;
10760 PyObject * obj0 = 0 ;
10761 PyObject * obj1 = 0 ;
10762 PyObject * obj2 = 0 ;
10763 PyObject * obj3 = 0 ;
10764 PyObject * obj4 = 0 ;
10765 PyObject * obj5 = 0 ;
10766 char *kwnames[] = {
10767 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10768 };
10769
10770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10773 if (obj1) {
10774 arg2 = (int)SWIG_As_int(obj1);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 if (obj2) {
10778 {
10779 arg3 = &temp3;
10780 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10781 }
10782 }
10783 if (obj3) {
10784 {
10785 arg4 = &temp4;
10786 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10787 }
10788 }
10789 if (obj4) {
10790 arg5 = (long)SWIG_As_long(obj4);
10791 if (PyErr_Occurred()) SWIG_fail;
10792 }
10793 if (obj5) {
10794 {
10795 arg6 = wxString_in_helper(obj5);
10796 if (arg6 == NULL) SWIG_fail;
10797 temp6 = True;
10798 }
10799 }
10800 {
10801 if (!wxPyCheckForApp()) SWIG_fail;
10802 PyThreadState* __tstate = wxPyBeginAllowThreads();
10803 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10804
10805 wxPyEndAllowThreads(__tstate);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10809 {
10810 if (temp6)
10811 delete arg6;
10812 }
10813 return resultobj;
10814 fail:
10815 {
10816 if (temp6)
10817 delete arg6;
10818 }
10819 return NULL;
10820 }
10821
10822
10823 static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10824 PyObject *resultobj;
10825 wxSpinButton *result;
10826 char *kwnames[] = {
10827 NULL
10828 };
10829
10830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10831 {
10832 if (!wxPyCheckForApp()) SWIG_fail;
10833 PyThreadState* __tstate = wxPyBeginAllowThreads();
10834 result = (wxSpinButton *)new wxSpinButton();
10835
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10840 return resultobj;
10841 fail:
10842 return NULL;
10843 }
10844
10845
10846 static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10847 PyObject *resultobj;
10848 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10849 wxWindow *arg2 = (wxWindow *) 0 ;
10850 int arg3 = (int) -1 ;
10851 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10852 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10853 wxSize const &arg5_defvalue = wxDefaultSize ;
10854 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10855 long arg6 = (long) wxSP_HORIZONTAL ;
10856 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10857 wxString *arg7 = (wxString *) &arg7_defvalue ;
10858 bool result;
10859 wxPoint temp4 ;
10860 wxSize temp5 ;
10861 bool temp7 = False ;
10862 PyObject * obj0 = 0 ;
10863 PyObject * obj1 = 0 ;
10864 PyObject * obj2 = 0 ;
10865 PyObject * obj3 = 0 ;
10866 PyObject * obj4 = 0 ;
10867 PyObject * obj5 = 0 ;
10868 PyObject * obj6 = 0 ;
10869 char *kwnames[] = {
10870 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10871 };
10872
10873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10876 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10878 if (obj2) {
10879 arg3 = (int)SWIG_As_int(obj2);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 }
10882 if (obj3) {
10883 {
10884 arg4 = &temp4;
10885 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10886 }
10887 }
10888 if (obj4) {
10889 {
10890 arg5 = &temp5;
10891 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10892 }
10893 }
10894 if (obj5) {
10895 arg6 = (long)SWIG_As_long(obj5);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 if (obj6) {
10899 {
10900 arg7 = wxString_in_helper(obj6);
10901 if (arg7 == NULL) SWIG_fail;
10902 temp7 = True;
10903 }
10904 }
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10908
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 {
10913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10914 }
10915 {
10916 if (temp7)
10917 delete arg7;
10918 }
10919 return resultobj;
10920 fail:
10921 {
10922 if (temp7)
10923 delete arg7;
10924 }
10925 return NULL;
10926 }
10927
10928
10929 static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10930 PyObject *resultobj;
10931 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10932 int result;
10933 PyObject * obj0 = 0 ;
10934 char *kwnames[] = {
10935 (char *) "self", NULL
10936 };
10937
10938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10941 {
10942 PyThreadState* __tstate = wxPyBeginAllowThreads();
10943 result = (int)((wxSpinButton const *)arg1)->GetValue();
10944
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 resultobj = SWIG_From_int((int)result);
10949 return resultobj;
10950 fail:
10951 return NULL;
10952 }
10953
10954
10955 static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10956 PyObject *resultobj;
10957 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10958 int result;
10959 PyObject * obj0 = 0 ;
10960 char *kwnames[] = {
10961 (char *) "self", NULL
10962 };
10963
10964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10967 {
10968 PyThreadState* __tstate = wxPyBeginAllowThreads();
10969 result = (int)((wxSpinButton const *)arg1)->GetMin();
10970
10971 wxPyEndAllowThreads(__tstate);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 resultobj = SWIG_From_int((int)result);
10975 return resultobj;
10976 fail:
10977 return NULL;
10978 }
10979
10980
10981 static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
10982 PyObject *resultobj;
10983 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10984 int result;
10985 PyObject * obj0 = 0 ;
10986 char *kwnames[] = {
10987 (char *) "self", NULL
10988 };
10989
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 result = (int)((wxSpinButton const *)arg1)->GetMax();
10996
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 resultobj = SWIG_From_int((int)result);
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj;
11009 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11010 int arg2 ;
11011 PyObject * obj0 = 0 ;
11012 PyObject * obj1 = 0 ;
11013 char *kwnames[] = {
11014 (char *) "self",(char *) "val", NULL
11015 };
11016
11017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11020 arg2 = (int)SWIG_As_int(obj1);
11021 if (PyErr_Occurred()) SWIG_fail;
11022 {
11023 PyThreadState* __tstate = wxPyBeginAllowThreads();
11024 (arg1)->SetValue(arg2);
11025
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 Py_INCREF(Py_None); resultobj = Py_None;
11030 return resultobj;
11031 fail:
11032 return NULL;
11033 }
11034
11035
11036 static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11037 PyObject *resultobj;
11038 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11039 int arg2 ;
11040 PyObject * obj0 = 0 ;
11041 PyObject * obj1 = 0 ;
11042 char *kwnames[] = {
11043 (char *) "self",(char *) "minVal", NULL
11044 };
11045
11046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
11047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11049 arg2 = (int)SWIG_As_int(obj1);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 (arg1)->SetMin(arg2);
11054
11055 wxPyEndAllowThreads(__tstate);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 Py_INCREF(Py_None); resultobj = Py_None;
11059 return resultobj;
11060 fail:
11061 return NULL;
11062 }
11063
11064
11065 static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11066 PyObject *resultobj;
11067 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11068 int arg2 ;
11069 PyObject * obj0 = 0 ;
11070 PyObject * obj1 = 0 ;
11071 char *kwnames[] = {
11072 (char *) "self",(char *) "maxVal", NULL
11073 };
11074
11075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
11076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11078 arg2 = (int)SWIG_As_int(obj1);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 {
11081 PyThreadState* __tstate = wxPyBeginAllowThreads();
11082 (arg1)->SetMax(arg2);
11083
11084 wxPyEndAllowThreads(__tstate);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 }
11087 Py_INCREF(Py_None); resultobj = Py_None;
11088 return resultobj;
11089 fail:
11090 return NULL;
11091 }
11092
11093
11094 static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11095 PyObject *resultobj;
11096 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11097 int arg2 ;
11098 int arg3 ;
11099 PyObject * obj0 = 0 ;
11100 PyObject * obj1 = 0 ;
11101 PyObject * obj2 = 0 ;
11102 char *kwnames[] = {
11103 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11104 };
11105
11106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11109 arg2 = (int)SWIG_As_int(obj1);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 arg3 = (int)SWIG_As_int(obj2);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 (arg1)->SetRange(arg2,arg3);
11116
11117 wxPyEndAllowThreads(__tstate);
11118 if (PyErr_Occurred()) SWIG_fail;
11119 }
11120 Py_INCREF(Py_None); resultobj = Py_None;
11121 return resultobj;
11122 fail:
11123 return NULL;
11124 }
11125
11126
11127 static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj;
11129 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11130 bool result;
11131 PyObject * obj0 = 0 ;
11132 char *kwnames[] = {
11133 (char *) "self", NULL
11134 };
11135
11136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
11137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
11142
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 {
11147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11148 }
11149 return resultobj;
11150 fail:
11151 return NULL;
11152 }
11153
11154
11155 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11156 PyObject *resultobj;
11157 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11158 wxVisualAttributes result;
11159 PyObject * obj0 = 0 ;
11160 char *kwnames[] = {
11161 (char *) "variant", NULL
11162 };
11163
11164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11165 if (obj0) {
11166 arg1 = (int)SWIG_As_int(obj0);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 {
11170 if (!wxPyCheckForApp()) SWIG_fail;
11171 PyThreadState* __tstate = wxPyBeginAllowThreads();
11172 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
11173
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 {
11178 wxVisualAttributes * resultptr;
11179 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11180 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11181 }
11182 return resultobj;
11183 fail:
11184 return NULL;
11185 }
11186
11187
11188 static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) {
11189 PyObject *obj;
11190 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11191 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
11192 Py_INCREF(obj);
11193 return Py_BuildValue((char *)"");
11194 }
11195 static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11196 PyObject *resultobj;
11197 wxWindow *arg1 = (wxWindow *) 0 ;
11198 int arg2 = (int) -1 ;
11199 wxString const &arg3_defvalue = wxPyEmptyString ;
11200 wxString *arg3 = (wxString *) &arg3_defvalue ;
11201 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11202 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11203 wxSize const &arg5_defvalue = wxDefaultSize ;
11204 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11205 long arg6 = (long) wxSP_ARROW_KEYS ;
11206 int arg7 = (int) 0 ;
11207 int arg8 = (int) 100 ;
11208 int arg9 = (int) 0 ;
11209 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
11210 wxString *arg10 = (wxString *) &arg10_defvalue ;
11211 wxSpinCtrl *result;
11212 bool temp3 = False ;
11213 wxPoint temp4 ;
11214 wxSize temp5 ;
11215 bool temp10 = False ;
11216 PyObject * obj0 = 0 ;
11217 PyObject * obj1 = 0 ;
11218 PyObject * obj2 = 0 ;
11219 PyObject * obj3 = 0 ;
11220 PyObject * obj4 = 0 ;
11221 PyObject * obj5 = 0 ;
11222 PyObject * obj6 = 0 ;
11223 PyObject * obj7 = 0 ;
11224 PyObject * obj8 = 0 ;
11225 PyObject * obj9 = 0 ;
11226 char *kwnames[] = {
11227 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11228 };
11229
11230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11233 if (obj1) {
11234 arg2 = (int)SWIG_As_int(obj1);
11235 if (PyErr_Occurred()) SWIG_fail;
11236 }
11237 if (obj2) {
11238 {
11239 arg3 = wxString_in_helper(obj2);
11240 if (arg3 == NULL) SWIG_fail;
11241 temp3 = True;
11242 }
11243 }
11244 if (obj3) {
11245 {
11246 arg4 = &temp4;
11247 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11248 }
11249 }
11250 if (obj4) {
11251 {
11252 arg5 = &temp5;
11253 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11254 }
11255 }
11256 if (obj5) {
11257 arg6 = (long)SWIG_As_long(obj5);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 }
11260 if (obj6) {
11261 arg7 = (int)SWIG_As_int(obj6);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 if (obj7) {
11265 arg8 = (int)SWIG_As_int(obj7);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 if (obj8) {
11269 arg9 = (int)SWIG_As_int(obj8);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 if (obj9) {
11273 {
11274 arg10 = wxString_in_helper(obj9);
11275 if (arg10 == NULL) SWIG_fail;
11276 temp10 = True;
11277 }
11278 }
11279 {
11280 if (!wxPyCheckForApp()) SWIG_fail;
11281 PyThreadState* __tstate = wxPyBeginAllowThreads();
11282 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11283
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11288 {
11289 if (temp3)
11290 delete arg3;
11291 }
11292 {
11293 if (temp10)
11294 delete arg10;
11295 }
11296 return resultobj;
11297 fail:
11298 {
11299 if (temp3)
11300 delete arg3;
11301 }
11302 {
11303 if (temp10)
11304 delete arg10;
11305 }
11306 return NULL;
11307 }
11308
11309
11310 static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11311 PyObject *resultobj;
11312 wxSpinCtrl *result;
11313 char *kwnames[] = {
11314 NULL
11315 };
11316
11317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11318 {
11319 if (!wxPyCheckForApp()) SWIG_fail;
11320 PyThreadState* __tstate = wxPyBeginAllowThreads();
11321 result = (wxSpinCtrl *)new wxSpinCtrl();
11322
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 }
11326 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11327 return resultobj;
11328 fail:
11329 return NULL;
11330 }
11331
11332
11333 static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11334 PyObject *resultobj;
11335 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11336 wxWindow *arg2 = (wxWindow *) 0 ;
11337 int arg3 = (int) -1 ;
11338 wxString const &arg4_defvalue = wxPyEmptyString ;
11339 wxString *arg4 = (wxString *) &arg4_defvalue ;
11340 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11341 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11342 wxSize const &arg6_defvalue = wxDefaultSize ;
11343 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11344 long arg7 = (long) wxSP_ARROW_KEYS ;
11345 int arg8 = (int) 0 ;
11346 int arg9 = (int) 100 ;
11347 int arg10 = (int) 0 ;
11348 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11349 wxString *arg11 = (wxString *) &arg11_defvalue ;
11350 bool result;
11351 bool temp4 = False ;
11352 wxPoint temp5 ;
11353 wxSize temp6 ;
11354 bool temp11 = False ;
11355 PyObject * obj0 = 0 ;
11356 PyObject * obj1 = 0 ;
11357 PyObject * obj2 = 0 ;
11358 PyObject * obj3 = 0 ;
11359 PyObject * obj4 = 0 ;
11360 PyObject * obj5 = 0 ;
11361 PyObject * obj6 = 0 ;
11362 PyObject * obj7 = 0 ;
11363 PyObject * obj8 = 0 ;
11364 PyObject * obj9 = 0 ;
11365 PyObject * obj10 = 0 ;
11366 char *kwnames[] = {
11367 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11368 };
11369
11370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11373 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11375 if (obj2) {
11376 arg3 = (int)SWIG_As_int(obj2);
11377 if (PyErr_Occurred()) SWIG_fail;
11378 }
11379 if (obj3) {
11380 {
11381 arg4 = wxString_in_helper(obj3);
11382 if (arg4 == NULL) SWIG_fail;
11383 temp4 = True;
11384 }
11385 }
11386 if (obj4) {
11387 {
11388 arg5 = &temp5;
11389 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11390 }
11391 }
11392 if (obj5) {
11393 {
11394 arg6 = &temp6;
11395 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11396 }
11397 }
11398 if (obj6) {
11399 arg7 = (long)SWIG_As_long(obj6);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 if (obj7) {
11403 arg8 = (int)SWIG_As_int(obj7);
11404 if (PyErr_Occurred()) SWIG_fail;
11405 }
11406 if (obj8) {
11407 arg9 = (int)SWIG_As_int(obj8);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 if (obj9) {
11411 arg10 = (int)SWIG_As_int(obj9);
11412 if (PyErr_Occurred()) SWIG_fail;
11413 }
11414 if (obj10) {
11415 {
11416 arg11 = wxString_in_helper(obj10);
11417 if (arg11 == NULL) SWIG_fail;
11418 temp11 = True;
11419 }
11420 }
11421 {
11422 PyThreadState* __tstate = wxPyBeginAllowThreads();
11423 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11424
11425 wxPyEndAllowThreads(__tstate);
11426 if (PyErr_Occurred()) SWIG_fail;
11427 }
11428 {
11429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11430 }
11431 {
11432 if (temp4)
11433 delete arg4;
11434 }
11435 {
11436 if (temp11)
11437 delete arg11;
11438 }
11439 return resultobj;
11440 fail:
11441 {
11442 if (temp4)
11443 delete arg4;
11444 }
11445 {
11446 if (temp11)
11447 delete arg11;
11448 }
11449 return NULL;
11450 }
11451
11452
11453 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11454 PyObject *resultobj;
11455 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11456 int result;
11457 PyObject * obj0 = 0 ;
11458 char *kwnames[] = {
11459 (char *) "self", NULL
11460 };
11461
11462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11468
11469 wxPyEndAllowThreads(__tstate);
11470 if (PyErr_Occurred()) SWIG_fail;
11471 }
11472 resultobj = SWIG_From_int((int)result);
11473 return resultobj;
11474 fail:
11475 return NULL;
11476 }
11477
11478
11479 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11480 PyObject *resultobj;
11481 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11482 int arg2 ;
11483 PyObject * obj0 = 0 ;
11484 PyObject * obj1 = 0 ;
11485 char *kwnames[] = {
11486 (char *) "self",(char *) "value", NULL
11487 };
11488
11489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11492 arg2 = (int)SWIG_As_int(obj1);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 {
11495 PyThreadState* __tstate = wxPyBeginAllowThreads();
11496 (arg1)->SetValue(arg2);
11497
11498 wxPyEndAllowThreads(__tstate);
11499 if (PyErr_Occurred()) SWIG_fail;
11500 }
11501 Py_INCREF(Py_None); resultobj = Py_None;
11502 return resultobj;
11503 fail:
11504 return NULL;
11505 }
11506
11507
11508 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) {
11509 PyObject *resultobj;
11510 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11511 wxString *arg2 = 0 ;
11512 bool temp2 = False ;
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
11515 char *kwnames[] = {
11516 (char *) "self",(char *) "text", NULL
11517 };
11518
11519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11522 {
11523 arg2 = wxString_in_helper(obj1);
11524 if (arg2 == NULL) SWIG_fail;
11525 temp2 = True;
11526 }
11527 {
11528 PyThreadState* __tstate = wxPyBeginAllowThreads();
11529 (arg1)->SetValue((wxString const &)*arg2);
11530
11531 wxPyEndAllowThreads(__tstate);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 Py_INCREF(Py_None); resultobj = Py_None;
11535 {
11536 if (temp2)
11537 delete arg2;
11538 }
11539 return resultobj;
11540 fail:
11541 {
11542 if (temp2)
11543 delete arg2;
11544 }
11545 return NULL;
11546 }
11547
11548
11549 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11550 PyObject *resultobj;
11551 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11552 int arg2 ;
11553 int arg3 ;
11554 PyObject * obj0 = 0 ;
11555 PyObject * obj1 = 0 ;
11556 PyObject * obj2 = 0 ;
11557 char *kwnames[] = {
11558 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11559 };
11560
11561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11564 arg2 = (int)SWIG_As_int(obj1);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 arg3 = (int)SWIG_As_int(obj2);
11567 if (PyErr_Occurred()) SWIG_fail;
11568 {
11569 PyThreadState* __tstate = wxPyBeginAllowThreads();
11570 (arg1)->SetRange(arg2,arg3);
11571
11572 wxPyEndAllowThreads(__tstate);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 Py_INCREF(Py_None); resultobj = Py_None;
11576 return resultobj;
11577 fail:
11578 return NULL;
11579 }
11580
11581
11582 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11583 PyObject *resultobj;
11584 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11585 int result;
11586 PyObject * obj0 = 0 ;
11587 char *kwnames[] = {
11588 (char *) "self", NULL
11589 };
11590
11591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11594 {
11595 PyThreadState* __tstate = wxPyBeginAllowThreads();
11596 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11597
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 resultobj = SWIG_From_int((int)result);
11602 return resultobj;
11603 fail:
11604 return NULL;
11605 }
11606
11607
11608 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11609 PyObject *resultobj;
11610 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11611 int result;
11612 PyObject * obj0 = 0 ;
11613 char *kwnames[] = {
11614 (char *) "self", NULL
11615 };
11616
11617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11620 {
11621 PyThreadState* __tstate = wxPyBeginAllowThreads();
11622 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11623
11624 wxPyEndAllowThreads(__tstate);
11625 if (PyErr_Occurred()) SWIG_fail;
11626 }
11627 resultobj = SWIG_From_int((int)result);
11628 return resultobj;
11629 fail:
11630 return NULL;
11631 }
11632
11633
11634 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11635 PyObject *resultobj;
11636 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11637 long arg2 ;
11638 long arg3 ;
11639 PyObject * obj0 = 0 ;
11640 PyObject * obj1 = 0 ;
11641 PyObject * obj2 = 0 ;
11642 char *kwnames[] = {
11643 (char *) "self",(char *) "from",(char *) "to", NULL
11644 };
11645
11646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11649 arg2 = (long)SWIG_As_long(obj1);
11650 if (PyErr_Occurred()) SWIG_fail;
11651 arg3 = (long)SWIG_As_long(obj2);
11652 if (PyErr_Occurred()) SWIG_fail;
11653 {
11654 PyThreadState* __tstate = wxPyBeginAllowThreads();
11655 (arg1)->SetSelection(arg2,arg3);
11656
11657 wxPyEndAllowThreads(__tstate);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 }
11660 Py_INCREF(Py_None); resultobj = Py_None;
11661 return resultobj;
11662 fail:
11663 return NULL;
11664 }
11665
11666
11667 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11668 PyObject *resultobj;
11669 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11670 wxVisualAttributes result;
11671 PyObject * obj0 = 0 ;
11672 char *kwnames[] = {
11673 (char *) "variant", NULL
11674 };
11675
11676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11677 if (obj0) {
11678 arg1 = (int)SWIG_As_int(obj0);
11679 if (PyErr_Occurred()) SWIG_fail;
11680 }
11681 {
11682 if (!wxPyCheckForApp()) SWIG_fail;
11683 PyThreadState* __tstate = wxPyBeginAllowThreads();
11684 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11685
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 {
11690 wxVisualAttributes * resultptr;
11691 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11692 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11693 }
11694 return resultobj;
11695 fail:
11696 return NULL;
11697 }
11698
11699
11700 static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) {
11701 PyObject *obj;
11702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11703 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11704 Py_INCREF(obj);
11705 return Py_BuildValue((char *)"");
11706 }
11707 static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11708 PyObject *resultobj;
11709 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11710 int arg2 = (int) 0 ;
11711 wxSpinEvent *result;
11712 PyObject * obj0 = 0 ;
11713 PyObject * obj1 = 0 ;
11714 char *kwnames[] = {
11715 (char *) "commandType",(char *) "winid", NULL
11716 };
11717
11718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11719 if (obj0) {
11720 arg1 = (wxEventType)SWIG_As_int(obj0);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 }
11723 if (obj1) {
11724 arg2 = (int)SWIG_As_int(obj1);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 {
11728 PyThreadState* __tstate = wxPyBeginAllowThreads();
11729 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11730
11731 wxPyEndAllowThreads(__tstate);
11732 if (PyErr_Occurred()) SWIG_fail;
11733 }
11734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11735 return resultobj;
11736 fail:
11737 return NULL;
11738 }
11739
11740
11741 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj;
11743 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11744 int result;
11745 PyObject * obj0 = 0 ;
11746 char *kwnames[] = {
11747 (char *) "self", NULL
11748 };
11749
11750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11753 {
11754 PyThreadState* __tstate = wxPyBeginAllowThreads();
11755 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11756
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 resultobj = SWIG_From_int((int)result);
11761 return resultobj;
11762 fail:
11763 return NULL;
11764 }
11765
11766
11767 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11768 PyObject *resultobj;
11769 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11770 int arg2 ;
11771 PyObject * obj0 = 0 ;
11772 PyObject * obj1 = 0 ;
11773 char *kwnames[] = {
11774 (char *) "self",(char *) "pos", NULL
11775 };
11776
11777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11780 arg2 = (int)SWIG_As_int(obj1);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 (arg1)->SetPosition(arg2);
11785
11786 wxPyEndAllowThreads(__tstate);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 }
11789 Py_INCREF(Py_None); resultobj = Py_None;
11790 return resultobj;
11791 fail:
11792 return NULL;
11793 }
11794
11795
11796 static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) {
11797 PyObject *obj;
11798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11799 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11800 Py_INCREF(obj);
11801 return Py_BuildValue((char *)"");
11802 }
11803 static int _wrap_RadioBoxNameStr_set(PyObject *) {
11804 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11805 return 1;
11806 }
11807
11808
11809 static PyObject *_wrap_RadioBoxNameStr_get() {
11810 PyObject *pyobj;
11811
11812 {
11813 #if wxUSE_UNICODE
11814 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11815 #else
11816 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11817 #endif
11818 }
11819 return pyobj;
11820 }
11821
11822
11823 static int _wrap_RadioButtonNameStr_set(PyObject *) {
11824 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11825 return 1;
11826 }
11827
11828
11829 static PyObject *_wrap_RadioButtonNameStr_get() {
11830 PyObject *pyobj;
11831
11832 {
11833 #if wxUSE_UNICODE
11834 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11835 #else
11836 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11837 #endif
11838 }
11839 return pyobj;
11840 }
11841
11842
11843 static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11844 PyObject *resultobj;
11845 wxWindow *arg1 = (wxWindow *) 0 ;
11846 int arg2 = (int) -1 ;
11847 wxString const &arg3_defvalue = wxPyEmptyString ;
11848 wxString *arg3 = (wxString *) &arg3_defvalue ;
11849 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11850 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11851 wxSize const &arg5_defvalue = wxDefaultSize ;
11852 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11853 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11854 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11855 int arg7 = (int) 0 ;
11856 long arg8 = (long) wxRA_HORIZONTAL ;
11857 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11858 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11859 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11860 wxString *arg10 = (wxString *) &arg10_defvalue ;
11861 wxRadioBox *result;
11862 bool temp3 = False ;
11863 wxPoint temp4 ;
11864 wxSize temp5 ;
11865 bool temp6 = False ;
11866 bool temp10 = False ;
11867 PyObject * obj0 = 0 ;
11868 PyObject * obj1 = 0 ;
11869 PyObject * obj2 = 0 ;
11870 PyObject * obj3 = 0 ;
11871 PyObject * obj4 = 0 ;
11872 PyObject * obj5 = 0 ;
11873 PyObject * obj6 = 0 ;
11874 PyObject * obj7 = 0 ;
11875 PyObject * obj8 = 0 ;
11876 PyObject * obj9 = 0 ;
11877 char *kwnames[] = {
11878 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11879 };
11880
11881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11884 if (obj1) {
11885 arg2 = (int)SWIG_As_int(obj1);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 if (obj2) {
11889 {
11890 arg3 = wxString_in_helper(obj2);
11891 if (arg3 == NULL) SWIG_fail;
11892 temp3 = True;
11893 }
11894 }
11895 if (obj3) {
11896 {
11897 arg4 = &temp4;
11898 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11899 }
11900 }
11901 if (obj4) {
11902 {
11903 arg5 = &temp5;
11904 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11905 }
11906 }
11907 if (obj5) {
11908 {
11909 if (! PySequence_Check(obj5)) {
11910 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11911 SWIG_fail;
11912 }
11913 arg6 = new wxArrayString;
11914 temp6 = True;
11915 int i, len=PySequence_Length(obj5);
11916 for (i=0; i<len; i++) {
11917 PyObject* item = PySequence_GetItem(obj5, i);
11918 #if wxUSE_UNICODE
11919 PyObject* str = PyObject_Unicode(item);
11920 #else
11921 PyObject* str = PyObject_Str(item);
11922 #endif
11923 if (PyErr_Occurred()) SWIG_fail;
11924 arg6->Add(Py2wxString(str));
11925 Py_DECREF(item);
11926 Py_DECREF(str);
11927 }
11928 }
11929 }
11930 if (obj6) {
11931 arg7 = (int)SWIG_As_int(obj6);
11932 if (PyErr_Occurred()) SWIG_fail;
11933 }
11934 if (obj7) {
11935 arg8 = (long)SWIG_As_long(obj7);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 if (obj8) {
11939 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11940 SWIG_POINTER_EXCEPTION | 0)) == -1)
11941 SWIG_fail;
11942 if (arg9 == NULL) {
11943 PyErr_SetString(PyExc_TypeError,"null reference");
11944 SWIG_fail;
11945 }
11946 }
11947 if (obj9) {
11948 {
11949 arg10 = wxString_in_helper(obj9);
11950 if (arg10 == NULL) SWIG_fail;
11951 temp10 = True;
11952 }
11953 }
11954 {
11955 if (!wxPyCheckForApp()) SWIG_fail;
11956 PyThreadState* __tstate = wxPyBeginAllowThreads();
11957 result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
11958
11959 wxPyEndAllowThreads(__tstate);
11960 if (PyErr_Occurred()) SWIG_fail;
11961 }
11962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11963 {
11964 if (temp3)
11965 delete arg3;
11966 }
11967 {
11968 if (temp6) delete arg6;
11969 }
11970 {
11971 if (temp10)
11972 delete arg10;
11973 }
11974 return resultobj;
11975 fail:
11976 {
11977 if (temp3)
11978 delete arg3;
11979 }
11980 {
11981 if (temp6) delete arg6;
11982 }
11983 {
11984 if (temp10)
11985 delete arg10;
11986 }
11987 return NULL;
11988 }
11989
11990
11991 static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11992 PyObject *resultobj;
11993 wxRadioBox *result;
11994 char *kwnames[] = {
11995 NULL
11996 };
11997
11998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11999 {
12000 if (!wxPyCheckForApp()) SWIG_fail;
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 result = (wxRadioBox *)new wxRadioBox();
12003
12004 wxPyEndAllowThreads(__tstate);
12005 if (PyErr_Occurred()) SWIG_fail;
12006 }
12007 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
12008 return resultobj;
12009 fail:
12010 return NULL;
12011 }
12012
12013
12014 static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12015 PyObject *resultobj;
12016 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12017 wxWindow *arg2 = (wxWindow *) 0 ;
12018 int arg3 = (int) -1 ;
12019 wxString const &arg4_defvalue = wxPyEmptyString ;
12020 wxString *arg4 = (wxString *) &arg4_defvalue ;
12021 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12022 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12023 wxSize const &arg6_defvalue = wxDefaultSize ;
12024 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12025 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
12026 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
12027 int arg8 = (int) 0 ;
12028 long arg9 = (long) wxRA_HORIZONTAL ;
12029 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12030 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12031 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
12032 wxString *arg11 = (wxString *) &arg11_defvalue ;
12033 bool result;
12034 bool temp4 = False ;
12035 wxPoint temp5 ;
12036 wxSize temp6 ;
12037 bool temp7 = False ;
12038 bool temp11 = False ;
12039 PyObject * obj0 = 0 ;
12040 PyObject * obj1 = 0 ;
12041 PyObject * obj2 = 0 ;
12042 PyObject * obj3 = 0 ;
12043 PyObject * obj4 = 0 ;
12044 PyObject * obj5 = 0 ;
12045 PyObject * obj6 = 0 ;
12046 PyObject * obj7 = 0 ;
12047 PyObject * obj8 = 0 ;
12048 PyObject * obj9 = 0 ;
12049 PyObject * obj10 = 0 ;
12050 char *kwnames[] = {
12051 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
12052 };
12053
12054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12057 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12059 if (obj2) {
12060 arg3 = (int)SWIG_As_int(obj2);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 }
12063 if (obj3) {
12064 {
12065 arg4 = wxString_in_helper(obj3);
12066 if (arg4 == NULL) SWIG_fail;
12067 temp4 = True;
12068 }
12069 }
12070 if (obj4) {
12071 {
12072 arg5 = &temp5;
12073 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12074 }
12075 }
12076 if (obj5) {
12077 {
12078 arg6 = &temp6;
12079 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12080 }
12081 }
12082 if (obj6) {
12083 {
12084 if (! PySequence_Check(obj6)) {
12085 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12086 SWIG_fail;
12087 }
12088 arg7 = new wxArrayString;
12089 temp7 = True;
12090 int i, len=PySequence_Length(obj6);
12091 for (i=0; i<len; i++) {
12092 PyObject* item = PySequence_GetItem(obj6, i);
12093 #if wxUSE_UNICODE
12094 PyObject* str = PyObject_Unicode(item);
12095 #else
12096 PyObject* str = PyObject_Str(item);
12097 #endif
12098 if (PyErr_Occurred()) SWIG_fail;
12099 arg7->Add(Py2wxString(str));
12100 Py_DECREF(item);
12101 Py_DECREF(str);
12102 }
12103 }
12104 }
12105 if (obj7) {
12106 arg8 = (int)SWIG_As_int(obj7);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 if (obj8) {
12110 arg9 = (long)SWIG_As_long(obj8);
12111 if (PyErr_Occurred()) SWIG_fail;
12112 }
12113 if (obj9) {
12114 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12115 SWIG_POINTER_EXCEPTION | 0)) == -1)
12116 SWIG_fail;
12117 if (arg10 == NULL) {
12118 PyErr_SetString(PyExc_TypeError,"null reference");
12119 SWIG_fail;
12120 }
12121 }
12122 if (obj10) {
12123 {
12124 arg11 = wxString_in_helper(obj10);
12125 if (arg11 == NULL) SWIG_fail;
12126 temp11 = True;
12127 }
12128 }
12129 {
12130 PyThreadState* __tstate = wxPyBeginAllowThreads();
12131 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12132
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 {
12137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12138 }
12139 {
12140 if (temp4)
12141 delete arg4;
12142 }
12143 {
12144 if (temp7) delete arg7;
12145 }
12146 {
12147 if (temp11)
12148 delete arg11;
12149 }
12150 return resultobj;
12151 fail:
12152 {
12153 if (temp4)
12154 delete arg4;
12155 }
12156 {
12157 if (temp7) delete arg7;
12158 }
12159 {
12160 if (temp11)
12161 delete arg11;
12162 }
12163 return NULL;
12164 }
12165
12166
12167 static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12168 PyObject *resultobj;
12169 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12170 int arg2 ;
12171 PyObject * obj0 = 0 ;
12172 PyObject * obj1 = 0 ;
12173 char *kwnames[] = {
12174 (char *) "self",(char *) "n", NULL
12175 };
12176
12177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
12178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12180 arg2 = (int)SWIG_As_int(obj1);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 {
12183 PyThreadState* __tstate = wxPyBeginAllowThreads();
12184 (arg1)->SetSelection(arg2);
12185
12186 wxPyEndAllowThreads(__tstate);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 Py_INCREF(Py_None); resultobj = Py_None;
12190 return resultobj;
12191 fail:
12192 return NULL;
12193 }
12194
12195
12196 static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12197 PyObject *resultobj;
12198 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12199 int result;
12200 PyObject * obj0 = 0 ;
12201 char *kwnames[] = {
12202 (char *) "self", NULL
12203 };
12204
12205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
12206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12208 {
12209 PyThreadState* __tstate = wxPyBeginAllowThreads();
12210 result = (int)((wxRadioBox const *)arg1)->GetSelection();
12211
12212 wxPyEndAllowThreads(__tstate);
12213 if (PyErr_Occurred()) SWIG_fail;
12214 }
12215 resultobj = SWIG_From_int((int)result);
12216 return resultobj;
12217 fail:
12218 return NULL;
12219 }
12220
12221
12222 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12223 PyObject *resultobj;
12224 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12225 wxString result;
12226 PyObject * obj0 = 0 ;
12227 char *kwnames[] = {
12228 (char *) "self", NULL
12229 };
12230
12231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12234 {
12235 PyThreadState* __tstate = wxPyBeginAllowThreads();
12236 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12237
12238 wxPyEndAllowThreads(__tstate);
12239 if (PyErr_Occurred()) SWIG_fail;
12240 }
12241 {
12242 #if wxUSE_UNICODE
12243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12244 #else
12245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12246 #endif
12247 }
12248 return resultobj;
12249 fail:
12250 return NULL;
12251 }
12252
12253
12254 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12255 PyObject *resultobj;
12256 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12257 wxString *arg2 = 0 ;
12258 bool result;
12259 bool temp2 = False ;
12260 PyObject * obj0 = 0 ;
12261 PyObject * obj1 = 0 ;
12262 char *kwnames[] = {
12263 (char *) "self",(char *) "s", NULL
12264 };
12265
12266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12269 {
12270 arg2 = wxString_in_helper(obj1);
12271 if (arg2 == NULL) SWIG_fail;
12272 temp2 = True;
12273 }
12274 {
12275 PyThreadState* __tstate = wxPyBeginAllowThreads();
12276 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12277
12278 wxPyEndAllowThreads(__tstate);
12279 if (PyErr_Occurred()) SWIG_fail;
12280 }
12281 {
12282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12283 }
12284 {
12285 if (temp2)
12286 delete arg2;
12287 }
12288 return resultobj;
12289 fail:
12290 {
12291 if (temp2)
12292 delete arg2;
12293 }
12294 return NULL;
12295 }
12296
12297
12298 static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
12299 PyObject *resultobj;
12300 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12301 int result;
12302 PyObject * obj0 = 0 ;
12303 char *kwnames[] = {
12304 (char *) "self", NULL
12305 };
12306
12307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 result = (int)((wxRadioBox const *)arg1)->GetCount();
12313
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 resultobj = SWIG_From_int((int)result);
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
12325 PyObject *resultobj;
12326 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12327 wxString *arg2 = 0 ;
12328 int result;
12329 bool temp2 = False ;
12330 PyObject * obj0 = 0 ;
12331 PyObject * obj1 = 0 ;
12332 char *kwnames[] = {
12333 (char *) "self",(char *) "s", NULL
12334 };
12335
12336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12339 {
12340 arg2 = wxString_in_helper(obj1);
12341 if (arg2 == NULL) SWIG_fail;
12342 temp2 = True;
12343 }
12344 {
12345 PyThreadState* __tstate = wxPyBeginAllowThreads();
12346 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12347
12348 wxPyEndAllowThreads(__tstate);
12349 if (PyErr_Occurred()) SWIG_fail;
12350 }
12351 resultobj = SWIG_From_int((int)result);
12352 {
12353 if (temp2)
12354 delete arg2;
12355 }
12356 return resultobj;
12357 fail:
12358 {
12359 if (temp2)
12360 delete arg2;
12361 }
12362 return NULL;
12363 }
12364
12365
12366 static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12367 PyObject *resultobj;
12368 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12369 int arg2 ;
12370 wxString result;
12371 PyObject * obj0 = 0 ;
12372 PyObject * obj1 = 0 ;
12373 char *kwnames[] = {
12374 (char *) "self",(char *) "n", NULL
12375 };
12376
12377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12380 arg2 = (int)SWIG_As_int(obj1);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 {
12383 PyThreadState* __tstate = wxPyBeginAllowThreads();
12384 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12385
12386 wxPyEndAllowThreads(__tstate);
12387 if (PyErr_Occurred()) SWIG_fail;
12388 }
12389 {
12390 #if wxUSE_UNICODE
12391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12392 #else
12393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12394 #endif
12395 }
12396 return resultobj;
12397 fail:
12398 return NULL;
12399 }
12400
12401
12402 static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
12403 PyObject *resultobj;
12404 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12405 int arg2 ;
12406 wxString *arg3 = 0 ;
12407 bool temp3 = False ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 PyObject * obj2 = 0 ;
12411 char *kwnames[] = {
12412 (char *) "self",(char *) "n",(char *) "label", NULL
12413 };
12414
12415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12418 arg2 = (int)SWIG_As_int(obj1);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 {
12421 arg3 = wxString_in_helper(obj2);
12422 if (arg3 == NULL) SWIG_fail;
12423 temp3 = True;
12424 }
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 (arg1)->SetString(arg2,(wxString const &)*arg3);
12428
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 Py_INCREF(Py_None); resultobj = Py_None;
12433 {
12434 if (temp3)
12435 delete arg3;
12436 }
12437 return resultobj;
12438 fail:
12439 {
12440 if (temp3)
12441 delete arg3;
12442 }
12443 return NULL;
12444 }
12445
12446
12447 static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) {
12448 PyObject *resultobj;
12449 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12450 int arg2 ;
12451 bool arg3 = (bool) True ;
12452 PyObject * obj0 = 0 ;
12453 PyObject * obj1 = 0 ;
12454 PyObject * obj2 = 0 ;
12455 char *kwnames[] = {
12456 (char *) "self",(char *) "n",(char *) "enable", NULL
12457 };
12458
12459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12462 arg2 = (int)SWIG_As_int(obj1);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 if (obj2) {
12465 arg3 = (bool)SWIG_As_bool(obj2);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 {
12469 PyThreadState* __tstate = wxPyBeginAllowThreads();
12470 (arg1)->Enable(arg2,arg3);
12471
12472 wxPyEndAllowThreads(__tstate);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 }
12475 Py_INCREF(Py_None); resultobj = Py_None;
12476 return resultobj;
12477 fail:
12478 return NULL;
12479 }
12480
12481
12482 static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) {
12483 PyObject *resultobj;
12484 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12485 int arg2 ;
12486 bool arg3 = (bool) True ;
12487 PyObject * obj0 = 0 ;
12488 PyObject * obj1 = 0 ;
12489 PyObject * obj2 = 0 ;
12490 char *kwnames[] = {
12491 (char *) "self",(char *) "n",(char *) "show", NULL
12492 };
12493
12494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12497 arg2 = (int)SWIG_As_int(obj1);
12498 if (PyErr_Occurred()) SWIG_fail;
12499 if (obj2) {
12500 arg3 = (bool)SWIG_As_bool(obj2);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 {
12504 PyThreadState* __tstate = wxPyBeginAllowThreads();
12505 (arg1)->Show(arg2,arg3);
12506
12507 wxPyEndAllowThreads(__tstate);
12508 if (PyErr_Occurred()) SWIG_fail;
12509 }
12510 Py_INCREF(Py_None); resultobj = Py_None;
12511 return resultobj;
12512 fail:
12513 return NULL;
12514 }
12515
12516
12517 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
12518 PyObject *resultobj;
12519 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12520 int result;
12521 PyObject * obj0 = 0 ;
12522 char *kwnames[] = {
12523 (char *) "self", NULL
12524 };
12525
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12529 {
12530 PyThreadState* __tstate = wxPyBeginAllowThreads();
12531 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12532
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
12536 resultobj = SWIG_From_int((int)result);
12537 return resultobj;
12538 fail:
12539 return NULL;
12540 }
12541
12542
12543 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
12544 PyObject *resultobj;
12545 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12546 int result;
12547 PyObject * obj0 = 0 ;
12548 char *kwnames[] = {
12549 (char *) "self", NULL
12550 };
12551
12552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12555 {
12556 PyThreadState* __tstate = wxPyBeginAllowThreads();
12557 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12558
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 resultobj = SWIG_From_int((int)result);
12563 return resultobj;
12564 fail:
12565 return NULL;
12566 }
12567
12568
12569 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
12570 PyObject *resultobj;
12571 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12572 int arg2 ;
12573 int arg3 ;
12574 long arg4 ;
12575 int result;
12576 PyObject * obj0 = 0 ;
12577 PyObject * obj1 = 0 ;
12578 PyObject * obj2 = 0 ;
12579 PyObject * obj3 = 0 ;
12580 char *kwnames[] = {
12581 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12582 };
12583
12584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12587 arg2 = (int)SWIG_As_int(obj1);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 arg3 = (int)SWIG_As_int(obj2);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 arg4 = (long)SWIG_As_long(obj3);
12592 if (PyErr_Occurred()) SWIG_fail;
12593 {
12594 PyThreadState* __tstate = wxPyBeginAllowThreads();
12595 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12596
12597 wxPyEndAllowThreads(__tstate);
12598 if (PyErr_Occurred()) SWIG_fail;
12599 }
12600 resultobj = SWIG_From_int((int)result);
12601 return resultobj;
12602 fail:
12603 return NULL;
12604 }
12605
12606
12607 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12608 PyObject *resultobj;
12609 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12610 wxVisualAttributes result;
12611 PyObject * obj0 = 0 ;
12612 char *kwnames[] = {
12613 (char *) "variant", NULL
12614 };
12615
12616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12617 if (obj0) {
12618 arg1 = (int)SWIG_As_int(obj0);
12619 if (PyErr_Occurred()) SWIG_fail;
12620 }
12621 {
12622 if (!wxPyCheckForApp()) SWIG_fail;
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12625
12626 wxPyEndAllowThreads(__tstate);
12627 if (PyErr_Occurred()) SWIG_fail;
12628 }
12629 {
12630 wxVisualAttributes * resultptr;
12631 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12632 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12633 }
12634 return resultobj;
12635 fail:
12636 return NULL;
12637 }
12638
12639
12640 static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) {
12641 PyObject *obj;
12642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12643 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12644 Py_INCREF(obj);
12645 return Py_BuildValue((char *)"");
12646 }
12647 static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj;
12649 wxWindow *arg1 = (wxWindow *) 0 ;
12650 int arg2 = (int) -1 ;
12651 wxString const &arg3_defvalue = wxPyEmptyString ;
12652 wxString *arg3 = (wxString *) &arg3_defvalue ;
12653 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12654 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12655 wxSize const &arg5_defvalue = wxDefaultSize ;
12656 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12657 long arg6 = (long) 0 ;
12658 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12659 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12660 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12661 wxString *arg8 = (wxString *) &arg8_defvalue ;
12662 wxRadioButton *result;
12663 bool temp3 = False ;
12664 wxPoint temp4 ;
12665 wxSize temp5 ;
12666 bool temp8 = False ;
12667 PyObject * obj0 = 0 ;
12668 PyObject * obj1 = 0 ;
12669 PyObject * obj2 = 0 ;
12670 PyObject * obj3 = 0 ;
12671 PyObject * obj4 = 0 ;
12672 PyObject * obj5 = 0 ;
12673 PyObject * obj6 = 0 ;
12674 PyObject * obj7 = 0 ;
12675 char *kwnames[] = {
12676 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12677 };
12678
12679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12682 if (obj1) {
12683 arg2 = (int)SWIG_As_int(obj1);
12684 if (PyErr_Occurred()) SWIG_fail;
12685 }
12686 if (obj2) {
12687 {
12688 arg3 = wxString_in_helper(obj2);
12689 if (arg3 == NULL) SWIG_fail;
12690 temp3 = True;
12691 }
12692 }
12693 if (obj3) {
12694 {
12695 arg4 = &temp4;
12696 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12697 }
12698 }
12699 if (obj4) {
12700 {
12701 arg5 = &temp5;
12702 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12703 }
12704 }
12705 if (obj5) {
12706 arg6 = (long)SWIG_As_long(obj5);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 }
12709 if (obj6) {
12710 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12711 SWIG_POINTER_EXCEPTION | 0)) == -1)
12712 SWIG_fail;
12713 if (arg7 == NULL) {
12714 PyErr_SetString(PyExc_TypeError,"null reference");
12715 SWIG_fail;
12716 }
12717 }
12718 if (obj7) {
12719 {
12720 arg8 = wxString_in_helper(obj7);
12721 if (arg8 == NULL) SWIG_fail;
12722 temp8 = True;
12723 }
12724 }
12725 {
12726 if (!wxPyCheckForApp()) SWIG_fail;
12727 PyThreadState* __tstate = wxPyBeginAllowThreads();
12728 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12729
12730 wxPyEndAllowThreads(__tstate);
12731 if (PyErr_Occurred()) SWIG_fail;
12732 }
12733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12734 {
12735 if (temp3)
12736 delete arg3;
12737 }
12738 {
12739 if (temp8)
12740 delete arg8;
12741 }
12742 return resultobj;
12743 fail:
12744 {
12745 if (temp3)
12746 delete arg3;
12747 }
12748 {
12749 if (temp8)
12750 delete arg8;
12751 }
12752 return NULL;
12753 }
12754
12755
12756 static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12757 PyObject *resultobj;
12758 wxRadioButton *result;
12759 char *kwnames[] = {
12760 NULL
12761 };
12762
12763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12764 {
12765 if (!wxPyCheckForApp()) SWIG_fail;
12766 PyThreadState* __tstate = wxPyBeginAllowThreads();
12767 result = (wxRadioButton *)new wxRadioButton();
12768
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12773 return resultobj;
12774 fail:
12775 return NULL;
12776 }
12777
12778
12779 static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12780 PyObject *resultobj;
12781 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12782 wxWindow *arg2 = (wxWindow *) 0 ;
12783 int arg3 = (int) -1 ;
12784 wxString const &arg4_defvalue = wxPyEmptyString ;
12785 wxString *arg4 = (wxString *) &arg4_defvalue ;
12786 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12787 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12788 wxSize const &arg6_defvalue = wxDefaultSize ;
12789 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12790 long arg7 = (long) 0 ;
12791 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12792 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12793 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12794 wxString *arg9 = (wxString *) &arg9_defvalue ;
12795 bool result;
12796 bool temp4 = False ;
12797 wxPoint temp5 ;
12798 wxSize temp6 ;
12799 bool temp9 = False ;
12800 PyObject * obj0 = 0 ;
12801 PyObject * obj1 = 0 ;
12802 PyObject * obj2 = 0 ;
12803 PyObject * obj3 = 0 ;
12804 PyObject * obj4 = 0 ;
12805 PyObject * obj5 = 0 ;
12806 PyObject * obj6 = 0 ;
12807 PyObject * obj7 = 0 ;
12808 PyObject * obj8 = 0 ;
12809 char *kwnames[] = {
12810 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12811 };
12812
12813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12816 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12818 if (obj2) {
12819 arg3 = (int)SWIG_As_int(obj2);
12820 if (PyErr_Occurred()) SWIG_fail;
12821 }
12822 if (obj3) {
12823 {
12824 arg4 = wxString_in_helper(obj3);
12825 if (arg4 == NULL) SWIG_fail;
12826 temp4 = True;
12827 }
12828 }
12829 if (obj4) {
12830 {
12831 arg5 = &temp5;
12832 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12833 }
12834 }
12835 if (obj5) {
12836 {
12837 arg6 = &temp6;
12838 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12839 }
12840 }
12841 if (obj6) {
12842 arg7 = (long)SWIG_As_long(obj6);
12843 if (PyErr_Occurred()) SWIG_fail;
12844 }
12845 if (obj7) {
12846 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12847 SWIG_POINTER_EXCEPTION | 0)) == -1)
12848 SWIG_fail;
12849 if (arg8 == NULL) {
12850 PyErr_SetString(PyExc_TypeError,"null reference");
12851 SWIG_fail;
12852 }
12853 }
12854 if (obj8) {
12855 {
12856 arg9 = wxString_in_helper(obj8);
12857 if (arg9 == NULL) SWIG_fail;
12858 temp9 = True;
12859 }
12860 }
12861 {
12862 PyThreadState* __tstate = wxPyBeginAllowThreads();
12863 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12864
12865 wxPyEndAllowThreads(__tstate);
12866 if (PyErr_Occurred()) SWIG_fail;
12867 }
12868 {
12869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12870 }
12871 {
12872 if (temp4)
12873 delete arg4;
12874 }
12875 {
12876 if (temp9)
12877 delete arg9;
12878 }
12879 return resultobj;
12880 fail:
12881 {
12882 if (temp4)
12883 delete arg4;
12884 }
12885 {
12886 if (temp9)
12887 delete arg9;
12888 }
12889 return NULL;
12890 }
12891
12892
12893 static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12894 PyObject *resultobj;
12895 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12896 bool result;
12897 PyObject * obj0 = 0 ;
12898 char *kwnames[] = {
12899 (char *) "self", NULL
12900 };
12901
12902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12905 {
12906 PyThreadState* __tstate = wxPyBeginAllowThreads();
12907 result = (bool)(arg1)->GetValue();
12908
12909 wxPyEndAllowThreads(__tstate);
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 {
12913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12914 }
12915 return resultobj;
12916 fail:
12917 return NULL;
12918 }
12919
12920
12921 static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12922 PyObject *resultobj;
12923 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12924 bool arg2 ;
12925 PyObject * obj0 = 0 ;
12926 PyObject * obj1 = 0 ;
12927 char *kwnames[] = {
12928 (char *) "self",(char *) "value", NULL
12929 };
12930
12931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12934 arg2 = (bool)SWIG_As_bool(obj1);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 {
12937 PyThreadState* __tstate = wxPyBeginAllowThreads();
12938 (arg1)->SetValue(arg2);
12939
12940 wxPyEndAllowThreads(__tstate);
12941 if (PyErr_Occurred()) SWIG_fail;
12942 }
12943 Py_INCREF(Py_None); resultobj = Py_None;
12944 return resultobj;
12945 fail:
12946 return NULL;
12947 }
12948
12949
12950 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12951 PyObject *resultobj;
12952 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12953 wxVisualAttributes result;
12954 PyObject * obj0 = 0 ;
12955 char *kwnames[] = {
12956 (char *) "variant", NULL
12957 };
12958
12959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12960 if (obj0) {
12961 arg1 = (int)SWIG_As_int(obj0);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 }
12964 {
12965 if (!wxPyCheckForApp()) SWIG_fail;
12966 PyThreadState* __tstate = wxPyBeginAllowThreads();
12967 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12968
12969 wxPyEndAllowThreads(__tstate);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 {
12973 wxVisualAttributes * resultptr;
12974 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12975 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12976 }
12977 return resultobj;
12978 fail:
12979 return NULL;
12980 }
12981
12982
12983 static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) {
12984 PyObject *obj;
12985 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12986 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12987 Py_INCREF(obj);
12988 return Py_BuildValue((char *)"");
12989 }
12990 static int _wrap_SliderNameStr_set(PyObject *) {
12991 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12992 return 1;
12993 }
12994
12995
12996 static PyObject *_wrap_SliderNameStr_get() {
12997 PyObject *pyobj;
12998
12999 {
13000 #if wxUSE_UNICODE
13001 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13002 #else
13003 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13004 #endif
13005 }
13006 return pyobj;
13007 }
13008
13009
13010 static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) {
13011 PyObject *resultobj;
13012 wxWindow *arg1 = (wxWindow *) 0 ;
13013 int arg2 = (int) -1 ;
13014 int arg3 = (int) 0 ;
13015 int arg4 = (int) 0 ;
13016 int arg5 = (int) 100 ;
13017 wxPoint const &arg6_defvalue = wxDefaultPosition ;
13018 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
13019 wxSize const &arg7_defvalue = wxDefaultSize ;
13020 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
13021 long arg8 = (long) wxSL_HORIZONTAL ;
13022 wxValidator const &arg9_defvalue = wxDefaultValidator ;
13023 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
13024 wxString const &arg10_defvalue = wxPySliderNameStr ;
13025 wxString *arg10 = (wxString *) &arg10_defvalue ;
13026 wxSlider *result;
13027 wxPoint temp6 ;
13028 wxSize temp7 ;
13029 bool temp10 = False ;
13030 PyObject * obj0 = 0 ;
13031 PyObject * obj1 = 0 ;
13032 PyObject * obj2 = 0 ;
13033 PyObject * obj3 = 0 ;
13034 PyObject * obj4 = 0 ;
13035 PyObject * obj5 = 0 ;
13036 PyObject * obj6 = 0 ;
13037 PyObject * obj7 = 0 ;
13038 PyObject * obj8 = 0 ;
13039 PyObject * obj9 = 0 ;
13040 char *kwnames[] = {
13041 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13042 };
13043
13044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
13045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13047 if (obj1) {
13048 arg2 = (int)SWIG_As_int(obj1);
13049 if (PyErr_Occurred()) SWIG_fail;
13050 }
13051 if (obj2) {
13052 arg3 = (int)SWIG_As_int(obj2);
13053 if (PyErr_Occurred()) SWIG_fail;
13054 }
13055 if (obj3) {
13056 arg4 = (int)SWIG_As_int(obj3);
13057 if (PyErr_Occurred()) SWIG_fail;
13058 }
13059 if (obj4) {
13060 arg5 = (int)SWIG_As_int(obj4);
13061 if (PyErr_Occurred()) SWIG_fail;
13062 }
13063 if (obj5) {
13064 {
13065 arg6 = &temp6;
13066 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
13067 }
13068 }
13069 if (obj6) {
13070 {
13071 arg7 = &temp7;
13072 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
13073 }
13074 }
13075 if (obj7) {
13076 arg8 = (long)SWIG_As_long(obj7);
13077 if (PyErr_Occurred()) SWIG_fail;
13078 }
13079 if (obj8) {
13080 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
13081 SWIG_POINTER_EXCEPTION | 0)) == -1)
13082 SWIG_fail;
13083 if (arg9 == NULL) {
13084 PyErr_SetString(PyExc_TypeError,"null reference");
13085 SWIG_fail;
13086 }
13087 }
13088 if (obj9) {
13089 {
13090 arg10 = wxString_in_helper(obj9);
13091 if (arg10 == NULL) SWIG_fail;
13092 temp10 = True;
13093 }
13094 }
13095 {
13096 if (!wxPyCheckForApp()) SWIG_fail;
13097 PyThreadState* __tstate = wxPyBeginAllowThreads();
13098 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
13099
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13104 {
13105 if (temp10)
13106 delete arg10;
13107 }
13108 return resultobj;
13109 fail:
13110 {
13111 if (temp10)
13112 delete arg10;
13113 }
13114 return NULL;
13115 }
13116
13117
13118 static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) {
13119 PyObject *resultobj;
13120 wxSlider *result;
13121 char *kwnames[] = {
13122 NULL
13123 };
13124
13125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
13126 {
13127 if (!wxPyCheckForApp()) SWIG_fail;
13128 PyThreadState* __tstate = wxPyBeginAllowThreads();
13129 result = (wxSlider *)new wxSlider();
13130
13131 wxPyEndAllowThreads(__tstate);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13135 return resultobj;
13136 fail:
13137 return NULL;
13138 }
13139
13140
13141 static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13142 PyObject *resultobj;
13143 wxSlider *arg1 = (wxSlider *) 0 ;
13144 wxWindow *arg2 = (wxWindow *) 0 ;
13145 int arg3 = (int) -1 ;
13146 int arg4 = (int) 0 ;
13147 int arg5 = (int) 0 ;
13148 int arg6 = (int) 100 ;
13149 wxPoint const &arg7_defvalue = wxDefaultPosition ;
13150 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
13151 wxSize const &arg8_defvalue = wxDefaultSize ;
13152 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
13153 long arg9 = (long) wxSL_HORIZONTAL ;
13154 wxValidator const &arg10_defvalue = wxDefaultValidator ;
13155 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
13156 wxString const &arg11_defvalue = wxPySliderNameStr ;
13157 wxString *arg11 = (wxString *) &arg11_defvalue ;
13158 bool result;
13159 wxPoint temp7 ;
13160 wxSize temp8 ;
13161 bool temp11 = False ;
13162 PyObject * obj0 = 0 ;
13163 PyObject * obj1 = 0 ;
13164 PyObject * obj2 = 0 ;
13165 PyObject * obj3 = 0 ;
13166 PyObject * obj4 = 0 ;
13167 PyObject * obj5 = 0 ;
13168 PyObject * obj6 = 0 ;
13169 PyObject * obj7 = 0 ;
13170 PyObject * obj8 = 0 ;
13171 PyObject * obj9 = 0 ;
13172 PyObject * obj10 = 0 ;
13173 char *kwnames[] = {
13174 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13175 };
13176
13177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
13178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13180 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13182 if (obj2) {
13183 arg3 = (int)SWIG_As_int(obj2);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 if (obj3) {
13187 arg4 = (int)SWIG_As_int(obj3);
13188 if (PyErr_Occurred()) SWIG_fail;
13189 }
13190 if (obj4) {
13191 arg5 = (int)SWIG_As_int(obj4);
13192 if (PyErr_Occurred()) SWIG_fail;
13193 }
13194 if (obj5) {
13195 arg6 = (int)SWIG_As_int(obj5);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 if (obj6) {
13199 {
13200 arg7 = &temp7;
13201 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
13202 }
13203 }
13204 if (obj7) {
13205 {
13206 arg8 = &temp8;
13207 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
13208 }
13209 }
13210 if (obj8) {
13211 arg9 = (long)SWIG_As_long(obj8);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 if (obj9) {
13215 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
13216 SWIG_POINTER_EXCEPTION | 0)) == -1)
13217 SWIG_fail;
13218 if (arg10 == NULL) {
13219 PyErr_SetString(PyExc_TypeError,"null reference");
13220 SWIG_fail;
13221 }
13222 }
13223 if (obj10) {
13224 {
13225 arg11 = wxString_in_helper(obj10);
13226 if (arg11 == NULL) SWIG_fail;
13227 temp11 = True;
13228 }
13229 }
13230 {
13231 PyThreadState* __tstate = wxPyBeginAllowThreads();
13232 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
13233
13234 wxPyEndAllowThreads(__tstate);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
13237 {
13238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13239 }
13240 {
13241 if (temp11)
13242 delete arg11;
13243 }
13244 return resultobj;
13245 fail:
13246 {
13247 if (temp11)
13248 delete arg11;
13249 }
13250 return NULL;
13251 }
13252
13253
13254 static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13255 PyObject *resultobj;
13256 wxSlider *arg1 = (wxSlider *) 0 ;
13257 int result;
13258 PyObject * obj0 = 0 ;
13259 char *kwnames[] = {
13260 (char *) "self", NULL
13261 };
13262
13263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 result = (int)((wxSlider const *)arg1)->GetValue();
13269
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 resultobj = SWIG_From_int((int)result);
13274 return resultobj;
13275 fail:
13276 return NULL;
13277 }
13278
13279
13280 static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13281 PyObject *resultobj;
13282 wxSlider *arg1 = (wxSlider *) 0 ;
13283 int arg2 ;
13284 PyObject * obj0 = 0 ;
13285 PyObject * obj1 = 0 ;
13286 char *kwnames[] = {
13287 (char *) "self",(char *) "value", NULL
13288 };
13289
13290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13293 arg2 = (int)SWIG_As_int(obj1);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 (arg1)->SetValue(arg2);
13298
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 Py_INCREF(Py_None); resultobj = Py_None;
13303 return resultobj;
13304 fail:
13305 return NULL;
13306 }
13307
13308
13309 static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
13310 PyObject *resultobj;
13311 wxSlider *arg1 = (wxSlider *) 0 ;
13312 int arg2 ;
13313 int arg3 ;
13314 PyObject * obj0 = 0 ;
13315 PyObject * obj1 = 0 ;
13316 PyObject * obj2 = 0 ;
13317 char *kwnames[] = {
13318 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13319 };
13320
13321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13324 arg2 = (int)SWIG_As_int(obj1);
13325 if (PyErr_Occurred()) SWIG_fail;
13326 arg3 = (int)SWIG_As_int(obj2);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 {
13329 PyThreadState* __tstate = wxPyBeginAllowThreads();
13330 (arg1)->SetRange(arg2,arg3);
13331
13332 wxPyEndAllowThreads(__tstate);
13333 if (PyErr_Occurred()) SWIG_fail;
13334 }
13335 Py_INCREF(Py_None); resultobj = Py_None;
13336 return resultobj;
13337 fail:
13338 return NULL;
13339 }
13340
13341
13342 static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13343 PyObject *resultobj;
13344 wxSlider *arg1 = (wxSlider *) 0 ;
13345 int result;
13346 PyObject * obj0 = 0 ;
13347 char *kwnames[] = {
13348 (char *) "self", NULL
13349 };
13350
13351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13354 {
13355 PyThreadState* __tstate = wxPyBeginAllowThreads();
13356 result = (int)((wxSlider const *)arg1)->GetMin();
13357
13358 wxPyEndAllowThreads(__tstate);
13359 if (PyErr_Occurred()) SWIG_fail;
13360 }
13361 resultobj = SWIG_From_int((int)result);
13362 return resultobj;
13363 fail:
13364 return NULL;
13365 }
13366
13367
13368 static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13369 PyObject *resultobj;
13370 wxSlider *arg1 = (wxSlider *) 0 ;
13371 int result;
13372 PyObject * obj0 = 0 ;
13373 char *kwnames[] = {
13374 (char *) "self", NULL
13375 };
13376
13377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13380 {
13381 PyThreadState* __tstate = wxPyBeginAllowThreads();
13382 result = (int)((wxSlider const *)arg1)->GetMax();
13383
13384 wxPyEndAllowThreads(__tstate);
13385 if (PyErr_Occurred()) SWIG_fail;
13386 }
13387 resultobj = SWIG_From_int((int)result);
13388 return resultobj;
13389 fail:
13390 return NULL;
13391 }
13392
13393
13394 static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13395 PyObject *resultobj;
13396 wxSlider *arg1 = (wxSlider *) 0 ;
13397 int arg2 ;
13398 PyObject * obj0 = 0 ;
13399 PyObject * obj1 = 0 ;
13400 char *kwnames[] = {
13401 (char *) "self",(char *) "minValue", NULL
13402 };
13403
13404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13407 arg2 = (int)SWIG_As_int(obj1);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 (arg1)->SetMin(arg2);
13412
13413 wxPyEndAllowThreads(__tstate);
13414 if (PyErr_Occurred()) SWIG_fail;
13415 }
13416 Py_INCREF(Py_None); resultobj = Py_None;
13417 return resultobj;
13418 fail:
13419 return NULL;
13420 }
13421
13422
13423 static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13424 PyObject *resultobj;
13425 wxSlider *arg1 = (wxSlider *) 0 ;
13426 int arg2 ;
13427 PyObject * obj0 = 0 ;
13428 PyObject * obj1 = 0 ;
13429 char *kwnames[] = {
13430 (char *) "self",(char *) "maxValue", NULL
13431 };
13432
13433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13436 arg2 = (int)SWIG_As_int(obj1);
13437 if (PyErr_Occurred()) SWIG_fail;
13438 {
13439 PyThreadState* __tstate = wxPyBeginAllowThreads();
13440 (arg1)->SetMax(arg2);
13441
13442 wxPyEndAllowThreads(__tstate);
13443 if (PyErr_Occurred()) SWIG_fail;
13444 }
13445 Py_INCREF(Py_None); resultobj = Py_None;
13446 return resultobj;
13447 fail:
13448 return NULL;
13449 }
13450
13451
13452 static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13453 PyObject *resultobj;
13454 wxSlider *arg1 = (wxSlider *) 0 ;
13455 int arg2 ;
13456 PyObject * obj0 = 0 ;
13457 PyObject * obj1 = 0 ;
13458 char *kwnames[] = {
13459 (char *) "self",(char *) "lineSize", NULL
13460 };
13461
13462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13465 arg2 = (int)SWIG_As_int(obj1);
13466 if (PyErr_Occurred()) SWIG_fail;
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 (arg1)->SetLineSize(arg2);
13470
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 Py_INCREF(Py_None); resultobj = Py_None;
13475 return resultobj;
13476 fail:
13477 return NULL;
13478 }
13479
13480
13481 static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj;
13483 wxSlider *arg1 = (wxSlider *) 0 ;
13484 int arg2 ;
13485 PyObject * obj0 = 0 ;
13486 PyObject * obj1 = 0 ;
13487 char *kwnames[] = {
13488 (char *) "self",(char *) "pageSize", NULL
13489 };
13490
13491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13494 arg2 = (int)SWIG_As_int(obj1);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 (arg1)->SetPageSize(arg2);
13499
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
13503 Py_INCREF(Py_None); resultobj = Py_None;
13504 return resultobj;
13505 fail:
13506 return NULL;
13507 }
13508
13509
13510 static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13511 PyObject *resultobj;
13512 wxSlider *arg1 = (wxSlider *) 0 ;
13513 int result;
13514 PyObject * obj0 = 0 ;
13515 char *kwnames[] = {
13516 (char *) "self", NULL
13517 };
13518
13519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13522 {
13523 PyThreadState* __tstate = wxPyBeginAllowThreads();
13524 result = (int)((wxSlider const *)arg1)->GetLineSize();
13525
13526 wxPyEndAllowThreads(__tstate);
13527 if (PyErr_Occurred()) SWIG_fail;
13528 }
13529 resultobj = SWIG_From_int((int)result);
13530 return resultobj;
13531 fail:
13532 return NULL;
13533 }
13534
13535
13536 static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13537 PyObject *resultobj;
13538 wxSlider *arg1 = (wxSlider *) 0 ;
13539 int result;
13540 PyObject * obj0 = 0 ;
13541 char *kwnames[] = {
13542 (char *) "self", NULL
13543 };
13544
13545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13548 {
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 result = (int)((wxSlider const *)arg1)->GetPageSize();
13551
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 resultobj = SWIG_From_int((int)result);
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj;
13564 wxSlider *arg1 = (wxSlider *) 0 ;
13565 int arg2 ;
13566 PyObject * obj0 = 0 ;
13567 PyObject * obj1 = 0 ;
13568 char *kwnames[] = {
13569 (char *) "self",(char *) "lenPixels", NULL
13570 };
13571
13572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13575 arg2 = (int)SWIG_As_int(obj1);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 {
13578 PyThreadState* __tstate = wxPyBeginAllowThreads();
13579 (arg1)->SetThumbLength(arg2);
13580
13581 wxPyEndAllowThreads(__tstate);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 Py_INCREF(Py_None); resultobj = Py_None;
13585 return resultobj;
13586 fail:
13587 return NULL;
13588 }
13589
13590
13591 static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13592 PyObject *resultobj;
13593 wxSlider *arg1 = (wxSlider *) 0 ;
13594 int result;
13595 PyObject * obj0 = 0 ;
13596 char *kwnames[] = {
13597 (char *) "self", NULL
13598 };
13599
13600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13603 {
13604 PyThreadState* __tstate = wxPyBeginAllowThreads();
13605 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13606
13607 wxPyEndAllowThreads(__tstate);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 resultobj = SWIG_From_int((int)result);
13611 return resultobj;
13612 fail:
13613 return NULL;
13614 }
13615
13616
13617 static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13618 PyObject *resultobj;
13619 wxSlider *arg1 = (wxSlider *) 0 ;
13620 int arg2 ;
13621 int arg3 = (int) 1 ;
13622 PyObject * obj0 = 0 ;
13623 PyObject * obj1 = 0 ;
13624 PyObject * obj2 = 0 ;
13625 char *kwnames[] = {
13626 (char *) "self",(char *) "n",(char *) "pos", NULL
13627 };
13628
13629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13632 arg2 = (int)SWIG_As_int(obj1);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 if (obj2) {
13635 arg3 = (int)SWIG_As_int(obj2);
13636 if (PyErr_Occurred()) SWIG_fail;
13637 }
13638 {
13639 PyThreadState* __tstate = wxPyBeginAllowThreads();
13640 (arg1)->SetTickFreq(arg2,arg3);
13641
13642 wxPyEndAllowThreads(__tstate);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 Py_INCREF(Py_None); resultobj = Py_None;
13646 return resultobj;
13647 fail:
13648 return NULL;
13649 }
13650
13651
13652 static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj;
13654 wxSlider *arg1 = (wxSlider *) 0 ;
13655 int result;
13656 PyObject * obj0 = 0 ;
13657 char *kwnames[] = {
13658 (char *) "self", NULL
13659 };
13660
13661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13667
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 resultobj = SWIG_From_int((int)result);
13672 return resultobj;
13673 fail:
13674 return NULL;
13675 }
13676
13677
13678 static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj;
13680 wxSlider *arg1 = (wxSlider *) 0 ;
13681 PyObject * obj0 = 0 ;
13682 char *kwnames[] = {
13683 (char *) "self", NULL
13684 };
13685
13686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13689 {
13690 PyThreadState* __tstate = wxPyBeginAllowThreads();
13691 (arg1)->ClearTicks();
13692
13693 wxPyEndAllowThreads(__tstate);
13694 if (PyErr_Occurred()) SWIG_fail;
13695 }
13696 Py_INCREF(Py_None); resultobj = Py_None;
13697 return resultobj;
13698 fail:
13699 return NULL;
13700 }
13701
13702
13703 static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) {
13704 PyObject *resultobj;
13705 wxSlider *arg1 = (wxSlider *) 0 ;
13706 int arg2 ;
13707 PyObject * obj0 = 0 ;
13708 PyObject * obj1 = 0 ;
13709 char *kwnames[] = {
13710 (char *) "self",(char *) "tickPos", NULL
13711 };
13712
13713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13716 arg2 = (int)SWIG_As_int(obj1);
13717 if (PyErr_Occurred()) SWIG_fail;
13718 {
13719 PyThreadState* __tstate = wxPyBeginAllowThreads();
13720 (arg1)->SetTick(arg2);
13721
13722 wxPyEndAllowThreads(__tstate);
13723 if (PyErr_Occurred()) SWIG_fail;
13724 }
13725 Py_INCREF(Py_None); resultobj = Py_None;
13726 return resultobj;
13727 fail:
13728 return NULL;
13729 }
13730
13731
13732 static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) {
13733 PyObject *resultobj;
13734 wxSlider *arg1 = (wxSlider *) 0 ;
13735 PyObject * obj0 = 0 ;
13736 char *kwnames[] = {
13737 (char *) "self", NULL
13738 };
13739
13740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13743 {
13744 PyThreadState* __tstate = wxPyBeginAllowThreads();
13745 (arg1)->ClearSel();
13746
13747 wxPyEndAllowThreads(__tstate);
13748 if (PyErr_Occurred()) SWIG_fail;
13749 }
13750 Py_INCREF(Py_None); resultobj = Py_None;
13751 return resultobj;
13752 fail:
13753 return NULL;
13754 }
13755
13756
13757 static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) {
13758 PyObject *resultobj;
13759 wxSlider *arg1 = (wxSlider *) 0 ;
13760 int result;
13761 PyObject * obj0 = 0 ;
13762 char *kwnames[] = {
13763 (char *) "self", NULL
13764 };
13765
13766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13769 {
13770 PyThreadState* __tstate = wxPyBeginAllowThreads();
13771 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13772
13773 wxPyEndAllowThreads(__tstate);
13774 if (PyErr_Occurred()) SWIG_fail;
13775 }
13776 resultobj = SWIG_From_int((int)result);
13777 return resultobj;
13778 fail:
13779 return NULL;
13780 }
13781
13782
13783 static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) {
13784 PyObject *resultobj;
13785 wxSlider *arg1 = (wxSlider *) 0 ;
13786 int result;
13787 PyObject * obj0 = 0 ;
13788 char *kwnames[] = {
13789 (char *) "self", NULL
13790 };
13791
13792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13795 {
13796 PyThreadState* __tstate = wxPyBeginAllowThreads();
13797 result = (int)((wxSlider const *)arg1)->GetSelStart();
13798
13799 wxPyEndAllowThreads(__tstate);
13800 if (PyErr_Occurred()) SWIG_fail;
13801 }
13802 resultobj = SWIG_From_int((int)result);
13803 return resultobj;
13804 fail:
13805 return NULL;
13806 }
13807
13808
13809 static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13810 PyObject *resultobj;
13811 wxSlider *arg1 = (wxSlider *) 0 ;
13812 int arg2 ;
13813 int arg3 ;
13814 PyObject * obj0 = 0 ;
13815 PyObject * obj1 = 0 ;
13816 PyObject * obj2 = 0 ;
13817 char *kwnames[] = {
13818 (char *) "self",(char *) "min",(char *) "max", NULL
13819 };
13820
13821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13824 arg2 = (int)SWIG_As_int(obj1);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 arg3 = (int)SWIG_As_int(obj2);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 {
13829 PyThreadState* __tstate = wxPyBeginAllowThreads();
13830 (arg1)->SetSelection(arg2,arg3);
13831
13832 wxPyEndAllowThreads(__tstate);
13833 if (PyErr_Occurred()) SWIG_fail;
13834 }
13835 Py_INCREF(Py_None); resultobj = Py_None;
13836 return resultobj;
13837 fail:
13838 return NULL;
13839 }
13840
13841
13842 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
13843 PyObject *resultobj;
13844 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13845 wxVisualAttributes result;
13846 PyObject * obj0 = 0 ;
13847 char *kwnames[] = {
13848 (char *) "variant", NULL
13849 };
13850
13851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13852 if (obj0) {
13853 arg1 = (int)SWIG_As_int(obj0);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 {
13857 if (!wxPyCheckForApp()) SWIG_fail;
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13860
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 {
13865 wxVisualAttributes * resultptr;
13866 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13867 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13868 }
13869 return resultobj;
13870 fail:
13871 return NULL;
13872 }
13873
13874
13875 static PyObject * Slider_swigregister(PyObject *, PyObject *args) {
13876 PyObject *obj;
13877 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13878 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13879 Py_INCREF(obj);
13880 return Py_BuildValue((char *)"");
13881 }
13882 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
13883 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13884 return 1;
13885 }
13886
13887
13888 static PyObject *_wrap_ToggleButtonNameStr_get() {
13889 PyObject *pyobj;
13890
13891 {
13892 #if wxUSE_UNICODE
13893 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13894 #else
13895 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13896 #endif
13897 }
13898 return pyobj;
13899 }
13900
13901
13902 static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj;
13904 wxWindow *arg1 = (wxWindow *) 0 ;
13905 int arg2 = (int) -1 ;
13906 wxString const &arg3_defvalue = wxPyEmptyString ;
13907 wxString *arg3 = (wxString *) &arg3_defvalue ;
13908 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13909 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13910 wxSize const &arg5_defvalue = wxDefaultSize ;
13911 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13912 long arg6 = (long) 0 ;
13913 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13914 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13915 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13916 wxString *arg8 = (wxString *) &arg8_defvalue ;
13917 wxToggleButton *result;
13918 bool temp3 = False ;
13919 wxPoint temp4 ;
13920 wxSize temp5 ;
13921 bool temp8 = False ;
13922 PyObject * obj0 = 0 ;
13923 PyObject * obj1 = 0 ;
13924 PyObject * obj2 = 0 ;
13925 PyObject * obj3 = 0 ;
13926 PyObject * obj4 = 0 ;
13927 PyObject * obj5 = 0 ;
13928 PyObject * obj6 = 0 ;
13929 PyObject * obj7 = 0 ;
13930 char *kwnames[] = {
13931 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13932 };
13933
13934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13937 if (obj1) {
13938 arg2 = (int)SWIG_As_int(obj1);
13939 if (PyErr_Occurred()) SWIG_fail;
13940 }
13941 if (obj2) {
13942 {
13943 arg3 = wxString_in_helper(obj2);
13944 if (arg3 == NULL) SWIG_fail;
13945 temp3 = True;
13946 }
13947 }
13948 if (obj3) {
13949 {
13950 arg4 = &temp4;
13951 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13952 }
13953 }
13954 if (obj4) {
13955 {
13956 arg5 = &temp5;
13957 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13958 }
13959 }
13960 if (obj5) {
13961 arg6 = (long)SWIG_As_long(obj5);
13962 if (PyErr_Occurred()) SWIG_fail;
13963 }
13964 if (obj6) {
13965 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13966 SWIG_POINTER_EXCEPTION | 0)) == -1)
13967 SWIG_fail;
13968 if (arg7 == NULL) {
13969 PyErr_SetString(PyExc_TypeError,"null reference");
13970 SWIG_fail;
13971 }
13972 }
13973 if (obj7) {
13974 {
13975 arg8 = wxString_in_helper(obj7);
13976 if (arg8 == NULL) SWIG_fail;
13977 temp8 = True;
13978 }
13979 }
13980 {
13981 if (!wxPyCheckForApp()) SWIG_fail;
13982 PyThreadState* __tstate = wxPyBeginAllowThreads();
13983 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13984
13985 wxPyEndAllowThreads(__tstate);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 }
13988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13989 {
13990 if (temp3)
13991 delete arg3;
13992 }
13993 {
13994 if (temp8)
13995 delete arg8;
13996 }
13997 return resultobj;
13998 fail:
13999 {
14000 if (temp3)
14001 delete arg3;
14002 }
14003 {
14004 if (temp8)
14005 delete arg8;
14006 }
14007 return NULL;
14008 }
14009
14010
14011 static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
14012 PyObject *resultobj;
14013 wxToggleButton *result;
14014 char *kwnames[] = {
14015 NULL
14016 };
14017
14018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
14019 {
14020 if (!wxPyCheckForApp()) SWIG_fail;
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 result = (wxToggleButton *)new wxToggleButton();
14023
14024 wxPyEndAllowThreads(__tstate);
14025 if (PyErr_Occurred()) SWIG_fail;
14026 }
14027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
14028 return resultobj;
14029 fail:
14030 return NULL;
14031 }
14032
14033
14034 static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14035 PyObject *resultobj;
14036 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14037 wxWindow *arg2 = (wxWindow *) 0 ;
14038 int arg3 = (int) -1 ;
14039 wxString const &arg4_defvalue = wxPyEmptyString ;
14040 wxString *arg4 = (wxString *) &arg4_defvalue ;
14041 wxPoint const &arg5_defvalue = wxDefaultPosition ;
14042 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
14043 wxSize const &arg6_defvalue = wxDefaultSize ;
14044 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
14045 long arg7 = (long) 0 ;
14046 wxValidator const &arg8_defvalue = wxDefaultValidator ;
14047 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
14048 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
14049 wxString *arg9 = (wxString *) &arg9_defvalue ;
14050 bool result;
14051 bool temp4 = False ;
14052 wxPoint temp5 ;
14053 wxSize temp6 ;
14054 bool temp9 = False ;
14055 PyObject * obj0 = 0 ;
14056 PyObject * obj1 = 0 ;
14057 PyObject * obj2 = 0 ;
14058 PyObject * obj3 = 0 ;
14059 PyObject * obj4 = 0 ;
14060 PyObject * obj5 = 0 ;
14061 PyObject * obj6 = 0 ;
14062 PyObject * obj7 = 0 ;
14063 PyObject * obj8 = 0 ;
14064 char *kwnames[] = {
14065 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14066 };
14067
14068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
14069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14071 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14073 if (obj2) {
14074 arg3 = (int)SWIG_As_int(obj2);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 if (obj3) {
14078 {
14079 arg4 = wxString_in_helper(obj3);
14080 if (arg4 == NULL) SWIG_fail;
14081 temp4 = True;
14082 }
14083 }
14084 if (obj4) {
14085 {
14086 arg5 = &temp5;
14087 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14088 }
14089 }
14090 if (obj5) {
14091 {
14092 arg6 = &temp6;
14093 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
14094 }
14095 }
14096 if (obj6) {
14097 arg7 = (long)SWIG_As_long(obj6);
14098 if (PyErr_Occurred()) SWIG_fail;
14099 }
14100 if (obj7) {
14101 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
14102 SWIG_POINTER_EXCEPTION | 0)) == -1)
14103 SWIG_fail;
14104 if (arg8 == NULL) {
14105 PyErr_SetString(PyExc_TypeError,"null reference");
14106 SWIG_fail;
14107 }
14108 }
14109 if (obj8) {
14110 {
14111 arg9 = wxString_in_helper(obj8);
14112 if (arg9 == NULL) SWIG_fail;
14113 temp9 = True;
14114 }
14115 }
14116 {
14117 PyThreadState* __tstate = wxPyBeginAllowThreads();
14118 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
14119
14120 wxPyEndAllowThreads(__tstate);
14121 if (PyErr_Occurred()) SWIG_fail;
14122 }
14123 {
14124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14125 }
14126 {
14127 if (temp4)
14128 delete arg4;
14129 }
14130 {
14131 if (temp9)
14132 delete arg9;
14133 }
14134 return resultobj;
14135 fail:
14136 {
14137 if (temp4)
14138 delete arg4;
14139 }
14140 {
14141 if (temp9)
14142 delete arg9;
14143 }
14144 return NULL;
14145 }
14146
14147
14148 static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14149 PyObject *resultobj;
14150 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14151 bool arg2 ;
14152 PyObject * obj0 = 0 ;
14153 PyObject * obj1 = 0 ;
14154 char *kwnames[] = {
14155 (char *) "self",(char *) "value", NULL
14156 };
14157
14158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
14159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14161 arg2 = (bool)SWIG_As_bool(obj1);
14162 if (PyErr_Occurred()) SWIG_fail;
14163 {
14164 PyThreadState* __tstate = wxPyBeginAllowThreads();
14165 (arg1)->SetValue(arg2);
14166
14167 wxPyEndAllowThreads(__tstate);
14168 if (PyErr_Occurred()) SWIG_fail;
14169 }
14170 Py_INCREF(Py_None); resultobj = Py_None;
14171 return resultobj;
14172 fail:
14173 return NULL;
14174 }
14175
14176
14177 static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14178 PyObject *resultobj;
14179 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14180 bool result;
14181 PyObject * obj0 = 0 ;
14182 char *kwnames[] = {
14183 (char *) "self", NULL
14184 };
14185
14186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
14187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14189 {
14190 PyThreadState* __tstate = wxPyBeginAllowThreads();
14191 result = (bool)((wxToggleButton const *)arg1)->GetValue();
14192
14193 wxPyEndAllowThreads(__tstate);
14194 if (PyErr_Occurred()) SWIG_fail;
14195 }
14196 {
14197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14198 }
14199 return resultobj;
14200 fail:
14201 return NULL;
14202 }
14203
14204
14205 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14206 PyObject *resultobj;
14207 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14208 wxString *arg2 = 0 ;
14209 bool temp2 = False ;
14210 PyObject * obj0 = 0 ;
14211 PyObject * obj1 = 0 ;
14212 char *kwnames[] = {
14213 (char *) "self",(char *) "label", NULL
14214 };
14215
14216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
14217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14219 {
14220 arg2 = wxString_in_helper(obj1);
14221 if (arg2 == NULL) SWIG_fail;
14222 temp2 = True;
14223 }
14224 {
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
14226 (arg1)->SetLabel((wxString const &)*arg2);
14227
14228 wxPyEndAllowThreads(__tstate);
14229 if (PyErr_Occurred()) SWIG_fail;
14230 }
14231 Py_INCREF(Py_None); resultobj = Py_None;
14232 {
14233 if (temp2)
14234 delete arg2;
14235 }
14236 return resultobj;
14237 fail:
14238 {
14239 if (temp2)
14240 delete arg2;
14241 }
14242 return NULL;
14243 }
14244
14245
14246 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14247 PyObject *resultobj;
14248 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14249 wxVisualAttributes result;
14250 PyObject * obj0 = 0 ;
14251 char *kwnames[] = {
14252 (char *) "variant", NULL
14253 };
14254
14255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14256 if (obj0) {
14257 arg1 = (int)SWIG_As_int(obj0);
14258 if (PyErr_Occurred()) SWIG_fail;
14259 }
14260 {
14261 if (!wxPyCheckForApp()) SWIG_fail;
14262 PyThreadState* __tstate = wxPyBeginAllowThreads();
14263 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
14264
14265 wxPyEndAllowThreads(__tstate);
14266 if (PyErr_Occurred()) SWIG_fail;
14267 }
14268 {
14269 wxVisualAttributes * resultptr;
14270 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14271 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14272 }
14273 return resultobj;
14274 fail:
14275 return NULL;
14276 }
14277
14278
14279 static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
14280 PyObject *obj;
14281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14282 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14283 Py_INCREF(obj);
14284 return Py_BuildValue((char *)"");
14285 }
14286 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
14287 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14288 return 1;
14289 }
14290
14291
14292 static PyObject *_wrap_NOTEBOOK_NAME_get() {
14293 PyObject *pyobj;
14294
14295 {
14296 #if wxUSE_UNICODE
14297 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14298 #else
14299 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14300 #endif
14301 }
14302 return pyobj;
14303 }
14304
14305
14306 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) {
14307 PyObject *resultobj;
14308 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14309 size_t result;
14310 PyObject * obj0 = 0 ;
14311 char *kwnames[] = {
14312 (char *) "self", NULL
14313 };
14314
14315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
14316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14318 {
14319 PyThreadState* __tstate = wxPyBeginAllowThreads();
14320 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
14321
14322 wxPyEndAllowThreads(__tstate);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
14326 return resultobj;
14327 fail:
14328 return NULL;
14329 }
14330
14331
14332 static PyObject *_wrap_BookCtrl_GetPage(PyObject *, PyObject *args, PyObject *kwargs) {
14333 PyObject *resultobj;
14334 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14335 size_t arg2 ;
14336 wxWindow *result;
14337 PyObject * obj0 = 0 ;
14338 PyObject * obj1 = 0 ;
14339 char *kwnames[] = {
14340 (char *) "self",(char *) "n", NULL
14341 };
14342
14343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
14344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14346 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14347 if (PyErr_Occurred()) SWIG_fail;
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 result = (wxWindow *)(arg1)->GetPage(arg2);
14351
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 {
14356 resultobj = wxPyMake_wxObject(result, 0);
14357 }
14358 return resultobj;
14359 fail:
14360 return NULL;
14361 }
14362
14363
14364 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14365 PyObject *resultobj;
14366 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14367 int result;
14368 PyObject * obj0 = 0 ;
14369 char *kwnames[] = {
14370 (char *) "self", NULL
14371 };
14372
14373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14376 {
14377 PyThreadState* __tstate = wxPyBeginAllowThreads();
14378 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14379
14380 wxPyEndAllowThreads(__tstate);
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
14383 resultobj = SWIG_From_int((int)result);
14384 return resultobj;
14385 fail:
14386 return NULL;
14387 }
14388
14389
14390 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14391 PyObject *resultobj;
14392 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14393 size_t arg2 ;
14394 wxString *arg3 = 0 ;
14395 bool result;
14396 bool temp3 = False ;
14397 PyObject * obj0 = 0 ;
14398 PyObject * obj1 = 0 ;
14399 PyObject * obj2 = 0 ;
14400 char *kwnames[] = {
14401 (char *) "self",(char *) "n",(char *) "strText", NULL
14402 };
14403
14404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14407 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 {
14410 arg3 = wxString_in_helper(obj2);
14411 if (arg3 == NULL) SWIG_fail;
14412 temp3 = True;
14413 }
14414 {
14415 PyThreadState* __tstate = wxPyBeginAllowThreads();
14416 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14417
14418 wxPyEndAllowThreads(__tstate);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 {
14422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14423 }
14424 {
14425 if (temp3)
14426 delete arg3;
14427 }
14428 return resultobj;
14429 fail:
14430 {
14431 if (temp3)
14432 delete arg3;
14433 }
14434 return NULL;
14435 }
14436
14437
14438 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14439 PyObject *resultobj;
14440 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14441 size_t arg2 ;
14442 wxString result;
14443 PyObject * obj0 = 0 ;
14444 PyObject * obj1 = 0 ;
14445 char *kwnames[] = {
14446 (char *) "self",(char *) "n", NULL
14447 };
14448
14449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14452 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14453 if (PyErr_Occurred()) SWIG_fail;
14454 {
14455 PyThreadState* __tstate = wxPyBeginAllowThreads();
14456 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14457
14458 wxPyEndAllowThreads(__tstate);
14459 if (PyErr_Occurred()) SWIG_fail;
14460 }
14461 {
14462 #if wxUSE_UNICODE
14463 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14464 #else
14465 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14466 #endif
14467 }
14468 return resultobj;
14469 fail:
14470 return NULL;
14471 }
14472
14473
14474 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14475 PyObject *resultobj;
14476 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14477 wxImageList *arg2 = (wxImageList *) 0 ;
14478 PyObject * obj0 = 0 ;
14479 PyObject * obj1 = 0 ;
14480 char *kwnames[] = {
14481 (char *) "self",(char *) "imageList", NULL
14482 };
14483
14484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14489 {
14490 PyThreadState* __tstate = wxPyBeginAllowThreads();
14491 (arg1)->SetImageList(arg2);
14492
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
14496 Py_INCREF(Py_None); resultobj = Py_None;
14497 return resultobj;
14498 fail:
14499 return NULL;
14500 }
14501
14502
14503 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14504 PyObject *resultobj;
14505 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14506 wxImageList *arg2 = (wxImageList *) 0 ;
14507 PyObject * obj0 = 0 ;
14508 PyObject * obj1 = 0 ;
14509 char *kwnames[] = {
14510 (char *) "self",(char *) "imageList", NULL
14511 };
14512
14513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14516 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14517 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14518 {
14519 PyThreadState* __tstate = wxPyBeginAllowThreads();
14520 (arg1)->AssignImageList(arg2);
14521
14522 wxPyEndAllowThreads(__tstate);
14523 if (PyErr_Occurred()) SWIG_fail;
14524 }
14525 Py_INCREF(Py_None); resultobj = Py_None;
14526 return resultobj;
14527 fail:
14528 return NULL;
14529 }
14530
14531
14532 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14533 PyObject *resultobj;
14534 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14535 wxImageList *result;
14536 PyObject * obj0 = 0 ;
14537 char *kwnames[] = {
14538 (char *) "self", NULL
14539 };
14540
14541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14544 {
14545 PyThreadState* __tstate = wxPyBeginAllowThreads();
14546 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14547
14548 wxPyEndAllowThreads(__tstate);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 {
14552 resultobj = wxPyMake_wxObject(result, 0);
14553 }
14554 return resultobj;
14555 fail:
14556 return NULL;
14557 }
14558
14559
14560 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14561 PyObject *resultobj;
14562 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14563 size_t arg2 ;
14564 int result;
14565 PyObject * obj0 = 0 ;
14566 PyObject * obj1 = 0 ;
14567 char *kwnames[] = {
14568 (char *) "self",(char *) "n", NULL
14569 };
14570
14571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14574 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14575 if (PyErr_Occurred()) SWIG_fail;
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14579
14580 wxPyEndAllowThreads(__tstate);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
14583 resultobj = SWIG_From_int((int)result);
14584 return resultobj;
14585 fail:
14586 return NULL;
14587 }
14588
14589
14590 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14591 PyObject *resultobj;
14592 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14593 size_t arg2 ;
14594 int arg3 ;
14595 bool result;
14596 PyObject * obj0 = 0 ;
14597 PyObject * obj1 = 0 ;
14598 PyObject * obj2 = 0 ;
14599 char *kwnames[] = {
14600 (char *) "self",(char *) "n",(char *) "imageId", NULL
14601 };
14602
14603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14606 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14607 if (PyErr_Occurred()) SWIG_fail;
14608 arg3 = (int)SWIG_As_int(obj2);
14609 if (PyErr_Occurred()) SWIG_fail;
14610 {
14611 PyThreadState* __tstate = wxPyBeginAllowThreads();
14612 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14613
14614 wxPyEndAllowThreads(__tstate);
14615 if (PyErr_Occurred()) SWIG_fail;
14616 }
14617 {
14618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14619 }
14620 return resultobj;
14621 fail:
14622 return NULL;
14623 }
14624
14625
14626 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
14627 PyObject *resultobj;
14628 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14629 wxSize *arg2 = 0 ;
14630 wxSize temp2 ;
14631 PyObject * obj0 = 0 ;
14632 PyObject * obj1 = 0 ;
14633 char *kwnames[] = {
14634 (char *) "self",(char *) "size", NULL
14635 };
14636
14637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14640 {
14641 arg2 = &temp2;
14642 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14643 }
14644 {
14645 PyThreadState* __tstate = wxPyBeginAllowThreads();
14646 (arg1)->SetPageSize((wxSize const &)*arg2);
14647
14648 wxPyEndAllowThreads(__tstate);
14649 if (PyErr_Occurred()) SWIG_fail;
14650 }
14651 Py_INCREF(Py_None); resultobj = Py_None;
14652 return resultobj;
14653 fail:
14654 return NULL;
14655 }
14656
14657
14658 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
14659 PyObject *resultobj;
14660 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14661 wxSize *arg2 = 0 ;
14662 wxSize result;
14663 wxSize temp2 ;
14664 PyObject * obj0 = 0 ;
14665 PyObject * obj1 = 0 ;
14666 char *kwnames[] = {
14667 (char *) "self",(char *) "sizePage", NULL
14668 };
14669
14670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14673 {
14674 arg2 = &temp2;
14675 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14676 }
14677 {
14678 PyThreadState* __tstate = wxPyBeginAllowThreads();
14679 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14680
14681 wxPyEndAllowThreads(__tstate);
14682 if (PyErr_Occurred()) SWIG_fail;
14683 }
14684 {
14685 wxSize * resultptr;
14686 resultptr = new wxSize((wxSize &) result);
14687 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14688 }
14689 return resultobj;
14690 fail:
14691 return NULL;
14692 }
14693
14694
14695 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) {
14696 PyObject *resultobj;
14697 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14698 size_t arg2 ;
14699 bool result;
14700 PyObject * obj0 = 0 ;
14701 PyObject * obj1 = 0 ;
14702 char *kwnames[] = {
14703 (char *) "self",(char *) "n", NULL
14704 };
14705
14706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14709 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 result = (bool)(arg1)->DeletePage(arg2);
14714
14715 wxPyEndAllowThreads(__tstate);
14716 if (PyErr_Occurred()) SWIG_fail;
14717 }
14718 {
14719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14720 }
14721 return resultobj;
14722 fail:
14723 return NULL;
14724 }
14725
14726
14727 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) {
14728 PyObject *resultobj;
14729 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14730 size_t arg2 ;
14731 bool result;
14732 PyObject * obj0 = 0 ;
14733 PyObject * obj1 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self",(char *) "n", NULL
14736 };
14737
14738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14741 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14742 if (PyErr_Occurred()) SWIG_fail;
14743 {
14744 PyThreadState* __tstate = wxPyBeginAllowThreads();
14745 result = (bool)(arg1)->RemovePage(arg2);
14746
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 {
14751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14752 }
14753 return resultobj;
14754 fail:
14755 return NULL;
14756 }
14757
14758
14759 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
14760 PyObject *resultobj;
14761 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14762 bool result;
14763 PyObject * obj0 = 0 ;
14764 char *kwnames[] = {
14765 (char *) "self", NULL
14766 };
14767
14768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14771 {
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 result = (bool)(arg1)->DeleteAllPages();
14774
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 {
14779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14780 }
14781 return resultobj;
14782 fail:
14783 return NULL;
14784 }
14785
14786
14787 static PyObject *_wrap_BookCtrl_AddPage(PyObject *, PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj;
14789 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14790 wxWindow *arg2 = (wxWindow *) 0 ;
14791 wxString *arg3 = 0 ;
14792 bool arg4 = (bool) False ;
14793 int arg5 = (int) -1 ;
14794 bool result;
14795 bool temp3 = False ;
14796 PyObject * obj0 = 0 ;
14797 PyObject * obj1 = 0 ;
14798 PyObject * obj2 = 0 ;
14799 PyObject * obj3 = 0 ;
14800 PyObject * obj4 = 0 ;
14801 char *kwnames[] = {
14802 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14803 };
14804
14805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14808 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14810 {
14811 arg3 = wxString_in_helper(obj2);
14812 if (arg3 == NULL) SWIG_fail;
14813 temp3 = True;
14814 }
14815 if (obj3) {
14816 arg4 = (bool)SWIG_As_bool(obj3);
14817 if (PyErr_Occurred()) SWIG_fail;
14818 }
14819 if (obj4) {
14820 arg5 = (int)SWIG_As_int(obj4);
14821 if (PyErr_Occurred()) SWIG_fail;
14822 }
14823 {
14824 PyThreadState* __tstate = wxPyBeginAllowThreads();
14825 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14826
14827 wxPyEndAllowThreads(__tstate);
14828 if (PyErr_Occurred()) SWIG_fail;
14829 }
14830 {
14831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14832 }
14833 {
14834 if (temp3)
14835 delete arg3;
14836 }
14837 return resultobj;
14838 fail:
14839 {
14840 if (temp3)
14841 delete arg3;
14842 }
14843 return NULL;
14844 }
14845
14846
14847 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) {
14848 PyObject *resultobj;
14849 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14850 size_t arg2 ;
14851 wxWindow *arg3 = (wxWindow *) 0 ;
14852 wxString *arg4 = 0 ;
14853 bool arg5 = (bool) False ;
14854 int arg6 = (int) -1 ;
14855 bool result;
14856 bool temp4 = False ;
14857 PyObject * obj0 = 0 ;
14858 PyObject * obj1 = 0 ;
14859 PyObject * obj2 = 0 ;
14860 PyObject * obj3 = 0 ;
14861 PyObject * obj4 = 0 ;
14862 PyObject * obj5 = 0 ;
14863 char *kwnames[] = {
14864 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14865 };
14866
14867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14870 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14874 {
14875 arg4 = wxString_in_helper(obj3);
14876 if (arg4 == NULL) SWIG_fail;
14877 temp4 = True;
14878 }
14879 if (obj4) {
14880 arg5 = (bool)SWIG_As_bool(obj4);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 if (obj5) {
14884 arg6 = (int)SWIG_As_int(obj5);
14885 if (PyErr_Occurred()) SWIG_fail;
14886 }
14887 {
14888 PyThreadState* __tstate = wxPyBeginAllowThreads();
14889 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14890
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 {
14895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14896 }
14897 {
14898 if (temp4)
14899 delete arg4;
14900 }
14901 return resultobj;
14902 fail:
14903 {
14904 if (temp4)
14905 delete arg4;
14906 }
14907 return NULL;
14908 }
14909
14910
14911 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14912 PyObject *resultobj;
14913 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14914 size_t arg2 ;
14915 int result;
14916 PyObject * obj0 = 0 ;
14917 PyObject * obj1 = 0 ;
14918 char *kwnames[] = {
14919 (char *) "self",(char *) "n", NULL
14920 };
14921
14922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14925 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14926 if (PyErr_Occurred()) SWIG_fail;
14927 {
14928 PyThreadState* __tstate = wxPyBeginAllowThreads();
14929 result = (int)(arg1)->SetSelection(arg2);
14930
14931 wxPyEndAllowThreads(__tstate);
14932 if (PyErr_Occurred()) SWIG_fail;
14933 }
14934 resultobj = SWIG_From_int((int)result);
14935 return resultobj;
14936 fail:
14937 return NULL;
14938 }
14939
14940
14941 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14942 PyObject *resultobj;
14943 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14944 bool arg2 = (bool) True ;
14945 PyObject * obj0 = 0 ;
14946 PyObject * obj1 = 0 ;
14947 char *kwnames[] = {
14948 (char *) "self",(char *) "forward", NULL
14949 };
14950
14951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14954 if (obj1) {
14955 arg2 = (bool)SWIG_As_bool(obj1);
14956 if (PyErr_Occurred()) SWIG_fail;
14957 }
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 (arg1)->AdvanceSelection(arg2);
14961
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 Py_INCREF(Py_None); resultobj = Py_None;
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj;
14974 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14975 wxVisualAttributes result;
14976 PyObject * obj0 = 0 ;
14977 char *kwnames[] = {
14978 (char *) "variant", NULL
14979 };
14980
14981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14982 if (obj0) {
14983 arg1 = (int)SWIG_As_int(obj0);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 {
14987 if (!wxPyCheckForApp()) SWIG_fail;
14988 PyThreadState* __tstate = wxPyBeginAllowThreads();
14989 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14990
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 {
14995 wxVisualAttributes * resultptr;
14996 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14997 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14998 }
14999 return resultobj;
15000 fail:
15001 return NULL;
15002 }
15003
15004
15005 static PyObject * BookCtrl_swigregister(PyObject *, PyObject *args) {
15006 PyObject *obj;
15007 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15008 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
15009 Py_INCREF(obj);
15010 return Py_BuildValue((char *)"");
15011 }
15012 static PyObject *_wrap_new_BookCtrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15013 PyObject *resultobj;
15014 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15015 int arg2 = (int) 0 ;
15016 int arg3 = (int) -1 ;
15017 int arg4 = (int) -1 ;
15018 wxBookCtrlEvent *result;
15019 PyObject * obj0 = 0 ;
15020 PyObject * obj1 = 0 ;
15021 PyObject * obj2 = 0 ;
15022 PyObject * obj3 = 0 ;
15023 char *kwnames[] = {
15024 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15025 };
15026
15027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15028 if (obj0) {
15029 arg1 = (wxEventType)SWIG_As_int(obj0);
15030 if (PyErr_Occurred()) SWIG_fail;
15031 }
15032 if (obj1) {
15033 arg2 = (int)SWIG_As_int(obj1);
15034 if (PyErr_Occurred()) SWIG_fail;
15035 }
15036 if (obj2) {
15037 arg3 = (int)SWIG_As_int(obj2);
15038 if (PyErr_Occurred()) SWIG_fail;
15039 }
15040 if (obj3) {
15041 arg4 = (int)SWIG_As_int(obj3);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 {
15045 PyThreadState* __tstate = wxPyBeginAllowThreads();
15046 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
15047
15048 wxPyEndAllowThreads(__tstate);
15049 if (PyErr_Occurred()) SWIG_fail;
15050 }
15051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
15052 return resultobj;
15053 fail:
15054 return NULL;
15055 }
15056
15057
15058 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15059 PyObject *resultobj;
15060 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15061 int result;
15062 PyObject * obj0 = 0 ;
15063 char *kwnames[] = {
15064 (char *) "self", NULL
15065 };
15066
15067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
15068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15070 {
15071 PyThreadState* __tstate = wxPyBeginAllowThreads();
15072 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
15073
15074 wxPyEndAllowThreads(__tstate);
15075 if (PyErr_Occurred()) SWIG_fail;
15076 }
15077 resultobj = SWIG_From_int((int)result);
15078 return resultobj;
15079 fail:
15080 return NULL;
15081 }
15082
15083
15084 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15085 PyObject *resultobj;
15086 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15087 int arg2 ;
15088 PyObject * obj0 = 0 ;
15089 PyObject * obj1 = 0 ;
15090 char *kwnames[] = {
15091 (char *) "self",(char *) "nSel", NULL
15092 };
15093
15094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15097 arg2 = (int)SWIG_As_int(obj1);
15098 if (PyErr_Occurred()) SWIG_fail;
15099 {
15100 PyThreadState* __tstate = wxPyBeginAllowThreads();
15101 (arg1)->SetSelection(arg2);
15102
15103 wxPyEndAllowThreads(__tstate);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 }
15106 Py_INCREF(Py_None); resultobj = Py_None;
15107 return resultobj;
15108 fail:
15109 return NULL;
15110 }
15111
15112
15113 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15114 PyObject *resultobj;
15115 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15116 int result;
15117 PyObject * obj0 = 0 ;
15118 char *kwnames[] = {
15119 (char *) "self", NULL
15120 };
15121
15122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
15123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15125 {
15126 PyThreadState* __tstate = wxPyBeginAllowThreads();
15127 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
15128
15129 wxPyEndAllowThreads(__tstate);
15130 if (PyErr_Occurred()) SWIG_fail;
15131 }
15132 resultobj = SWIG_From_int((int)result);
15133 return resultobj;
15134 fail:
15135 return NULL;
15136 }
15137
15138
15139 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15140 PyObject *resultobj;
15141 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15142 int arg2 ;
15143 PyObject * obj0 = 0 ;
15144 PyObject * obj1 = 0 ;
15145 char *kwnames[] = {
15146 (char *) "self",(char *) "nOldSel", NULL
15147 };
15148
15149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
15150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15152 arg2 = (int)SWIG_As_int(obj1);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 {
15155 PyThreadState* __tstate = wxPyBeginAllowThreads();
15156 (arg1)->SetOldSelection(arg2);
15157
15158 wxPyEndAllowThreads(__tstate);
15159 if (PyErr_Occurred()) SWIG_fail;
15160 }
15161 Py_INCREF(Py_None); resultobj = Py_None;
15162 return resultobj;
15163 fail:
15164 return NULL;
15165 }
15166
15167
15168 static PyObject * BookCtrlEvent_swigregister(PyObject *, PyObject *args) {
15169 PyObject *obj;
15170 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15171 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
15172 Py_INCREF(obj);
15173 return Py_BuildValue((char *)"");
15174 }
15175 static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) {
15176 PyObject *resultobj;
15177 wxWindow *arg1 = (wxWindow *) 0 ;
15178 int arg2 = (int) -1 ;
15179 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15180 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15181 wxSize const &arg4_defvalue = wxDefaultSize ;
15182 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15183 long arg5 = (long) 0 ;
15184 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
15185 wxString *arg6 = (wxString *) &arg6_defvalue ;
15186 wxNotebook *result;
15187 wxPoint temp3 ;
15188 wxSize temp4 ;
15189 bool temp6 = False ;
15190 PyObject * obj0 = 0 ;
15191 PyObject * obj1 = 0 ;
15192 PyObject * obj2 = 0 ;
15193 PyObject * obj3 = 0 ;
15194 PyObject * obj4 = 0 ;
15195 PyObject * obj5 = 0 ;
15196 char *kwnames[] = {
15197 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15198 };
15199
15200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15203 if (obj1) {
15204 arg2 = (int)SWIG_As_int(obj1);
15205 if (PyErr_Occurred()) SWIG_fail;
15206 }
15207 if (obj2) {
15208 {
15209 arg3 = &temp3;
15210 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15211 }
15212 }
15213 if (obj3) {
15214 {
15215 arg4 = &temp4;
15216 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15217 }
15218 }
15219 if (obj4) {
15220 arg5 = (long)SWIG_As_long(obj4);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 if (obj5) {
15224 {
15225 arg6 = wxString_in_helper(obj5);
15226 if (arg6 == NULL) SWIG_fail;
15227 temp6 = True;
15228 }
15229 }
15230 {
15231 if (!wxPyCheckForApp()) SWIG_fail;
15232 PyThreadState* __tstate = wxPyBeginAllowThreads();
15233 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15234
15235 wxPyEndAllowThreads(__tstate);
15236 if (PyErr_Occurred()) SWIG_fail;
15237 }
15238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15239 {
15240 if (temp6)
15241 delete arg6;
15242 }
15243 return resultobj;
15244 fail:
15245 {
15246 if (temp6)
15247 delete arg6;
15248 }
15249 return NULL;
15250 }
15251
15252
15253 static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
15254 PyObject *resultobj;
15255 wxNotebook *result;
15256 char *kwnames[] = {
15257 NULL
15258 };
15259
15260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
15261 {
15262 if (!wxPyCheckForApp()) SWIG_fail;
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 result = (wxNotebook *)new wxNotebook();
15265
15266 wxPyEndAllowThreads(__tstate);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15270 return resultobj;
15271 fail:
15272 return NULL;
15273 }
15274
15275
15276 static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15277 PyObject *resultobj;
15278 wxNotebook *arg1 = (wxNotebook *) 0 ;
15279 wxWindow *arg2 = (wxWindow *) 0 ;
15280 int arg3 = (int) -1 ;
15281 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15282 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15283 wxSize const &arg5_defvalue = wxDefaultSize ;
15284 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15285 long arg6 = (long) 0 ;
15286 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15287 wxString *arg7 = (wxString *) &arg7_defvalue ;
15288 bool result;
15289 wxPoint temp4 ;
15290 wxSize temp5 ;
15291 bool temp7 = False ;
15292 PyObject * obj0 = 0 ;
15293 PyObject * obj1 = 0 ;
15294 PyObject * obj2 = 0 ;
15295 PyObject * obj3 = 0 ;
15296 PyObject * obj4 = 0 ;
15297 PyObject * obj5 = 0 ;
15298 PyObject * obj6 = 0 ;
15299 char *kwnames[] = {
15300 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15301 };
15302
15303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15308 if (obj2) {
15309 arg3 = (int)SWIG_As_int(obj2);
15310 if (PyErr_Occurred()) SWIG_fail;
15311 }
15312 if (obj3) {
15313 {
15314 arg4 = &temp4;
15315 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15316 }
15317 }
15318 if (obj4) {
15319 {
15320 arg5 = &temp5;
15321 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15322 }
15323 }
15324 if (obj5) {
15325 arg6 = (long)SWIG_As_long(obj5);
15326 if (PyErr_Occurred()) SWIG_fail;
15327 }
15328 if (obj6) {
15329 {
15330 arg7 = wxString_in_helper(obj6);
15331 if (arg7 == NULL) SWIG_fail;
15332 temp7 = True;
15333 }
15334 }
15335 {
15336 PyThreadState* __tstate = wxPyBeginAllowThreads();
15337 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15338
15339 wxPyEndAllowThreads(__tstate);
15340 if (PyErr_Occurred()) SWIG_fail;
15341 }
15342 {
15343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15344 }
15345 {
15346 if (temp7)
15347 delete arg7;
15348 }
15349 return resultobj;
15350 fail:
15351 {
15352 if (temp7)
15353 delete arg7;
15354 }
15355 return NULL;
15356 }
15357
15358
15359 static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
15360 PyObject *resultobj;
15361 wxNotebook *arg1 = (wxNotebook *) 0 ;
15362 int result;
15363 PyObject * obj0 = 0 ;
15364 char *kwnames[] = {
15365 (char *) "self", NULL
15366 };
15367
15368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15371 {
15372 PyThreadState* __tstate = wxPyBeginAllowThreads();
15373 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15374
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 resultobj = SWIG_From_int((int)result);
15379 return resultobj;
15380 fail:
15381 return NULL;
15382 }
15383
15384
15385 static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) {
15386 PyObject *resultobj;
15387 wxNotebook *arg1 = (wxNotebook *) 0 ;
15388 wxSize *arg2 = 0 ;
15389 wxSize temp2 ;
15390 PyObject * obj0 = 0 ;
15391 PyObject * obj1 = 0 ;
15392 char *kwnames[] = {
15393 (char *) "self",(char *) "padding", NULL
15394 };
15395
15396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15399 {
15400 arg2 = &temp2;
15401 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15402 }
15403 {
15404 PyThreadState* __tstate = wxPyBeginAllowThreads();
15405 (arg1)->SetPadding((wxSize const &)*arg2);
15406
15407 wxPyEndAllowThreads(__tstate);
15408 if (PyErr_Occurred()) SWIG_fail;
15409 }
15410 Py_INCREF(Py_None); resultobj = Py_None;
15411 return resultobj;
15412 fail:
15413 return NULL;
15414 }
15415
15416
15417 static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) {
15418 PyObject *resultobj;
15419 wxNotebook *arg1 = (wxNotebook *) 0 ;
15420 wxSize *arg2 = 0 ;
15421 wxSize temp2 ;
15422 PyObject * obj0 = 0 ;
15423 PyObject * obj1 = 0 ;
15424 char *kwnames[] = {
15425 (char *) "self",(char *) "sz", NULL
15426 };
15427
15428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15431 {
15432 arg2 = &temp2;
15433 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15434 }
15435 {
15436 PyThreadState* __tstate = wxPyBeginAllowThreads();
15437 (arg1)->SetTabSize((wxSize const &)*arg2);
15438
15439 wxPyEndAllowThreads(__tstate);
15440 if (PyErr_Occurred()) SWIG_fail;
15441 }
15442 Py_INCREF(Py_None); resultobj = Py_None;
15443 return resultobj;
15444 fail:
15445 return NULL;
15446 }
15447
15448
15449 static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
15450 PyObject *resultobj;
15451 wxNotebook *arg1 = (wxNotebook *) 0 ;
15452 wxPoint *arg2 = 0 ;
15453 long *arg3 = (long *) 0 ;
15454 int result;
15455 wxPoint temp2 ;
15456 long temp3 ;
15457 int res3 = 0 ;
15458 PyObject * obj0 = 0 ;
15459 PyObject * obj1 = 0 ;
15460 char *kwnames[] = {
15461 (char *) "self",(char *) "pt", NULL
15462 };
15463
15464 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15468 {
15469 arg2 = &temp2;
15470 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15471 }
15472 {
15473 PyThreadState* __tstate = wxPyBeginAllowThreads();
15474 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15475
15476 wxPyEndAllowThreads(__tstate);
15477 if (PyErr_Occurred()) SWIG_fail;
15478 }
15479 resultobj = SWIG_From_int((int)result);
15480 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15481 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
15482 return resultobj;
15483 fail:
15484 return NULL;
15485 }
15486
15487
15488 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
15489 PyObject *resultobj;
15490 wxNotebook *arg1 = (wxNotebook *) 0 ;
15491 wxSize *arg2 = 0 ;
15492 wxSize result;
15493 wxSize temp2 ;
15494 PyObject * obj0 = 0 ;
15495 PyObject * obj1 = 0 ;
15496 char *kwnames[] = {
15497 (char *) "self",(char *) "sizePage", NULL
15498 };
15499
15500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15503 {
15504 arg2 = &temp2;
15505 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15506 }
15507 {
15508 PyThreadState* __tstate = wxPyBeginAllowThreads();
15509 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15510
15511 wxPyEndAllowThreads(__tstate);
15512 if (PyErr_Occurred()) SWIG_fail;
15513 }
15514 {
15515 wxSize * resultptr;
15516 resultptr = new wxSize((wxSize &) result);
15517 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15518 }
15519 return resultobj;
15520 fail:
15521 return NULL;
15522 }
15523
15524
15525 static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
15526 PyObject *resultobj;
15527 wxNotebook *arg1 = (wxNotebook *) 0 ;
15528 wxWindow *arg2 = (wxWindow *) 0 ;
15529 wxColour *arg3 = 0 ;
15530 wxColour temp3 ;
15531 PyObject * obj0 = 0 ;
15532 PyObject * obj1 = 0 ;
15533 PyObject * obj2 = 0 ;
15534 char *kwnames[] = {
15535 (char *) "self",(char *) "window",(char *) "colour", NULL
15536 };
15537
15538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
15539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15541 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15543 {
15544 arg3 = &temp3;
15545 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15546 }
15547 {
15548 PyThreadState* __tstate = wxPyBeginAllowThreads();
15549 (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3);
15550
15551 wxPyEndAllowThreads(__tstate);
15552 if (PyErr_Occurred()) SWIG_fail;
15553 }
15554 Py_INCREF(Py_None); resultobj = Py_None;
15555 return resultobj;
15556 fail:
15557 return NULL;
15558 }
15559
15560
15561 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15562 PyObject *resultobj;
15563 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15564 wxVisualAttributes result;
15565 PyObject * obj0 = 0 ;
15566 char *kwnames[] = {
15567 (char *) "variant", NULL
15568 };
15569
15570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15571 if (obj0) {
15572 arg1 = (int)SWIG_As_int(obj0);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 {
15576 if (!wxPyCheckForApp()) SWIG_fail;
15577 PyThreadState* __tstate = wxPyBeginAllowThreads();
15578 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15579
15580 wxPyEndAllowThreads(__tstate);
15581 if (PyErr_Occurred()) SWIG_fail;
15582 }
15583 {
15584 wxVisualAttributes * resultptr;
15585 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15586 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15587 }
15588 return resultobj;
15589 fail:
15590 return NULL;
15591 }
15592
15593
15594 static PyObject * Notebook_swigregister(PyObject *, PyObject *args) {
15595 PyObject *obj;
15596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15597 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15598 Py_INCREF(obj);
15599 return Py_BuildValue((char *)"");
15600 }
15601 static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15602 PyObject *resultobj;
15603 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15604 int arg2 = (int) 0 ;
15605 int arg3 = (int) -1 ;
15606 int arg4 = (int) -1 ;
15607 wxNotebookEvent *result;
15608 PyObject * obj0 = 0 ;
15609 PyObject * obj1 = 0 ;
15610 PyObject * obj2 = 0 ;
15611 PyObject * obj3 = 0 ;
15612 char *kwnames[] = {
15613 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15614 };
15615
15616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15617 if (obj0) {
15618 arg1 = (wxEventType)SWIG_As_int(obj0);
15619 if (PyErr_Occurred()) SWIG_fail;
15620 }
15621 if (obj1) {
15622 arg2 = (int)SWIG_As_int(obj1);
15623 if (PyErr_Occurred()) SWIG_fail;
15624 }
15625 if (obj2) {
15626 arg3 = (int)SWIG_As_int(obj2);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
15629 if (obj3) {
15630 arg4 = (int)SWIG_As_int(obj3);
15631 if (PyErr_Occurred()) SWIG_fail;
15632 }
15633 {
15634 PyThreadState* __tstate = wxPyBeginAllowThreads();
15635 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15636
15637 wxPyEndAllowThreads(__tstate);
15638 if (PyErr_Occurred()) SWIG_fail;
15639 }
15640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15641 return resultobj;
15642 fail:
15643 return NULL;
15644 }
15645
15646
15647 static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) {
15648 PyObject *obj;
15649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15650 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15651 Py_INCREF(obj);
15652 return Py_BuildValue((char *)"");
15653 }
15654 static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) {
15655 PyObject *resultobj;
15656 wxWindow *arg1 = (wxWindow *) 0 ;
15657 int arg2 = (int) -1 ;
15658 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15659 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15660 wxSize const &arg4_defvalue = wxDefaultSize ;
15661 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15662 long arg5 = (long) 0 ;
15663 wxString const &arg6_defvalue = wxPyEmptyString ;
15664 wxString *arg6 = (wxString *) &arg6_defvalue ;
15665 wxListbook *result;
15666 wxPoint temp3 ;
15667 wxSize temp4 ;
15668 bool temp6 = False ;
15669 PyObject * obj0 = 0 ;
15670 PyObject * obj1 = 0 ;
15671 PyObject * obj2 = 0 ;
15672 PyObject * obj3 = 0 ;
15673 PyObject * obj4 = 0 ;
15674 PyObject * obj5 = 0 ;
15675 char *kwnames[] = {
15676 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15677 };
15678
15679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15682 if (obj1) {
15683 arg2 = (int)SWIG_As_int(obj1);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 if (obj2) {
15687 {
15688 arg3 = &temp3;
15689 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15690 }
15691 }
15692 if (obj3) {
15693 {
15694 arg4 = &temp4;
15695 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15696 }
15697 }
15698 if (obj4) {
15699 arg5 = (long)SWIG_As_long(obj4);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 }
15702 if (obj5) {
15703 {
15704 arg6 = wxString_in_helper(obj5);
15705 if (arg6 == NULL) SWIG_fail;
15706 temp6 = True;
15707 }
15708 }
15709 {
15710 if (!wxPyCheckForApp()) SWIG_fail;
15711 PyThreadState* __tstate = wxPyBeginAllowThreads();
15712 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15713
15714 wxPyEndAllowThreads(__tstate);
15715 if (PyErr_Occurred()) SWIG_fail;
15716 }
15717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15718 {
15719 if (temp6)
15720 delete arg6;
15721 }
15722 return resultobj;
15723 fail:
15724 {
15725 if (temp6)
15726 delete arg6;
15727 }
15728 return NULL;
15729 }
15730
15731
15732 static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) {
15733 PyObject *resultobj;
15734 wxListbook *result;
15735 char *kwnames[] = {
15736 NULL
15737 };
15738
15739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15740 {
15741 if (!wxPyCheckForApp()) SWIG_fail;
15742 PyThreadState* __tstate = wxPyBeginAllowThreads();
15743 result = (wxListbook *)new wxListbook();
15744
15745 wxPyEndAllowThreads(__tstate);
15746 if (PyErr_Occurred()) SWIG_fail;
15747 }
15748 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15749 return resultobj;
15750 fail:
15751 return NULL;
15752 }
15753
15754
15755 static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15756 PyObject *resultobj;
15757 wxListbook *arg1 = (wxListbook *) 0 ;
15758 wxWindow *arg2 = (wxWindow *) 0 ;
15759 int arg3 = (int) -1 ;
15760 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15761 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15762 wxSize const &arg5_defvalue = wxDefaultSize ;
15763 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15764 long arg6 = (long) 0 ;
15765 wxString const &arg7_defvalue = wxPyEmptyString ;
15766 wxString *arg7 = (wxString *) &arg7_defvalue ;
15767 bool result;
15768 wxPoint temp4 ;
15769 wxSize temp5 ;
15770 bool temp7 = False ;
15771 PyObject * obj0 = 0 ;
15772 PyObject * obj1 = 0 ;
15773 PyObject * obj2 = 0 ;
15774 PyObject * obj3 = 0 ;
15775 PyObject * obj4 = 0 ;
15776 PyObject * obj5 = 0 ;
15777 PyObject * obj6 = 0 ;
15778 char *kwnames[] = {
15779 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15780 };
15781
15782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15785 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15787 if (obj2) {
15788 arg3 = (int)SWIG_As_int(obj2);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 if (obj3) {
15792 {
15793 arg4 = &temp4;
15794 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15795 }
15796 }
15797 if (obj4) {
15798 {
15799 arg5 = &temp5;
15800 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15801 }
15802 }
15803 if (obj5) {
15804 arg6 = (long)SWIG_As_long(obj5);
15805 if (PyErr_Occurred()) SWIG_fail;
15806 }
15807 if (obj6) {
15808 {
15809 arg7 = wxString_in_helper(obj6);
15810 if (arg7 == NULL) SWIG_fail;
15811 temp7 = True;
15812 }
15813 }
15814 {
15815 PyThreadState* __tstate = wxPyBeginAllowThreads();
15816 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15817
15818 wxPyEndAllowThreads(__tstate);
15819 if (PyErr_Occurred()) SWIG_fail;
15820 }
15821 {
15822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15823 }
15824 {
15825 if (temp7)
15826 delete arg7;
15827 }
15828 return resultobj;
15829 fail:
15830 {
15831 if (temp7)
15832 delete arg7;
15833 }
15834 return NULL;
15835 }
15836
15837
15838 static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
15839 PyObject *resultobj;
15840 wxListbook *arg1 = (wxListbook *) 0 ;
15841 bool result;
15842 PyObject * obj0 = 0 ;
15843 char *kwnames[] = {
15844 (char *) "self", NULL
15845 };
15846
15847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15850 {
15851 PyThreadState* __tstate = wxPyBeginAllowThreads();
15852 result = (bool)((wxListbook const *)arg1)->IsVertical();
15853
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 {
15858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15859 }
15860 return resultobj;
15861 fail:
15862 return NULL;
15863 }
15864
15865
15866 static PyObject * Listbook_swigregister(PyObject *, PyObject *args) {
15867 PyObject *obj;
15868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15869 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15870 Py_INCREF(obj);
15871 return Py_BuildValue((char *)"");
15872 }
15873 static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15874 PyObject *resultobj;
15875 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15876 int arg2 = (int) 0 ;
15877 int arg3 = (int) -1 ;
15878 int arg4 = (int) -1 ;
15879 wxListbookEvent *result;
15880 PyObject * obj0 = 0 ;
15881 PyObject * obj1 = 0 ;
15882 PyObject * obj2 = 0 ;
15883 PyObject * obj3 = 0 ;
15884 char *kwnames[] = {
15885 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15886 };
15887
15888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15889 if (obj0) {
15890 arg1 = (wxEventType)SWIG_As_int(obj0);
15891 if (PyErr_Occurred()) SWIG_fail;
15892 }
15893 if (obj1) {
15894 arg2 = (int)SWIG_As_int(obj1);
15895 if (PyErr_Occurred()) SWIG_fail;
15896 }
15897 if (obj2) {
15898 arg3 = (int)SWIG_As_int(obj2);
15899 if (PyErr_Occurred()) SWIG_fail;
15900 }
15901 if (obj3) {
15902 arg4 = (int)SWIG_As_int(obj3);
15903 if (PyErr_Occurred()) SWIG_fail;
15904 }
15905 {
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15908
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15913 return resultobj;
15914 fail:
15915 return NULL;
15916 }
15917
15918
15919 static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) {
15920 PyObject *obj;
15921 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15922 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15923 Py_INCREF(obj);
15924 return Py_BuildValue((char *)"");
15925 }
15926 static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) {
15927 PyObject *resultobj;
15928 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15929 wxBookCtrlSizer *result;
15930 PyObject * obj0 = 0 ;
15931 char *kwnames[] = {
15932 (char *) "nb", NULL
15933 };
15934
15935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15938 {
15939 PyThreadState* __tstate = wxPyBeginAllowThreads();
15940 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15941
15942 wxPyEndAllowThreads(__tstate);
15943 if (PyErr_Occurred()) SWIG_fail;
15944 }
15945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15946 return resultobj;
15947 fail:
15948 return NULL;
15949 }
15950
15951
15952 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
15953 PyObject *resultobj;
15954 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15955 PyObject * obj0 = 0 ;
15956 char *kwnames[] = {
15957 (char *) "self", NULL
15958 };
15959
15960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15963 {
15964 PyThreadState* __tstate = wxPyBeginAllowThreads();
15965 (arg1)->RecalcSizes();
15966
15967 wxPyEndAllowThreads(__tstate);
15968 if (PyErr_Occurred()) SWIG_fail;
15969 }
15970 Py_INCREF(Py_None); resultobj = Py_None;
15971 return resultobj;
15972 fail:
15973 return NULL;
15974 }
15975
15976
15977 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
15978 PyObject *resultobj;
15979 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15980 wxSize result;
15981 PyObject * obj0 = 0 ;
15982 char *kwnames[] = {
15983 (char *) "self", NULL
15984 };
15985
15986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
15987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15989 {
15990 PyThreadState* __tstate = wxPyBeginAllowThreads();
15991 result = (arg1)->CalcMin();
15992
15993 wxPyEndAllowThreads(__tstate);
15994 if (PyErr_Occurred()) SWIG_fail;
15995 }
15996 {
15997 wxSize * resultptr;
15998 resultptr = new wxSize((wxSize &) result);
15999 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16000 }
16001 return resultobj;
16002 fail:
16003 return NULL;
16004 }
16005
16006
16007 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16008 PyObject *resultobj;
16009 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16010 wxBookCtrl *result;
16011 PyObject * obj0 = 0 ;
16012 char *kwnames[] = {
16013 (char *) "self", NULL
16014 };
16015
16016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
16017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16019 {
16020 PyThreadState* __tstate = wxPyBeginAllowThreads();
16021 result = (wxBookCtrl *)(arg1)->GetControl();
16022
16023 wxPyEndAllowThreads(__tstate);
16024 if (PyErr_Occurred()) SWIG_fail;
16025 }
16026 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
16027 return resultobj;
16028 fail:
16029 return NULL;
16030 }
16031
16032
16033 static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) {
16034 PyObject *obj;
16035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16036 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
16037 Py_INCREF(obj);
16038 return Py_BuildValue((char *)"");
16039 }
16040 static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16041 PyObject *resultobj;
16042 wxNotebook *arg1 = (wxNotebook *) 0 ;
16043 wxNotebookSizer *result;
16044 PyObject * obj0 = 0 ;
16045 char *kwnames[] = {
16046 (char *) "nb", NULL
16047 };
16048
16049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
16050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
16051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16052 {
16053 PyThreadState* __tstate = wxPyBeginAllowThreads();
16054 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
16055
16056 wxPyEndAllowThreads(__tstate);
16057 if (PyErr_Occurred()) SWIG_fail;
16058 }
16059 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
16060 return resultobj;
16061 fail:
16062 return NULL;
16063 }
16064
16065
16066 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16067 PyObject *resultobj;
16068 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16069 PyObject * obj0 = 0 ;
16070 char *kwnames[] = {
16071 (char *) "self", NULL
16072 };
16073
16074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16077 {
16078 PyThreadState* __tstate = wxPyBeginAllowThreads();
16079 (arg1)->RecalcSizes();
16080
16081 wxPyEndAllowThreads(__tstate);
16082 if (PyErr_Occurred()) SWIG_fail;
16083 }
16084 Py_INCREF(Py_None); resultobj = Py_None;
16085 return resultobj;
16086 fail:
16087 return NULL;
16088 }
16089
16090
16091 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16092 PyObject *resultobj;
16093 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16094 wxSize result;
16095 PyObject * obj0 = 0 ;
16096 char *kwnames[] = {
16097 (char *) "self", NULL
16098 };
16099
16100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
16101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
16105 result = (arg1)->CalcMin();
16106
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 {
16111 wxSize * resultptr;
16112 resultptr = new wxSize((wxSize &) result);
16113 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16114 }
16115 return resultobj;
16116 fail:
16117 return NULL;
16118 }
16119
16120
16121 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
16122 PyObject *resultobj;
16123 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16124 wxNotebook *result;
16125 PyObject * obj0 = 0 ;
16126 char *kwnames[] = {
16127 (char *) "self", NULL
16128 };
16129
16130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
16131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16133 {
16134 PyThreadState* __tstate = wxPyBeginAllowThreads();
16135 result = (wxNotebook *)(arg1)->GetNotebook();
16136
16137 wxPyEndAllowThreads(__tstate);
16138 if (PyErr_Occurred()) SWIG_fail;
16139 }
16140 {
16141 resultobj = wxPyMake_wxObject(result, 0);
16142 }
16143 return resultobj;
16144 fail:
16145 return NULL;
16146 }
16147
16148
16149 static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) {
16150 PyObject *obj;
16151 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16152 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
16153 Py_INCREF(obj);
16154 return Py_BuildValue((char *)"");
16155 }
16156 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
16157 PyObject *resultobj;
16158 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16159 int result;
16160 PyObject * obj0 = 0 ;
16161 char *kwnames[] = {
16162 (char *) "self", NULL
16163 };
16164
16165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
16166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16168 {
16169 PyThreadState* __tstate = wxPyBeginAllowThreads();
16170 result = (int)(arg1)->GetId();
16171
16172 wxPyEndAllowThreads(__tstate);
16173 if (PyErr_Occurred()) SWIG_fail;
16174 }
16175 resultobj = SWIG_From_int((int)result);
16176 return resultobj;
16177 fail:
16178 return NULL;
16179 }
16180
16181
16182 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16183 PyObject *resultobj;
16184 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16185 wxControl *result;
16186 PyObject * obj0 = 0 ;
16187 char *kwnames[] = {
16188 (char *) "self", NULL
16189 };
16190
16191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
16192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16194 {
16195 PyThreadState* __tstate = wxPyBeginAllowThreads();
16196 result = (wxControl *)(arg1)->GetControl();
16197
16198 wxPyEndAllowThreads(__tstate);
16199 if (PyErr_Occurred()) SWIG_fail;
16200 }
16201 {
16202 resultobj = wxPyMake_wxObject(result, 0);
16203 }
16204 return resultobj;
16205 fail:
16206 return NULL;
16207 }
16208
16209
16210 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
16211 PyObject *resultobj;
16212 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16213 wxToolBarBase *result;
16214 PyObject * obj0 = 0 ;
16215 char *kwnames[] = {
16216 (char *) "self", NULL
16217 };
16218
16219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
16220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16222 {
16223 PyThreadState* __tstate = wxPyBeginAllowThreads();
16224 result = (wxToolBarBase *)(arg1)->GetToolBar();
16225
16226 wxPyEndAllowThreads(__tstate);
16227 if (PyErr_Occurred()) SWIG_fail;
16228 }
16229 {
16230 resultobj = wxPyMake_wxObject(result, 0);
16231 }
16232 return resultobj;
16233 fail:
16234 return NULL;
16235 }
16236
16237
16238 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
16239 PyObject *resultobj;
16240 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16241 int result;
16242 PyObject * obj0 = 0 ;
16243 char *kwnames[] = {
16244 (char *) "self", NULL
16245 };
16246
16247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
16248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16250 {
16251 PyThreadState* __tstate = wxPyBeginAllowThreads();
16252 result = (int)(arg1)->IsButton();
16253
16254 wxPyEndAllowThreads(__tstate);
16255 if (PyErr_Occurred()) SWIG_fail;
16256 }
16257 resultobj = SWIG_From_int((int)result);
16258 return resultobj;
16259 fail:
16260 return NULL;
16261 }
16262
16263
16264 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) {
16265 PyObject *resultobj;
16266 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16267 int result;
16268 PyObject * obj0 = 0 ;
16269 char *kwnames[] = {
16270 (char *) "self", NULL
16271 };
16272
16273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
16274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 result = (int)(arg1)->IsControl();
16279
16280 wxPyEndAllowThreads(__tstate);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 }
16283 resultobj = SWIG_From_int((int)result);
16284 return resultobj;
16285 fail:
16286 return NULL;
16287 }
16288
16289
16290 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16291 PyObject *resultobj;
16292 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16293 int result;
16294 PyObject * obj0 = 0 ;
16295 char *kwnames[] = {
16296 (char *) "self", NULL
16297 };
16298
16299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16302 {
16303 PyThreadState* __tstate = wxPyBeginAllowThreads();
16304 result = (int)(arg1)->IsSeparator();
16305
16306 wxPyEndAllowThreads(__tstate);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 }
16309 resultobj = SWIG_From_int((int)result);
16310 return resultobj;
16311 fail:
16312 return NULL;
16313 }
16314
16315
16316 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16317 PyObject *resultobj;
16318 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16319 int result;
16320 PyObject * obj0 = 0 ;
16321 char *kwnames[] = {
16322 (char *) "self", NULL
16323 };
16324
16325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16328 {
16329 PyThreadState* __tstate = wxPyBeginAllowThreads();
16330 result = (int)(arg1)->GetStyle();
16331
16332 wxPyEndAllowThreads(__tstate);
16333 if (PyErr_Occurred()) SWIG_fail;
16334 }
16335 resultobj = SWIG_From_int((int)result);
16336 return resultobj;
16337 fail:
16338 return NULL;
16339 }
16340
16341
16342 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
16343 PyObject *resultobj;
16344 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16345 int result;
16346 PyObject * obj0 = 0 ;
16347 char *kwnames[] = {
16348 (char *) "self", NULL
16349 };
16350
16351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
16356 result = (int)(arg1)->GetKind();
16357
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 resultobj = SWIG_From_int((int)result);
16362 return resultobj;
16363 fail:
16364 return NULL;
16365 }
16366
16367
16368 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
16369 PyObject *resultobj;
16370 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16371 bool result;
16372 PyObject * obj0 = 0 ;
16373 char *kwnames[] = {
16374 (char *) "self", NULL
16375 };
16376
16377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16380 {
16381 PyThreadState* __tstate = wxPyBeginAllowThreads();
16382 result = (bool)(arg1)->IsEnabled();
16383
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 {
16388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16389 }
16390 return resultobj;
16391 fail:
16392 return NULL;
16393 }
16394
16395
16396 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16397 PyObject *resultobj;
16398 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16399 bool result;
16400 PyObject * obj0 = 0 ;
16401 char *kwnames[] = {
16402 (char *) "self", NULL
16403 };
16404
16405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16408 {
16409 PyThreadState* __tstate = wxPyBeginAllowThreads();
16410 result = (bool)(arg1)->IsToggled();
16411
16412 wxPyEndAllowThreads(__tstate);
16413 if (PyErr_Occurred()) SWIG_fail;
16414 }
16415 {
16416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16417 }
16418 return resultobj;
16419 fail:
16420 return NULL;
16421 }
16422
16423
16424 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16425 PyObject *resultobj;
16426 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16427 bool result;
16428 PyObject * obj0 = 0 ;
16429 char *kwnames[] = {
16430 (char *) "self", NULL
16431 };
16432
16433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16436 {
16437 PyThreadState* __tstate = wxPyBeginAllowThreads();
16438 result = (bool)(arg1)->CanBeToggled();
16439
16440 wxPyEndAllowThreads(__tstate);
16441 if (PyErr_Occurred()) SWIG_fail;
16442 }
16443 {
16444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16445 }
16446 return resultobj;
16447 fail:
16448 return NULL;
16449 }
16450
16451
16452 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16453 PyObject *resultobj;
16454 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16455 wxBitmap *result;
16456 PyObject * obj0 = 0 ;
16457 char *kwnames[] = {
16458 (char *) "self", NULL
16459 };
16460
16461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16464 {
16465 PyThreadState* __tstate = wxPyBeginAllowThreads();
16466 {
16467 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16468 result = (wxBitmap *) &_result_ref;
16469 }
16470
16471 wxPyEndAllowThreads(__tstate);
16472 if (PyErr_Occurred()) SWIG_fail;
16473 }
16474 {
16475 wxBitmap* resultptr = new wxBitmap(*result);
16476 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16477 }
16478 return resultobj;
16479 fail:
16480 return NULL;
16481 }
16482
16483
16484 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16485 PyObject *resultobj;
16486 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16487 wxBitmap *result;
16488 PyObject * obj0 = 0 ;
16489 char *kwnames[] = {
16490 (char *) "self", NULL
16491 };
16492
16493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16496 {
16497 PyThreadState* __tstate = wxPyBeginAllowThreads();
16498 {
16499 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16500 result = (wxBitmap *) &_result_ref;
16501 }
16502
16503 wxPyEndAllowThreads(__tstate);
16504 if (PyErr_Occurred()) SWIG_fail;
16505 }
16506 {
16507 wxBitmap* resultptr = new wxBitmap(*result);
16508 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16509 }
16510 return resultobj;
16511 fail:
16512 return NULL;
16513 }
16514
16515
16516 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16517 PyObject *resultobj;
16518 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16519 wxBitmap result;
16520 PyObject * obj0 = 0 ;
16521 char *kwnames[] = {
16522 (char *) "self", NULL
16523 };
16524
16525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16528 {
16529 PyThreadState* __tstate = wxPyBeginAllowThreads();
16530 result = (arg1)->GetBitmap();
16531
16532 wxPyEndAllowThreads(__tstate);
16533 if (PyErr_Occurred()) SWIG_fail;
16534 }
16535 {
16536 wxBitmap * resultptr;
16537 resultptr = new wxBitmap((wxBitmap &) result);
16538 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16539 }
16540 return resultobj;
16541 fail:
16542 return NULL;
16543 }
16544
16545
16546 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16547 PyObject *resultobj;
16548 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16549 wxString result;
16550 PyObject * obj0 = 0 ;
16551 char *kwnames[] = {
16552 (char *) "self", NULL
16553 };
16554
16555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16558 {
16559 PyThreadState* __tstate = wxPyBeginAllowThreads();
16560 result = (arg1)->GetLabel();
16561
16562 wxPyEndAllowThreads(__tstate);
16563 if (PyErr_Occurred()) SWIG_fail;
16564 }
16565 {
16566 #if wxUSE_UNICODE
16567 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16568 #else
16569 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16570 #endif
16571 }
16572 return resultobj;
16573 fail:
16574 return NULL;
16575 }
16576
16577
16578 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16579 PyObject *resultobj;
16580 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16581 wxString result;
16582 PyObject * obj0 = 0 ;
16583 char *kwnames[] = {
16584 (char *) "self", NULL
16585 };
16586
16587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16590 {
16591 PyThreadState* __tstate = wxPyBeginAllowThreads();
16592 result = (arg1)->GetShortHelp();
16593
16594 wxPyEndAllowThreads(__tstate);
16595 if (PyErr_Occurred()) SWIG_fail;
16596 }
16597 {
16598 #if wxUSE_UNICODE
16599 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16600 #else
16601 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16602 #endif
16603 }
16604 return resultobj;
16605 fail:
16606 return NULL;
16607 }
16608
16609
16610 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16611 PyObject *resultobj;
16612 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16613 wxString result;
16614 PyObject * obj0 = 0 ;
16615 char *kwnames[] = {
16616 (char *) "self", NULL
16617 };
16618
16619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16622 {
16623 PyThreadState* __tstate = wxPyBeginAllowThreads();
16624 result = (arg1)->GetLongHelp();
16625
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
16629 {
16630 #if wxUSE_UNICODE
16631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16632 #else
16633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16634 #endif
16635 }
16636 return resultobj;
16637 fail:
16638 return NULL;
16639 }
16640
16641
16642 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
16643 PyObject *resultobj;
16644 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16645 bool arg2 ;
16646 bool result;
16647 PyObject * obj0 = 0 ;
16648 PyObject * obj1 = 0 ;
16649 char *kwnames[] = {
16650 (char *) "self",(char *) "enable", NULL
16651 };
16652
16653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16656 arg2 = (bool)SWIG_As_bool(obj1);
16657 if (PyErr_Occurred()) SWIG_fail;
16658 {
16659 PyThreadState* __tstate = wxPyBeginAllowThreads();
16660 result = (bool)(arg1)->Enable(arg2);
16661
16662 wxPyEndAllowThreads(__tstate);
16663 if (PyErr_Occurred()) SWIG_fail;
16664 }
16665 {
16666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16667 }
16668 return resultobj;
16669 fail:
16670 return NULL;
16671 }
16672
16673
16674 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
16675 PyObject *resultobj;
16676 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16677 PyObject * obj0 = 0 ;
16678 char *kwnames[] = {
16679 (char *) "self", NULL
16680 };
16681
16682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 (arg1)->Toggle();
16688
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 Py_INCREF(Py_None); resultobj = Py_None;
16693 return resultobj;
16694 fail:
16695 return NULL;
16696 }
16697
16698
16699 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
16700 PyObject *resultobj;
16701 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16702 bool arg2 ;
16703 bool result;
16704 PyObject * obj0 = 0 ;
16705 PyObject * obj1 = 0 ;
16706 char *kwnames[] = {
16707 (char *) "self",(char *) "toggle", NULL
16708 };
16709
16710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16713 arg2 = (bool)SWIG_As_bool(obj1);
16714 if (PyErr_Occurred()) SWIG_fail;
16715 {
16716 PyThreadState* __tstate = wxPyBeginAllowThreads();
16717 result = (bool)(arg1)->SetToggle(arg2);
16718
16719 wxPyEndAllowThreads(__tstate);
16720 if (PyErr_Occurred()) SWIG_fail;
16721 }
16722 {
16723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16724 }
16725 return resultobj;
16726 fail:
16727 return NULL;
16728 }
16729
16730
16731 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16732 PyObject *resultobj;
16733 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16734 wxString *arg2 = 0 ;
16735 bool result;
16736 bool temp2 = False ;
16737 PyObject * obj0 = 0 ;
16738 PyObject * obj1 = 0 ;
16739 char *kwnames[] = {
16740 (char *) "self",(char *) "help", NULL
16741 };
16742
16743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16746 {
16747 arg2 = wxString_in_helper(obj1);
16748 if (arg2 == NULL) SWIG_fail;
16749 temp2 = True;
16750 }
16751 {
16752 PyThreadState* __tstate = wxPyBeginAllowThreads();
16753 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
16754
16755 wxPyEndAllowThreads(__tstate);
16756 if (PyErr_Occurred()) SWIG_fail;
16757 }
16758 {
16759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16760 }
16761 {
16762 if (temp2)
16763 delete arg2;
16764 }
16765 return resultobj;
16766 fail:
16767 {
16768 if (temp2)
16769 delete arg2;
16770 }
16771 return NULL;
16772 }
16773
16774
16775 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16776 PyObject *resultobj;
16777 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16778 wxString *arg2 = 0 ;
16779 bool result;
16780 bool temp2 = False ;
16781 PyObject * obj0 = 0 ;
16782 PyObject * obj1 = 0 ;
16783 char *kwnames[] = {
16784 (char *) "self",(char *) "help", NULL
16785 };
16786
16787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16790 {
16791 arg2 = wxString_in_helper(obj1);
16792 if (arg2 == NULL) SWIG_fail;
16793 temp2 = True;
16794 }
16795 {
16796 PyThreadState* __tstate = wxPyBeginAllowThreads();
16797 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16798
16799 wxPyEndAllowThreads(__tstate);
16800 if (PyErr_Occurred()) SWIG_fail;
16801 }
16802 {
16803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16804 }
16805 {
16806 if (temp2)
16807 delete arg2;
16808 }
16809 return resultobj;
16810 fail:
16811 {
16812 if (temp2)
16813 delete arg2;
16814 }
16815 return NULL;
16816 }
16817
16818
16819 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16820 PyObject *resultobj;
16821 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16822 wxBitmap *arg2 = 0 ;
16823 PyObject * obj0 = 0 ;
16824 PyObject * obj1 = 0 ;
16825 char *kwnames[] = {
16826 (char *) "self",(char *) "bmp", NULL
16827 };
16828
16829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16832 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16833 SWIG_POINTER_EXCEPTION | 0)) == -1)
16834 SWIG_fail;
16835 if (arg2 == NULL) {
16836 PyErr_SetString(PyExc_TypeError,"null reference");
16837 SWIG_fail;
16838 }
16839 {
16840 PyThreadState* __tstate = wxPyBeginAllowThreads();
16841 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16842
16843 wxPyEndAllowThreads(__tstate);
16844 if (PyErr_Occurred()) SWIG_fail;
16845 }
16846 Py_INCREF(Py_None); resultobj = Py_None;
16847 return resultobj;
16848 fail:
16849 return NULL;
16850 }
16851
16852
16853 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16854 PyObject *resultobj;
16855 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16856 wxBitmap *arg2 = 0 ;
16857 PyObject * obj0 = 0 ;
16858 PyObject * obj1 = 0 ;
16859 char *kwnames[] = {
16860 (char *) "self",(char *) "bmp", NULL
16861 };
16862
16863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16866 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16867 SWIG_POINTER_EXCEPTION | 0)) == -1)
16868 SWIG_fail;
16869 if (arg2 == NULL) {
16870 PyErr_SetString(PyExc_TypeError,"null reference");
16871 SWIG_fail;
16872 }
16873 {
16874 PyThreadState* __tstate = wxPyBeginAllowThreads();
16875 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16876
16877 wxPyEndAllowThreads(__tstate);
16878 if (PyErr_Occurred()) SWIG_fail;
16879 }
16880 Py_INCREF(Py_None); resultobj = Py_None;
16881 return resultobj;
16882 fail:
16883 return NULL;
16884 }
16885
16886
16887 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16888 PyObject *resultobj;
16889 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16890 wxString *arg2 = 0 ;
16891 bool temp2 = False ;
16892 PyObject * obj0 = 0 ;
16893 PyObject * obj1 = 0 ;
16894 char *kwnames[] = {
16895 (char *) "self",(char *) "label", NULL
16896 };
16897
16898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16901 {
16902 arg2 = wxString_in_helper(obj1);
16903 if (arg2 == NULL) SWIG_fail;
16904 temp2 = True;
16905 }
16906 {
16907 PyThreadState* __tstate = wxPyBeginAllowThreads();
16908 (arg1)->SetLabel((wxString const &)*arg2);
16909
16910 wxPyEndAllowThreads(__tstate);
16911 if (PyErr_Occurred()) SWIG_fail;
16912 }
16913 Py_INCREF(Py_None); resultobj = Py_None;
16914 {
16915 if (temp2)
16916 delete arg2;
16917 }
16918 return resultobj;
16919 fail:
16920 {
16921 if (temp2)
16922 delete arg2;
16923 }
16924 return NULL;
16925 }
16926
16927
16928 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
16929 PyObject *resultobj;
16930 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16931 PyObject * obj0 = 0 ;
16932 char *kwnames[] = {
16933 (char *) "self", NULL
16934 };
16935
16936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 (arg1)->Detach();
16942
16943 wxPyEndAllowThreads(__tstate);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 }
16946 Py_INCREF(Py_None); resultobj = Py_None;
16947 return resultobj;
16948 fail:
16949 return NULL;
16950 }
16951
16952
16953 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj;
16955 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16956 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16957 PyObject * obj0 = 0 ;
16958 PyObject * obj1 = 0 ;
16959 char *kwnames[] = {
16960 (char *) "self",(char *) "tbar", NULL
16961 };
16962
16963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16966 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16968 {
16969 PyThreadState* __tstate = wxPyBeginAllowThreads();
16970 (arg1)->Attach(arg2);
16971
16972 wxPyEndAllowThreads(__tstate);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
16975 Py_INCREF(Py_None); resultobj = Py_None;
16976 return resultobj;
16977 fail:
16978 return NULL;
16979 }
16980
16981
16982 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
16983 PyObject *resultobj;
16984 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16985 PyObject *result;
16986 PyObject * obj0 = 0 ;
16987 char *kwnames[] = {
16988 (char *) "self", NULL
16989 };
16990
16991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
16992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16994 {
16995 PyThreadState* __tstate = wxPyBeginAllowThreads();
16996 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
16997
16998 wxPyEndAllowThreads(__tstate);
16999 if (PyErr_Occurred()) SWIG_fail;
17000 }
17001 resultobj = result;
17002 return resultobj;
17003 fail:
17004 return NULL;
17005 }
17006
17007
17008 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17009 PyObject *resultobj;
17010 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17011 PyObject *arg2 = (PyObject *) 0 ;
17012 PyObject * obj0 = 0 ;
17013 PyObject * obj1 = 0 ;
17014 char *kwnames[] = {
17015 (char *) "self",(char *) "clientData", NULL
17016 };
17017
17018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
17019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17021 arg2 = obj1;
17022 {
17023 PyThreadState* __tstate = wxPyBeginAllowThreads();
17024 wxToolBarToolBase_SetClientData(arg1,arg2);
17025
17026 wxPyEndAllowThreads(__tstate);
17027 if (PyErr_Occurred()) SWIG_fail;
17028 }
17029 Py_INCREF(Py_None); resultobj = Py_None;
17030 return resultobj;
17031 fail:
17032 return NULL;
17033 }
17034
17035
17036 static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) {
17037 PyObject *obj;
17038 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17039 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
17040 Py_INCREF(obj);
17041 return Py_BuildValue((char *)"");
17042 }
17043 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) {
17044 PyObject *resultobj;
17045 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17046 int arg2 ;
17047 wxString *arg3 = 0 ;
17048 wxBitmap *arg4 = 0 ;
17049 wxBitmap const &arg5_defvalue = wxNullBitmap ;
17050 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
17051 int arg6 = (int) wxITEM_NORMAL ;
17052 wxString const &arg7_defvalue = wxPyEmptyString ;
17053 wxString *arg7 = (wxString *) &arg7_defvalue ;
17054 wxString const &arg8_defvalue = wxPyEmptyString ;
17055 wxString *arg8 = (wxString *) &arg8_defvalue ;
17056 PyObject *arg9 = (PyObject *) NULL ;
17057 wxToolBarToolBase *result;
17058 bool temp3 = False ;
17059 bool temp7 = False ;
17060 bool temp8 = False ;
17061 PyObject * obj0 = 0 ;
17062 PyObject * obj1 = 0 ;
17063 PyObject * obj2 = 0 ;
17064 PyObject * obj3 = 0 ;
17065 PyObject * obj4 = 0 ;
17066 PyObject * obj5 = 0 ;
17067 PyObject * obj6 = 0 ;
17068 PyObject * obj7 = 0 ;
17069 PyObject * obj8 = 0 ;
17070 char *kwnames[] = {
17071 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17072 };
17073
17074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
17075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17077 arg2 = (int)SWIG_As_int(obj1);
17078 if (PyErr_Occurred()) SWIG_fail;
17079 {
17080 arg3 = wxString_in_helper(obj2);
17081 if (arg3 == NULL) SWIG_fail;
17082 temp3 = True;
17083 }
17084 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17085 SWIG_POINTER_EXCEPTION | 0)) == -1)
17086 SWIG_fail;
17087 if (arg4 == NULL) {
17088 PyErr_SetString(PyExc_TypeError,"null reference");
17089 SWIG_fail;
17090 }
17091 if (obj4) {
17092 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17093 SWIG_POINTER_EXCEPTION | 0)) == -1)
17094 SWIG_fail;
17095 if (arg5 == NULL) {
17096 PyErr_SetString(PyExc_TypeError,"null reference");
17097 SWIG_fail;
17098 }
17099 }
17100 if (obj5) {
17101 arg6 = (int)SWIG_As_int(obj5);
17102 if (PyErr_Occurred()) SWIG_fail;
17103 }
17104 if (obj6) {
17105 {
17106 arg7 = wxString_in_helper(obj6);
17107 if (arg7 == NULL) SWIG_fail;
17108 temp7 = True;
17109 }
17110 }
17111 if (obj7) {
17112 {
17113 arg8 = wxString_in_helper(obj7);
17114 if (arg8 == NULL) SWIG_fail;
17115 temp8 = True;
17116 }
17117 }
17118 if (obj8) {
17119 arg9 = obj8;
17120 }
17121 {
17122 PyThreadState* __tstate = wxPyBeginAllowThreads();
17123 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
17124
17125 wxPyEndAllowThreads(__tstate);
17126 if (PyErr_Occurred()) SWIG_fail;
17127 }
17128 {
17129 resultobj = wxPyMake_wxObject(result, 0);
17130 }
17131 {
17132 if (temp3)
17133 delete arg3;
17134 }
17135 {
17136 if (temp7)
17137 delete arg7;
17138 }
17139 {
17140 if (temp8)
17141 delete arg8;
17142 }
17143 return resultobj;
17144 fail:
17145 {
17146 if (temp3)
17147 delete arg3;
17148 }
17149 {
17150 if (temp7)
17151 delete arg7;
17152 }
17153 {
17154 if (temp8)
17155 delete arg8;
17156 }
17157 return NULL;
17158 }
17159
17160
17161 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) {
17162 PyObject *resultobj;
17163 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17164 size_t arg2 ;
17165 int arg3 ;
17166 wxString *arg4 = 0 ;
17167 wxBitmap *arg5 = 0 ;
17168 wxBitmap const &arg6_defvalue = wxNullBitmap ;
17169 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
17170 int arg7 = (int) wxITEM_NORMAL ;
17171 wxString const &arg8_defvalue = wxPyEmptyString ;
17172 wxString *arg8 = (wxString *) &arg8_defvalue ;
17173 wxString const &arg9_defvalue = wxPyEmptyString ;
17174 wxString *arg9 = (wxString *) &arg9_defvalue ;
17175 PyObject *arg10 = (PyObject *) NULL ;
17176 wxToolBarToolBase *result;
17177 bool temp4 = False ;
17178 bool temp8 = False ;
17179 bool temp9 = False ;
17180 PyObject * obj0 = 0 ;
17181 PyObject * obj1 = 0 ;
17182 PyObject * obj2 = 0 ;
17183 PyObject * obj3 = 0 ;
17184 PyObject * obj4 = 0 ;
17185 PyObject * obj5 = 0 ;
17186 PyObject * obj6 = 0 ;
17187 PyObject * obj7 = 0 ;
17188 PyObject * obj8 = 0 ;
17189 PyObject * obj9 = 0 ;
17190 char *kwnames[] = {
17191 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17192 };
17193
17194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
17195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17197 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17198 if (PyErr_Occurred()) SWIG_fail;
17199 arg3 = (int)SWIG_As_int(obj2);
17200 if (PyErr_Occurred()) SWIG_fail;
17201 {
17202 arg4 = wxString_in_helper(obj3);
17203 if (arg4 == NULL) SWIG_fail;
17204 temp4 = True;
17205 }
17206 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17207 SWIG_POINTER_EXCEPTION | 0)) == -1)
17208 SWIG_fail;
17209 if (arg5 == NULL) {
17210 PyErr_SetString(PyExc_TypeError,"null reference");
17211 SWIG_fail;
17212 }
17213 if (obj5) {
17214 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
17215 SWIG_POINTER_EXCEPTION | 0)) == -1)
17216 SWIG_fail;
17217 if (arg6 == NULL) {
17218 PyErr_SetString(PyExc_TypeError,"null reference");
17219 SWIG_fail;
17220 }
17221 }
17222 if (obj6) {
17223 arg7 = (int)SWIG_As_int(obj6);
17224 if (PyErr_Occurred()) SWIG_fail;
17225 }
17226 if (obj7) {
17227 {
17228 arg8 = wxString_in_helper(obj7);
17229 if (arg8 == NULL) SWIG_fail;
17230 temp8 = True;
17231 }
17232 }
17233 if (obj8) {
17234 {
17235 arg9 = wxString_in_helper(obj8);
17236 if (arg9 == NULL) SWIG_fail;
17237 temp9 = True;
17238 }
17239 }
17240 if (obj9) {
17241 arg10 = obj9;
17242 }
17243 {
17244 PyThreadState* __tstate = wxPyBeginAllowThreads();
17245 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);
17246
17247 wxPyEndAllowThreads(__tstate);
17248 if (PyErr_Occurred()) SWIG_fail;
17249 }
17250 {
17251 resultobj = wxPyMake_wxObject(result, 0);
17252 }
17253 {
17254 if (temp4)
17255 delete arg4;
17256 }
17257 {
17258 if (temp8)
17259 delete arg8;
17260 }
17261 {
17262 if (temp9)
17263 delete arg9;
17264 }
17265 return resultobj;
17266 fail:
17267 {
17268 if (temp4)
17269 delete arg4;
17270 }
17271 {
17272 if (temp8)
17273 delete arg8;
17274 }
17275 {
17276 if (temp9)
17277 delete arg9;
17278 }
17279 return NULL;
17280 }
17281
17282
17283 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17284 PyObject *resultobj;
17285 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17286 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17287 wxToolBarToolBase *result;
17288 PyObject * obj0 = 0 ;
17289 PyObject * obj1 = 0 ;
17290 char *kwnames[] = {
17291 (char *) "self",(char *) "tool", NULL
17292 };
17293
17294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17297 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17299 {
17300 PyThreadState* __tstate = wxPyBeginAllowThreads();
17301 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17302
17303 wxPyEndAllowThreads(__tstate);
17304 if (PyErr_Occurred()) SWIG_fail;
17305 }
17306 {
17307 resultobj = wxPyMake_wxObject(result, 0);
17308 }
17309 return resultobj;
17310 fail:
17311 return NULL;
17312 }
17313
17314
17315 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17316 PyObject *resultobj;
17317 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17318 size_t arg2 ;
17319 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17320 wxToolBarToolBase *result;
17321 PyObject * obj0 = 0 ;
17322 PyObject * obj1 = 0 ;
17323 PyObject * obj2 = 0 ;
17324 char *kwnames[] = {
17325 (char *) "self",(char *) "pos",(char *) "tool", NULL
17326 };
17327
17328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17331 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17332 if (PyErr_Occurred()) SWIG_fail;
17333 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17335 {
17336 PyThreadState* __tstate = wxPyBeginAllowThreads();
17337 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17338
17339 wxPyEndAllowThreads(__tstate);
17340 if (PyErr_Occurred()) SWIG_fail;
17341 }
17342 {
17343 resultobj = wxPyMake_wxObject(result, 0);
17344 }
17345 return resultobj;
17346 fail:
17347 return NULL;
17348 }
17349
17350
17351 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) {
17352 PyObject *resultobj;
17353 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17354 wxControl *arg2 = (wxControl *) 0 ;
17355 wxToolBarToolBase *result;
17356 PyObject * obj0 = 0 ;
17357 PyObject * obj1 = 0 ;
17358 char *kwnames[] = {
17359 (char *) "self",(char *) "control", NULL
17360 };
17361
17362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17365 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17367 {
17368 PyThreadState* __tstate = wxPyBeginAllowThreads();
17369 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17370
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 {
17375 resultobj = wxPyMake_wxObject(result, 0);
17376 }
17377 return resultobj;
17378 fail:
17379 return NULL;
17380 }
17381
17382
17383 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) {
17384 PyObject *resultobj;
17385 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17386 size_t arg2 ;
17387 wxControl *arg3 = (wxControl *) 0 ;
17388 wxToolBarToolBase *result;
17389 PyObject * obj0 = 0 ;
17390 PyObject * obj1 = 0 ;
17391 PyObject * obj2 = 0 ;
17392 char *kwnames[] = {
17393 (char *) "self",(char *) "pos",(char *) "control", NULL
17394 };
17395
17396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17399 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17400 if (PyErr_Occurred()) SWIG_fail;
17401 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17403 {
17404 PyThreadState* __tstate = wxPyBeginAllowThreads();
17405 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17406
17407 wxPyEndAllowThreads(__tstate);
17408 if (PyErr_Occurred()) SWIG_fail;
17409 }
17410 {
17411 resultobj = wxPyMake_wxObject(result, 0);
17412 }
17413 return resultobj;
17414 fail:
17415 return NULL;
17416 }
17417
17418
17419 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) {
17420 PyObject *resultobj;
17421 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17422 int arg2 ;
17423 wxControl *result;
17424 PyObject * obj0 = 0 ;
17425 PyObject * obj1 = 0 ;
17426 char *kwnames[] = {
17427 (char *) "self",(char *) "id", NULL
17428 };
17429
17430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17433 arg2 = (int)SWIG_As_int(obj1);
17434 if (PyErr_Occurred()) SWIG_fail;
17435 {
17436 PyThreadState* __tstate = wxPyBeginAllowThreads();
17437 result = (wxControl *)(arg1)->FindControl(arg2);
17438
17439 wxPyEndAllowThreads(__tstate);
17440 if (PyErr_Occurred()) SWIG_fail;
17441 }
17442 {
17443 resultobj = wxPyMake_wxObject(result, 0);
17444 }
17445 return resultobj;
17446 fail:
17447 return NULL;
17448 }
17449
17450
17451 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17452 PyObject *resultobj;
17453 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17454 wxToolBarToolBase *result;
17455 PyObject * obj0 = 0 ;
17456 char *kwnames[] = {
17457 (char *) "self", NULL
17458 };
17459
17460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17466
17467 wxPyEndAllowThreads(__tstate);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 {
17471 resultobj = wxPyMake_wxObject(result, 0);
17472 }
17473 return resultobj;
17474 fail:
17475 return NULL;
17476 }
17477
17478
17479 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17480 PyObject *resultobj;
17481 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17482 size_t arg2 ;
17483 wxToolBarToolBase *result;
17484 PyObject * obj0 = 0 ;
17485 PyObject * obj1 = 0 ;
17486 char *kwnames[] = {
17487 (char *) "self",(char *) "pos", NULL
17488 };
17489
17490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17493 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17494 if (PyErr_Occurred()) SWIG_fail;
17495 {
17496 PyThreadState* __tstate = wxPyBeginAllowThreads();
17497 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17498
17499 wxPyEndAllowThreads(__tstate);
17500 if (PyErr_Occurred()) SWIG_fail;
17501 }
17502 {
17503 resultobj = wxPyMake_wxObject(result, 0);
17504 }
17505 return resultobj;
17506 fail:
17507 return NULL;
17508 }
17509
17510
17511 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) {
17512 PyObject *resultobj;
17513 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17514 int arg2 ;
17515 wxToolBarToolBase *result;
17516 PyObject * obj0 = 0 ;
17517 PyObject * obj1 = 0 ;
17518 char *kwnames[] = {
17519 (char *) "self",(char *) "id", NULL
17520 };
17521
17522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17525 arg2 = (int)SWIG_As_int(obj1);
17526 if (PyErr_Occurred()) SWIG_fail;
17527 {
17528 PyThreadState* __tstate = wxPyBeginAllowThreads();
17529 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17530
17531 wxPyEndAllowThreads(__tstate);
17532 if (PyErr_Occurred()) SWIG_fail;
17533 }
17534 {
17535 resultobj = wxPyMake_wxObject(result, 0);
17536 }
17537 return resultobj;
17538 fail:
17539 return NULL;
17540 }
17541
17542
17543 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) {
17544 PyObject *resultobj;
17545 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17546 size_t arg2 ;
17547 bool result;
17548 PyObject * obj0 = 0 ;
17549 PyObject * obj1 = 0 ;
17550 char *kwnames[] = {
17551 (char *) "self",(char *) "pos", NULL
17552 };
17553
17554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17557 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17558 if (PyErr_Occurred()) SWIG_fail;
17559 {
17560 PyThreadState* __tstate = wxPyBeginAllowThreads();
17561 result = (bool)(arg1)->DeleteToolByPos(arg2);
17562
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 {
17567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17568 }
17569 return resultobj;
17570 fail:
17571 return NULL;
17572 }
17573
17574
17575 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) {
17576 PyObject *resultobj;
17577 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17578 int arg2 ;
17579 bool result;
17580 PyObject * obj0 = 0 ;
17581 PyObject * obj1 = 0 ;
17582 char *kwnames[] = {
17583 (char *) "self",(char *) "id", NULL
17584 };
17585
17586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17589 arg2 = (int)SWIG_As_int(obj1);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 result = (bool)(arg1)->DeleteTool(arg2);
17594
17595 wxPyEndAllowThreads(__tstate);
17596 if (PyErr_Occurred()) SWIG_fail;
17597 }
17598 {
17599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17600 }
17601 return resultobj;
17602 fail:
17603 return NULL;
17604 }
17605
17606
17607 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) {
17608 PyObject *resultobj;
17609 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17610 PyObject * obj0 = 0 ;
17611 char *kwnames[] = {
17612 (char *) "self", NULL
17613 };
17614
17615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17618 {
17619 PyThreadState* __tstate = wxPyBeginAllowThreads();
17620 (arg1)->ClearTools();
17621
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 Py_INCREF(Py_None); resultobj = Py_None;
17626 return resultobj;
17627 fail:
17628 return NULL;
17629 }
17630
17631
17632 static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj;
17634 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17635 bool result;
17636 PyObject * obj0 = 0 ;
17637 char *kwnames[] = {
17638 (char *) "self", NULL
17639 };
17640
17641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17644 {
17645 PyThreadState* __tstate = wxPyBeginAllowThreads();
17646 result = (bool)(arg1)->Realize();
17647
17648 wxPyEndAllowThreads(__tstate);
17649 if (PyErr_Occurred()) SWIG_fail;
17650 }
17651 {
17652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17653 }
17654 return resultobj;
17655 fail:
17656 return NULL;
17657 }
17658
17659
17660 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) {
17661 PyObject *resultobj;
17662 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17663 int arg2 ;
17664 bool arg3 ;
17665 PyObject * obj0 = 0 ;
17666 PyObject * obj1 = 0 ;
17667 PyObject * obj2 = 0 ;
17668 char *kwnames[] = {
17669 (char *) "self",(char *) "id",(char *) "enable", NULL
17670 };
17671
17672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17675 arg2 = (int)SWIG_As_int(obj1);
17676 if (PyErr_Occurred()) SWIG_fail;
17677 arg3 = (bool)SWIG_As_bool(obj2);
17678 if (PyErr_Occurred()) SWIG_fail;
17679 {
17680 PyThreadState* __tstate = wxPyBeginAllowThreads();
17681 (arg1)->EnableTool(arg2,arg3);
17682
17683 wxPyEndAllowThreads(__tstate);
17684 if (PyErr_Occurred()) SWIG_fail;
17685 }
17686 Py_INCREF(Py_None); resultobj = Py_None;
17687 return resultobj;
17688 fail:
17689 return NULL;
17690 }
17691
17692
17693 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) {
17694 PyObject *resultobj;
17695 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17696 int arg2 ;
17697 bool arg3 ;
17698 PyObject * obj0 = 0 ;
17699 PyObject * obj1 = 0 ;
17700 PyObject * obj2 = 0 ;
17701 char *kwnames[] = {
17702 (char *) "self",(char *) "id",(char *) "toggle", NULL
17703 };
17704
17705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17708 arg2 = (int)SWIG_As_int(obj1);
17709 if (PyErr_Occurred()) SWIG_fail;
17710 arg3 = (bool)SWIG_As_bool(obj2);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 {
17713 PyThreadState* __tstate = wxPyBeginAllowThreads();
17714 (arg1)->ToggleTool(arg2,arg3);
17715
17716 wxPyEndAllowThreads(__tstate);
17717 if (PyErr_Occurred()) SWIG_fail;
17718 }
17719 Py_INCREF(Py_None); resultobj = Py_None;
17720 return resultobj;
17721 fail:
17722 return NULL;
17723 }
17724
17725
17726 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
17727 PyObject *resultobj;
17728 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17729 int arg2 ;
17730 bool arg3 ;
17731 PyObject * obj0 = 0 ;
17732 PyObject * obj1 = 0 ;
17733 PyObject * obj2 = 0 ;
17734 char *kwnames[] = {
17735 (char *) "self",(char *) "id",(char *) "toggle", NULL
17736 };
17737
17738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17741 arg2 = (int)SWIG_As_int(obj1);
17742 if (PyErr_Occurred()) SWIG_fail;
17743 arg3 = (bool)SWIG_As_bool(obj2);
17744 if (PyErr_Occurred()) SWIG_fail;
17745 {
17746 PyThreadState* __tstate = wxPyBeginAllowThreads();
17747 (arg1)->SetToggle(arg2,arg3);
17748
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 Py_INCREF(Py_None); resultobj = Py_None;
17753 return resultobj;
17754 fail:
17755 return NULL;
17756 }
17757
17758
17759 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17760 PyObject *resultobj;
17761 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17762 int arg2 ;
17763 PyObject *result;
17764 PyObject * obj0 = 0 ;
17765 PyObject * obj1 = 0 ;
17766 char *kwnames[] = {
17767 (char *) "self",(char *) "id", NULL
17768 };
17769
17770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17773 arg2 = (int)SWIG_As_int(obj1);
17774 if (PyErr_Occurred()) SWIG_fail;
17775 {
17776 PyThreadState* __tstate = wxPyBeginAllowThreads();
17777 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17778
17779 wxPyEndAllowThreads(__tstate);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
17782 resultobj = result;
17783 return resultobj;
17784 fail:
17785 return NULL;
17786 }
17787
17788
17789 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17790 PyObject *resultobj;
17791 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17792 int arg2 ;
17793 PyObject *arg3 = (PyObject *) 0 ;
17794 PyObject * obj0 = 0 ;
17795 PyObject * obj1 = 0 ;
17796 PyObject * obj2 = 0 ;
17797 char *kwnames[] = {
17798 (char *) "self",(char *) "id",(char *) "clientData", NULL
17799 };
17800
17801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17804 arg2 = (int)SWIG_As_int(obj1);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 arg3 = obj2;
17807 {
17808 PyThreadState* __tstate = wxPyBeginAllowThreads();
17809 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17810
17811 wxPyEndAllowThreads(__tstate);
17812 if (PyErr_Occurred()) SWIG_fail;
17813 }
17814 Py_INCREF(Py_None); resultobj = Py_None;
17815 return resultobj;
17816 fail:
17817 return NULL;
17818 }
17819
17820
17821 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) {
17822 PyObject *resultobj;
17823 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17824 int arg2 ;
17825 int result;
17826 PyObject * obj0 = 0 ;
17827 PyObject * obj1 = 0 ;
17828 char *kwnames[] = {
17829 (char *) "self",(char *) "id", NULL
17830 };
17831
17832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17835 arg2 = (int)SWIG_As_int(obj1);
17836 if (PyErr_Occurred()) SWIG_fail;
17837 {
17838 PyThreadState* __tstate = wxPyBeginAllowThreads();
17839 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17840
17841 wxPyEndAllowThreads(__tstate);
17842 if (PyErr_Occurred()) SWIG_fail;
17843 }
17844 resultobj = SWIG_From_int((int)result);
17845 return resultobj;
17846 fail:
17847 return NULL;
17848 }
17849
17850
17851 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) {
17852 PyObject *resultobj;
17853 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17854 int arg2 ;
17855 bool result;
17856 PyObject * obj0 = 0 ;
17857 PyObject * obj1 = 0 ;
17858 char *kwnames[] = {
17859 (char *) "self",(char *) "id", NULL
17860 };
17861
17862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17865 arg2 = (int)SWIG_As_int(obj1);
17866 if (PyErr_Occurred()) SWIG_fail;
17867 {
17868 PyThreadState* __tstate = wxPyBeginAllowThreads();
17869 result = (bool)(arg1)->GetToolState(arg2);
17870
17871 wxPyEndAllowThreads(__tstate);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 {
17875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17876 }
17877 return resultobj;
17878 fail:
17879 return NULL;
17880 }
17881
17882
17883 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
17884 PyObject *resultobj;
17885 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17886 int arg2 ;
17887 bool result;
17888 PyObject * obj0 = 0 ;
17889 PyObject * obj1 = 0 ;
17890 char *kwnames[] = {
17891 (char *) "self",(char *) "id", NULL
17892 };
17893
17894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17897 arg2 = (int)SWIG_As_int(obj1);
17898 if (PyErr_Occurred()) SWIG_fail;
17899 {
17900 PyThreadState* __tstate = wxPyBeginAllowThreads();
17901 result = (bool)(arg1)->GetToolEnabled(arg2);
17902
17903 wxPyEndAllowThreads(__tstate);
17904 if (PyErr_Occurred()) SWIG_fail;
17905 }
17906 {
17907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17908 }
17909 return resultobj;
17910 fail:
17911 return NULL;
17912 }
17913
17914
17915 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17916 PyObject *resultobj;
17917 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17918 int arg2 ;
17919 wxString *arg3 = 0 ;
17920 bool temp3 = False ;
17921 PyObject * obj0 = 0 ;
17922 PyObject * obj1 = 0 ;
17923 PyObject * obj2 = 0 ;
17924 char *kwnames[] = {
17925 (char *) "self",(char *) "id",(char *) "helpString", NULL
17926 };
17927
17928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17931 arg2 = (int)SWIG_As_int(obj1);
17932 if (PyErr_Occurred()) SWIG_fail;
17933 {
17934 arg3 = wxString_in_helper(obj2);
17935 if (arg3 == NULL) SWIG_fail;
17936 temp3 = True;
17937 }
17938 {
17939 PyThreadState* __tstate = wxPyBeginAllowThreads();
17940 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17941
17942 wxPyEndAllowThreads(__tstate);
17943 if (PyErr_Occurred()) SWIG_fail;
17944 }
17945 Py_INCREF(Py_None); resultobj = Py_None;
17946 {
17947 if (temp3)
17948 delete arg3;
17949 }
17950 return resultobj;
17951 fail:
17952 {
17953 if (temp3)
17954 delete arg3;
17955 }
17956 return NULL;
17957 }
17958
17959
17960 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17961 PyObject *resultobj;
17962 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17963 int arg2 ;
17964 wxString result;
17965 PyObject * obj0 = 0 ;
17966 PyObject * obj1 = 0 ;
17967 char *kwnames[] = {
17968 (char *) "self",(char *) "id", NULL
17969 };
17970
17971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17974 arg2 = (int)SWIG_As_int(obj1);
17975 if (PyErr_Occurred()) SWIG_fail;
17976 {
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 result = (arg1)->GetToolShortHelp(arg2);
17979
17980 wxPyEndAllowThreads(__tstate);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 }
17983 {
17984 #if wxUSE_UNICODE
17985 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17986 #else
17987 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17988 #endif
17989 }
17990 return resultobj;
17991 fail:
17992 return NULL;
17993 }
17994
17995
17996 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17997 PyObject *resultobj;
17998 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17999 int arg2 ;
18000 wxString *arg3 = 0 ;
18001 bool temp3 = False ;
18002 PyObject * obj0 = 0 ;
18003 PyObject * obj1 = 0 ;
18004 PyObject * obj2 = 0 ;
18005 char *kwnames[] = {
18006 (char *) "self",(char *) "id",(char *) "helpString", NULL
18007 };
18008
18009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18012 arg2 = (int)SWIG_As_int(obj1);
18013 if (PyErr_Occurred()) SWIG_fail;
18014 {
18015 arg3 = wxString_in_helper(obj2);
18016 if (arg3 == NULL) SWIG_fail;
18017 temp3 = True;
18018 }
18019 {
18020 PyThreadState* __tstate = wxPyBeginAllowThreads();
18021 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
18022
18023 wxPyEndAllowThreads(__tstate);
18024 if (PyErr_Occurred()) SWIG_fail;
18025 }
18026 Py_INCREF(Py_None); resultobj = Py_None;
18027 {
18028 if (temp3)
18029 delete arg3;
18030 }
18031 return resultobj;
18032 fail:
18033 {
18034 if (temp3)
18035 delete arg3;
18036 }
18037 return NULL;
18038 }
18039
18040
18041 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18042 PyObject *resultobj;
18043 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18044 int arg2 ;
18045 wxString result;
18046 PyObject * obj0 = 0 ;
18047 PyObject * obj1 = 0 ;
18048 char *kwnames[] = {
18049 (char *) "self",(char *) "id", NULL
18050 };
18051
18052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
18053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18055 arg2 = (int)SWIG_As_int(obj1);
18056 if (PyErr_Occurred()) SWIG_fail;
18057 {
18058 PyThreadState* __tstate = wxPyBeginAllowThreads();
18059 result = (arg1)->GetToolLongHelp(arg2);
18060
18061 wxPyEndAllowThreads(__tstate);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 }
18064 {
18065 #if wxUSE_UNICODE
18066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18067 #else
18068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18069 #endif
18070 }
18071 return resultobj;
18072 fail:
18073 return NULL;
18074 }
18075
18076
18077 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) {
18078 PyObject *resultobj;
18079 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18080 int arg2 ;
18081 int arg3 ;
18082 PyObject * obj0 = 0 ;
18083 PyObject * obj1 = 0 ;
18084 PyObject * obj2 = 0 ;
18085 char *kwnames[] = {
18086 (char *) "self",(char *) "x",(char *) "y", NULL
18087 };
18088
18089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
18090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18092 arg2 = (int)SWIG_As_int(obj1);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 arg3 = (int)SWIG_As_int(obj2);
18095 if (PyErr_Occurred()) SWIG_fail;
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 (arg1)->SetMargins(arg2,arg3);
18099
18100 wxPyEndAllowThreads(__tstate);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 }
18103 Py_INCREF(Py_None); resultobj = Py_None;
18104 return resultobj;
18105 fail:
18106 return NULL;
18107 }
18108
18109
18110 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18111 PyObject *resultobj;
18112 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18113 wxSize *arg2 = 0 ;
18114 wxSize temp2 ;
18115 PyObject * obj0 = 0 ;
18116 PyObject * obj1 = 0 ;
18117 char *kwnames[] = {
18118 (char *) "self",(char *) "size", NULL
18119 };
18120
18121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
18122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18124 {
18125 arg2 = &temp2;
18126 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18127 }
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 (arg1)->SetMargins((wxSize const &)*arg2);
18131
18132 wxPyEndAllowThreads(__tstate);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 }
18135 Py_INCREF(Py_None); resultobj = Py_None;
18136 return resultobj;
18137 fail:
18138 return NULL;
18139 }
18140
18141
18142 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18143 PyObject *resultobj;
18144 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18145 int arg2 ;
18146 PyObject * obj0 = 0 ;
18147 PyObject * obj1 = 0 ;
18148 char *kwnames[] = {
18149 (char *) "self",(char *) "packing", NULL
18150 };
18151
18152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
18153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18155 arg2 = (int)SWIG_As_int(obj1);
18156 if (PyErr_Occurred()) SWIG_fail;
18157 {
18158 PyThreadState* __tstate = wxPyBeginAllowThreads();
18159 (arg1)->SetToolPacking(arg2);
18160
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 Py_INCREF(Py_None); resultobj = Py_None;
18165 return resultobj;
18166 fail:
18167 return NULL;
18168 }
18169
18170
18171 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18172 PyObject *resultobj;
18173 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18174 int arg2 ;
18175 PyObject * obj0 = 0 ;
18176 PyObject * obj1 = 0 ;
18177 char *kwnames[] = {
18178 (char *) "self",(char *) "separation", NULL
18179 };
18180
18181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
18182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18184 arg2 = (int)SWIG_As_int(obj1);
18185 if (PyErr_Occurred()) SWIG_fail;
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 (arg1)->SetToolSeparation(arg2);
18189
18190 wxPyEndAllowThreads(__tstate);
18191 if (PyErr_Occurred()) SWIG_fail;
18192 }
18193 Py_INCREF(Py_None); resultobj = Py_None;
18194 return resultobj;
18195 fail:
18196 return NULL;
18197 }
18198
18199
18200 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18201 PyObject *resultobj;
18202 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18203 wxSize result;
18204 PyObject * obj0 = 0 ;
18205 char *kwnames[] = {
18206 (char *) "self", NULL
18207 };
18208
18209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
18210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18212 {
18213 PyThreadState* __tstate = wxPyBeginAllowThreads();
18214 result = (arg1)->GetToolMargins();
18215
18216 wxPyEndAllowThreads(__tstate);
18217 if (PyErr_Occurred()) SWIG_fail;
18218 }
18219 {
18220 wxSize * resultptr;
18221 resultptr = new wxSize((wxSize &) result);
18222 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18223 }
18224 return resultobj;
18225 fail:
18226 return NULL;
18227 }
18228
18229
18230 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18231 PyObject *resultobj;
18232 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18233 wxSize result;
18234 PyObject * obj0 = 0 ;
18235 char *kwnames[] = {
18236 (char *) "self", NULL
18237 };
18238
18239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
18240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18242 {
18243 PyThreadState* __tstate = wxPyBeginAllowThreads();
18244 result = (arg1)->GetMargins();
18245
18246 wxPyEndAllowThreads(__tstate);
18247 if (PyErr_Occurred()) SWIG_fail;
18248 }
18249 {
18250 wxSize * resultptr;
18251 resultptr = new wxSize((wxSize &) result);
18252 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18253 }
18254 return resultobj;
18255 fail:
18256 return NULL;
18257 }
18258
18259
18260 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18261 PyObject *resultobj;
18262 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18263 int result;
18264 PyObject * obj0 = 0 ;
18265 char *kwnames[] = {
18266 (char *) "self", NULL
18267 };
18268
18269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
18270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18272 {
18273 PyThreadState* __tstate = wxPyBeginAllowThreads();
18274 result = (int)(arg1)->GetToolPacking();
18275
18276 wxPyEndAllowThreads(__tstate);
18277 if (PyErr_Occurred()) SWIG_fail;
18278 }
18279 resultobj = SWIG_From_int((int)result);
18280 return resultobj;
18281 fail:
18282 return NULL;
18283 }
18284
18285
18286 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18287 PyObject *resultobj;
18288 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18289 int result;
18290 PyObject * obj0 = 0 ;
18291 char *kwnames[] = {
18292 (char *) "self", NULL
18293 };
18294
18295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18298 {
18299 PyThreadState* __tstate = wxPyBeginAllowThreads();
18300 result = (int)(arg1)->GetToolSeparation();
18301
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 resultobj = SWIG_From_int((int)result);
18306 return resultobj;
18307 fail:
18308 return NULL;
18309 }
18310
18311
18312 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj;
18314 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18315 int arg2 ;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 char *kwnames[] = {
18319 (char *) "self",(char *) "nRows", NULL
18320 };
18321
18322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18325 arg2 = (int)SWIG_As_int(obj1);
18326 if (PyErr_Occurred()) SWIG_fail;
18327 {
18328 PyThreadState* __tstate = wxPyBeginAllowThreads();
18329 (arg1)->SetRows(arg2);
18330
18331 wxPyEndAllowThreads(__tstate);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 Py_INCREF(Py_None); resultobj = Py_None;
18335 return resultobj;
18336 fail:
18337 return NULL;
18338 }
18339
18340
18341 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) {
18342 PyObject *resultobj;
18343 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18344 int arg2 ;
18345 int arg3 ;
18346 PyObject * obj0 = 0 ;
18347 PyObject * obj1 = 0 ;
18348 PyObject * obj2 = 0 ;
18349 char *kwnames[] = {
18350 (char *) "self",(char *) "rows",(char *) "cols", NULL
18351 };
18352
18353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18356 arg2 = (int)SWIG_As_int(obj1);
18357 if (PyErr_Occurred()) SWIG_fail;
18358 arg3 = (int)SWIG_As_int(obj2);
18359 if (PyErr_Occurred()) SWIG_fail;
18360 {
18361 PyThreadState* __tstate = wxPyBeginAllowThreads();
18362 (arg1)->SetMaxRowsCols(arg2,arg3);
18363
18364 wxPyEndAllowThreads(__tstate);
18365 if (PyErr_Occurred()) SWIG_fail;
18366 }
18367 Py_INCREF(Py_None); resultobj = Py_None;
18368 return resultobj;
18369 fail:
18370 return NULL;
18371 }
18372
18373
18374 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) {
18375 PyObject *resultobj;
18376 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18377 int result;
18378 PyObject * obj0 = 0 ;
18379 char *kwnames[] = {
18380 (char *) "self", NULL
18381 };
18382
18383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18386 {
18387 PyThreadState* __tstate = wxPyBeginAllowThreads();
18388 result = (int)(arg1)->GetMaxRows();
18389
18390 wxPyEndAllowThreads(__tstate);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
18393 resultobj = SWIG_From_int((int)result);
18394 return resultobj;
18395 fail:
18396 return NULL;
18397 }
18398
18399
18400 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) {
18401 PyObject *resultobj;
18402 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18403 int result;
18404 PyObject * obj0 = 0 ;
18405 char *kwnames[] = {
18406 (char *) "self", NULL
18407 };
18408
18409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18412 {
18413 PyThreadState* __tstate = wxPyBeginAllowThreads();
18414 result = (int)(arg1)->GetMaxCols();
18415
18416 wxPyEndAllowThreads(__tstate);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 resultobj = SWIG_From_int((int)result);
18420 return resultobj;
18421 fail:
18422 return NULL;
18423 }
18424
18425
18426 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18427 PyObject *resultobj;
18428 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18429 wxSize *arg2 = 0 ;
18430 wxSize temp2 ;
18431 PyObject * obj0 = 0 ;
18432 PyObject * obj1 = 0 ;
18433 char *kwnames[] = {
18434 (char *) "self",(char *) "size", NULL
18435 };
18436
18437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18440 {
18441 arg2 = &temp2;
18442 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18443 }
18444 {
18445 PyThreadState* __tstate = wxPyBeginAllowThreads();
18446 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18447
18448 wxPyEndAllowThreads(__tstate);
18449 if (PyErr_Occurred()) SWIG_fail;
18450 }
18451 Py_INCREF(Py_None); resultobj = Py_None;
18452 return resultobj;
18453 fail:
18454 return NULL;
18455 }
18456
18457
18458 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18459 PyObject *resultobj;
18460 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18461 wxSize result;
18462 PyObject * obj0 = 0 ;
18463 char *kwnames[] = {
18464 (char *) "self", NULL
18465 };
18466
18467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18470 {
18471 PyThreadState* __tstate = wxPyBeginAllowThreads();
18472 result = (arg1)->GetToolBitmapSize();
18473
18474 wxPyEndAllowThreads(__tstate);
18475 if (PyErr_Occurred()) SWIG_fail;
18476 }
18477 {
18478 wxSize * resultptr;
18479 resultptr = new wxSize((wxSize &) result);
18480 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18481 }
18482 return resultobj;
18483 fail:
18484 return NULL;
18485 }
18486
18487
18488 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) {
18489 PyObject *resultobj;
18490 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18491 wxSize result;
18492 PyObject * obj0 = 0 ;
18493 char *kwnames[] = {
18494 (char *) "self", NULL
18495 };
18496
18497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18500 {
18501 PyThreadState* __tstate = wxPyBeginAllowThreads();
18502 result = (arg1)->GetToolSize();
18503
18504 wxPyEndAllowThreads(__tstate);
18505 if (PyErr_Occurred()) SWIG_fail;
18506 }
18507 {
18508 wxSize * resultptr;
18509 resultptr = new wxSize((wxSize &) result);
18510 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18511 }
18512 return resultobj;
18513 fail:
18514 return NULL;
18515 }
18516
18517
18518 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18519 PyObject *resultobj;
18520 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18521 int arg2 ;
18522 int arg3 ;
18523 wxToolBarToolBase *result;
18524 PyObject * obj0 = 0 ;
18525 PyObject * obj1 = 0 ;
18526 PyObject * obj2 = 0 ;
18527 char *kwnames[] = {
18528 (char *) "self",(char *) "x",(char *) "y", NULL
18529 };
18530
18531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18534 arg2 = (int)SWIG_As_int(obj1);
18535 if (PyErr_Occurred()) SWIG_fail;
18536 arg3 = (int)SWIG_As_int(obj2);
18537 if (PyErr_Occurred()) SWIG_fail;
18538 {
18539 PyThreadState* __tstate = wxPyBeginAllowThreads();
18540 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18541
18542 wxPyEndAllowThreads(__tstate);
18543 if (PyErr_Occurred()) SWIG_fail;
18544 }
18545 {
18546 resultobj = wxPyMake_wxObject(result, 0);
18547 }
18548 return resultobj;
18549 fail:
18550 return NULL;
18551 }
18552
18553
18554 static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) {
18555 PyObject *resultobj;
18556 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18557 int arg2 ;
18558 wxToolBarToolBase *result;
18559 PyObject * obj0 = 0 ;
18560 PyObject * obj1 = 0 ;
18561 char *kwnames[] = {
18562 (char *) "self",(char *) "toolid", NULL
18563 };
18564
18565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18568 arg2 = (int)SWIG_As_int(obj1);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 {
18571 PyThreadState* __tstate = wxPyBeginAllowThreads();
18572 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18573
18574 wxPyEndAllowThreads(__tstate);
18575 if (PyErr_Occurred()) SWIG_fail;
18576 }
18577 {
18578 resultobj = wxPyMake_wxObject(result, 0);
18579 }
18580 return resultobj;
18581 fail:
18582 return NULL;
18583 }
18584
18585
18586 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
18587 PyObject *resultobj;
18588 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18589 bool result;
18590 PyObject * obj0 = 0 ;
18591 char *kwnames[] = {
18592 (char *) "self", NULL
18593 };
18594
18595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18598 {
18599 PyThreadState* __tstate = wxPyBeginAllowThreads();
18600 result = (bool)(arg1)->IsVertical();
18601
18602 wxPyEndAllowThreads(__tstate);
18603 if (PyErr_Occurred()) SWIG_fail;
18604 }
18605 {
18606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18607 }
18608 return resultobj;
18609 fail:
18610 return NULL;
18611 }
18612
18613
18614 static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) {
18615 PyObject *obj;
18616 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18617 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18618 Py_INCREF(obj);
18619 return Py_BuildValue((char *)"");
18620 }
18621 static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18622 PyObject *resultobj;
18623 wxWindow *arg1 = (wxWindow *) 0 ;
18624 int arg2 = (int) -1 ;
18625 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18626 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18627 wxSize const &arg4_defvalue = wxDefaultSize ;
18628 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18629 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18630 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18631 wxString *arg6 = (wxString *) &arg6_defvalue ;
18632 wxToolBar *result;
18633 wxPoint temp3 ;
18634 wxSize temp4 ;
18635 bool temp6 = False ;
18636 PyObject * obj0 = 0 ;
18637 PyObject * obj1 = 0 ;
18638 PyObject * obj2 = 0 ;
18639 PyObject * obj3 = 0 ;
18640 PyObject * obj4 = 0 ;
18641 PyObject * obj5 = 0 ;
18642 char *kwnames[] = {
18643 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18644 };
18645
18646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18649 if (obj1) {
18650 arg2 = (int)SWIG_As_int(obj1);
18651 if (PyErr_Occurred()) SWIG_fail;
18652 }
18653 if (obj2) {
18654 {
18655 arg3 = &temp3;
18656 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18657 }
18658 }
18659 if (obj3) {
18660 {
18661 arg4 = &temp4;
18662 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18663 }
18664 }
18665 if (obj4) {
18666 arg5 = (long)SWIG_As_long(obj4);
18667 if (PyErr_Occurred()) SWIG_fail;
18668 }
18669 if (obj5) {
18670 {
18671 arg6 = wxString_in_helper(obj5);
18672 if (arg6 == NULL) SWIG_fail;
18673 temp6 = True;
18674 }
18675 }
18676 {
18677 if (!wxPyCheckForApp()) SWIG_fail;
18678 PyThreadState* __tstate = wxPyBeginAllowThreads();
18679 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18680
18681 wxPyEndAllowThreads(__tstate);
18682 if (PyErr_Occurred()) SWIG_fail;
18683 }
18684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
18685 {
18686 if (temp6)
18687 delete arg6;
18688 }
18689 return resultobj;
18690 fail:
18691 {
18692 if (temp6)
18693 delete arg6;
18694 }
18695 return NULL;
18696 }
18697
18698
18699 static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18700 PyObject *resultobj;
18701 wxToolBar *result;
18702 char *kwnames[] = {
18703 NULL
18704 };
18705
18706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18707 {
18708 if (!wxPyCheckForApp()) SWIG_fail;
18709 PyThreadState* __tstate = wxPyBeginAllowThreads();
18710 result = (wxToolBar *)new wxToolBar();
18711
18712 wxPyEndAllowThreads(__tstate);
18713 if (PyErr_Occurred()) SWIG_fail;
18714 }
18715 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
18716 return resultobj;
18717 fail:
18718 return NULL;
18719 }
18720
18721
18722 static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
18723 PyObject *resultobj;
18724 wxToolBar *arg1 = (wxToolBar *) 0 ;
18725 wxWindow *arg2 = (wxWindow *) 0 ;
18726 int arg3 = (int) -1 ;
18727 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18728 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18729 wxSize const &arg5_defvalue = wxDefaultSize ;
18730 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18731 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18732 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18733 wxString *arg7 = (wxString *) &arg7_defvalue ;
18734 bool result;
18735 wxPoint temp4 ;
18736 wxSize temp5 ;
18737 bool temp7 = False ;
18738 PyObject * obj0 = 0 ;
18739 PyObject * obj1 = 0 ;
18740 PyObject * obj2 = 0 ;
18741 PyObject * obj3 = 0 ;
18742 PyObject * obj4 = 0 ;
18743 PyObject * obj5 = 0 ;
18744 PyObject * obj6 = 0 ;
18745 char *kwnames[] = {
18746 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18747 };
18748
18749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18752 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18754 if (obj2) {
18755 arg3 = (int)SWIG_As_int(obj2);
18756 if (PyErr_Occurred()) SWIG_fail;
18757 }
18758 if (obj3) {
18759 {
18760 arg4 = &temp4;
18761 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18762 }
18763 }
18764 if (obj4) {
18765 {
18766 arg5 = &temp5;
18767 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18768 }
18769 }
18770 if (obj5) {
18771 arg6 = (long)SWIG_As_long(obj5);
18772 if (PyErr_Occurred()) SWIG_fail;
18773 }
18774 if (obj6) {
18775 {
18776 arg7 = wxString_in_helper(obj6);
18777 if (arg7 == NULL) SWIG_fail;
18778 temp7 = True;
18779 }
18780 }
18781 {
18782 PyThreadState* __tstate = wxPyBeginAllowThreads();
18783 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18784
18785 wxPyEndAllowThreads(__tstate);
18786 if (PyErr_Occurred()) SWIG_fail;
18787 }
18788 {
18789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18790 }
18791 {
18792 if (temp7)
18793 delete arg7;
18794 }
18795 return resultobj;
18796 fail:
18797 {
18798 if (temp7)
18799 delete arg7;
18800 }
18801 return NULL;
18802 }
18803
18804
18805 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18806 PyObject *resultobj;
18807 wxToolBar *arg1 = (wxToolBar *) 0 ;
18808 int arg2 ;
18809 int arg3 ;
18810 wxToolBarToolBase *result;
18811 PyObject * obj0 = 0 ;
18812 PyObject * obj1 = 0 ;
18813 PyObject * obj2 = 0 ;
18814 char *kwnames[] = {
18815 (char *) "self",(char *) "x",(char *) "y", NULL
18816 };
18817
18818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18821 arg2 = (int)SWIG_As_int(obj1);
18822 if (PyErr_Occurred()) SWIG_fail;
18823 arg3 = (int)SWIG_As_int(obj2);
18824 if (PyErr_Occurred()) SWIG_fail;
18825 {
18826 PyThreadState* __tstate = wxPyBeginAllowThreads();
18827 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18828
18829 wxPyEndAllowThreads(__tstate);
18830 if (PyErr_Occurred()) SWIG_fail;
18831 }
18832 {
18833 resultobj = wxPyMake_wxObject(result, 0);
18834 }
18835 return resultobj;
18836 fail:
18837 return NULL;
18838 }
18839
18840
18841 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
18842 PyObject *resultobj;
18843 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18844 wxVisualAttributes result;
18845 PyObject * obj0 = 0 ;
18846 char *kwnames[] = {
18847 (char *) "variant", NULL
18848 };
18849
18850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18851 if (obj0) {
18852 arg1 = (int)SWIG_As_int(obj0);
18853 if (PyErr_Occurred()) SWIG_fail;
18854 }
18855 {
18856 if (!wxPyCheckForApp()) SWIG_fail;
18857 PyThreadState* __tstate = wxPyBeginAllowThreads();
18858 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18859
18860 wxPyEndAllowThreads(__tstate);
18861 if (PyErr_Occurred()) SWIG_fail;
18862 }
18863 {
18864 wxVisualAttributes * resultptr;
18865 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18866 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18867 }
18868 return resultobj;
18869 fail:
18870 return NULL;
18871 }
18872
18873
18874 static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) {
18875 PyObject *obj;
18876 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18877 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18878 Py_INCREF(obj);
18879 return Py_BuildValue((char *)"");
18880 }
18881 static int _wrap_ListCtrlNameStr_set(PyObject *) {
18882 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18883 return 1;
18884 }
18885
18886
18887 static PyObject *_wrap_ListCtrlNameStr_get() {
18888 PyObject *pyobj;
18889
18890 {
18891 #if wxUSE_UNICODE
18892 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18893 #else
18894 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18895 #endif
18896 }
18897 return pyobj;
18898 }
18899
18900
18901 static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) {
18902 PyObject *resultobj;
18903 wxColour const &arg1_defvalue = wxNullColour ;
18904 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18905 wxColour const &arg2_defvalue = wxNullColour ;
18906 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18907 wxFont const &arg3_defvalue = wxNullFont ;
18908 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18909 wxListItemAttr *result;
18910 wxColour temp1 ;
18911 wxColour temp2 ;
18912 PyObject * obj0 = 0 ;
18913 PyObject * obj1 = 0 ;
18914 PyObject * obj2 = 0 ;
18915 char *kwnames[] = {
18916 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18917 };
18918
18919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18920 if (obj0) {
18921 {
18922 arg1 = &temp1;
18923 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18924 }
18925 }
18926 if (obj1) {
18927 {
18928 arg2 = &temp2;
18929 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18930 }
18931 }
18932 if (obj2) {
18933 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18934 SWIG_POINTER_EXCEPTION | 0)) == -1)
18935 SWIG_fail;
18936 if (arg3 == NULL) {
18937 PyErr_SetString(PyExc_TypeError,"null reference");
18938 SWIG_fail;
18939 }
18940 }
18941 {
18942 PyThreadState* __tstate = wxPyBeginAllowThreads();
18943 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18944
18945 wxPyEndAllowThreads(__tstate);
18946 if (PyErr_Occurred()) SWIG_fail;
18947 }
18948 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18949 return resultobj;
18950 fail:
18951 return NULL;
18952 }
18953
18954
18955 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
18956 PyObject *resultobj;
18957 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18958 wxColour *arg2 = 0 ;
18959 wxColour temp2 ;
18960 PyObject * obj0 = 0 ;
18961 PyObject * obj1 = 0 ;
18962 char *kwnames[] = {
18963 (char *) "self",(char *) "colText", NULL
18964 };
18965
18966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18969 {
18970 arg2 = &temp2;
18971 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18972 }
18973 {
18974 PyThreadState* __tstate = wxPyBeginAllowThreads();
18975 (arg1)->SetTextColour((wxColour const &)*arg2);
18976
18977 wxPyEndAllowThreads(__tstate);
18978 if (PyErr_Occurred()) SWIG_fail;
18979 }
18980 Py_INCREF(Py_None); resultobj = Py_None;
18981 return resultobj;
18982 fail:
18983 return NULL;
18984 }
18985
18986
18987 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
18988 PyObject *resultobj;
18989 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18990 wxColour *arg2 = 0 ;
18991 wxColour temp2 ;
18992 PyObject * obj0 = 0 ;
18993 PyObject * obj1 = 0 ;
18994 char *kwnames[] = {
18995 (char *) "self",(char *) "colBack", NULL
18996 };
18997
18998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19001 {
19002 arg2 = &temp2;
19003 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19004 }
19005 {
19006 PyThreadState* __tstate = wxPyBeginAllowThreads();
19007 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19008
19009 wxPyEndAllowThreads(__tstate);
19010 if (PyErr_Occurred()) SWIG_fail;
19011 }
19012 Py_INCREF(Py_None); resultobj = Py_None;
19013 return resultobj;
19014 fail:
19015 return NULL;
19016 }
19017
19018
19019 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19020 PyObject *resultobj;
19021 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19022 wxFont *arg2 = 0 ;
19023 PyObject * obj0 = 0 ;
19024 PyObject * obj1 = 0 ;
19025 char *kwnames[] = {
19026 (char *) "self",(char *) "font", NULL
19027 };
19028
19029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
19030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19032 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19033 SWIG_POINTER_EXCEPTION | 0)) == -1)
19034 SWIG_fail;
19035 if (arg2 == NULL) {
19036 PyErr_SetString(PyExc_TypeError,"null reference");
19037 SWIG_fail;
19038 }
19039 {
19040 PyThreadState* __tstate = wxPyBeginAllowThreads();
19041 (arg1)->SetFont((wxFont const &)*arg2);
19042
19043 wxPyEndAllowThreads(__tstate);
19044 if (PyErr_Occurred()) SWIG_fail;
19045 }
19046 Py_INCREF(Py_None); resultobj = Py_None;
19047 return resultobj;
19048 fail:
19049 return NULL;
19050 }
19051
19052
19053 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19054 PyObject *resultobj;
19055 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19056 bool result;
19057 PyObject * obj0 = 0 ;
19058 char *kwnames[] = {
19059 (char *) "self", NULL
19060 };
19061
19062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
19063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19065 {
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 result = (bool)(arg1)->HasTextColour();
19068
19069 wxPyEndAllowThreads(__tstate);
19070 if (PyErr_Occurred()) SWIG_fail;
19071 }
19072 {
19073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19074 }
19075 return resultobj;
19076 fail:
19077 return NULL;
19078 }
19079
19080
19081 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19082 PyObject *resultobj;
19083 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19084 bool result;
19085 PyObject * obj0 = 0 ;
19086 char *kwnames[] = {
19087 (char *) "self", NULL
19088 };
19089
19090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
19091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19093 {
19094 PyThreadState* __tstate = wxPyBeginAllowThreads();
19095 result = (bool)(arg1)->HasBackgroundColour();
19096
19097 wxPyEndAllowThreads(__tstate);
19098 if (PyErr_Occurred()) SWIG_fail;
19099 }
19100 {
19101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19102 }
19103 return resultobj;
19104 fail:
19105 return NULL;
19106 }
19107
19108
19109 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
19110 PyObject *resultobj;
19111 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19112 bool result;
19113 PyObject * obj0 = 0 ;
19114 char *kwnames[] = {
19115 (char *) "self", NULL
19116 };
19117
19118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
19119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19121 {
19122 PyThreadState* __tstate = wxPyBeginAllowThreads();
19123 result = (bool)(arg1)->HasFont();
19124
19125 wxPyEndAllowThreads(__tstate);
19126 if (PyErr_Occurred()) SWIG_fail;
19127 }
19128 {
19129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19130 }
19131 return resultobj;
19132 fail:
19133 return NULL;
19134 }
19135
19136
19137 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19138 PyObject *resultobj;
19139 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19140 wxColour result;
19141 PyObject * obj0 = 0 ;
19142 char *kwnames[] = {
19143 (char *) "self", NULL
19144 };
19145
19146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
19147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19149 {
19150 PyThreadState* __tstate = wxPyBeginAllowThreads();
19151 result = (arg1)->GetTextColour();
19152
19153 wxPyEndAllowThreads(__tstate);
19154 if (PyErr_Occurred()) SWIG_fail;
19155 }
19156 {
19157 wxColour * resultptr;
19158 resultptr = new wxColour((wxColour &) result);
19159 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19160 }
19161 return resultobj;
19162 fail:
19163 return NULL;
19164 }
19165
19166
19167 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19168 PyObject *resultobj;
19169 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19170 wxColour result;
19171 PyObject * obj0 = 0 ;
19172 char *kwnames[] = {
19173 (char *) "self", NULL
19174 };
19175
19176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
19177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19179 {
19180 PyThreadState* __tstate = wxPyBeginAllowThreads();
19181 result = (arg1)->GetBackgroundColour();
19182
19183 wxPyEndAllowThreads(__tstate);
19184 if (PyErr_Occurred()) SWIG_fail;
19185 }
19186 {
19187 wxColour * resultptr;
19188 resultptr = new wxColour((wxColour &) result);
19189 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19190 }
19191 return resultobj;
19192 fail:
19193 return NULL;
19194 }
19195
19196
19197 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19198 PyObject *resultobj;
19199 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19200 wxFont result;
19201 PyObject * obj0 = 0 ;
19202 char *kwnames[] = {
19203 (char *) "self", NULL
19204 };
19205
19206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
19207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19209 {
19210 PyThreadState* __tstate = wxPyBeginAllowThreads();
19211 result = (arg1)->GetFont();
19212
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 {
19217 wxFont * resultptr;
19218 resultptr = new wxFont((wxFont &) result);
19219 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19220 }
19221 return resultobj;
19222 fail:
19223 return NULL;
19224 }
19225
19226
19227 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
19228 PyObject *resultobj;
19229 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19230 PyObject * obj0 = 0 ;
19231 char *kwnames[] = {
19232 (char *) "self", NULL
19233 };
19234
19235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
19236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19238 {
19239 PyThreadState* __tstate = wxPyBeginAllowThreads();
19240 wxListItemAttr_Destroy(arg1);
19241
19242 wxPyEndAllowThreads(__tstate);
19243 if (PyErr_Occurred()) SWIG_fail;
19244 }
19245 Py_INCREF(Py_None); resultobj = Py_None;
19246 return resultobj;
19247 fail:
19248 return NULL;
19249 }
19250
19251
19252 static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) {
19253 PyObject *obj;
19254 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19255 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
19256 Py_INCREF(obj);
19257 return Py_BuildValue((char *)"");
19258 }
19259 static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19260 PyObject *resultobj;
19261 wxListItem *result;
19262 char *kwnames[] = {
19263 NULL
19264 };
19265
19266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
19267 {
19268 PyThreadState* __tstate = wxPyBeginAllowThreads();
19269 result = (wxListItem *)new wxListItem();
19270
19271 wxPyEndAllowThreads(__tstate);
19272 if (PyErr_Occurred()) SWIG_fail;
19273 }
19274 {
19275 resultobj = wxPyMake_wxObject(result, 1);
19276 }
19277 return resultobj;
19278 fail:
19279 return NULL;
19280 }
19281
19282
19283 static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19284 PyObject *resultobj;
19285 wxListItem *arg1 = (wxListItem *) 0 ;
19286 PyObject * obj0 = 0 ;
19287 char *kwnames[] = {
19288 (char *) "self", NULL
19289 };
19290
19291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19294 {
19295 PyThreadState* __tstate = wxPyBeginAllowThreads();
19296 delete arg1;
19297
19298 wxPyEndAllowThreads(__tstate);
19299 if (PyErr_Occurred()) SWIG_fail;
19300 }
19301 Py_INCREF(Py_None); resultobj = Py_None;
19302 return resultobj;
19303 fail:
19304 return NULL;
19305 }
19306
19307
19308 static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
19309 PyObject *resultobj;
19310 wxListItem *arg1 = (wxListItem *) 0 ;
19311 PyObject * obj0 = 0 ;
19312 char *kwnames[] = {
19313 (char *) "self", NULL
19314 };
19315
19316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19319 {
19320 PyThreadState* __tstate = wxPyBeginAllowThreads();
19321 (arg1)->Clear();
19322
19323 wxPyEndAllowThreads(__tstate);
19324 if (PyErr_Occurred()) SWIG_fail;
19325 }
19326 Py_INCREF(Py_None); resultobj = Py_None;
19327 return resultobj;
19328 fail:
19329 return NULL;
19330 }
19331
19332
19333 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19334 PyObject *resultobj;
19335 wxListItem *arg1 = (wxListItem *) 0 ;
19336 PyObject * obj0 = 0 ;
19337 char *kwnames[] = {
19338 (char *) "self", NULL
19339 };
19340
19341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19344 {
19345 PyThreadState* __tstate = wxPyBeginAllowThreads();
19346 (arg1)->ClearAttributes();
19347
19348 wxPyEndAllowThreads(__tstate);
19349 if (PyErr_Occurred()) SWIG_fail;
19350 }
19351 Py_INCREF(Py_None); resultobj = Py_None;
19352 return resultobj;
19353 fail:
19354 return NULL;
19355 }
19356
19357
19358 static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19359 PyObject *resultobj;
19360 wxListItem *arg1 = (wxListItem *) 0 ;
19361 long arg2 ;
19362 PyObject * obj0 = 0 ;
19363 PyObject * obj1 = 0 ;
19364 char *kwnames[] = {
19365 (char *) "self",(char *) "mask", NULL
19366 };
19367
19368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
19369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19371 arg2 = (long)SWIG_As_long(obj1);
19372 if (PyErr_Occurred()) SWIG_fail;
19373 {
19374 PyThreadState* __tstate = wxPyBeginAllowThreads();
19375 (arg1)->SetMask(arg2);
19376
19377 wxPyEndAllowThreads(__tstate);
19378 if (PyErr_Occurred()) SWIG_fail;
19379 }
19380 Py_INCREF(Py_None); resultobj = Py_None;
19381 return resultobj;
19382 fail:
19383 return NULL;
19384 }
19385
19386
19387 static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
19388 PyObject *resultobj;
19389 wxListItem *arg1 = (wxListItem *) 0 ;
19390 long arg2 ;
19391 PyObject * obj0 = 0 ;
19392 PyObject * obj1 = 0 ;
19393 char *kwnames[] = {
19394 (char *) "self",(char *) "id", NULL
19395 };
19396
19397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
19398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19400 arg2 = (long)SWIG_As_long(obj1);
19401 if (PyErr_Occurred()) SWIG_fail;
19402 {
19403 PyThreadState* __tstate = wxPyBeginAllowThreads();
19404 (arg1)->SetId(arg2);
19405
19406 wxPyEndAllowThreads(__tstate);
19407 if (PyErr_Occurred()) SWIG_fail;
19408 }
19409 Py_INCREF(Py_None); resultobj = Py_None;
19410 return resultobj;
19411 fail:
19412 return NULL;
19413 }
19414
19415
19416 static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19417 PyObject *resultobj;
19418 wxListItem *arg1 = (wxListItem *) 0 ;
19419 int arg2 ;
19420 PyObject * obj0 = 0 ;
19421 PyObject * obj1 = 0 ;
19422 char *kwnames[] = {
19423 (char *) "self",(char *) "col", NULL
19424 };
19425
19426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19429 arg2 = (int)SWIG_As_int(obj1);
19430 if (PyErr_Occurred()) SWIG_fail;
19431 {
19432 PyThreadState* __tstate = wxPyBeginAllowThreads();
19433 (arg1)->SetColumn(arg2);
19434
19435 wxPyEndAllowThreads(__tstate);
19436 if (PyErr_Occurred()) SWIG_fail;
19437 }
19438 Py_INCREF(Py_None); resultobj = Py_None;
19439 return resultobj;
19440 fail:
19441 return NULL;
19442 }
19443
19444
19445 static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
19446 PyObject *resultobj;
19447 wxListItem *arg1 = (wxListItem *) 0 ;
19448 long arg2 ;
19449 PyObject * obj0 = 0 ;
19450 PyObject * obj1 = 0 ;
19451 char *kwnames[] = {
19452 (char *) "self",(char *) "state", NULL
19453 };
19454
19455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19458 arg2 = (long)SWIG_As_long(obj1);
19459 if (PyErr_Occurred()) SWIG_fail;
19460 {
19461 PyThreadState* __tstate = wxPyBeginAllowThreads();
19462 (arg1)->SetState(arg2);
19463
19464 wxPyEndAllowThreads(__tstate);
19465 if (PyErr_Occurred()) SWIG_fail;
19466 }
19467 Py_INCREF(Py_None); resultobj = Py_None;
19468 return resultobj;
19469 fail:
19470 return NULL;
19471 }
19472
19473
19474 static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) {
19475 PyObject *resultobj;
19476 wxListItem *arg1 = (wxListItem *) 0 ;
19477 long arg2 ;
19478 PyObject * obj0 = 0 ;
19479 PyObject * obj1 = 0 ;
19480 char *kwnames[] = {
19481 (char *) "self",(char *) "stateMask", NULL
19482 };
19483
19484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19487 arg2 = (long)SWIG_As_long(obj1);
19488 if (PyErr_Occurred()) SWIG_fail;
19489 {
19490 PyThreadState* __tstate = wxPyBeginAllowThreads();
19491 (arg1)->SetStateMask(arg2);
19492
19493 wxPyEndAllowThreads(__tstate);
19494 if (PyErr_Occurred()) SWIG_fail;
19495 }
19496 Py_INCREF(Py_None); resultobj = Py_None;
19497 return resultobj;
19498 fail:
19499 return NULL;
19500 }
19501
19502
19503 static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
19504 PyObject *resultobj;
19505 wxListItem *arg1 = (wxListItem *) 0 ;
19506 wxString *arg2 = 0 ;
19507 bool temp2 = False ;
19508 PyObject * obj0 = 0 ;
19509 PyObject * obj1 = 0 ;
19510 char *kwnames[] = {
19511 (char *) "self",(char *) "text", NULL
19512 };
19513
19514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19517 {
19518 arg2 = wxString_in_helper(obj1);
19519 if (arg2 == NULL) SWIG_fail;
19520 temp2 = True;
19521 }
19522 {
19523 PyThreadState* __tstate = wxPyBeginAllowThreads();
19524 (arg1)->SetText((wxString const &)*arg2);
19525
19526 wxPyEndAllowThreads(__tstate);
19527 if (PyErr_Occurred()) SWIG_fail;
19528 }
19529 Py_INCREF(Py_None); resultobj = Py_None;
19530 {
19531 if (temp2)
19532 delete arg2;
19533 }
19534 return resultobj;
19535 fail:
19536 {
19537 if (temp2)
19538 delete arg2;
19539 }
19540 return NULL;
19541 }
19542
19543
19544 static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19545 PyObject *resultobj;
19546 wxListItem *arg1 = (wxListItem *) 0 ;
19547 int arg2 ;
19548 PyObject * obj0 = 0 ;
19549 PyObject * obj1 = 0 ;
19550 char *kwnames[] = {
19551 (char *) "self",(char *) "image", NULL
19552 };
19553
19554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19557 arg2 = (int)SWIG_As_int(obj1);
19558 if (PyErr_Occurred()) SWIG_fail;
19559 {
19560 PyThreadState* __tstate = wxPyBeginAllowThreads();
19561 (arg1)->SetImage(arg2);
19562
19563 wxPyEndAllowThreads(__tstate);
19564 if (PyErr_Occurred()) SWIG_fail;
19565 }
19566 Py_INCREF(Py_None); resultobj = Py_None;
19567 return resultobj;
19568 fail:
19569 return NULL;
19570 }
19571
19572
19573 static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
19574 PyObject *resultobj;
19575 wxListItem *arg1 = (wxListItem *) 0 ;
19576 long arg2 ;
19577 PyObject * obj0 = 0 ;
19578 PyObject * obj1 = 0 ;
19579 char *kwnames[] = {
19580 (char *) "self",(char *) "data", NULL
19581 };
19582
19583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19586 arg2 = (long)SWIG_As_long(obj1);
19587 if (PyErr_Occurred()) SWIG_fail;
19588 {
19589 PyThreadState* __tstate = wxPyBeginAllowThreads();
19590 (arg1)->SetData(arg2);
19591
19592 wxPyEndAllowThreads(__tstate);
19593 if (PyErr_Occurred()) SWIG_fail;
19594 }
19595 Py_INCREF(Py_None); resultobj = Py_None;
19596 return resultobj;
19597 fail:
19598 return NULL;
19599 }
19600
19601
19602 static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19603 PyObject *resultobj;
19604 wxListItem *arg1 = (wxListItem *) 0 ;
19605 int arg2 ;
19606 PyObject * obj0 = 0 ;
19607 PyObject * obj1 = 0 ;
19608 char *kwnames[] = {
19609 (char *) "self",(char *) "width", NULL
19610 };
19611
19612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19615 arg2 = (int)SWIG_As_int(obj1);
19616 if (PyErr_Occurred()) SWIG_fail;
19617 {
19618 PyThreadState* __tstate = wxPyBeginAllowThreads();
19619 (arg1)->SetWidth(arg2);
19620
19621 wxPyEndAllowThreads(__tstate);
19622 if (PyErr_Occurred()) SWIG_fail;
19623 }
19624 Py_INCREF(Py_None); resultobj = Py_None;
19625 return resultobj;
19626 fail:
19627 return NULL;
19628 }
19629
19630
19631 static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
19632 PyObject *resultobj;
19633 wxListItem *arg1 = (wxListItem *) 0 ;
19634 int arg2 ;
19635 PyObject * obj0 = 0 ;
19636 PyObject * obj1 = 0 ;
19637 char *kwnames[] = {
19638 (char *) "self",(char *) "align", NULL
19639 };
19640
19641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19644 arg2 = (int)SWIG_As_int(obj1);
19645 if (PyErr_Occurred()) SWIG_fail;
19646 {
19647 PyThreadState* __tstate = wxPyBeginAllowThreads();
19648 (arg1)->SetAlign((wxListColumnFormat )arg2);
19649
19650 wxPyEndAllowThreads(__tstate);
19651 if (PyErr_Occurred()) SWIG_fail;
19652 }
19653 Py_INCREF(Py_None); resultobj = Py_None;
19654 return resultobj;
19655 fail:
19656 return NULL;
19657 }
19658
19659
19660 static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19661 PyObject *resultobj;
19662 wxListItem *arg1 = (wxListItem *) 0 ;
19663 wxColour *arg2 = 0 ;
19664 wxColour temp2 ;
19665 PyObject * obj0 = 0 ;
19666 PyObject * obj1 = 0 ;
19667 char *kwnames[] = {
19668 (char *) "self",(char *) "colText", NULL
19669 };
19670
19671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19674 {
19675 arg2 = &temp2;
19676 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19677 }
19678 {
19679 PyThreadState* __tstate = wxPyBeginAllowThreads();
19680 (arg1)->SetTextColour((wxColour const &)*arg2);
19681
19682 wxPyEndAllowThreads(__tstate);
19683 if (PyErr_Occurred()) SWIG_fail;
19684 }
19685 Py_INCREF(Py_None); resultobj = Py_None;
19686 return resultobj;
19687 fail:
19688 return NULL;
19689 }
19690
19691
19692 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19693 PyObject *resultobj;
19694 wxListItem *arg1 = (wxListItem *) 0 ;
19695 wxColour *arg2 = 0 ;
19696 wxColour temp2 ;
19697 PyObject * obj0 = 0 ;
19698 PyObject * obj1 = 0 ;
19699 char *kwnames[] = {
19700 (char *) "self",(char *) "colBack", NULL
19701 };
19702
19703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19706 {
19707 arg2 = &temp2;
19708 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19709 }
19710 {
19711 PyThreadState* __tstate = wxPyBeginAllowThreads();
19712 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19713
19714 wxPyEndAllowThreads(__tstate);
19715 if (PyErr_Occurred()) SWIG_fail;
19716 }
19717 Py_INCREF(Py_None); resultobj = Py_None;
19718 return resultobj;
19719 fail:
19720 return NULL;
19721 }
19722
19723
19724 static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19725 PyObject *resultobj;
19726 wxListItem *arg1 = (wxListItem *) 0 ;
19727 wxFont *arg2 = 0 ;
19728 PyObject * obj0 = 0 ;
19729 PyObject * obj1 = 0 ;
19730 char *kwnames[] = {
19731 (char *) "self",(char *) "font", NULL
19732 };
19733
19734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19737 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19738 SWIG_POINTER_EXCEPTION | 0)) == -1)
19739 SWIG_fail;
19740 if (arg2 == NULL) {
19741 PyErr_SetString(PyExc_TypeError,"null reference");
19742 SWIG_fail;
19743 }
19744 {
19745 PyThreadState* __tstate = wxPyBeginAllowThreads();
19746 (arg1)->SetFont((wxFont const &)*arg2);
19747
19748 wxPyEndAllowThreads(__tstate);
19749 if (PyErr_Occurred()) SWIG_fail;
19750 }
19751 Py_INCREF(Py_None); resultobj = Py_None;
19752 return resultobj;
19753 fail:
19754 return NULL;
19755 }
19756
19757
19758 static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19759 PyObject *resultobj;
19760 wxListItem *arg1 = (wxListItem *) 0 ;
19761 long result;
19762 PyObject * obj0 = 0 ;
19763 char *kwnames[] = {
19764 (char *) "self", NULL
19765 };
19766
19767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19770 {
19771 PyThreadState* __tstate = wxPyBeginAllowThreads();
19772 result = (long)(arg1)->GetMask();
19773
19774 wxPyEndAllowThreads(__tstate);
19775 if (PyErr_Occurred()) SWIG_fail;
19776 }
19777 resultobj = SWIG_From_long((long)result);
19778 return resultobj;
19779 fail:
19780 return NULL;
19781 }
19782
19783
19784 static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
19785 PyObject *resultobj;
19786 wxListItem *arg1 = (wxListItem *) 0 ;
19787 long result;
19788 PyObject * obj0 = 0 ;
19789 char *kwnames[] = {
19790 (char *) "self", NULL
19791 };
19792
19793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19796 {
19797 PyThreadState* __tstate = wxPyBeginAllowThreads();
19798 result = (long)(arg1)->GetId();
19799
19800 wxPyEndAllowThreads(__tstate);
19801 if (PyErr_Occurred()) SWIG_fail;
19802 }
19803 resultobj = SWIG_From_long((long)result);
19804 return resultobj;
19805 fail:
19806 return NULL;
19807 }
19808
19809
19810 static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19811 PyObject *resultobj;
19812 wxListItem *arg1 = (wxListItem *) 0 ;
19813 int result;
19814 PyObject * obj0 = 0 ;
19815 char *kwnames[] = {
19816 (char *) "self", NULL
19817 };
19818
19819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19822 {
19823 PyThreadState* __tstate = wxPyBeginAllowThreads();
19824 result = (int)(arg1)->GetColumn();
19825
19826 wxPyEndAllowThreads(__tstate);
19827 if (PyErr_Occurred()) SWIG_fail;
19828 }
19829 resultobj = SWIG_From_int((int)result);
19830 return resultobj;
19831 fail:
19832 return NULL;
19833 }
19834
19835
19836 static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
19837 PyObject *resultobj;
19838 wxListItem *arg1 = (wxListItem *) 0 ;
19839 long result;
19840 PyObject * obj0 = 0 ;
19841 char *kwnames[] = {
19842 (char *) "self", NULL
19843 };
19844
19845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19848 {
19849 PyThreadState* __tstate = wxPyBeginAllowThreads();
19850 result = (long)(arg1)->GetState();
19851
19852 wxPyEndAllowThreads(__tstate);
19853 if (PyErr_Occurred()) SWIG_fail;
19854 }
19855 resultobj = SWIG_From_long((long)result);
19856 return resultobj;
19857 fail:
19858 return NULL;
19859 }
19860
19861
19862 static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
19863 PyObject *resultobj;
19864 wxListItem *arg1 = (wxListItem *) 0 ;
19865 wxString *result;
19866 PyObject * obj0 = 0 ;
19867 char *kwnames[] = {
19868 (char *) "self", NULL
19869 };
19870
19871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19874 {
19875 PyThreadState* __tstate = wxPyBeginAllowThreads();
19876 {
19877 wxString const &_result_ref = (arg1)->GetText();
19878 result = (wxString *) &_result_ref;
19879 }
19880
19881 wxPyEndAllowThreads(__tstate);
19882 if (PyErr_Occurred()) SWIG_fail;
19883 }
19884 {
19885 #if wxUSE_UNICODE
19886 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19887 #else
19888 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19889 #endif
19890 }
19891 return resultobj;
19892 fail:
19893 return NULL;
19894 }
19895
19896
19897 static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19898 PyObject *resultobj;
19899 wxListItem *arg1 = (wxListItem *) 0 ;
19900 int result;
19901 PyObject * obj0 = 0 ;
19902 char *kwnames[] = {
19903 (char *) "self", NULL
19904 };
19905
19906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19909 {
19910 PyThreadState* __tstate = wxPyBeginAllowThreads();
19911 result = (int)(arg1)->GetImage();
19912
19913 wxPyEndAllowThreads(__tstate);
19914 if (PyErr_Occurred()) SWIG_fail;
19915 }
19916 resultobj = SWIG_From_int((int)result);
19917 return resultobj;
19918 fail:
19919 return NULL;
19920 }
19921
19922
19923 static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
19924 PyObject *resultobj;
19925 wxListItem *arg1 = (wxListItem *) 0 ;
19926 long result;
19927 PyObject * obj0 = 0 ;
19928 char *kwnames[] = {
19929 (char *) "self", NULL
19930 };
19931
19932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19935 {
19936 PyThreadState* __tstate = wxPyBeginAllowThreads();
19937 result = (long)(arg1)->GetData();
19938
19939 wxPyEndAllowThreads(__tstate);
19940 if (PyErr_Occurred()) SWIG_fail;
19941 }
19942 resultobj = SWIG_From_long((long)result);
19943 return resultobj;
19944 fail:
19945 return NULL;
19946 }
19947
19948
19949 static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19950 PyObject *resultobj;
19951 wxListItem *arg1 = (wxListItem *) 0 ;
19952 int result;
19953 PyObject * obj0 = 0 ;
19954 char *kwnames[] = {
19955 (char *) "self", NULL
19956 };
19957
19958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19961 {
19962 PyThreadState* __tstate = wxPyBeginAllowThreads();
19963 result = (int)(arg1)->GetWidth();
19964
19965 wxPyEndAllowThreads(__tstate);
19966 if (PyErr_Occurred()) SWIG_fail;
19967 }
19968 resultobj = SWIG_From_int((int)result);
19969 return resultobj;
19970 fail:
19971 return NULL;
19972 }
19973
19974
19975 static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
19976 PyObject *resultobj;
19977 wxListItem *arg1 = (wxListItem *) 0 ;
19978 int result;
19979 PyObject * obj0 = 0 ;
19980 char *kwnames[] = {
19981 (char *) "self", NULL
19982 };
19983
19984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
19985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19987 {
19988 PyThreadState* __tstate = wxPyBeginAllowThreads();
19989 result = (int)(arg1)->GetAlign();
19990
19991 wxPyEndAllowThreads(__tstate);
19992 if (PyErr_Occurred()) SWIG_fail;
19993 }
19994 resultobj = SWIG_From_int((int)result);
19995 return resultobj;
19996 fail:
19997 return NULL;
19998 }
19999
20000
20001 static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20002 PyObject *resultobj;
20003 wxListItem *arg1 = (wxListItem *) 0 ;
20004 wxListItemAttr *result;
20005 PyObject * obj0 = 0 ;
20006 char *kwnames[] = {
20007 (char *) "self", NULL
20008 };
20009
20010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
20011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20013 {
20014 PyThreadState* __tstate = wxPyBeginAllowThreads();
20015 result = (wxListItemAttr *)(arg1)->GetAttributes();
20016
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
20021 return resultobj;
20022 fail:
20023 return NULL;
20024 }
20025
20026
20027 static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20028 PyObject *resultobj;
20029 wxListItem *arg1 = (wxListItem *) 0 ;
20030 bool result;
20031 PyObject * obj0 = 0 ;
20032 char *kwnames[] = {
20033 (char *) "self", NULL
20034 };
20035
20036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
20037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20039 {
20040 PyThreadState* __tstate = wxPyBeginAllowThreads();
20041 result = (bool)(arg1)->HasAttributes();
20042
20043 wxPyEndAllowThreads(__tstate);
20044 if (PyErr_Occurred()) SWIG_fail;
20045 }
20046 {
20047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20048 }
20049 return resultobj;
20050 fail:
20051 return NULL;
20052 }
20053
20054
20055 static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
20056 PyObject *resultobj;
20057 wxListItem *arg1 = (wxListItem *) 0 ;
20058 wxColour result;
20059 PyObject * obj0 = 0 ;
20060 char *kwnames[] = {
20061 (char *) "self", NULL
20062 };
20063
20064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
20065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20067 {
20068 PyThreadState* __tstate = wxPyBeginAllowThreads();
20069 result = ((wxListItem const *)arg1)->GetTextColour();
20070
20071 wxPyEndAllowThreads(__tstate);
20072 if (PyErr_Occurred()) SWIG_fail;
20073 }
20074 {
20075 wxColour * resultptr;
20076 resultptr = new wxColour((wxColour &) result);
20077 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20078 }
20079 return resultobj;
20080 fail:
20081 return NULL;
20082 }
20083
20084
20085 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20086 PyObject *resultobj;
20087 wxListItem *arg1 = (wxListItem *) 0 ;
20088 wxColour result;
20089 PyObject * obj0 = 0 ;
20090 char *kwnames[] = {
20091 (char *) "self", NULL
20092 };
20093
20094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
20095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20097 {
20098 PyThreadState* __tstate = wxPyBeginAllowThreads();
20099 result = ((wxListItem const *)arg1)->GetBackgroundColour();
20100
20101 wxPyEndAllowThreads(__tstate);
20102 if (PyErr_Occurred()) SWIG_fail;
20103 }
20104 {
20105 wxColour * resultptr;
20106 resultptr = new wxColour((wxColour &) result);
20107 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20108 }
20109 return resultobj;
20110 fail:
20111 return NULL;
20112 }
20113
20114
20115 static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20116 PyObject *resultobj;
20117 wxListItem *arg1 = (wxListItem *) 0 ;
20118 wxFont result;
20119 PyObject * obj0 = 0 ;
20120 char *kwnames[] = {
20121 (char *) "self", NULL
20122 };
20123
20124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
20125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20127 {
20128 PyThreadState* __tstate = wxPyBeginAllowThreads();
20129 result = ((wxListItem const *)arg1)->GetFont();
20130
20131 wxPyEndAllowThreads(__tstate);
20132 if (PyErr_Occurred()) SWIG_fail;
20133 }
20134 {
20135 wxFont * resultptr;
20136 resultptr = new wxFont((wxFont &) result);
20137 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
20138 }
20139 return resultobj;
20140 fail:
20141 return NULL;
20142 }
20143
20144
20145 static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20146 PyObject *resultobj;
20147 wxListItem *arg1 = (wxListItem *) 0 ;
20148 long arg2 ;
20149 PyObject * obj0 = 0 ;
20150 PyObject * obj1 = 0 ;
20151 char *kwnames[] = {
20152 (char *) "self",(char *) "m_mask", NULL
20153 };
20154
20155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
20156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20158 arg2 = (long)SWIG_As_long(obj1);
20159 if (PyErr_Occurred()) SWIG_fail;
20160 if (arg1) (arg1)->m_mask = arg2;
20161
20162 Py_INCREF(Py_None); resultobj = Py_None;
20163 return resultobj;
20164 fail:
20165 return NULL;
20166 }
20167
20168
20169 static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20170 PyObject *resultobj;
20171 wxListItem *arg1 = (wxListItem *) 0 ;
20172 long result;
20173 PyObject * obj0 = 0 ;
20174 char *kwnames[] = {
20175 (char *) "self", NULL
20176 };
20177
20178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
20179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20181 result = (long) ((arg1)->m_mask);
20182
20183 resultobj = SWIG_From_long((long)result);
20184 return resultobj;
20185 fail:
20186 return NULL;
20187 }
20188
20189
20190 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) {
20191 PyObject *resultobj;
20192 wxListItem *arg1 = (wxListItem *) 0 ;
20193 long arg2 ;
20194 PyObject * obj0 = 0 ;
20195 PyObject * obj1 = 0 ;
20196 char *kwnames[] = {
20197 (char *) "self",(char *) "m_itemId", NULL
20198 };
20199
20200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
20201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20203 arg2 = (long)SWIG_As_long(obj1);
20204 if (PyErr_Occurred()) SWIG_fail;
20205 if (arg1) (arg1)->m_itemId = arg2;
20206
20207 Py_INCREF(Py_None); resultobj = Py_None;
20208 return resultobj;
20209 fail:
20210 return NULL;
20211 }
20212
20213
20214 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) {
20215 PyObject *resultobj;
20216 wxListItem *arg1 = (wxListItem *) 0 ;
20217 long result;
20218 PyObject * obj0 = 0 ;
20219 char *kwnames[] = {
20220 (char *) "self", NULL
20221 };
20222
20223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
20224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20226 result = (long) ((arg1)->m_itemId);
20227
20228 resultobj = SWIG_From_long((long)result);
20229 return resultobj;
20230 fail:
20231 return NULL;
20232 }
20233
20234
20235 static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20236 PyObject *resultobj;
20237 wxListItem *arg1 = (wxListItem *) 0 ;
20238 int arg2 ;
20239 PyObject * obj0 = 0 ;
20240 PyObject * obj1 = 0 ;
20241 char *kwnames[] = {
20242 (char *) "self",(char *) "m_col", NULL
20243 };
20244
20245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20248 arg2 = (int)SWIG_As_int(obj1);
20249 if (PyErr_Occurred()) SWIG_fail;
20250 if (arg1) (arg1)->m_col = arg2;
20251
20252 Py_INCREF(Py_None); resultobj = Py_None;
20253 return resultobj;
20254 fail:
20255 return NULL;
20256 }
20257
20258
20259 static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20260 PyObject *resultobj;
20261 wxListItem *arg1 = (wxListItem *) 0 ;
20262 int result;
20263 PyObject * obj0 = 0 ;
20264 char *kwnames[] = {
20265 (char *) "self", NULL
20266 };
20267
20268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
20269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20271 result = (int) ((arg1)->m_col);
20272
20273 resultobj = SWIG_From_int((int)result);
20274 return resultobj;
20275 fail:
20276 return NULL;
20277 }
20278
20279
20280 static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) {
20281 PyObject *resultobj;
20282 wxListItem *arg1 = (wxListItem *) 0 ;
20283 long arg2 ;
20284 PyObject * obj0 = 0 ;
20285 PyObject * obj1 = 0 ;
20286 char *kwnames[] = {
20287 (char *) "self",(char *) "m_state", NULL
20288 };
20289
20290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20293 arg2 = (long)SWIG_As_long(obj1);
20294 if (PyErr_Occurred()) SWIG_fail;
20295 if (arg1) (arg1)->m_state = arg2;
20296
20297 Py_INCREF(Py_None); resultobj = Py_None;
20298 return resultobj;
20299 fail:
20300 return NULL;
20301 }
20302
20303
20304 static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) {
20305 PyObject *resultobj;
20306 wxListItem *arg1 = (wxListItem *) 0 ;
20307 long result;
20308 PyObject * obj0 = 0 ;
20309 char *kwnames[] = {
20310 (char *) "self", NULL
20311 };
20312
20313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20316 result = (long) ((arg1)->m_state);
20317
20318 resultobj = SWIG_From_long((long)result);
20319 return resultobj;
20320 fail:
20321 return NULL;
20322 }
20323
20324
20325 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20326 PyObject *resultobj;
20327 wxListItem *arg1 = (wxListItem *) 0 ;
20328 long arg2 ;
20329 PyObject * obj0 = 0 ;
20330 PyObject * obj1 = 0 ;
20331 char *kwnames[] = {
20332 (char *) "self",(char *) "m_stateMask", NULL
20333 };
20334
20335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20338 arg2 = (long)SWIG_As_long(obj1);
20339 if (PyErr_Occurred()) SWIG_fail;
20340 if (arg1) (arg1)->m_stateMask = arg2;
20341
20342 Py_INCREF(Py_None); resultobj = Py_None;
20343 return resultobj;
20344 fail:
20345 return NULL;
20346 }
20347
20348
20349 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20350 PyObject *resultobj;
20351 wxListItem *arg1 = (wxListItem *) 0 ;
20352 long result;
20353 PyObject * obj0 = 0 ;
20354 char *kwnames[] = {
20355 (char *) "self", NULL
20356 };
20357
20358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20361 result = (long) ((arg1)->m_stateMask);
20362
20363 resultobj = SWIG_From_long((long)result);
20364 return resultobj;
20365 fail:
20366 return NULL;
20367 }
20368
20369
20370 static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) {
20371 PyObject *resultobj;
20372 wxListItem *arg1 = (wxListItem *) 0 ;
20373 wxString *arg2 = (wxString *) 0 ;
20374 bool temp2 = False ;
20375 PyObject * obj0 = 0 ;
20376 PyObject * obj1 = 0 ;
20377 char *kwnames[] = {
20378 (char *) "self",(char *) "m_text", NULL
20379 };
20380
20381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20384 {
20385 arg2 = wxString_in_helper(obj1);
20386 if (arg2 == NULL) SWIG_fail;
20387 temp2 = True;
20388 }
20389 if (arg1) (arg1)->m_text = *arg2;
20390
20391 Py_INCREF(Py_None); resultobj = Py_None;
20392 {
20393 if (temp2)
20394 delete arg2;
20395 }
20396 return resultobj;
20397 fail:
20398 {
20399 if (temp2)
20400 delete arg2;
20401 }
20402 return NULL;
20403 }
20404
20405
20406 static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) {
20407 PyObject *resultobj;
20408 wxListItem *arg1 = (wxListItem *) 0 ;
20409 wxString *result;
20410 PyObject * obj0 = 0 ;
20411 char *kwnames[] = {
20412 (char *) "self", NULL
20413 };
20414
20415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20418 result = (wxString *)& ((arg1)->m_text);
20419
20420 {
20421 #if wxUSE_UNICODE
20422 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20423 #else
20424 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20425 #endif
20426 }
20427 return resultobj;
20428 fail:
20429 return NULL;
20430 }
20431
20432
20433 static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) {
20434 PyObject *resultobj;
20435 wxListItem *arg1 = (wxListItem *) 0 ;
20436 int arg2 ;
20437 PyObject * obj0 = 0 ;
20438 PyObject * obj1 = 0 ;
20439 char *kwnames[] = {
20440 (char *) "self",(char *) "m_image", NULL
20441 };
20442
20443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20446 arg2 = (int)SWIG_As_int(obj1);
20447 if (PyErr_Occurred()) SWIG_fail;
20448 if (arg1) (arg1)->m_image = arg2;
20449
20450 Py_INCREF(Py_None); resultobj = Py_None;
20451 return resultobj;
20452 fail:
20453 return NULL;
20454 }
20455
20456
20457 static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) {
20458 PyObject *resultobj;
20459 wxListItem *arg1 = (wxListItem *) 0 ;
20460 int result;
20461 PyObject * obj0 = 0 ;
20462 char *kwnames[] = {
20463 (char *) "self", NULL
20464 };
20465
20466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20469 result = (int) ((arg1)->m_image);
20470
20471 resultobj = SWIG_From_int((int)result);
20472 return resultobj;
20473 fail:
20474 return NULL;
20475 }
20476
20477
20478 static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) {
20479 PyObject *resultobj;
20480 wxListItem *arg1 = (wxListItem *) 0 ;
20481 long arg2 ;
20482 PyObject * obj0 = 0 ;
20483 PyObject * obj1 = 0 ;
20484 char *kwnames[] = {
20485 (char *) "self",(char *) "m_data", NULL
20486 };
20487
20488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20491 arg2 = (long)SWIG_As_long(obj1);
20492 if (PyErr_Occurred()) SWIG_fail;
20493 if (arg1) (arg1)->m_data = arg2;
20494
20495 Py_INCREF(Py_None); resultobj = Py_None;
20496 return resultobj;
20497 fail:
20498 return NULL;
20499 }
20500
20501
20502 static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) {
20503 PyObject *resultobj;
20504 wxListItem *arg1 = (wxListItem *) 0 ;
20505 long result;
20506 PyObject * obj0 = 0 ;
20507 char *kwnames[] = {
20508 (char *) "self", NULL
20509 };
20510
20511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20514 result = (long) ((arg1)->m_data);
20515
20516 resultobj = SWIG_From_long((long)result);
20517 return resultobj;
20518 fail:
20519 return NULL;
20520 }
20521
20522
20523 static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) {
20524 PyObject *resultobj;
20525 wxListItem *arg1 = (wxListItem *) 0 ;
20526 int arg2 ;
20527 PyObject * obj0 = 0 ;
20528 PyObject * obj1 = 0 ;
20529 char *kwnames[] = {
20530 (char *) "self",(char *) "m_format", NULL
20531 };
20532
20533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20536 arg2 = (int)SWIG_As_int(obj1);
20537 if (PyErr_Occurred()) SWIG_fail;
20538 if (arg1) (arg1)->m_format = arg2;
20539
20540 Py_INCREF(Py_None); resultobj = Py_None;
20541 return resultobj;
20542 fail:
20543 return NULL;
20544 }
20545
20546
20547 static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) {
20548 PyObject *resultobj;
20549 wxListItem *arg1 = (wxListItem *) 0 ;
20550 int result;
20551 PyObject * obj0 = 0 ;
20552 char *kwnames[] = {
20553 (char *) "self", NULL
20554 };
20555
20556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20559 result = (int) ((arg1)->m_format);
20560
20561 resultobj = SWIG_From_int((int)result);
20562 return resultobj;
20563 fail:
20564 return NULL;
20565 }
20566
20567
20568 static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
20569 PyObject *resultobj;
20570 wxListItem *arg1 = (wxListItem *) 0 ;
20571 int arg2 ;
20572 PyObject * obj0 = 0 ;
20573 PyObject * obj1 = 0 ;
20574 char *kwnames[] = {
20575 (char *) "self",(char *) "m_width", NULL
20576 };
20577
20578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20581 arg2 = (int)SWIG_As_int(obj1);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 if (arg1) (arg1)->m_width = arg2;
20584
20585 Py_INCREF(Py_None); resultobj = Py_None;
20586 return resultobj;
20587 fail:
20588 return NULL;
20589 }
20590
20591
20592 static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
20593 PyObject *resultobj;
20594 wxListItem *arg1 = (wxListItem *) 0 ;
20595 int result;
20596 PyObject * obj0 = 0 ;
20597 char *kwnames[] = {
20598 (char *) "self", NULL
20599 };
20600
20601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20604 result = (int) ((arg1)->m_width);
20605
20606 resultobj = SWIG_From_int((int)result);
20607 return resultobj;
20608 fail:
20609 return NULL;
20610 }
20611
20612
20613 static PyObject * ListItem_swigregister(PyObject *, PyObject *args) {
20614 PyObject *obj;
20615 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20616 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20617 Py_INCREF(obj);
20618 return Py_BuildValue((char *)"");
20619 }
20620 static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20621 PyObject *resultobj;
20622 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20623 int arg2 = (int) 0 ;
20624 wxListEvent *result;
20625 PyObject * obj0 = 0 ;
20626 PyObject * obj1 = 0 ;
20627 char *kwnames[] = {
20628 (char *) "commandType",(char *) "id", NULL
20629 };
20630
20631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20632 if (obj0) {
20633 arg1 = (wxEventType)SWIG_As_int(obj0);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 }
20636 if (obj1) {
20637 arg2 = (int)SWIG_As_int(obj1);
20638 if (PyErr_Occurred()) SWIG_fail;
20639 }
20640 {
20641 PyThreadState* __tstate = wxPyBeginAllowThreads();
20642 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20643
20644 wxPyEndAllowThreads(__tstate);
20645 if (PyErr_Occurred()) SWIG_fail;
20646 }
20647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20648 return resultobj;
20649 fail:
20650 return NULL;
20651 }
20652
20653
20654 static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) {
20655 PyObject *resultobj;
20656 wxListEvent *arg1 = (wxListEvent *) 0 ;
20657 int arg2 ;
20658 PyObject * obj0 = 0 ;
20659 PyObject * obj1 = 0 ;
20660 char *kwnames[] = {
20661 (char *) "self",(char *) "m_code", NULL
20662 };
20663
20664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20667 arg2 = (int)SWIG_As_int(obj1);
20668 if (PyErr_Occurred()) SWIG_fail;
20669 if (arg1) (arg1)->m_code = arg2;
20670
20671 Py_INCREF(Py_None); resultobj = Py_None;
20672 return resultobj;
20673 fail:
20674 return NULL;
20675 }
20676
20677
20678 static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) {
20679 PyObject *resultobj;
20680 wxListEvent *arg1 = (wxListEvent *) 0 ;
20681 int result;
20682 PyObject * obj0 = 0 ;
20683 char *kwnames[] = {
20684 (char *) "self", NULL
20685 };
20686
20687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20690 result = (int) ((arg1)->m_code);
20691
20692 resultobj = SWIG_From_int((int)result);
20693 return resultobj;
20694 fail:
20695 return NULL;
20696 }
20697
20698
20699 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
20700 PyObject *resultobj;
20701 wxListEvent *arg1 = (wxListEvent *) 0 ;
20702 long arg2 ;
20703 PyObject * obj0 = 0 ;
20704 PyObject * obj1 = 0 ;
20705 char *kwnames[] = {
20706 (char *) "self",(char *) "m_oldItemIndex", NULL
20707 };
20708
20709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20712 arg2 = (long)SWIG_As_long(obj1);
20713 if (PyErr_Occurred()) SWIG_fail;
20714 if (arg1) (arg1)->m_oldItemIndex = arg2;
20715
20716 Py_INCREF(Py_None); resultobj = Py_None;
20717 return resultobj;
20718 fail:
20719 return NULL;
20720 }
20721
20722
20723 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
20724 PyObject *resultobj;
20725 wxListEvent *arg1 = (wxListEvent *) 0 ;
20726 long result;
20727 PyObject * obj0 = 0 ;
20728 char *kwnames[] = {
20729 (char *) "self", NULL
20730 };
20731
20732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20735 result = (long) ((arg1)->m_oldItemIndex);
20736
20737 resultobj = SWIG_From_long((long)result);
20738 return resultobj;
20739 fail:
20740 return NULL;
20741 }
20742
20743
20744 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
20745 PyObject *resultobj;
20746 wxListEvent *arg1 = (wxListEvent *) 0 ;
20747 long arg2 ;
20748 PyObject * obj0 = 0 ;
20749 PyObject * obj1 = 0 ;
20750 char *kwnames[] = {
20751 (char *) "self",(char *) "m_itemIndex", NULL
20752 };
20753
20754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20757 arg2 = (long)SWIG_As_long(obj1);
20758 if (PyErr_Occurred()) SWIG_fail;
20759 if (arg1) (arg1)->m_itemIndex = arg2;
20760
20761 Py_INCREF(Py_None); resultobj = Py_None;
20762 return resultobj;
20763 fail:
20764 return NULL;
20765 }
20766
20767
20768 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
20769 PyObject *resultobj;
20770 wxListEvent *arg1 = (wxListEvent *) 0 ;
20771 long result;
20772 PyObject * obj0 = 0 ;
20773 char *kwnames[] = {
20774 (char *) "self", NULL
20775 };
20776
20777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20780 result = (long) ((arg1)->m_itemIndex);
20781
20782 resultobj = SWIG_From_long((long)result);
20783 return resultobj;
20784 fail:
20785 return NULL;
20786 }
20787
20788
20789 static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20790 PyObject *resultobj;
20791 wxListEvent *arg1 = (wxListEvent *) 0 ;
20792 int arg2 ;
20793 PyObject * obj0 = 0 ;
20794 PyObject * obj1 = 0 ;
20795 char *kwnames[] = {
20796 (char *) "self",(char *) "m_col", NULL
20797 };
20798
20799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20802 arg2 = (int)SWIG_As_int(obj1);
20803 if (PyErr_Occurred()) SWIG_fail;
20804 if (arg1) (arg1)->m_col = arg2;
20805
20806 Py_INCREF(Py_None); resultobj = Py_None;
20807 return resultobj;
20808 fail:
20809 return NULL;
20810 }
20811
20812
20813 static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20814 PyObject *resultobj;
20815 wxListEvent *arg1 = (wxListEvent *) 0 ;
20816 int result;
20817 PyObject * obj0 = 0 ;
20818 char *kwnames[] = {
20819 (char *) "self", NULL
20820 };
20821
20822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20825 result = (int) ((arg1)->m_col);
20826
20827 resultobj = SWIG_From_int((int)result);
20828 return resultobj;
20829 fail:
20830 return NULL;
20831 }
20832
20833
20834 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) {
20835 PyObject *resultobj;
20836 wxListEvent *arg1 = (wxListEvent *) 0 ;
20837 wxPoint *arg2 = (wxPoint *) 0 ;
20838 PyObject * obj0 = 0 ;
20839 PyObject * obj1 = 0 ;
20840 char *kwnames[] = {
20841 (char *) "self",(char *) "m_pointDrag", NULL
20842 };
20843
20844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20847 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20849 if (arg1) (arg1)->m_pointDrag = *arg2;
20850
20851 Py_INCREF(Py_None); resultobj = Py_None;
20852 return resultobj;
20853 fail:
20854 return NULL;
20855 }
20856
20857
20858 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) {
20859 PyObject *resultobj;
20860 wxListEvent *arg1 = (wxListEvent *) 0 ;
20861 wxPoint *result;
20862 PyObject * obj0 = 0 ;
20863 char *kwnames[] = {
20864 (char *) "self", NULL
20865 };
20866
20867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20870 result = (wxPoint *)& ((arg1)->m_pointDrag);
20871
20872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20873 return resultobj;
20874 fail:
20875 return NULL;
20876 }
20877
20878
20879 static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) {
20880 PyObject *resultobj;
20881 wxListEvent *arg1 = (wxListEvent *) 0 ;
20882 wxListItem *result;
20883 PyObject * obj0 = 0 ;
20884 char *kwnames[] = {
20885 (char *) "self", NULL
20886 };
20887
20888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20891 result = (wxListItem *)& ((arg1)->m_item);
20892
20893 {
20894 resultobj = wxPyMake_wxObject(result, 0);
20895 }
20896 return resultobj;
20897 fail:
20898 return NULL;
20899 }
20900
20901
20902 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
20903 PyObject *resultobj;
20904 wxListEvent *arg1 = (wxListEvent *) 0 ;
20905 int result;
20906 PyObject * obj0 = 0 ;
20907 char *kwnames[] = {
20908 (char *) "self", NULL
20909 };
20910
20911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20914 {
20915 PyThreadState* __tstate = wxPyBeginAllowThreads();
20916 result = (int)(arg1)->GetKeyCode();
20917
20918 wxPyEndAllowThreads(__tstate);
20919 if (PyErr_Occurred()) SWIG_fail;
20920 }
20921 resultobj = SWIG_From_int((int)result);
20922 return resultobj;
20923 fail:
20924 return NULL;
20925 }
20926
20927
20928 static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
20929 PyObject *resultobj;
20930 wxListEvent *arg1 = (wxListEvent *) 0 ;
20931 long result;
20932 PyObject * obj0 = 0 ;
20933 char *kwnames[] = {
20934 (char *) "self", NULL
20935 };
20936
20937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20940 {
20941 PyThreadState* __tstate = wxPyBeginAllowThreads();
20942 result = (long)(arg1)->GetIndex();
20943
20944 wxPyEndAllowThreads(__tstate);
20945 if (PyErr_Occurred()) SWIG_fail;
20946 }
20947 resultobj = SWIG_From_long((long)result);
20948 return resultobj;
20949 fail:
20950 return NULL;
20951 }
20952
20953
20954 static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20955 PyObject *resultobj;
20956 wxListEvent *arg1 = (wxListEvent *) 0 ;
20957 int result;
20958 PyObject * obj0 = 0 ;
20959 char *kwnames[] = {
20960 (char *) "self", NULL
20961 };
20962
20963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20966 {
20967 PyThreadState* __tstate = wxPyBeginAllowThreads();
20968 result = (int)(arg1)->GetColumn();
20969
20970 wxPyEndAllowThreads(__tstate);
20971 if (PyErr_Occurred()) SWIG_fail;
20972 }
20973 resultobj = SWIG_From_int((int)result);
20974 return resultobj;
20975 fail:
20976 return NULL;
20977 }
20978
20979
20980 static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
20981 PyObject *resultobj;
20982 wxListEvent *arg1 = (wxListEvent *) 0 ;
20983 wxPoint result;
20984 PyObject * obj0 = 0 ;
20985 char *kwnames[] = {
20986 (char *) "self", NULL
20987 };
20988
20989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
20990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20992 {
20993 PyThreadState* __tstate = wxPyBeginAllowThreads();
20994 result = (arg1)->GetPoint();
20995
20996 wxPyEndAllowThreads(__tstate);
20997 if (PyErr_Occurred()) SWIG_fail;
20998 }
20999 {
21000 wxPoint * resultptr;
21001 resultptr = new wxPoint((wxPoint &) result);
21002 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21003 }
21004 return resultobj;
21005 fail:
21006 return NULL;
21007 }
21008
21009
21010 static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
21011 PyObject *resultobj;
21012 wxListEvent *arg1 = (wxListEvent *) 0 ;
21013 wxString *result;
21014 PyObject * obj0 = 0 ;
21015 char *kwnames[] = {
21016 (char *) "self", NULL
21017 };
21018
21019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
21020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21022 {
21023 PyThreadState* __tstate = wxPyBeginAllowThreads();
21024 {
21025 wxString const &_result_ref = (arg1)->GetLabel();
21026 result = (wxString *) &_result_ref;
21027 }
21028
21029 wxPyEndAllowThreads(__tstate);
21030 if (PyErr_Occurred()) SWIG_fail;
21031 }
21032 {
21033 #if wxUSE_UNICODE
21034 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21035 #else
21036 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21037 #endif
21038 }
21039 return resultobj;
21040 fail:
21041 return NULL;
21042 }
21043
21044
21045 static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
21046 PyObject *resultobj;
21047 wxListEvent *arg1 = (wxListEvent *) 0 ;
21048 wxString *result;
21049 PyObject * obj0 = 0 ;
21050 char *kwnames[] = {
21051 (char *) "self", NULL
21052 };
21053
21054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
21055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21057 {
21058 PyThreadState* __tstate = wxPyBeginAllowThreads();
21059 {
21060 wxString const &_result_ref = (arg1)->GetText();
21061 result = (wxString *) &_result_ref;
21062 }
21063
21064 wxPyEndAllowThreads(__tstate);
21065 if (PyErr_Occurred()) SWIG_fail;
21066 }
21067 {
21068 #if wxUSE_UNICODE
21069 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21070 #else
21071 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21072 #endif
21073 }
21074 return resultobj;
21075 fail:
21076 return NULL;
21077 }
21078
21079
21080 static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
21081 PyObject *resultobj;
21082 wxListEvent *arg1 = (wxListEvent *) 0 ;
21083 int result;
21084 PyObject * obj0 = 0 ;
21085 char *kwnames[] = {
21086 (char *) "self", NULL
21087 };
21088
21089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
21090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21092 {
21093 PyThreadState* __tstate = wxPyBeginAllowThreads();
21094 result = (int)(arg1)->GetImage();
21095
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 resultobj = SWIG_From_int((int)result);
21100 return resultobj;
21101 fail:
21102 return NULL;
21103 }
21104
21105
21106 static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
21107 PyObject *resultobj;
21108 wxListEvent *arg1 = (wxListEvent *) 0 ;
21109 long result;
21110 PyObject * obj0 = 0 ;
21111 char *kwnames[] = {
21112 (char *) "self", NULL
21113 };
21114
21115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
21116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21118 {
21119 PyThreadState* __tstate = wxPyBeginAllowThreads();
21120 result = (long)(arg1)->GetData();
21121
21122 wxPyEndAllowThreads(__tstate);
21123 if (PyErr_Occurred()) SWIG_fail;
21124 }
21125 resultobj = SWIG_From_long((long)result);
21126 return resultobj;
21127 fail:
21128 return NULL;
21129 }
21130
21131
21132 static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
21133 PyObject *resultobj;
21134 wxListEvent *arg1 = (wxListEvent *) 0 ;
21135 long result;
21136 PyObject * obj0 = 0 ;
21137 char *kwnames[] = {
21138 (char *) "self", NULL
21139 };
21140
21141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
21142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21144 {
21145 PyThreadState* __tstate = wxPyBeginAllowThreads();
21146 result = (long)(arg1)->GetMask();
21147
21148 wxPyEndAllowThreads(__tstate);
21149 if (PyErr_Occurred()) SWIG_fail;
21150 }
21151 resultobj = SWIG_From_long((long)result);
21152 return resultobj;
21153 fail:
21154 return NULL;
21155 }
21156
21157
21158 static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21159 PyObject *resultobj;
21160 wxListEvent *arg1 = (wxListEvent *) 0 ;
21161 wxListItem *result;
21162 PyObject * obj0 = 0 ;
21163 char *kwnames[] = {
21164 (char *) "self", NULL
21165 };
21166
21167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
21168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21170 {
21171 PyThreadState* __tstate = wxPyBeginAllowThreads();
21172 {
21173 wxListItem const &_result_ref = (arg1)->GetItem();
21174 result = (wxListItem *) &_result_ref;
21175 }
21176
21177 wxPyEndAllowThreads(__tstate);
21178 if (PyErr_Occurred()) SWIG_fail;
21179 }
21180 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
21181 return resultobj;
21182 fail:
21183 return NULL;
21184 }
21185
21186
21187 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) {
21188 PyObject *resultobj;
21189 wxListEvent *arg1 = (wxListEvent *) 0 ;
21190 long result;
21191 PyObject * obj0 = 0 ;
21192 char *kwnames[] = {
21193 (char *) "self", NULL
21194 };
21195
21196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
21197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21199 {
21200 PyThreadState* __tstate = wxPyBeginAllowThreads();
21201 result = (long)(arg1)->GetCacheFrom();
21202
21203 wxPyEndAllowThreads(__tstate);
21204 if (PyErr_Occurred()) SWIG_fail;
21205 }
21206 resultobj = SWIG_From_long((long)result);
21207 return resultobj;
21208 fail:
21209 return NULL;
21210 }
21211
21212
21213 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) {
21214 PyObject *resultobj;
21215 wxListEvent *arg1 = (wxListEvent *) 0 ;
21216 long result;
21217 PyObject * obj0 = 0 ;
21218 char *kwnames[] = {
21219 (char *) "self", NULL
21220 };
21221
21222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
21223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21225 {
21226 PyThreadState* __tstate = wxPyBeginAllowThreads();
21227 result = (long)(arg1)->GetCacheTo();
21228
21229 wxPyEndAllowThreads(__tstate);
21230 if (PyErr_Occurred()) SWIG_fail;
21231 }
21232 resultobj = SWIG_From_long((long)result);
21233 return resultobj;
21234 fail:
21235 return NULL;
21236 }
21237
21238
21239 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
21240 PyObject *resultobj;
21241 wxListEvent *arg1 = (wxListEvent *) 0 ;
21242 bool result;
21243 PyObject * obj0 = 0 ;
21244 char *kwnames[] = {
21245 (char *) "self", NULL
21246 };
21247
21248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
21249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21251 {
21252 PyThreadState* __tstate = wxPyBeginAllowThreads();
21253 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
21254
21255 wxPyEndAllowThreads(__tstate);
21256 if (PyErr_Occurred()) SWIG_fail;
21257 }
21258 {
21259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21260 }
21261 return resultobj;
21262 fail:
21263 return NULL;
21264 }
21265
21266
21267 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
21268 PyObject *resultobj;
21269 wxListEvent *arg1 = (wxListEvent *) 0 ;
21270 bool arg2 ;
21271 PyObject * obj0 = 0 ;
21272 PyObject * obj1 = 0 ;
21273 char *kwnames[] = {
21274 (char *) "self",(char *) "editCancelled", NULL
21275 };
21276
21277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
21278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21280 arg2 = (bool)SWIG_As_bool(obj1);
21281 if (PyErr_Occurred()) SWIG_fail;
21282 {
21283 PyThreadState* __tstate = wxPyBeginAllowThreads();
21284 (arg1)->SetEditCanceled(arg2);
21285
21286 wxPyEndAllowThreads(__tstate);
21287 if (PyErr_Occurred()) SWIG_fail;
21288 }
21289 Py_INCREF(Py_None); resultobj = Py_None;
21290 return resultobj;
21291 fail:
21292 return NULL;
21293 }
21294
21295
21296 static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) {
21297 PyObject *obj;
21298 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21299 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21300 Py_INCREF(obj);
21301 return Py_BuildValue((char *)"");
21302 }
21303 static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21304 PyObject *resultobj;
21305 wxWindow *arg1 = (wxWindow *) 0 ;
21306 int arg2 = (int) -1 ;
21307 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21308 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21309 wxSize const &arg4_defvalue = wxDefaultSize ;
21310 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21311 long arg5 = (long) wxLC_ICON ;
21312 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21313 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21314 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21315 wxString *arg7 = (wxString *) &arg7_defvalue ;
21316 wxPyListCtrl *result;
21317 wxPoint temp3 ;
21318 wxSize temp4 ;
21319 bool temp7 = False ;
21320 PyObject * obj0 = 0 ;
21321 PyObject * obj1 = 0 ;
21322 PyObject * obj2 = 0 ;
21323 PyObject * obj3 = 0 ;
21324 PyObject * obj4 = 0 ;
21325 PyObject * obj5 = 0 ;
21326 PyObject * obj6 = 0 ;
21327 char *kwnames[] = {
21328 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21329 };
21330
21331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21334 if (obj1) {
21335 arg2 = (int)SWIG_As_int(obj1);
21336 if (PyErr_Occurred()) SWIG_fail;
21337 }
21338 if (obj2) {
21339 {
21340 arg3 = &temp3;
21341 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21342 }
21343 }
21344 if (obj3) {
21345 {
21346 arg4 = &temp4;
21347 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21348 }
21349 }
21350 if (obj4) {
21351 arg5 = (long)SWIG_As_long(obj4);
21352 if (PyErr_Occurred()) SWIG_fail;
21353 }
21354 if (obj5) {
21355 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21356 SWIG_POINTER_EXCEPTION | 0)) == -1)
21357 SWIG_fail;
21358 if (arg6 == NULL) {
21359 PyErr_SetString(PyExc_TypeError,"null reference");
21360 SWIG_fail;
21361 }
21362 }
21363 if (obj6) {
21364 {
21365 arg7 = wxString_in_helper(obj6);
21366 if (arg7 == NULL) SWIG_fail;
21367 temp7 = True;
21368 }
21369 }
21370 {
21371 if (!wxPyCheckForApp()) SWIG_fail;
21372 PyThreadState* __tstate = wxPyBeginAllowThreads();
21373 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21374
21375 wxPyEndAllowThreads(__tstate);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 }
21378 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21379 {
21380 if (temp7)
21381 delete arg7;
21382 }
21383 return resultobj;
21384 fail:
21385 {
21386 if (temp7)
21387 delete arg7;
21388 }
21389 return NULL;
21390 }
21391
21392
21393 static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21394 PyObject *resultobj;
21395 wxPyListCtrl *result;
21396 char *kwnames[] = {
21397 NULL
21398 };
21399
21400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21401 {
21402 if (!wxPyCheckForApp()) SWIG_fail;
21403 PyThreadState* __tstate = wxPyBeginAllowThreads();
21404 result = (wxPyListCtrl *)new wxPyListCtrl();
21405
21406 wxPyEndAllowThreads(__tstate);
21407 if (PyErr_Occurred()) SWIG_fail;
21408 }
21409 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21410 return resultobj;
21411 fail:
21412 return NULL;
21413 }
21414
21415
21416 static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
21417 PyObject *resultobj;
21418 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21419 wxWindow *arg2 = (wxWindow *) 0 ;
21420 int arg3 = (int) -1 ;
21421 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21422 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21423 wxSize const &arg5_defvalue = wxDefaultSize ;
21424 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21425 long arg6 = (long) wxLC_ICON ;
21426 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21427 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21428 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21429 wxString *arg8 = (wxString *) &arg8_defvalue ;
21430 bool result;
21431 wxPoint temp4 ;
21432 wxSize temp5 ;
21433 bool temp8 = False ;
21434 PyObject * obj0 = 0 ;
21435 PyObject * obj1 = 0 ;
21436 PyObject * obj2 = 0 ;
21437 PyObject * obj3 = 0 ;
21438 PyObject * obj4 = 0 ;
21439 PyObject * obj5 = 0 ;
21440 PyObject * obj6 = 0 ;
21441 PyObject * obj7 = 0 ;
21442 char *kwnames[] = {
21443 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21444 };
21445
21446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21449 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21451 if (obj2) {
21452 arg3 = (int)SWIG_As_int(obj2);
21453 if (PyErr_Occurred()) SWIG_fail;
21454 }
21455 if (obj3) {
21456 {
21457 arg4 = &temp4;
21458 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21459 }
21460 }
21461 if (obj4) {
21462 {
21463 arg5 = &temp5;
21464 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21465 }
21466 }
21467 if (obj5) {
21468 arg6 = (long)SWIG_As_long(obj5);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 if (obj6) {
21472 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21473 SWIG_POINTER_EXCEPTION | 0)) == -1)
21474 SWIG_fail;
21475 if (arg7 == NULL) {
21476 PyErr_SetString(PyExc_TypeError,"null reference");
21477 SWIG_fail;
21478 }
21479 }
21480 if (obj7) {
21481 {
21482 arg8 = wxString_in_helper(obj7);
21483 if (arg8 == NULL) SWIG_fail;
21484 temp8 = True;
21485 }
21486 }
21487 {
21488 PyThreadState* __tstate = wxPyBeginAllowThreads();
21489 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21490
21491 wxPyEndAllowThreads(__tstate);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 {
21495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21496 }
21497 {
21498 if (temp8)
21499 delete arg8;
21500 }
21501 return resultobj;
21502 fail:
21503 {
21504 if (temp8)
21505 delete arg8;
21506 }
21507 return NULL;
21508 }
21509
21510
21511 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
21512 PyObject *resultobj;
21513 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21514 PyObject *arg2 = (PyObject *) 0 ;
21515 PyObject *arg3 = (PyObject *) 0 ;
21516 PyObject * obj0 = 0 ;
21517 PyObject * obj1 = 0 ;
21518 PyObject * obj2 = 0 ;
21519 char *kwnames[] = {
21520 (char *) "self",(char *) "self",(char *) "_class", NULL
21521 };
21522
21523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21526 arg2 = obj1;
21527 arg3 = obj2;
21528 {
21529 PyThreadState* __tstate = wxPyBeginAllowThreads();
21530 (arg1)->_setCallbackInfo(arg2,arg3);
21531
21532 wxPyEndAllowThreads(__tstate);
21533 if (PyErr_Occurred()) SWIG_fail;
21534 }
21535 Py_INCREF(Py_None); resultobj = Py_None;
21536 return resultobj;
21537 fail:
21538 return NULL;
21539 }
21540
21541
21542 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21543 PyObject *resultobj;
21544 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21545 wxColour *arg2 = 0 ;
21546 bool result;
21547 wxColour temp2 ;
21548 PyObject * obj0 = 0 ;
21549 PyObject * obj1 = 0 ;
21550 char *kwnames[] = {
21551 (char *) "self",(char *) "col", NULL
21552 };
21553
21554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21557 {
21558 arg2 = &temp2;
21559 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21560 }
21561 {
21562 PyThreadState* __tstate = wxPyBeginAllowThreads();
21563 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21564
21565 wxPyEndAllowThreads(__tstate);
21566 if (PyErr_Occurred()) SWIG_fail;
21567 }
21568 {
21569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21570 }
21571 return resultobj;
21572 fail:
21573 return NULL;
21574 }
21575
21576
21577 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21578 PyObject *resultobj;
21579 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21580 wxColour *arg2 = 0 ;
21581 bool result;
21582 wxColour temp2 ;
21583 PyObject * obj0 = 0 ;
21584 PyObject * obj1 = 0 ;
21585 char *kwnames[] = {
21586 (char *) "self",(char *) "col", NULL
21587 };
21588
21589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21592 {
21593 arg2 = &temp2;
21594 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21595 }
21596 {
21597 PyThreadState* __tstate = wxPyBeginAllowThreads();
21598 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21599
21600 wxPyEndAllowThreads(__tstate);
21601 if (PyErr_Occurred()) SWIG_fail;
21602 }
21603 {
21604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21605 }
21606 return resultobj;
21607 fail:
21608 return NULL;
21609 }
21610
21611
21612 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21613 PyObject *resultobj;
21614 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21615 int arg2 ;
21616 wxListItem *result;
21617 PyObject * obj0 = 0 ;
21618 PyObject * obj1 = 0 ;
21619 char *kwnames[] = {
21620 (char *) "self",(char *) "col", NULL
21621 };
21622
21623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21626 arg2 = (int)SWIG_As_int(obj1);
21627 if (PyErr_Occurred()) SWIG_fail;
21628 {
21629 PyThreadState* __tstate = wxPyBeginAllowThreads();
21630 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21631
21632 wxPyEndAllowThreads(__tstate);
21633 if (PyErr_Occurred()) SWIG_fail;
21634 }
21635 {
21636 resultobj = wxPyMake_wxObject(result, 0);
21637 }
21638 return resultobj;
21639 fail:
21640 return NULL;
21641 }
21642
21643
21644 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21645 PyObject *resultobj;
21646 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21647 int arg2 ;
21648 wxListItem *arg3 = 0 ;
21649 bool result;
21650 PyObject * obj0 = 0 ;
21651 PyObject * obj1 = 0 ;
21652 PyObject * obj2 = 0 ;
21653 char *kwnames[] = {
21654 (char *) "self",(char *) "col",(char *) "item", NULL
21655 };
21656
21657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21660 arg2 = (int)SWIG_As_int(obj1);
21661 if (PyErr_Occurred()) SWIG_fail;
21662 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21663 SWIG_POINTER_EXCEPTION | 0)) == -1)
21664 SWIG_fail;
21665 if (arg3 == NULL) {
21666 PyErr_SetString(PyExc_TypeError,"null reference");
21667 SWIG_fail;
21668 }
21669 {
21670 PyThreadState* __tstate = wxPyBeginAllowThreads();
21671 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21672
21673 wxPyEndAllowThreads(__tstate);
21674 if (PyErr_Occurred()) SWIG_fail;
21675 }
21676 {
21677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21678 }
21679 return resultobj;
21680 fail:
21681 return NULL;
21682 }
21683
21684
21685 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
21686 PyObject *resultobj;
21687 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21688 int arg2 ;
21689 int result;
21690 PyObject * obj0 = 0 ;
21691 PyObject * obj1 = 0 ;
21692 char *kwnames[] = {
21693 (char *) "self",(char *) "col", NULL
21694 };
21695
21696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21699 arg2 = (int)SWIG_As_int(obj1);
21700 if (PyErr_Occurred()) SWIG_fail;
21701 {
21702 PyThreadState* __tstate = wxPyBeginAllowThreads();
21703 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21704
21705 wxPyEndAllowThreads(__tstate);
21706 if (PyErr_Occurred()) SWIG_fail;
21707 }
21708 resultobj = SWIG_From_int((int)result);
21709 return resultobj;
21710 fail:
21711 return NULL;
21712 }
21713
21714
21715 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
21716 PyObject *resultobj;
21717 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21718 int arg2 ;
21719 int arg3 ;
21720 bool result;
21721 PyObject * obj0 = 0 ;
21722 PyObject * obj1 = 0 ;
21723 PyObject * obj2 = 0 ;
21724 char *kwnames[] = {
21725 (char *) "self",(char *) "col",(char *) "width", NULL
21726 };
21727
21728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21731 arg2 = (int)SWIG_As_int(obj1);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 arg3 = (int)SWIG_As_int(obj2);
21734 if (PyErr_Occurred()) SWIG_fail;
21735 {
21736 PyThreadState* __tstate = wxPyBeginAllowThreads();
21737 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21738
21739 wxPyEndAllowThreads(__tstate);
21740 if (PyErr_Occurred()) SWIG_fail;
21741 }
21742 {
21743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21744 }
21745 return resultobj;
21746 fail:
21747 return NULL;
21748 }
21749
21750
21751 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) {
21752 PyObject *resultobj;
21753 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21754 int result;
21755 PyObject * obj0 = 0 ;
21756 char *kwnames[] = {
21757 (char *) "self", NULL
21758 };
21759
21760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21763 {
21764 PyThreadState* __tstate = wxPyBeginAllowThreads();
21765 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21766
21767 wxPyEndAllowThreads(__tstate);
21768 if (PyErr_Occurred()) SWIG_fail;
21769 }
21770 resultobj = SWIG_From_int((int)result);
21771 return resultobj;
21772 fail:
21773 return NULL;
21774 }
21775
21776
21777 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) {
21778 PyObject *resultobj;
21779 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21780 wxRect result;
21781 PyObject * obj0 = 0 ;
21782 char *kwnames[] = {
21783 (char *) "self", NULL
21784 };
21785
21786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21789 {
21790 PyThreadState* __tstate = wxPyBeginAllowThreads();
21791 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21792
21793 wxPyEndAllowThreads(__tstate);
21794 if (PyErr_Occurred()) SWIG_fail;
21795 }
21796 {
21797 wxRect * resultptr;
21798 resultptr = new wxRect((wxRect &) result);
21799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21800 }
21801 return resultobj;
21802 fail:
21803 return NULL;
21804 }
21805
21806
21807 static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
21808 PyObject *resultobj;
21809 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21810 wxTextCtrl *result;
21811 PyObject * obj0 = 0 ;
21812 char *kwnames[] = {
21813 (char *) "self", NULL
21814 };
21815
21816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail;
21817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21819 {
21820 PyThreadState* __tstate = wxPyBeginAllowThreads();
21821 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
21822
21823 wxPyEndAllowThreads(__tstate);
21824 if (PyErr_Occurred()) SWIG_fail;
21825 }
21826 {
21827 resultobj = wxPyMake_wxObject(result, 0);
21828 }
21829 return resultobj;
21830 fail:
21831 return NULL;
21832 }
21833
21834
21835 static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21836 PyObject *resultobj;
21837 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21838 long arg2 ;
21839 int arg3 = (int) 0 ;
21840 wxListItem *result;
21841 PyObject * obj0 = 0 ;
21842 PyObject * obj1 = 0 ;
21843 PyObject * obj2 = 0 ;
21844 char *kwnames[] = {
21845 (char *) "self",(char *) "itemId",(char *) "col", NULL
21846 };
21847
21848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",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 = (long)SWIG_As_long(obj1);
21852 if (PyErr_Occurred()) SWIG_fail;
21853 if (obj2) {
21854 arg3 = (int)SWIG_As_int(obj2);
21855 if (PyErr_Occurred()) SWIG_fail;
21856 }
21857 {
21858 PyThreadState* __tstate = wxPyBeginAllowThreads();
21859 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21860
21861 wxPyEndAllowThreads(__tstate);
21862 if (PyErr_Occurred()) SWIG_fail;
21863 }
21864 {
21865 resultobj = wxPyMake_wxObject(result, 0);
21866 }
21867 return resultobj;
21868 fail:
21869 return NULL;
21870 }
21871
21872
21873 static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21874 PyObject *resultobj;
21875 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21876 wxListItem *arg2 = 0 ;
21877 bool result;
21878 PyObject * obj0 = 0 ;
21879 PyObject * obj1 = 0 ;
21880 char *kwnames[] = {
21881 (char *) "self",(char *) "info", NULL
21882 };
21883
21884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21887 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21888 SWIG_POINTER_EXCEPTION | 0)) == -1)
21889 SWIG_fail;
21890 if (arg2 == NULL) {
21891 PyErr_SetString(PyExc_TypeError,"null reference");
21892 SWIG_fail;
21893 }
21894 {
21895 PyThreadState* __tstate = wxPyBeginAllowThreads();
21896 result = (bool)(arg1)->SetItem(*arg2);
21897
21898 wxPyEndAllowThreads(__tstate);
21899 if (PyErr_Occurred()) SWIG_fail;
21900 }
21901 {
21902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21903 }
21904 return resultobj;
21905 fail:
21906 return NULL;
21907 }
21908
21909
21910 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
21911 PyObject *resultobj;
21912 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21913 long arg2 ;
21914 int arg3 ;
21915 wxString *arg4 = 0 ;
21916 int arg5 = (int) -1 ;
21917 long result;
21918 bool temp4 = False ;
21919 PyObject * obj0 = 0 ;
21920 PyObject * obj1 = 0 ;
21921 PyObject * obj2 = 0 ;
21922 PyObject * obj3 = 0 ;
21923 PyObject * obj4 = 0 ;
21924 char *kwnames[] = {
21925 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21926 };
21927
21928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21931 arg2 = (long)SWIG_As_long(obj1);
21932 if (PyErr_Occurred()) SWIG_fail;
21933 arg3 = (int)SWIG_As_int(obj2);
21934 if (PyErr_Occurred()) SWIG_fail;
21935 {
21936 arg4 = wxString_in_helper(obj3);
21937 if (arg4 == NULL) SWIG_fail;
21938 temp4 = True;
21939 }
21940 if (obj4) {
21941 arg5 = (int)SWIG_As_int(obj4);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 {
21945 PyThreadState* __tstate = wxPyBeginAllowThreads();
21946 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21947
21948 wxPyEndAllowThreads(__tstate);
21949 if (PyErr_Occurred()) SWIG_fail;
21950 }
21951 resultobj = SWIG_From_long((long)result);
21952 {
21953 if (temp4)
21954 delete arg4;
21955 }
21956 return resultobj;
21957 fail:
21958 {
21959 if (temp4)
21960 delete arg4;
21961 }
21962 return NULL;
21963 }
21964
21965
21966 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
21967 PyObject *resultobj;
21968 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21969 long arg2 ;
21970 long arg3 ;
21971 int result;
21972 PyObject * obj0 = 0 ;
21973 PyObject * obj1 = 0 ;
21974 PyObject * obj2 = 0 ;
21975 char *kwnames[] = {
21976 (char *) "self",(char *) "item",(char *) "stateMask", NULL
21977 };
21978
21979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
21980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21982 arg2 = (long)SWIG_As_long(obj1);
21983 if (PyErr_Occurred()) SWIG_fail;
21984 arg3 = (long)SWIG_As_long(obj2);
21985 if (PyErr_Occurred()) SWIG_fail;
21986 {
21987 PyThreadState* __tstate = wxPyBeginAllowThreads();
21988 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
21989
21990 wxPyEndAllowThreads(__tstate);
21991 if (PyErr_Occurred()) SWIG_fail;
21992 }
21993 resultobj = SWIG_From_int((int)result);
21994 return resultobj;
21995 fail:
21996 return NULL;
21997 }
21998
21999
22000 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22001 PyObject *resultobj;
22002 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22003 long arg2 ;
22004 long arg3 ;
22005 long arg4 ;
22006 bool result;
22007 PyObject * obj0 = 0 ;
22008 PyObject * obj1 = 0 ;
22009 PyObject * obj2 = 0 ;
22010 PyObject * obj3 = 0 ;
22011 char *kwnames[] = {
22012 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
22013 };
22014
22015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22018 arg2 = (long)SWIG_As_long(obj1);
22019 if (PyErr_Occurred()) SWIG_fail;
22020 arg3 = (long)SWIG_As_long(obj2);
22021 if (PyErr_Occurred()) SWIG_fail;
22022 arg4 = (long)SWIG_As_long(obj3);
22023 if (PyErr_Occurred()) SWIG_fail;
22024 {
22025 PyThreadState* __tstate = wxPyBeginAllowThreads();
22026 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
22027
22028 wxPyEndAllowThreads(__tstate);
22029 if (PyErr_Occurred()) SWIG_fail;
22030 }
22031 {
22032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22033 }
22034 return resultobj;
22035 fail:
22036 return NULL;
22037 }
22038
22039
22040 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
22041 PyObject *resultobj;
22042 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22043 long arg2 ;
22044 int arg3 ;
22045 int arg4 ;
22046 bool result;
22047 PyObject * obj0 = 0 ;
22048 PyObject * obj1 = 0 ;
22049 PyObject * obj2 = 0 ;
22050 PyObject * obj3 = 0 ;
22051 char *kwnames[] = {
22052 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
22053 };
22054
22055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22058 arg2 = (long)SWIG_As_long(obj1);
22059 if (PyErr_Occurred()) SWIG_fail;
22060 arg3 = (int)SWIG_As_int(obj2);
22061 if (PyErr_Occurred()) SWIG_fail;
22062 arg4 = (int)SWIG_As_int(obj3);
22063 if (PyErr_Occurred()) SWIG_fail;
22064 {
22065 PyThreadState* __tstate = wxPyBeginAllowThreads();
22066 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
22067
22068 wxPyEndAllowThreads(__tstate);
22069 if (PyErr_Occurred()) SWIG_fail;
22070 }
22071 {
22072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22073 }
22074 return resultobj;
22075 fail:
22076 return NULL;
22077 }
22078
22079
22080 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22081 PyObject *resultobj;
22082 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22083 long arg2 ;
22084 wxString result;
22085 PyObject * obj0 = 0 ;
22086 PyObject * obj1 = 0 ;
22087 char *kwnames[] = {
22088 (char *) "self",(char *) "item", NULL
22089 };
22090
22091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
22092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22094 arg2 = (long)SWIG_As_long(obj1);
22095 if (PyErr_Occurred()) SWIG_fail;
22096 {
22097 PyThreadState* __tstate = wxPyBeginAllowThreads();
22098 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
22099
22100 wxPyEndAllowThreads(__tstate);
22101 if (PyErr_Occurred()) SWIG_fail;
22102 }
22103 {
22104 #if wxUSE_UNICODE
22105 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22106 #else
22107 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22108 #endif
22109 }
22110 return resultobj;
22111 fail:
22112 return NULL;
22113 }
22114
22115
22116 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22117 PyObject *resultobj;
22118 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22119 long arg2 ;
22120 wxString *arg3 = 0 ;
22121 bool temp3 = False ;
22122 PyObject * obj0 = 0 ;
22123 PyObject * obj1 = 0 ;
22124 PyObject * obj2 = 0 ;
22125 char *kwnames[] = {
22126 (char *) "self",(char *) "item",(char *) "str", NULL
22127 };
22128
22129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
22130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22132 arg2 = (long)SWIG_As_long(obj1);
22133 if (PyErr_Occurred()) SWIG_fail;
22134 {
22135 arg3 = wxString_in_helper(obj2);
22136 if (arg3 == NULL) SWIG_fail;
22137 temp3 = True;
22138 }
22139 {
22140 PyThreadState* __tstate = wxPyBeginAllowThreads();
22141 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
22142
22143 wxPyEndAllowThreads(__tstate);
22144 if (PyErr_Occurred()) SWIG_fail;
22145 }
22146 Py_INCREF(Py_None); resultobj = Py_None;
22147 {
22148 if (temp3)
22149 delete arg3;
22150 }
22151 return resultobj;
22152 fail:
22153 {
22154 if (temp3)
22155 delete arg3;
22156 }
22157 return NULL;
22158 }
22159
22160
22161 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22162 PyObject *resultobj;
22163 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22164 long arg2 ;
22165 long result;
22166 PyObject * obj0 = 0 ;
22167 PyObject * obj1 = 0 ;
22168 char *kwnames[] = {
22169 (char *) "self",(char *) "item", NULL
22170 };
22171
22172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
22173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22175 arg2 = (long)SWIG_As_long(obj1);
22176 if (PyErr_Occurred()) SWIG_fail;
22177 {
22178 PyThreadState* __tstate = wxPyBeginAllowThreads();
22179 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
22180
22181 wxPyEndAllowThreads(__tstate);
22182 if (PyErr_Occurred()) SWIG_fail;
22183 }
22184 resultobj = SWIG_From_long((long)result);
22185 return resultobj;
22186 fail:
22187 return NULL;
22188 }
22189
22190
22191 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22192 PyObject *resultobj;
22193 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22194 long arg2 ;
22195 long arg3 ;
22196 bool result;
22197 PyObject * obj0 = 0 ;
22198 PyObject * obj1 = 0 ;
22199 PyObject * obj2 = 0 ;
22200 char *kwnames[] = {
22201 (char *) "self",(char *) "item",(char *) "data", NULL
22202 };
22203
22204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22207 arg2 = (long)SWIG_As_long(obj1);
22208 if (PyErr_Occurred()) SWIG_fail;
22209 arg3 = (long)SWIG_As_long(obj2);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 {
22212 PyThreadState* __tstate = wxPyBeginAllowThreads();
22213 result = (bool)(arg1)->SetItemData(arg2,arg3);
22214
22215 wxPyEndAllowThreads(__tstate);
22216 if (PyErr_Occurred()) SWIG_fail;
22217 }
22218 {
22219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22220 }
22221 return resultobj;
22222 fail:
22223 return NULL;
22224 }
22225
22226
22227 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22228 PyObject *resultobj;
22229 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22230 long arg2 ;
22231 wxPoint result;
22232 PyObject * obj0 = 0 ;
22233 PyObject * obj1 = 0 ;
22234 char *kwnames[] = {
22235 (char *) "self",(char *) "item", NULL
22236 };
22237
22238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
22239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22241 arg2 = (long)SWIG_As_long(obj1);
22242 if (PyErr_Occurred()) SWIG_fail;
22243 {
22244 PyThreadState* __tstate = wxPyBeginAllowThreads();
22245 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
22246
22247 wxPyEndAllowThreads(__tstate);
22248 if (PyErr_Occurred()) SWIG_fail;
22249 }
22250 {
22251 wxPoint * resultptr;
22252 resultptr = new wxPoint((wxPoint &) result);
22253 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22254 }
22255 return resultobj;
22256 fail:
22257 return NULL;
22258 }
22259
22260
22261 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) {
22262 PyObject *resultobj;
22263 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22264 long arg2 ;
22265 int arg3 = (int) wxLIST_RECT_BOUNDS ;
22266 wxRect result;
22267 PyObject * obj0 = 0 ;
22268 PyObject * obj1 = 0 ;
22269 PyObject * obj2 = 0 ;
22270 char *kwnames[] = {
22271 (char *) "self",(char *) "item",(char *) "code", NULL
22272 };
22273
22274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22277 arg2 = (long)SWIG_As_long(obj1);
22278 if (PyErr_Occurred()) SWIG_fail;
22279 if (obj2) {
22280 arg3 = (int)SWIG_As_int(obj2);
22281 if (PyErr_Occurred()) SWIG_fail;
22282 }
22283 {
22284 PyThreadState* __tstate = wxPyBeginAllowThreads();
22285 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22286
22287 wxPyEndAllowThreads(__tstate);
22288 if (PyErr_Occurred()) SWIG_fail;
22289 }
22290 {
22291 wxRect * resultptr;
22292 resultptr = new wxRect((wxRect &) result);
22293 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22294 }
22295 return resultobj;
22296 fail:
22297 return NULL;
22298 }
22299
22300
22301 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22302 PyObject *resultobj;
22303 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22304 long arg2 ;
22305 wxPoint *arg3 = 0 ;
22306 bool result;
22307 wxPoint temp3 ;
22308 PyObject * obj0 = 0 ;
22309 PyObject * obj1 = 0 ;
22310 PyObject * obj2 = 0 ;
22311 char *kwnames[] = {
22312 (char *) "self",(char *) "item",(char *) "pos", NULL
22313 };
22314
22315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22318 arg2 = (long)SWIG_As_long(obj1);
22319 if (PyErr_Occurred()) SWIG_fail;
22320 {
22321 arg3 = &temp3;
22322 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22323 }
22324 {
22325 PyThreadState* __tstate = wxPyBeginAllowThreads();
22326 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22327
22328 wxPyEndAllowThreads(__tstate);
22329 if (PyErr_Occurred()) SWIG_fail;
22330 }
22331 {
22332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22333 }
22334 return resultobj;
22335 fail:
22336 return NULL;
22337 }
22338
22339
22340 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22341 PyObject *resultobj;
22342 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22343 int result;
22344 PyObject * obj0 = 0 ;
22345 char *kwnames[] = {
22346 (char *) "self", NULL
22347 };
22348
22349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22352 {
22353 PyThreadState* __tstate = wxPyBeginAllowThreads();
22354 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22355
22356 wxPyEndAllowThreads(__tstate);
22357 if (PyErr_Occurred()) SWIG_fail;
22358 }
22359 resultobj = SWIG_From_int((int)result);
22360 return resultobj;
22361 fail:
22362 return NULL;
22363 }
22364
22365
22366 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
22367 PyObject *resultobj;
22368 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22369 int result;
22370 PyObject * obj0 = 0 ;
22371 char *kwnames[] = {
22372 (char *) "self", NULL
22373 };
22374
22375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22378 {
22379 PyThreadState* __tstate = wxPyBeginAllowThreads();
22380 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22381
22382 wxPyEndAllowThreads(__tstate);
22383 if (PyErr_Occurred()) SWIG_fail;
22384 }
22385 resultobj = SWIG_From_int((int)result);
22386 return resultobj;
22387 fail:
22388 return NULL;
22389 }
22390
22391
22392 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22393 PyObject *resultobj;
22394 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22395 wxSize result;
22396 PyObject * obj0 = 0 ;
22397 char *kwnames[] = {
22398 (char *) "self", NULL
22399 };
22400
22401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22404 {
22405 PyThreadState* __tstate = wxPyBeginAllowThreads();
22406 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22407
22408 wxPyEndAllowThreads(__tstate);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 }
22411 {
22412 wxSize * resultptr;
22413 resultptr = new wxSize((wxSize &) result);
22414 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22415 }
22416 return resultobj;
22417 fail:
22418 return NULL;
22419 }
22420
22421
22422 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22423 PyObject *resultobj;
22424 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22425 int result;
22426 PyObject * obj0 = 0 ;
22427 char *kwnames[] = {
22428 (char *) "self", NULL
22429 };
22430
22431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22434 {
22435 PyThreadState* __tstate = wxPyBeginAllowThreads();
22436 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22437
22438 wxPyEndAllowThreads(__tstate);
22439 if (PyErr_Occurred()) SWIG_fail;
22440 }
22441 resultobj = SWIG_From_int((int)result);
22442 return resultobj;
22443 fail:
22444 return NULL;
22445 }
22446
22447
22448 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22449 PyObject *resultobj;
22450 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22451 wxColour result;
22452 PyObject * obj0 = 0 ;
22453 char *kwnames[] = {
22454 (char *) "self", NULL
22455 };
22456
22457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22463
22464 wxPyEndAllowThreads(__tstate);
22465 if (PyErr_Occurred()) SWIG_fail;
22466 }
22467 {
22468 wxColour * resultptr;
22469 resultptr = new wxColour((wxColour &) result);
22470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22471 }
22472 return resultobj;
22473 fail:
22474 return NULL;
22475 }
22476
22477
22478 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22479 PyObject *resultobj;
22480 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22481 wxColour *arg2 = 0 ;
22482 wxColour temp2 ;
22483 PyObject * obj0 = 0 ;
22484 PyObject * obj1 = 0 ;
22485 char *kwnames[] = {
22486 (char *) "self",(char *) "col", NULL
22487 };
22488
22489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22492 {
22493 arg2 = &temp2;
22494 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22495 }
22496 {
22497 PyThreadState* __tstate = wxPyBeginAllowThreads();
22498 (arg1)->SetTextColour((wxColour const &)*arg2);
22499
22500 wxPyEndAllowThreads(__tstate);
22501 if (PyErr_Occurred()) SWIG_fail;
22502 }
22503 Py_INCREF(Py_None); resultobj = Py_None;
22504 return resultobj;
22505 fail:
22506 return NULL;
22507 }
22508
22509
22510 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) {
22511 PyObject *resultobj;
22512 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22513 long result;
22514 PyObject * obj0 = 0 ;
22515 char *kwnames[] = {
22516 (char *) "self", NULL
22517 };
22518
22519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22522 {
22523 PyThreadState* __tstate = wxPyBeginAllowThreads();
22524 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22525
22526 wxPyEndAllowThreads(__tstate);
22527 if (PyErr_Occurred()) SWIG_fail;
22528 }
22529 resultobj = SWIG_From_long((long)result);
22530 return resultobj;
22531 fail:
22532 return NULL;
22533 }
22534
22535
22536 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) {
22537 PyObject *resultobj;
22538 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22539 long arg2 ;
22540 bool arg3 = (bool) True ;
22541 PyObject * obj0 = 0 ;
22542 PyObject * obj1 = 0 ;
22543 PyObject * obj2 = 0 ;
22544 char *kwnames[] = {
22545 (char *) "self",(char *) "style",(char *) "add", NULL
22546 };
22547
22548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22551 arg2 = (long)SWIG_As_long(obj1);
22552 if (PyErr_Occurred()) SWIG_fail;
22553 if (obj2) {
22554 arg3 = (bool)SWIG_As_bool(obj2);
22555 if (PyErr_Occurred()) SWIG_fail;
22556 }
22557 {
22558 PyThreadState* __tstate = wxPyBeginAllowThreads();
22559 (arg1)->SetSingleStyle(arg2,arg3);
22560
22561 wxPyEndAllowThreads(__tstate);
22562 if (PyErr_Occurred()) SWIG_fail;
22563 }
22564 Py_INCREF(Py_None); resultobj = Py_None;
22565 return resultobj;
22566 fail:
22567 return NULL;
22568 }
22569
22570
22571 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
22572 PyObject *resultobj;
22573 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22574 long arg2 ;
22575 PyObject * obj0 = 0 ;
22576 PyObject * obj1 = 0 ;
22577 char *kwnames[] = {
22578 (char *) "self",(char *) "style", NULL
22579 };
22580
22581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22584 arg2 = (long)SWIG_As_long(obj1);
22585 if (PyErr_Occurred()) SWIG_fail;
22586 {
22587 PyThreadState* __tstate = wxPyBeginAllowThreads();
22588 (arg1)->SetWindowStyleFlag(arg2);
22589
22590 wxPyEndAllowThreads(__tstate);
22591 if (PyErr_Occurred()) SWIG_fail;
22592 }
22593 Py_INCREF(Py_None); resultobj = Py_None;
22594 return resultobj;
22595 fail:
22596 return NULL;
22597 }
22598
22599
22600 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
22601 PyObject *resultobj;
22602 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22603 long arg2 ;
22604 int arg3 = (int) wxLIST_NEXT_ALL ;
22605 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22606 long result;
22607 PyObject * obj0 = 0 ;
22608 PyObject * obj1 = 0 ;
22609 PyObject * obj2 = 0 ;
22610 PyObject * obj3 = 0 ;
22611 char *kwnames[] = {
22612 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22613 };
22614
22615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22618 arg2 = (long)SWIG_As_long(obj1);
22619 if (PyErr_Occurred()) SWIG_fail;
22620 if (obj2) {
22621 arg3 = (int)SWIG_As_int(obj2);
22622 if (PyErr_Occurred()) SWIG_fail;
22623 }
22624 if (obj3) {
22625 arg4 = (int)SWIG_As_int(obj3);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 }
22628 {
22629 PyThreadState* __tstate = wxPyBeginAllowThreads();
22630 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22631
22632 wxPyEndAllowThreads(__tstate);
22633 if (PyErr_Occurred()) SWIG_fail;
22634 }
22635 resultobj = SWIG_From_long((long)result);
22636 return resultobj;
22637 fail:
22638 return NULL;
22639 }
22640
22641
22642 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22643 PyObject *resultobj;
22644 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22645 int arg2 ;
22646 wxImageList *result;
22647 PyObject * obj0 = 0 ;
22648 PyObject * obj1 = 0 ;
22649 char *kwnames[] = {
22650 (char *) "self",(char *) "which", NULL
22651 };
22652
22653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22656 arg2 = (int)SWIG_As_int(obj1);
22657 if (PyErr_Occurred()) SWIG_fail;
22658 {
22659 PyThreadState* __tstate = wxPyBeginAllowThreads();
22660 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22661
22662 wxPyEndAllowThreads(__tstate);
22663 if (PyErr_Occurred()) SWIG_fail;
22664 }
22665 {
22666 resultobj = wxPyMake_wxObject(result, 0);
22667 }
22668 return resultobj;
22669 fail:
22670 return NULL;
22671 }
22672
22673
22674 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22675 PyObject *resultobj;
22676 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22677 wxImageList *arg2 = (wxImageList *) 0 ;
22678 int arg3 ;
22679 PyObject * obj0 = 0 ;
22680 PyObject * obj1 = 0 ;
22681 PyObject * obj2 = 0 ;
22682 char *kwnames[] = {
22683 (char *) "self",(char *) "imageList",(char *) "which", NULL
22684 };
22685
22686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22689 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22691 arg3 = (int)SWIG_As_int(obj2);
22692 if (PyErr_Occurred()) SWIG_fail;
22693 {
22694 PyThreadState* __tstate = wxPyBeginAllowThreads();
22695 (arg1)->SetImageList(arg2,arg3);
22696
22697 wxPyEndAllowThreads(__tstate);
22698 if (PyErr_Occurred()) SWIG_fail;
22699 }
22700 Py_INCREF(Py_None); resultobj = Py_None;
22701 return resultobj;
22702 fail:
22703 return NULL;
22704 }
22705
22706
22707 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22708 PyObject *resultobj;
22709 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22710 wxImageList *arg2 = (wxImageList *) 0 ;
22711 int arg3 ;
22712 PyObject * obj0 = 0 ;
22713 PyObject * obj1 = 0 ;
22714 PyObject * obj2 = 0 ;
22715 char *kwnames[] = {
22716 (char *) "self",(char *) "imageList",(char *) "which", NULL
22717 };
22718
22719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22722 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22723 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22724 arg3 = (int)SWIG_As_int(obj2);
22725 if (PyErr_Occurred()) SWIG_fail;
22726 {
22727 PyThreadState* __tstate = wxPyBeginAllowThreads();
22728 (arg1)->AssignImageList(arg2,arg3);
22729
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 Py_INCREF(Py_None); resultobj = Py_None;
22734 return resultobj;
22735 fail:
22736 return NULL;
22737 }
22738
22739
22740 static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) {
22741 PyObject *resultobj;
22742 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22743 bool result;
22744 PyObject * obj0 = 0 ;
22745 char *kwnames[] = {
22746 (char *) "self", NULL
22747 };
22748
22749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22752 {
22753 PyThreadState* __tstate = wxPyBeginAllowThreads();
22754 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22755
22756 wxPyEndAllowThreads(__tstate);
22757 if (PyErr_Occurred()) SWIG_fail;
22758 }
22759 {
22760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22761 }
22762 return resultobj;
22763 fail:
22764 return NULL;
22765 }
22766
22767
22768 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) {
22769 PyObject *resultobj;
22770 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22771 bool result;
22772 PyObject * obj0 = 0 ;
22773 char *kwnames[] = {
22774 (char *) "self", NULL
22775 };
22776
22777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22780 {
22781 PyThreadState* __tstate = wxPyBeginAllowThreads();
22782 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22783
22784 wxPyEndAllowThreads(__tstate);
22785 if (PyErr_Occurred()) SWIG_fail;
22786 }
22787 {
22788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22789 }
22790 return resultobj;
22791 fail:
22792 return NULL;
22793 }
22794
22795
22796 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) {
22797 PyObject *resultobj;
22798 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22799 long arg2 ;
22800 PyObject * obj0 = 0 ;
22801 PyObject * obj1 = 0 ;
22802 char *kwnames[] = {
22803 (char *) "self",(char *) "item", NULL
22804 };
22805
22806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22809 arg2 = (long)SWIG_As_long(obj1);
22810 if (PyErr_Occurred()) SWIG_fail;
22811 {
22812 PyThreadState* __tstate = wxPyBeginAllowThreads();
22813 (arg1)->RefreshItem(arg2);
22814
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 Py_INCREF(Py_None); resultobj = Py_None;
22819 return resultobj;
22820 fail:
22821 return NULL;
22822 }
22823
22824
22825 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) {
22826 PyObject *resultobj;
22827 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22828 long arg2 ;
22829 long arg3 ;
22830 PyObject * obj0 = 0 ;
22831 PyObject * obj1 = 0 ;
22832 PyObject * obj2 = 0 ;
22833 char *kwnames[] = {
22834 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22835 };
22836
22837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22840 arg2 = (long)SWIG_As_long(obj1);
22841 if (PyErr_Occurred()) SWIG_fail;
22842 arg3 = (long)SWIG_As_long(obj2);
22843 if (PyErr_Occurred()) SWIG_fail;
22844 {
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 (arg1)->RefreshItems(arg2,arg3);
22847
22848 wxPyEndAllowThreads(__tstate);
22849 if (PyErr_Occurred()) SWIG_fail;
22850 }
22851 Py_INCREF(Py_None); resultobj = Py_None;
22852 return resultobj;
22853 fail:
22854 return NULL;
22855 }
22856
22857
22858 static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) {
22859 PyObject *resultobj;
22860 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22861 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22862 bool result;
22863 PyObject * obj0 = 0 ;
22864 PyObject * obj1 = 0 ;
22865 char *kwnames[] = {
22866 (char *) "self",(char *) "flag", NULL
22867 };
22868
22869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22872 if (obj1) {
22873 arg2 = (int)SWIG_As_int(obj1);
22874 if (PyErr_Occurred()) SWIG_fail;
22875 }
22876 {
22877 PyThreadState* __tstate = wxPyBeginAllowThreads();
22878 result = (bool)(arg1)->Arrange(arg2);
22879
22880 wxPyEndAllowThreads(__tstate);
22881 if (PyErr_Occurred()) SWIG_fail;
22882 }
22883 {
22884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22885 }
22886 return resultobj;
22887 fail:
22888 return NULL;
22889 }
22890
22891
22892 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
22893 PyObject *resultobj;
22894 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22895 long arg2 ;
22896 bool result;
22897 PyObject * obj0 = 0 ;
22898 PyObject * obj1 = 0 ;
22899 char *kwnames[] = {
22900 (char *) "self",(char *) "item", NULL
22901 };
22902
22903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22906 arg2 = (long)SWIG_As_long(obj1);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 {
22909 PyThreadState* __tstate = wxPyBeginAllowThreads();
22910 result = (bool)(arg1)->DeleteItem(arg2);
22911
22912 wxPyEndAllowThreads(__tstate);
22913 if (PyErr_Occurred()) SWIG_fail;
22914 }
22915 {
22916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22917 }
22918 return resultobj;
22919 fail:
22920 return NULL;
22921 }
22922
22923
22924 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
22925 PyObject *resultobj;
22926 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22927 bool result;
22928 PyObject * obj0 = 0 ;
22929 char *kwnames[] = {
22930 (char *) "self", NULL
22931 };
22932
22933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22936 {
22937 PyThreadState* __tstate = wxPyBeginAllowThreads();
22938 result = (bool)(arg1)->DeleteAllItems();
22939
22940 wxPyEndAllowThreads(__tstate);
22941 if (PyErr_Occurred()) SWIG_fail;
22942 }
22943 {
22944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22945 }
22946 return resultobj;
22947 fail:
22948 return NULL;
22949 }
22950
22951
22952 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22953 PyObject *resultobj;
22954 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22955 int arg2 ;
22956 bool result;
22957 PyObject * obj0 = 0 ;
22958 PyObject * obj1 = 0 ;
22959 char *kwnames[] = {
22960 (char *) "self",(char *) "col", NULL
22961 };
22962
22963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22966 arg2 = (int)SWIG_As_int(obj1);
22967 if (PyErr_Occurred()) SWIG_fail;
22968 {
22969 PyThreadState* __tstate = wxPyBeginAllowThreads();
22970 result = (bool)(arg1)->DeleteColumn(arg2);
22971
22972 wxPyEndAllowThreads(__tstate);
22973 if (PyErr_Occurred()) SWIG_fail;
22974 }
22975 {
22976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22977 }
22978 return resultobj;
22979 fail:
22980 return NULL;
22981 }
22982
22983
22984 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) {
22985 PyObject *resultobj;
22986 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22987 bool result;
22988 PyObject * obj0 = 0 ;
22989 char *kwnames[] = {
22990 (char *) "self", NULL
22991 };
22992
22993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
22994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22996 {
22997 PyThreadState* __tstate = wxPyBeginAllowThreads();
22998 result = (bool)(arg1)->DeleteAllColumns();
22999
23000 wxPyEndAllowThreads(__tstate);
23001 if (PyErr_Occurred()) SWIG_fail;
23002 }
23003 {
23004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23005 }
23006 return resultobj;
23007 fail:
23008 return NULL;
23009 }
23010
23011
23012 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) {
23013 PyObject *resultobj;
23014 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23015 PyObject * obj0 = 0 ;
23016 char *kwnames[] = {
23017 (char *) "self", NULL
23018 };
23019
23020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
23021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23023 {
23024 PyThreadState* __tstate = wxPyBeginAllowThreads();
23025 (arg1)->ClearAll();
23026
23027 wxPyEndAllowThreads(__tstate);
23028 if (PyErr_Occurred()) SWIG_fail;
23029 }
23030 Py_INCREF(Py_None); resultobj = Py_None;
23031 return resultobj;
23032 fail:
23033 return NULL;
23034 }
23035
23036
23037 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23038 PyObject *resultobj;
23039 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23040 long arg2 ;
23041 wxTextCtrl *result;
23042 PyObject * obj0 = 0 ;
23043 PyObject * obj1 = 0 ;
23044 char *kwnames[] = {
23045 (char *) "self",(char *) "item", NULL
23046 };
23047
23048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
23049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23051 arg2 = (long)SWIG_As_long(obj1);
23052 if (PyErr_Occurred()) SWIG_fail;
23053 {
23054 PyThreadState* __tstate = wxPyBeginAllowThreads();
23055 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
23056
23057 wxPyEndAllowThreads(__tstate);
23058 if (PyErr_Occurred()) SWIG_fail;
23059 }
23060 {
23061 resultobj = wxPyMake_wxObject(result, 0);
23062 }
23063 return resultobj;
23064 fail:
23065 return NULL;
23066 }
23067
23068
23069 static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23070 PyObject *resultobj;
23071 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23072 bool arg2 ;
23073 bool result;
23074 PyObject * obj0 = 0 ;
23075 PyObject * obj1 = 0 ;
23076 char *kwnames[] = {
23077 (char *) "self",(char *) "cancel", NULL
23078 };
23079
23080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail;
23081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23083 arg2 = (bool)SWIG_As_bool(obj1);
23084 if (PyErr_Occurred()) SWIG_fail;
23085 {
23086 PyThreadState* __tstate = wxPyBeginAllowThreads();
23087 result = (bool)(arg1)->EndEditLabel(arg2);
23088
23089 wxPyEndAllowThreads(__tstate);
23090 if (PyErr_Occurred()) SWIG_fail;
23091 }
23092 {
23093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23094 }
23095 return resultobj;
23096 fail:
23097 return NULL;
23098 }
23099
23100
23101 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
23102 PyObject *resultobj;
23103 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23104 long arg2 ;
23105 bool result;
23106 PyObject * obj0 = 0 ;
23107 PyObject * obj1 = 0 ;
23108 char *kwnames[] = {
23109 (char *) "self",(char *) "item", NULL
23110 };
23111
23112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
23113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23115 arg2 = (long)SWIG_As_long(obj1);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 {
23118 PyThreadState* __tstate = wxPyBeginAllowThreads();
23119 result = (bool)(arg1)->EnsureVisible(arg2);
23120
23121 wxPyEndAllowThreads(__tstate);
23122 if (PyErr_Occurred()) SWIG_fail;
23123 }
23124 {
23125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23126 }
23127 return resultobj;
23128 fail:
23129 return NULL;
23130 }
23131
23132
23133 static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
23134 PyObject *resultobj;
23135 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23136 long arg2 ;
23137 wxString *arg3 = 0 ;
23138 bool arg4 = (bool) False ;
23139 long result;
23140 bool temp3 = False ;
23141 PyObject * obj0 = 0 ;
23142 PyObject * obj1 = 0 ;
23143 PyObject * obj2 = 0 ;
23144 PyObject * obj3 = 0 ;
23145 char *kwnames[] = {
23146 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
23147 };
23148
23149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23152 arg2 = (long)SWIG_As_long(obj1);
23153 if (PyErr_Occurred()) SWIG_fail;
23154 {
23155 arg3 = wxString_in_helper(obj2);
23156 if (arg3 == NULL) SWIG_fail;
23157 temp3 = True;
23158 }
23159 if (obj3) {
23160 arg4 = (bool)SWIG_As_bool(obj3);
23161 if (PyErr_Occurred()) SWIG_fail;
23162 }
23163 {
23164 PyThreadState* __tstate = wxPyBeginAllowThreads();
23165 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
23166
23167 wxPyEndAllowThreads(__tstate);
23168 if (PyErr_Occurred()) SWIG_fail;
23169 }
23170 resultobj = SWIG_From_long((long)result);
23171 {
23172 if (temp3)
23173 delete arg3;
23174 }
23175 return resultobj;
23176 fail:
23177 {
23178 if (temp3)
23179 delete arg3;
23180 }
23181 return NULL;
23182 }
23183
23184
23185 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) {
23186 PyObject *resultobj;
23187 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23188 long arg2 ;
23189 long arg3 ;
23190 long result;
23191 PyObject * obj0 = 0 ;
23192 PyObject * obj1 = 0 ;
23193 PyObject * obj2 = 0 ;
23194 char *kwnames[] = {
23195 (char *) "self",(char *) "start",(char *) "data", NULL
23196 };
23197
23198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
23199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23201 arg2 = (long)SWIG_As_long(obj1);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 arg3 = (long)SWIG_As_long(obj2);
23204 if (PyErr_Occurred()) SWIG_fail;
23205 {
23206 PyThreadState* __tstate = wxPyBeginAllowThreads();
23207 result = (long)(arg1)->FindItem(arg2,arg3);
23208
23209 wxPyEndAllowThreads(__tstate);
23210 if (PyErr_Occurred()) SWIG_fail;
23211 }
23212 resultobj = SWIG_From_long((long)result);
23213 return resultobj;
23214 fail:
23215 return NULL;
23216 }
23217
23218
23219 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) {
23220 PyObject *resultobj;
23221 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23222 long arg2 ;
23223 wxPoint *arg3 = 0 ;
23224 int arg4 ;
23225 long result;
23226 wxPoint temp3 ;
23227 PyObject * obj0 = 0 ;
23228 PyObject * obj1 = 0 ;
23229 PyObject * obj2 = 0 ;
23230 PyObject * obj3 = 0 ;
23231 char *kwnames[] = {
23232 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
23233 };
23234
23235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23238 arg2 = (long)SWIG_As_long(obj1);
23239 if (PyErr_Occurred()) SWIG_fail;
23240 {
23241 arg3 = &temp3;
23242 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23243 }
23244 arg4 = (int)SWIG_As_int(obj3);
23245 if (PyErr_Occurred()) SWIG_fail;
23246 {
23247 PyThreadState* __tstate = wxPyBeginAllowThreads();
23248 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
23249
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 resultobj = SWIG_From_long((long)result);
23254 return resultobj;
23255 fail:
23256 return NULL;
23257 }
23258
23259
23260 static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
23261 PyObject *resultobj;
23262 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23263 wxPoint *arg2 = 0 ;
23264 int *arg3 = 0 ;
23265 long result;
23266 wxPoint temp2 ;
23267 int temp3 ;
23268 int res3 = 0 ;
23269 PyObject * obj0 = 0 ;
23270 PyObject * obj1 = 0 ;
23271 char *kwnames[] = {
23272 (char *) "self",(char *) "point", NULL
23273 };
23274
23275 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
23277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23279 {
23280 arg2 = &temp2;
23281 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23282 }
23283 {
23284 PyThreadState* __tstate = wxPyBeginAllowThreads();
23285 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23286
23287 wxPyEndAllowThreads(__tstate);
23288 if (PyErr_Occurred()) SWIG_fail;
23289 }
23290 resultobj = SWIG_From_long((long)result);
23291 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23292 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23293 return resultobj;
23294 fail:
23295 return NULL;
23296 }
23297
23298
23299 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
23300 PyObject *resultobj;
23301 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23302 wxListItem *arg2 = 0 ;
23303 long result;
23304 PyObject * obj0 = 0 ;
23305 PyObject * obj1 = 0 ;
23306 char *kwnames[] = {
23307 (char *) "self",(char *) "info", NULL
23308 };
23309
23310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23314 SWIG_POINTER_EXCEPTION | 0)) == -1)
23315 SWIG_fail;
23316 if (arg2 == NULL) {
23317 PyErr_SetString(PyExc_TypeError,"null reference");
23318 SWIG_fail;
23319 }
23320 {
23321 PyThreadState* __tstate = wxPyBeginAllowThreads();
23322 result = (long)(arg1)->InsertItem(*arg2);
23323
23324 wxPyEndAllowThreads(__tstate);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 }
23327 resultobj = SWIG_From_long((long)result);
23328 return resultobj;
23329 fail:
23330 return NULL;
23331 }
23332
23333
23334 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23335 PyObject *resultobj;
23336 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23337 long arg2 ;
23338 wxString *arg3 = 0 ;
23339 long result;
23340 bool temp3 = False ;
23341 PyObject * obj0 = 0 ;
23342 PyObject * obj1 = 0 ;
23343 PyObject * obj2 = 0 ;
23344 char *kwnames[] = {
23345 (char *) "self",(char *) "index",(char *) "label", NULL
23346 };
23347
23348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23351 arg2 = (long)SWIG_As_long(obj1);
23352 if (PyErr_Occurred()) SWIG_fail;
23353 {
23354 arg3 = wxString_in_helper(obj2);
23355 if (arg3 == NULL) SWIG_fail;
23356 temp3 = True;
23357 }
23358 {
23359 PyThreadState* __tstate = wxPyBeginAllowThreads();
23360 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23361
23362 wxPyEndAllowThreads(__tstate);
23363 if (PyErr_Occurred()) SWIG_fail;
23364 }
23365 resultobj = SWIG_From_long((long)result);
23366 {
23367 if (temp3)
23368 delete arg3;
23369 }
23370 return resultobj;
23371 fail:
23372 {
23373 if (temp3)
23374 delete arg3;
23375 }
23376 return NULL;
23377 }
23378
23379
23380 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) {
23381 PyObject *resultobj;
23382 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23383 long arg2 ;
23384 int arg3 ;
23385 long result;
23386 PyObject * obj0 = 0 ;
23387 PyObject * obj1 = 0 ;
23388 PyObject * obj2 = 0 ;
23389 char *kwnames[] = {
23390 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23391 };
23392
23393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23396 arg2 = (long)SWIG_As_long(obj1);
23397 if (PyErr_Occurred()) SWIG_fail;
23398 arg3 = (int)SWIG_As_int(obj2);
23399 if (PyErr_Occurred()) SWIG_fail;
23400 {
23401 PyThreadState* __tstate = wxPyBeginAllowThreads();
23402 result = (long)(arg1)->InsertItem(arg2,arg3);
23403
23404 wxPyEndAllowThreads(__tstate);
23405 if (PyErr_Occurred()) SWIG_fail;
23406 }
23407 resultobj = SWIG_From_long((long)result);
23408 return resultobj;
23409 fail:
23410 return NULL;
23411 }
23412
23413
23414 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23415 PyObject *resultobj;
23416 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23417 long arg2 ;
23418 wxString *arg3 = 0 ;
23419 int arg4 ;
23420 long result;
23421 bool temp3 = False ;
23422 PyObject * obj0 = 0 ;
23423 PyObject * obj1 = 0 ;
23424 PyObject * obj2 = 0 ;
23425 PyObject * obj3 = 0 ;
23426 char *kwnames[] = {
23427 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23428 };
23429
23430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23433 arg2 = (long)SWIG_As_long(obj1);
23434 if (PyErr_Occurred()) SWIG_fail;
23435 {
23436 arg3 = wxString_in_helper(obj2);
23437 if (arg3 == NULL) SWIG_fail;
23438 temp3 = True;
23439 }
23440 arg4 = (int)SWIG_As_int(obj3);
23441 if (PyErr_Occurred()) SWIG_fail;
23442 {
23443 PyThreadState* __tstate = wxPyBeginAllowThreads();
23444 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23445
23446 wxPyEndAllowThreads(__tstate);
23447 if (PyErr_Occurred()) SWIG_fail;
23448 }
23449 resultobj = SWIG_From_long((long)result);
23450 {
23451 if (temp3)
23452 delete arg3;
23453 }
23454 return resultobj;
23455 fail:
23456 {
23457 if (temp3)
23458 delete arg3;
23459 }
23460 return NULL;
23461 }
23462
23463
23464 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) {
23465 PyObject *resultobj;
23466 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23467 long arg2 ;
23468 wxListItem *arg3 = 0 ;
23469 long result;
23470 PyObject * obj0 = 0 ;
23471 PyObject * obj1 = 0 ;
23472 PyObject * obj2 = 0 ;
23473 char *kwnames[] = {
23474 (char *) "self",(char *) "col",(char *) "info", NULL
23475 };
23476
23477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23480 arg2 = (long)SWIG_As_long(obj1);
23481 if (PyErr_Occurred()) SWIG_fail;
23482 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23483 SWIG_POINTER_EXCEPTION | 0)) == -1)
23484 SWIG_fail;
23485 if (arg3 == NULL) {
23486 PyErr_SetString(PyExc_TypeError,"null reference");
23487 SWIG_fail;
23488 }
23489 {
23490 PyThreadState* __tstate = wxPyBeginAllowThreads();
23491 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23492
23493 wxPyEndAllowThreads(__tstate);
23494 if (PyErr_Occurred()) SWIG_fail;
23495 }
23496 resultobj = SWIG_From_long((long)result);
23497 return resultobj;
23498 fail:
23499 return NULL;
23500 }
23501
23502
23503 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23504 PyObject *resultobj;
23505 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23506 long arg2 ;
23507 wxString *arg3 = 0 ;
23508 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23509 int arg5 = (int) -1 ;
23510 long result;
23511 bool temp3 = False ;
23512 PyObject * obj0 = 0 ;
23513 PyObject * obj1 = 0 ;
23514 PyObject * obj2 = 0 ;
23515 PyObject * obj3 = 0 ;
23516 PyObject * obj4 = 0 ;
23517 char *kwnames[] = {
23518 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23519 };
23520
23521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23524 arg2 = (long)SWIG_As_long(obj1);
23525 if (PyErr_Occurred()) SWIG_fail;
23526 {
23527 arg3 = wxString_in_helper(obj2);
23528 if (arg3 == NULL) SWIG_fail;
23529 temp3 = True;
23530 }
23531 if (obj3) {
23532 arg4 = (int)SWIG_As_int(obj3);
23533 if (PyErr_Occurred()) SWIG_fail;
23534 }
23535 if (obj4) {
23536 arg5 = (int)SWIG_As_int(obj4);
23537 if (PyErr_Occurred()) SWIG_fail;
23538 }
23539 {
23540 PyThreadState* __tstate = wxPyBeginAllowThreads();
23541 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23542
23543 wxPyEndAllowThreads(__tstate);
23544 if (PyErr_Occurred()) SWIG_fail;
23545 }
23546 resultobj = SWIG_From_long((long)result);
23547 {
23548 if (temp3)
23549 delete arg3;
23550 }
23551 return resultobj;
23552 fail:
23553 {
23554 if (temp3)
23555 delete arg3;
23556 }
23557 return NULL;
23558 }
23559
23560
23561 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
23562 PyObject *resultobj;
23563 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23564 long arg2 ;
23565 PyObject * obj0 = 0 ;
23566 PyObject * obj1 = 0 ;
23567 char *kwnames[] = {
23568 (char *) "self",(char *) "count", NULL
23569 };
23570
23571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23574 arg2 = (long)SWIG_As_long(obj1);
23575 if (PyErr_Occurred()) SWIG_fail;
23576 {
23577 PyThreadState* __tstate = wxPyBeginAllowThreads();
23578 (arg1)->SetItemCount(arg2);
23579
23580 wxPyEndAllowThreads(__tstate);
23581 if (PyErr_Occurred()) SWIG_fail;
23582 }
23583 Py_INCREF(Py_None); resultobj = Py_None;
23584 return resultobj;
23585 fail:
23586 return NULL;
23587 }
23588
23589
23590 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) {
23591 PyObject *resultobj;
23592 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23593 int arg2 ;
23594 int arg3 ;
23595 bool result;
23596 PyObject * obj0 = 0 ;
23597 PyObject * obj1 = 0 ;
23598 PyObject * obj2 = 0 ;
23599 char *kwnames[] = {
23600 (char *) "self",(char *) "dx",(char *) "dy", NULL
23601 };
23602
23603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23606 arg2 = (int)SWIG_As_int(obj1);
23607 if (PyErr_Occurred()) SWIG_fail;
23608 arg3 = (int)SWIG_As_int(obj2);
23609 if (PyErr_Occurred()) SWIG_fail;
23610 {
23611 PyThreadState* __tstate = wxPyBeginAllowThreads();
23612 result = (bool)(arg1)->ScrollList(arg2,arg3);
23613
23614 wxPyEndAllowThreads(__tstate);
23615 if (PyErr_Occurred()) SWIG_fail;
23616 }
23617 {
23618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23619 }
23620 return resultobj;
23621 fail:
23622 return NULL;
23623 }
23624
23625
23626 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23627 PyObject *resultobj;
23628 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23629 long arg2 ;
23630 wxColour *arg3 = 0 ;
23631 wxColour temp3 ;
23632 PyObject * obj0 = 0 ;
23633 PyObject * obj1 = 0 ;
23634 PyObject * obj2 = 0 ;
23635 char *kwnames[] = {
23636 (char *) "self",(char *) "item",(char *) "col", NULL
23637 };
23638
23639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23642 arg2 = (long)SWIG_As_long(obj1);
23643 if (PyErr_Occurred()) SWIG_fail;
23644 {
23645 arg3 = &temp3;
23646 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23647 }
23648 {
23649 PyThreadState* __tstate = wxPyBeginAllowThreads();
23650 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23651
23652 wxPyEndAllowThreads(__tstate);
23653 if (PyErr_Occurred()) SWIG_fail;
23654 }
23655 Py_INCREF(Py_None); resultobj = Py_None;
23656 return resultobj;
23657 fail:
23658 return NULL;
23659 }
23660
23661
23662 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23663 PyObject *resultobj;
23664 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23665 long arg2 ;
23666 wxColour result;
23667 PyObject * obj0 = 0 ;
23668 PyObject * obj1 = 0 ;
23669 char *kwnames[] = {
23670 (char *) "self",(char *) "item", NULL
23671 };
23672
23673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
23680 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23681
23682 wxPyEndAllowThreads(__tstate);
23683 if (PyErr_Occurred()) SWIG_fail;
23684 }
23685 {
23686 wxColour * resultptr;
23687 resultptr = new wxColour((wxColour &) result);
23688 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23689 }
23690 return resultobj;
23691 fail:
23692 return NULL;
23693 }
23694
23695
23696 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
23697 PyObject *resultobj;
23698 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23699 long arg2 ;
23700 wxColour *arg3 = 0 ;
23701 wxColour temp3 ;
23702 PyObject * obj0 = 0 ;
23703 PyObject * obj1 = 0 ;
23704 PyObject * obj2 = 0 ;
23705 char *kwnames[] = {
23706 (char *) "self",(char *) "item",(char *) "col", NULL
23707 };
23708
23709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23712 arg2 = (long)SWIG_As_long(obj1);
23713 if (PyErr_Occurred()) SWIG_fail;
23714 {
23715 arg3 = &temp3;
23716 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23717 }
23718 {
23719 PyThreadState* __tstate = wxPyBeginAllowThreads();
23720 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23721
23722 wxPyEndAllowThreads(__tstate);
23723 if (PyErr_Occurred()) SWIG_fail;
23724 }
23725 Py_INCREF(Py_None); resultobj = Py_None;
23726 return resultobj;
23727 fail:
23728 return NULL;
23729 }
23730
23731
23732 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
23733 PyObject *resultobj;
23734 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23735 long arg2 ;
23736 wxColour result;
23737 PyObject * obj0 = 0 ;
23738 PyObject * obj1 = 0 ;
23739 char *kwnames[] = {
23740 (char *) "self",(char *) "item", NULL
23741 };
23742
23743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23746 arg2 = (long)SWIG_As_long(obj1);
23747 if (PyErr_Occurred()) SWIG_fail;
23748 {
23749 PyThreadState* __tstate = wxPyBeginAllowThreads();
23750 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23751
23752 wxPyEndAllowThreads(__tstate);
23753 if (PyErr_Occurred()) SWIG_fail;
23754 }
23755 {
23756 wxColour * resultptr;
23757 resultptr = new wxColour((wxColour &) result);
23758 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23759 }
23760 return resultobj;
23761 fail:
23762 return NULL;
23763 }
23764
23765
23766 static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) {
23767 PyObject *resultobj;
23768 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23769 PyObject *arg2 = (PyObject *) 0 ;
23770 bool result;
23771 PyObject * obj0 = 0 ;
23772 PyObject * obj1 = 0 ;
23773 char *kwnames[] = {
23774 (char *) "self",(char *) "func", NULL
23775 };
23776
23777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23780 arg2 = obj1;
23781 {
23782 PyThreadState* __tstate = wxPyBeginAllowThreads();
23783 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23784
23785 wxPyEndAllowThreads(__tstate);
23786 if (PyErr_Occurred()) SWIG_fail;
23787 }
23788 {
23789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23790 }
23791 return resultobj;
23792 fail:
23793 return NULL;
23794 }
23795
23796
23797 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) {
23798 PyObject *resultobj;
23799 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23800 wxWindow *result;
23801 PyObject * obj0 = 0 ;
23802 char *kwnames[] = {
23803 (char *) "self", NULL
23804 };
23805
23806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23809 {
23810 PyThreadState* __tstate = wxPyBeginAllowThreads();
23811 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23812
23813 wxPyEndAllowThreads(__tstate);
23814 if (PyErr_Occurred()) SWIG_fail;
23815 }
23816 {
23817 resultobj = wxPyMake_wxObject(result, 0);
23818 }
23819 return resultobj;
23820 fail:
23821 return NULL;
23822 }
23823
23824
23825 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
23826 PyObject *resultobj;
23827 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23828 wxVisualAttributes result;
23829 PyObject * obj0 = 0 ;
23830 char *kwnames[] = {
23831 (char *) "variant", NULL
23832 };
23833
23834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23835 if (obj0) {
23836 arg1 = (int)SWIG_As_int(obj0);
23837 if (PyErr_Occurred()) SWIG_fail;
23838 }
23839 {
23840 if (!wxPyCheckForApp()) SWIG_fail;
23841 PyThreadState* __tstate = wxPyBeginAllowThreads();
23842 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23843
23844 wxPyEndAllowThreads(__tstate);
23845 if (PyErr_Occurred()) SWIG_fail;
23846 }
23847 {
23848 wxVisualAttributes * resultptr;
23849 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23850 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23851 }
23852 return resultobj;
23853 fail:
23854 return NULL;
23855 }
23856
23857
23858 static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) {
23859 PyObject *obj;
23860 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23861 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23862 Py_INCREF(obj);
23863 return Py_BuildValue((char *)"");
23864 }
23865 static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) {
23866 PyObject *resultobj;
23867 wxWindow *arg1 = (wxWindow *) 0 ;
23868 int arg2 = (int) -1 ;
23869 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23870 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23871 wxSize const &arg4_defvalue = wxDefaultSize ;
23872 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23873 long arg5 = (long) wxLC_REPORT ;
23874 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23875 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23876 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23877 wxString *arg7 = (wxString *) &arg7_defvalue ;
23878 wxListView *result;
23879 wxPoint temp3 ;
23880 wxSize temp4 ;
23881 bool temp7 = False ;
23882 PyObject * obj0 = 0 ;
23883 PyObject * obj1 = 0 ;
23884 PyObject * obj2 = 0 ;
23885 PyObject * obj3 = 0 ;
23886 PyObject * obj4 = 0 ;
23887 PyObject * obj5 = 0 ;
23888 PyObject * obj6 = 0 ;
23889 char *kwnames[] = {
23890 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23891 };
23892
23893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23896 if (obj1) {
23897 arg2 = (int)SWIG_As_int(obj1);
23898 if (PyErr_Occurred()) SWIG_fail;
23899 }
23900 if (obj2) {
23901 {
23902 arg3 = &temp3;
23903 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23904 }
23905 }
23906 if (obj3) {
23907 {
23908 arg4 = &temp4;
23909 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23910 }
23911 }
23912 if (obj4) {
23913 arg5 = (long)SWIG_As_long(obj4);
23914 if (PyErr_Occurred()) SWIG_fail;
23915 }
23916 if (obj5) {
23917 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23918 SWIG_POINTER_EXCEPTION | 0)) == -1)
23919 SWIG_fail;
23920 if (arg6 == NULL) {
23921 PyErr_SetString(PyExc_TypeError,"null reference");
23922 SWIG_fail;
23923 }
23924 }
23925 if (obj6) {
23926 {
23927 arg7 = wxString_in_helper(obj6);
23928 if (arg7 == NULL) SWIG_fail;
23929 temp7 = True;
23930 }
23931 }
23932 {
23933 if (!wxPyCheckForApp()) SWIG_fail;
23934 PyThreadState* __tstate = wxPyBeginAllowThreads();
23935 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23936
23937 wxPyEndAllowThreads(__tstate);
23938 if (PyErr_Occurred()) SWIG_fail;
23939 }
23940 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23941 {
23942 if (temp7)
23943 delete arg7;
23944 }
23945 return resultobj;
23946 fail:
23947 {
23948 if (temp7)
23949 delete arg7;
23950 }
23951 return NULL;
23952 }
23953
23954
23955 static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) {
23956 PyObject *resultobj;
23957 wxListView *result;
23958 char *kwnames[] = {
23959 NULL
23960 };
23961
23962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23963 {
23964 if (!wxPyCheckForApp()) SWIG_fail;
23965 PyThreadState* __tstate = wxPyBeginAllowThreads();
23966 result = (wxListView *)new wxListView();
23967
23968 wxPyEndAllowThreads(__tstate);
23969 if (PyErr_Occurred()) SWIG_fail;
23970 }
23971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23972 return resultobj;
23973 fail:
23974 return NULL;
23975 }
23976
23977
23978 static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) {
23979 PyObject *resultobj;
23980 wxListView *arg1 = (wxListView *) 0 ;
23981 wxWindow *arg2 = (wxWindow *) 0 ;
23982 int arg3 = (int) -1 ;
23983 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23984 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23985 wxSize const &arg5_defvalue = wxDefaultSize ;
23986 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23987 long arg6 = (long) wxLC_REPORT ;
23988 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23989 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23990 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
23991 wxString *arg8 = (wxString *) &arg8_defvalue ;
23992 bool result;
23993 wxPoint temp4 ;
23994 wxSize temp5 ;
23995 bool temp8 = False ;
23996 PyObject * obj0 = 0 ;
23997 PyObject * obj1 = 0 ;
23998 PyObject * obj2 = 0 ;
23999 PyObject * obj3 = 0 ;
24000 PyObject * obj4 = 0 ;
24001 PyObject * obj5 = 0 ;
24002 PyObject * obj6 = 0 ;
24003 PyObject * obj7 = 0 ;
24004 char *kwnames[] = {
24005 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24006 };
24007
24008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24011 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24013 if (obj2) {
24014 arg3 = (int)SWIG_As_int(obj2);
24015 if (PyErr_Occurred()) SWIG_fail;
24016 }
24017 if (obj3) {
24018 {
24019 arg4 = &temp4;
24020 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24021 }
24022 }
24023 if (obj4) {
24024 {
24025 arg5 = &temp5;
24026 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24027 }
24028 }
24029 if (obj5) {
24030 arg6 = (long)SWIG_As_long(obj5);
24031 if (PyErr_Occurred()) SWIG_fail;
24032 }
24033 if (obj6) {
24034 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24035 SWIG_POINTER_EXCEPTION | 0)) == -1)
24036 SWIG_fail;
24037 if (arg7 == NULL) {
24038 PyErr_SetString(PyExc_TypeError,"null reference");
24039 SWIG_fail;
24040 }
24041 }
24042 if (obj7) {
24043 {
24044 arg8 = wxString_in_helper(obj7);
24045 if (arg8 == NULL) SWIG_fail;
24046 temp8 = True;
24047 }
24048 }
24049 {
24050 PyThreadState* __tstate = wxPyBeginAllowThreads();
24051 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24052
24053 wxPyEndAllowThreads(__tstate);
24054 if (PyErr_Occurred()) SWIG_fail;
24055 }
24056 {
24057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24058 }
24059 {
24060 if (temp8)
24061 delete arg8;
24062 }
24063 return resultobj;
24064 fail:
24065 {
24066 if (temp8)
24067 delete arg8;
24068 }
24069 return NULL;
24070 }
24071
24072
24073 static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) {
24074 PyObject *resultobj;
24075 wxListView *arg1 = (wxListView *) 0 ;
24076 long arg2 ;
24077 bool arg3 = (bool) True ;
24078 PyObject * obj0 = 0 ;
24079 PyObject * obj1 = 0 ;
24080 PyObject * obj2 = 0 ;
24081 char *kwnames[] = {
24082 (char *) "self",(char *) "n",(char *) "on", NULL
24083 };
24084
24085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
24086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24088 arg2 = (long)SWIG_As_long(obj1);
24089 if (PyErr_Occurred()) SWIG_fail;
24090 if (obj2) {
24091 arg3 = (bool)SWIG_As_bool(obj2);
24092 if (PyErr_Occurred()) SWIG_fail;
24093 }
24094 {
24095 PyThreadState* __tstate = wxPyBeginAllowThreads();
24096 (arg1)->Select(arg2,arg3);
24097
24098 wxPyEndAllowThreads(__tstate);
24099 if (PyErr_Occurred()) SWIG_fail;
24100 }
24101 Py_INCREF(Py_None); resultobj = Py_None;
24102 return resultobj;
24103 fail:
24104 return NULL;
24105 }
24106
24107
24108 static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) {
24109 PyObject *resultobj;
24110 wxListView *arg1 = (wxListView *) 0 ;
24111 long arg2 ;
24112 PyObject * obj0 = 0 ;
24113 PyObject * obj1 = 0 ;
24114 char *kwnames[] = {
24115 (char *) "self",(char *) "index", NULL
24116 };
24117
24118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
24119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24121 arg2 = (long)SWIG_As_long(obj1);
24122 if (PyErr_Occurred()) SWIG_fail;
24123 {
24124 PyThreadState* __tstate = wxPyBeginAllowThreads();
24125 (arg1)->Focus(arg2);
24126
24127 wxPyEndAllowThreads(__tstate);
24128 if (PyErr_Occurred()) SWIG_fail;
24129 }
24130 Py_INCREF(Py_None); resultobj = Py_None;
24131 return resultobj;
24132 fail:
24133 return NULL;
24134 }
24135
24136
24137 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) {
24138 PyObject *resultobj;
24139 wxListView *arg1 = (wxListView *) 0 ;
24140 long result;
24141 PyObject * obj0 = 0 ;
24142 char *kwnames[] = {
24143 (char *) "self", NULL
24144 };
24145
24146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
24147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24149 {
24150 PyThreadState* __tstate = wxPyBeginAllowThreads();
24151 result = (long)((wxListView const *)arg1)->GetFocusedItem();
24152
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 resultobj = SWIG_From_long((long)result);
24157 return resultobj;
24158 fail:
24159 return NULL;
24160 }
24161
24162
24163 static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24164 PyObject *resultobj;
24165 wxListView *arg1 = (wxListView *) 0 ;
24166 long arg2 ;
24167 long result;
24168 PyObject * obj0 = 0 ;
24169 PyObject * obj1 = 0 ;
24170 char *kwnames[] = {
24171 (char *) "self",(char *) "item", NULL
24172 };
24173
24174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
24175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24177 arg2 = (long)SWIG_As_long(obj1);
24178 if (PyErr_Occurred()) SWIG_fail;
24179 {
24180 PyThreadState* __tstate = wxPyBeginAllowThreads();
24181 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
24182
24183 wxPyEndAllowThreads(__tstate);
24184 if (PyErr_Occurred()) SWIG_fail;
24185 }
24186 resultobj = SWIG_From_long((long)result);
24187 return resultobj;
24188 fail:
24189 return NULL;
24190 }
24191
24192
24193 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24194 PyObject *resultobj;
24195 wxListView *arg1 = (wxListView *) 0 ;
24196 long result;
24197 PyObject * obj0 = 0 ;
24198 char *kwnames[] = {
24199 (char *) "self", NULL
24200 };
24201
24202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
24203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24205 {
24206 PyThreadState* __tstate = wxPyBeginAllowThreads();
24207 result = (long)((wxListView const *)arg1)->GetFirstSelected();
24208
24209 wxPyEndAllowThreads(__tstate);
24210 if (PyErr_Occurred()) SWIG_fail;
24211 }
24212 resultobj = SWIG_From_long((long)result);
24213 return resultobj;
24214 fail:
24215 return NULL;
24216 }
24217
24218
24219 static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24220 PyObject *resultobj;
24221 wxListView *arg1 = (wxListView *) 0 ;
24222 long arg2 ;
24223 bool result;
24224 PyObject * obj0 = 0 ;
24225 PyObject * obj1 = 0 ;
24226 char *kwnames[] = {
24227 (char *) "self",(char *) "index", NULL
24228 };
24229
24230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24233 arg2 = (long)SWIG_As_long(obj1);
24234 if (PyErr_Occurred()) SWIG_fail;
24235 {
24236 PyThreadState* __tstate = wxPyBeginAllowThreads();
24237 result = (bool)(arg1)->IsSelected(arg2);
24238
24239 wxPyEndAllowThreads(__tstate);
24240 if (PyErr_Occurred()) SWIG_fail;
24241 }
24242 {
24243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24244 }
24245 return resultobj;
24246 fail:
24247 return NULL;
24248 }
24249
24250
24251 static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24252 PyObject *resultobj;
24253 wxListView *arg1 = (wxListView *) 0 ;
24254 int arg2 ;
24255 int arg3 ;
24256 PyObject * obj0 = 0 ;
24257 PyObject * obj1 = 0 ;
24258 PyObject * obj2 = 0 ;
24259 char *kwnames[] = {
24260 (char *) "self",(char *) "col",(char *) "image", NULL
24261 };
24262
24263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24266 arg2 = (int)SWIG_As_int(obj1);
24267 if (PyErr_Occurred()) SWIG_fail;
24268 arg3 = (int)SWIG_As_int(obj2);
24269 if (PyErr_Occurred()) SWIG_fail;
24270 {
24271 PyThreadState* __tstate = wxPyBeginAllowThreads();
24272 (arg1)->SetColumnImage(arg2,arg3);
24273
24274 wxPyEndAllowThreads(__tstate);
24275 if (PyErr_Occurred()) SWIG_fail;
24276 }
24277 Py_INCREF(Py_None); resultobj = Py_None;
24278 return resultobj;
24279 fail:
24280 return NULL;
24281 }
24282
24283
24284 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24285 PyObject *resultobj;
24286 wxListView *arg1 = (wxListView *) 0 ;
24287 int arg2 ;
24288 PyObject * obj0 = 0 ;
24289 PyObject * obj1 = 0 ;
24290 char *kwnames[] = {
24291 (char *) "self",(char *) "col", NULL
24292 };
24293
24294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24297 arg2 = (int)SWIG_As_int(obj1);
24298 if (PyErr_Occurred()) SWIG_fail;
24299 {
24300 PyThreadState* __tstate = wxPyBeginAllowThreads();
24301 (arg1)->ClearColumnImage(arg2);
24302
24303 wxPyEndAllowThreads(__tstate);
24304 if (PyErr_Occurred()) SWIG_fail;
24305 }
24306 Py_INCREF(Py_None); resultobj = Py_None;
24307 return resultobj;
24308 fail:
24309 return NULL;
24310 }
24311
24312
24313 static PyObject * ListView_swigregister(PyObject *, PyObject *args) {
24314 PyObject *obj;
24315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24316 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24317 Py_INCREF(obj);
24318 return Py_BuildValue((char *)"");
24319 }
24320 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
24321 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24322 return 1;
24323 }
24324
24325
24326 static PyObject *_wrap_TreeCtrlNameStr_get() {
24327 PyObject *pyobj;
24328
24329 {
24330 #if wxUSE_UNICODE
24331 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24332 #else
24333 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24334 #endif
24335 }
24336 return pyobj;
24337 }
24338
24339
24340 static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24341 PyObject *resultobj;
24342 wxTreeItemId *result;
24343 char *kwnames[] = {
24344 NULL
24345 };
24346
24347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24348 {
24349 PyThreadState* __tstate = wxPyBeginAllowThreads();
24350 result = (wxTreeItemId *)new wxTreeItemId();
24351
24352 wxPyEndAllowThreads(__tstate);
24353 if (PyErr_Occurred()) SWIG_fail;
24354 }
24355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24356 return resultobj;
24357 fail:
24358 return NULL;
24359 }
24360
24361
24362 static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24363 PyObject *resultobj;
24364 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24365 PyObject * obj0 = 0 ;
24366 char *kwnames[] = {
24367 (char *) "self", NULL
24368 };
24369
24370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24373 {
24374 PyThreadState* __tstate = wxPyBeginAllowThreads();
24375 delete arg1;
24376
24377 wxPyEndAllowThreads(__tstate);
24378 if (PyErr_Occurred()) SWIG_fail;
24379 }
24380 Py_INCREF(Py_None); resultobj = Py_None;
24381 return resultobj;
24382 fail:
24383 return NULL;
24384 }
24385
24386
24387 static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
24388 PyObject *resultobj;
24389 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24390 bool result;
24391 PyObject * obj0 = 0 ;
24392 char *kwnames[] = {
24393 (char *) "self", NULL
24394 };
24395
24396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24399 {
24400 PyThreadState* __tstate = wxPyBeginAllowThreads();
24401 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24402
24403 wxPyEndAllowThreads(__tstate);
24404 if (PyErr_Occurred()) SWIG_fail;
24405 }
24406 {
24407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24408 }
24409 return resultobj;
24410 fail:
24411 return NULL;
24412 }
24413
24414
24415 static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24416 PyObject *resultobj;
24417 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24418 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24419 bool result;
24420 PyObject * obj0 = 0 ;
24421 PyObject * obj1 = 0 ;
24422 char *kwnames[] = {
24423 (char *) "self",(char *) "other", NULL
24424 };
24425
24426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24429 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24431 {
24432 PyThreadState* __tstate = wxPyBeginAllowThreads();
24433 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24434
24435 wxPyEndAllowThreads(__tstate);
24436 if (PyErr_Occurred()) SWIG_fail;
24437 }
24438 {
24439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24440 }
24441 return resultobj;
24442 fail:
24443 return NULL;
24444 }
24445
24446
24447 static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24448 PyObject *resultobj;
24449 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24450 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24451 bool result;
24452 PyObject * obj0 = 0 ;
24453 PyObject * obj1 = 0 ;
24454 char *kwnames[] = {
24455 (char *) "self",(char *) "other", NULL
24456 };
24457
24458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24463 {
24464 PyThreadState* __tstate = wxPyBeginAllowThreads();
24465 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24466
24467 wxPyEndAllowThreads(__tstate);
24468 if (PyErr_Occurred()) SWIG_fail;
24469 }
24470 {
24471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24472 }
24473 return resultobj;
24474 fail:
24475 return NULL;
24476 }
24477
24478
24479 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) {
24480 PyObject *resultobj;
24481 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24482 void *arg2 = (void *) 0 ;
24483 PyObject * obj0 = 0 ;
24484 PyObject * obj1 = 0 ;
24485 char *kwnames[] = {
24486 (char *) "self",(char *) "m_pItem", NULL
24487 };
24488
24489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24492 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24493 if (arg1) (arg1)->m_pItem = arg2;
24494
24495 Py_INCREF(Py_None); resultobj = Py_None;
24496 return resultobj;
24497 fail:
24498 return NULL;
24499 }
24500
24501
24502 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) {
24503 PyObject *resultobj;
24504 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24505 void *result;
24506 PyObject * obj0 = 0 ;
24507 char *kwnames[] = {
24508 (char *) "self", NULL
24509 };
24510
24511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24514 result = (void *) ((arg1)->m_pItem);
24515
24516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24517 return resultobj;
24518 fail:
24519 return NULL;
24520 }
24521
24522
24523 static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) {
24524 PyObject *obj;
24525 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24526 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24527 Py_INCREF(obj);
24528 return Py_BuildValue((char *)"");
24529 }
24530 static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) {
24531 PyObject *resultobj;
24532 PyObject *arg1 = (PyObject *) NULL ;
24533 wxPyTreeItemData *result;
24534 PyObject * obj0 = 0 ;
24535 char *kwnames[] = {
24536 (char *) "obj", NULL
24537 };
24538
24539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24540 if (obj0) {
24541 arg1 = obj0;
24542 }
24543 {
24544 PyThreadState* __tstate = wxPyBeginAllowThreads();
24545 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24546
24547 wxPyEndAllowThreads(__tstate);
24548 if (PyErr_Occurred()) SWIG_fail;
24549 }
24550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24551 return resultobj;
24552 fail:
24553 return NULL;
24554 }
24555
24556
24557 static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
24558 PyObject *resultobj;
24559 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24560 PyObject *result;
24561 PyObject * obj0 = 0 ;
24562 char *kwnames[] = {
24563 (char *) "self", NULL
24564 };
24565
24566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24569 {
24570 PyThreadState* __tstate = wxPyBeginAllowThreads();
24571 result = (PyObject *)(arg1)->GetData();
24572
24573 wxPyEndAllowThreads(__tstate);
24574 if (PyErr_Occurred()) SWIG_fail;
24575 }
24576 resultobj = result;
24577 return resultobj;
24578 fail:
24579 return NULL;
24580 }
24581
24582
24583 static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24584 PyObject *resultobj;
24585 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24586 PyObject *arg2 = (PyObject *) 0 ;
24587 PyObject * obj0 = 0 ;
24588 PyObject * obj1 = 0 ;
24589 char *kwnames[] = {
24590 (char *) "self",(char *) "obj", NULL
24591 };
24592
24593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24596 arg2 = obj1;
24597 {
24598 PyThreadState* __tstate = wxPyBeginAllowThreads();
24599 (arg1)->SetData(arg2);
24600
24601 wxPyEndAllowThreads(__tstate);
24602 if (PyErr_Occurred()) SWIG_fail;
24603 }
24604 Py_INCREF(Py_None); resultobj = Py_None;
24605 return resultobj;
24606 fail:
24607 return NULL;
24608 }
24609
24610
24611 static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24612 PyObject *resultobj;
24613 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24614 wxTreeItemId *result;
24615 PyObject * obj0 = 0 ;
24616 char *kwnames[] = {
24617 (char *) "self", NULL
24618 };
24619
24620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24623 {
24624 PyThreadState* __tstate = wxPyBeginAllowThreads();
24625 {
24626 wxTreeItemId const &_result_ref = (arg1)->GetId();
24627 result = (wxTreeItemId *) &_result_ref;
24628 }
24629
24630 wxPyEndAllowThreads(__tstate);
24631 if (PyErr_Occurred()) SWIG_fail;
24632 }
24633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24634 return resultobj;
24635 fail:
24636 return NULL;
24637 }
24638
24639
24640 static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24641 PyObject *resultobj;
24642 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24643 wxTreeItemId *arg2 = 0 ;
24644 PyObject * obj0 = 0 ;
24645 PyObject * obj1 = 0 ;
24646 char *kwnames[] = {
24647 (char *) "self",(char *) "id", NULL
24648 };
24649
24650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24653 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24654 SWIG_POINTER_EXCEPTION | 0)) == -1)
24655 SWIG_fail;
24656 if (arg2 == NULL) {
24657 PyErr_SetString(PyExc_TypeError,"null reference");
24658 SWIG_fail;
24659 }
24660 {
24661 PyThreadState* __tstate = wxPyBeginAllowThreads();
24662 (arg1)->SetId((wxTreeItemId const &)*arg2);
24663
24664 wxPyEndAllowThreads(__tstate);
24665 if (PyErr_Occurred()) SWIG_fail;
24666 }
24667 Py_INCREF(Py_None); resultobj = Py_None;
24668 return resultobj;
24669 fail:
24670 return NULL;
24671 }
24672
24673
24674 static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
24675 PyObject *resultobj;
24676 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24677 PyObject * obj0 = 0 ;
24678 char *kwnames[] = {
24679 (char *) "self", NULL
24680 };
24681
24682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24685 {
24686 PyThreadState* __tstate = wxPyBeginAllowThreads();
24687 wxPyTreeItemData_Destroy(arg1);
24688
24689 wxPyEndAllowThreads(__tstate);
24690 if (PyErr_Occurred()) SWIG_fail;
24691 }
24692 Py_INCREF(Py_None); resultobj = Py_None;
24693 return resultobj;
24694 fail:
24695 return NULL;
24696 }
24697
24698
24699 static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) {
24700 PyObject *obj;
24701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24702 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24703 Py_INCREF(obj);
24704 return Py_BuildValue((char *)"");
24705 }
24706 static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24707 PyObject *resultobj;
24708 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24709 int arg2 = (int) 0 ;
24710 wxTreeEvent *result;
24711 PyObject * obj0 = 0 ;
24712 PyObject * obj1 = 0 ;
24713 char *kwnames[] = {
24714 (char *) "commandType",(char *) "id", NULL
24715 };
24716
24717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24718 if (obj0) {
24719 arg1 = (wxEventType)SWIG_As_int(obj0);
24720 if (PyErr_Occurred()) SWIG_fail;
24721 }
24722 if (obj1) {
24723 arg2 = (int)SWIG_As_int(obj1);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 {
24727 PyThreadState* __tstate = wxPyBeginAllowThreads();
24728 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24729
24730 wxPyEndAllowThreads(__tstate);
24731 if (PyErr_Occurred()) SWIG_fail;
24732 }
24733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24734 return resultobj;
24735 fail:
24736 return NULL;
24737 }
24738
24739
24740 static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
24741 PyObject *resultobj;
24742 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24743 wxTreeItemId result;
24744 PyObject * obj0 = 0 ;
24745 char *kwnames[] = {
24746 (char *) "self", NULL
24747 };
24748
24749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24752 {
24753 PyThreadState* __tstate = wxPyBeginAllowThreads();
24754 result = ((wxTreeEvent const *)arg1)->GetItem();
24755
24756 wxPyEndAllowThreads(__tstate);
24757 if (PyErr_Occurred()) SWIG_fail;
24758 }
24759 {
24760 wxTreeItemId * resultptr;
24761 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24762 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24763 }
24764 return resultobj;
24765 fail:
24766 return NULL;
24767 }
24768
24769
24770 static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
24771 PyObject *resultobj;
24772 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24773 wxTreeItemId *arg2 = 0 ;
24774 PyObject * obj0 = 0 ;
24775 PyObject * obj1 = 0 ;
24776 char *kwnames[] = {
24777 (char *) "self",(char *) "item", NULL
24778 };
24779
24780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24784 SWIG_POINTER_EXCEPTION | 0)) == -1)
24785 SWIG_fail;
24786 if (arg2 == NULL) {
24787 PyErr_SetString(PyExc_TypeError,"null reference");
24788 SWIG_fail;
24789 }
24790 {
24791 PyThreadState* __tstate = wxPyBeginAllowThreads();
24792 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24793
24794 wxPyEndAllowThreads(__tstate);
24795 if (PyErr_Occurred()) SWIG_fail;
24796 }
24797 Py_INCREF(Py_None); resultobj = Py_None;
24798 return resultobj;
24799 fail:
24800 return NULL;
24801 }
24802
24803
24804 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj;
24806 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24807 wxTreeItemId result;
24808 PyObject * obj0 = 0 ;
24809 char *kwnames[] = {
24810 (char *) "self", NULL
24811 };
24812
24813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24816 {
24817 PyThreadState* __tstate = wxPyBeginAllowThreads();
24818 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24819
24820 wxPyEndAllowThreads(__tstate);
24821 if (PyErr_Occurred()) SWIG_fail;
24822 }
24823 {
24824 wxTreeItemId * resultptr;
24825 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24827 }
24828 return resultobj;
24829 fail:
24830 return NULL;
24831 }
24832
24833
24834 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
24835 PyObject *resultobj;
24836 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24837 wxTreeItemId *arg2 = 0 ;
24838 PyObject * obj0 = 0 ;
24839 PyObject * obj1 = 0 ;
24840 char *kwnames[] = {
24841 (char *) "self",(char *) "item", NULL
24842 };
24843
24844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24847 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24848 SWIG_POINTER_EXCEPTION | 0)) == -1)
24849 SWIG_fail;
24850 if (arg2 == NULL) {
24851 PyErr_SetString(PyExc_TypeError,"null reference");
24852 SWIG_fail;
24853 }
24854 {
24855 PyThreadState* __tstate = wxPyBeginAllowThreads();
24856 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24857
24858 wxPyEndAllowThreads(__tstate);
24859 if (PyErr_Occurred()) SWIG_fail;
24860 }
24861 Py_INCREF(Py_None); resultobj = Py_None;
24862 return resultobj;
24863 fail:
24864 return NULL;
24865 }
24866
24867
24868 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
24869 PyObject *resultobj;
24870 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24871 wxPoint result;
24872 PyObject * obj0 = 0 ;
24873 char *kwnames[] = {
24874 (char *) "self", NULL
24875 };
24876
24877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24880 {
24881 PyThreadState* __tstate = wxPyBeginAllowThreads();
24882 result = ((wxTreeEvent const *)arg1)->GetPoint();
24883
24884 wxPyEndAllowThreads(__tstate);
24885 if (PyErr_Occurred()) SWIG_fail;
24886 }
24887 {
24888 wxPoint * resultptr;
24889 resultptr = new wxPoint((wxPoint &) result);
24890 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24891 }
24892 return resultobj;
24893 fail:
24894 return NULL;
24895 }
24896
24897
24898 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
24899 PyObject *resultobj;
24900 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24901 wxPoint *arg2 = 0 ;
24902 wxPoint temp2 ;
24903 PyObject * obj0 = 0 ;
24904 PyObject * obj1 = 0 ;
24905 char *kwnames[] = {
24906 (char *) "self",(char *) "pt", NULL
24907 };
24908
24909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24912 {
24913 arg2 = &temp2;
24914 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24915 }
24916 {
24917 PyThreadState* __tstate = wxPyBeginAllowThreads();
24918 (arg1)->SetPoint((wxPoint const &)*arg2);
24919
24920 wxPyEndAllowThreads(__tstate);
24921 if (PyErr_Occurred()) SWIG_fail;
24922 }
24923 Py_INCREF(Py_None); resultobj = Py_None;
24924 return resultobj;
24925 fail:
24926 return NULL;
24927 }
24928
24929
24930 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24931 PyObject *resultobj;
24932 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24933 wxKeyEvent *result;
24934 PyObject * obj0 = 0 ;
24935 char *kwnames[] = {
24936 (char *) "self", NULL
24937 };
24938
24939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24942 {
24943 PyThreadState* __tstate = wxPyBeginAllowThreads();
24944 {
24945 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24946 result = (wxKeyEvent *) &_result_ref;
24947 }
24948
24949 wxPyEndAllowThreads(__tstate);
24950 if (PyErr_Occurred()) SWIG_fail;
24951 }
24952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24953 return resultobj;
24954 fail:
24955 return NULL;
24956 }
24957
24958
24959 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
24960 PyObject *resultobj;
24961 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24962 int result;
24963 PyObject * obj0 = 0 ;
24964 char *kwnames[] = {
24965 (char *) "self", NULL
24966 };
24967
24968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24971 {
24972 PyThreadState* __tstate = wxPyBeginAllowThreads();
24973 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
24974
24975 wxPyEndAllowThreads(__tstate);
24976 if (PyErr_Occurred()) SWIG_fail;
24977 }
24978 resultobj = SWIG_From_int((int)result);
24979 return resultobj;
24980 fail:
24981 return NULL;
24982 }
24983
24984
24985 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24986 PyObject *resultobj;
24987 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24988 wxKeyEvent *arg2 = 0 ;
24989 PyObject * obj0 = 0 ;
24990 PyObject * obj1 = 0 ;
24991 char *kwnames[] = {
24992 (char *) "self",(char *) "evt", NULL
24993 };
24994
24995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
24996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24998 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
24999 SWIG_POINTER_EXCEPTION | 0)) == -1)
25000 SWIG_fail;
25001 if (arg2 == NULL) {
25002 PyErr_SetString(PyExc_TypeError,"null reference");
25003 SWIG_fail;
25004 }
25005 {
25006 PyThreadState* __tstate = wxPyBeginAllowThreads();
25007 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
25008
25009 wxPyEndAllowThreads(__tstate);
25010 if (PyErr_Occurred()) SWIG_fail;
25011 }
25012 Py_INCREF(Py_None); resultobj = Py_None;
25013 return resultobj;
25014 fail:
25015 return NULL;
25016 }
25017
25018
25019 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25020 PyObject *resultobj;
25021 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25022 wxString *result;
25023 PyObject * obj0 = 0 ;
25024 char *kwnames[] = {
25025 (char *) "self", NULL
25026 };
25027
25028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
25029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25031 {
25032 PyThreadState* __tstate = wxPyBeginAllowThreads();
25033 {
25034 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
25035 result = (wxString *) &_result_ref;
25036 }
25037
25038 wxPyEndAllowThreads(__tstate);
25039 if (PyErr_Occurred()) SWIG_fail;
25040 }
25041 {
25042 #if wxUSE_UNICODE
25043 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25044 #else
25045 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25046 #endif
25047 }
25048 return resultobj;
25049 fail:
25050 return NULL;
25051 }
25052
25053
25054 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25055 PyObject *resultobj;
25056 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25057 wxString *arg2 = 0 ;
25058 bool temp2 = False ;
25059 PyObject * obj0 = 0 ;
25060 PyObject * obj1 = 0 ;
25061 char *kwnames[] = {
25062 (char *) "self",(char *) "label", NULL
25063 };
25064
25065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
25066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25068 {
25069 arg2 = wxString_in_helper(obj1);
25070 if (arg2 == NULL) SWIG_fail;
25071 temp2 = True;
25072 }
25073 {
25074 PyThreadState* __tstate = wxPyBeginAllowThreads();
25075 (arg1)->SetLabel((wxString const &)*arg2);
25076
25077 wxPyEndAllowThreads(__tstate);
25078 if (PyErr_Occurred()) SWIG_fail;
25079 }
25080 Py_INCREF(Py_None); resultobj = Py_None;
25081 {
25082 if (temp2)
25083 delete arg2;
25084 }
25085 return resultobj;
25086 fail:
25087 {
25088 if (temp2)
25089 delete arg2;
25090 }
25091 return NULL;
25092 }
25093
25094
25095 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
25096 PyObject *resultobj;
25097 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25098 bool result;
25099 PyObject * obj0 = 0 ;
25100 char *kwnames[] = {
25101 (char *) "self", NULL
25102 };
25103
25104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
25105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25107 {
25108 PyThreadState* __tstate = wxPyBeginAllowThreads();
25109 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
25110
25111 wxPyEndAllowThreads(__tstate);
25112 if (PyErr_Occurred()) SWIG_fail;
25113 }
25114 {
25115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25116 }
25117 return resultobj;
25118 fail:
25119 return NULL;
25120 }
25121
25122
25123 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
25124 PyObject *resultobj;
25125 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25126 bool arg2 ;
25127 PyObject * obj0 = 0 ;
25128 PyObject * obj1 = 0 ;
25129 char *kwnames[] = {
25130 (char *) "self",(char *) "editCancelled", NULL
25131 };
25132
25133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
25134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25136 arg2 = (bool)SWIG_As_bool(obj1);
25137 if (PyErr_Occurred()) SWIG_fail;
25138 {
25139 PyThreadState* __tstate = wxPyBeginAllowThreads();
25140 (arg1)->SetEditCanceled(arg2);
25141
25142 wxPyEndAllowThreads(__tstate);
25143 if (PyErr_Occurred()) SWIG_fail;
25144 }
25145 Py_INCREF(Py_None); resultobj = Py_None;
25146 return resultobj;
25147 fail:
25148 return NULL;
25149 }
25150
25151
25152 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
25153 PyObject *resultobj;
25154 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25155 wxString *arg2 = 0 ;
25156 bool temp2 = False ;
25157 PyObject * obj0 = 0 ;
25158 PyObject * obj1 = 0 ;
25159 char *kwnames[] = {
25160 (char *) "self",(char *) "toolTip", NULL
25161 };
25162
25163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
25164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25166 {
25167 arg2 = wxString_in_helper(obj1);
25168 if (arg2 == NULL) SWIG_fail;
25169 temp2 = True;
25170 }
25171 {
25172 PyThreadState* __tstate = wxPyBeginAllowThreads();
25173 (arg1)->SetToolTip((wxString const &)*arg2);
25174
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 Py_INCREF(Py_None); resultobj = Py_None;
25179 {
25180 if (temp2)
25181 delete arg2;
25182 }
25183 return resultobj;
25184 fail:
25185 {
25186 if (temp2)
25187 delete arg2;
25188 }
25189 return NULL;
25190 }
25191
25192
25193 static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) {
25194 PyObject *obj;
25195 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25196 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
25197 Py_INCREF(obj);
25198 return Py_BuildValue((char *)"");
25199 }
25200 static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25201 PyObject *resultobj;
25202 wxWindow *arg1 = (wxWindow *) 0 ;
25203 int arg2 = (int) -1 ;
25204 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25205 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25206 wxSize const &arg4_defvalue = wxDefaultSize ;
25207 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25208 long arg5 = (long) wxTR_DEFAULT_STYLE ;
25209 wxValidator const &arg6_defvalue = wxDefaultValidator ;
25210 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
25211 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
25212 wxString *arg7 = (wxString *) &arg7_defvalue ;
25213 wxPyTreeCtrl *result;
25214 wxPoint temp3 ;
25215 wxSize temp4 ;
25216 bool temp7 = False ;
25217 PyObject * obj0 = 0 ;
25218 PyObject * obj1 = 0 ;
25219 PyObject * obj2 = 0 ;
25220 PyObject * obj3 = 0 ;
25221 PyObject * obj4 = 0 ;
25222 PyObject * obj5 = 0 ;
25223 PyObject * obj6 = 0 ;
25224 char *kwnames[] = {
25225 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25226 };
25227
25228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25231 if (obj1) {
25232 arg2 = (int)SWIG_As_int(obj1);
25233 if (PyErr_Occurred()) SWIG_fail;
25234 }
25235 if (obj2) {
25236 {
25237 arg3 = &temp3;
25238 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25239 }
25240 }
25241 if (obj3) {
25242 {
25243 arg4 = &temp4;
25244 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25245 }
25246 }
25247 if (obj4) {
25248 arg5 = (long)SWIG_As_long(obj4);
25249 if (PyErr_Occurred()) SWIG_fail;
25250 }
25251 if (obj5) {
25252 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
25253 SWIG_POINTER_EXCEPTION | 0)) == -1)
25254 SWIG_fail;
25255 if (arg6 == NULL) {
25256 PyErr_SetString(PyExc_TypeError,"null reference");
25257 SWIG_fail;
25258 }
25259 }
25260 if (obj6) {
25261 {
25262 arg7 = wxString_in_helper(obj6);
25263 if (arg7 == NULL) SWIG_fail;
25264 temp7 = True;
25265 }
25266 }
25267 {
25268 if (!wxPyCheckForApp()) SWIG_fail;
25269 PyThreadState* __tstate = wxPyBeginAllowThreads();
25270 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
25271
25272 wxPyEndAllowThreads(__tstate);
25273 if (PyErr_Occurred()) SWIG_fail;
25274 }
25275 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25276 {
25277 if (temp7)
25278 delete arg7;
25279 }
25280 return resultobj;
25281 fail:
25282 {
25283 if (temp7)
25284 delete arg7;
25285 }
25286 return NULL;
25287 }
25288
25289
25290 static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25291 PyObject *resultobj;
25292 wxPyTreeCtrl *result;
25293 char *kwnames[] = {
25294 NULL
25295 };
25296
25297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25298 {
25299 if (!wxPyCheckForApp()) SWIG_fail;
25300 PyThreadState* __tstate = wxPyBeginAllowThreads();
25301 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25302
25303 wxPyEndAllowThreads(__tstate);
25304 if (PyErr_Occurred()) SWIG_fail;
25305 }
25306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25307 return resultobj;
25308 fail:
25309 return NULL;
25310 }
25311
25312
25313 static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
25314 PyObject *resultobj;
25315 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25316 wxWindow *arg2 = (wxWindow *) 0 ;
25317 int arg3 = (int) -1 ;
25318 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25319 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25320 wxSize const &arg5_defvalue = wxDefaultSize ;
25321 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25322 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25323 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25324 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25325 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25326 wxString *arg8 = (wxString *) &arg8_defvalue ;
25327 bool result;
25328 wxPoint temp4 ;
25329 wxSize temp5 ;
25330 bool temp8 = False ;
25331 PyObject * obj0 = 0 ;
25332 PyObject * obj1 = 0 ;
25333 PyObject * obj2 = 0 ;
25334 PyObject * obj3 = 0 ;
25335 PyObject * obj4 = 0 ;
25336 PyObject * obj5 = 0 ;
25337 PyObject * obj6 = 0 ;
25338 PyObject * obj7 = 0 ;
25339 char *kwnames[] = {
25340 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25341 };
25342
25343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25346 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25348 if (obj2) {
25349 arg3 = (int)SWIG_As_int(obj2);
25350 if (PyErr_Occurred()) SWIG_fail;
25351 }
25352 if (obj3) {
25353 {
25354 arg4 = &temp4;
25355 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25356 }
25357 }
25358 if (obj4) {
25359 {
25360 arg5 = &temp5;
25361 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25362 }
25363 }
25364 if (obj5) {
25365 arg6 = (long)SWIG_As_long(obj5);
25366 if (PyErr_Occurred()) SWIG_fail;
25367 }
25368 if (obj6) {
25369 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25370 SWIG_POINTER_EXCEPTION | 0)) == -1)
25371 SWIG_fail;
25372 if (arg7 == NULL) {
25373 PyErr_SetString(PyExc_TypeError,"null reference");
25374 SWIG_fail;
25375 }
25376 }
25377 if (obj7) {
25378 {
25379 arg8 = wxString_in_helper(obj7);
25380 if (arg8 == NULL) SWIG_fail;
25381 temp8 = True;
25382 }
25383 }
25384 {
25385 PyThreadState* __tstate = wxPyBeginAllowThreads();
25386 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25387
25388 wxPyEndAllowThreads(__tstate);
25389 if (PyErr_Occurred()) SWIG_fail;
25390 }
25391 {
25392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25393 }
25394 {
25395 if (temp8)
25396 delete arg8;
25397 }
25398 return resultobj;
25399 fail:
25400 {
25401 if (temp8)
25402 delete arg8;
25403 }
25404 return NULL;
25405 }
25406
25407
25408 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25409 PyObject *resultobj;
25410 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25411 PyObject *arg2 = (PyObject *) 0 ;
25412 PyObject *arg3 = (PyObject *) 0 ;
25413 PyObject * obj0 = 0 ;
25414 PyObject * obj1 = 0 ;
25415 PyObject * obj2 = 0 ;
25416 char *kwnames[] = {
25417 (char *) "self",(char *) "self",(char *) "_class", NULL
25418 };
25419
25420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25423 arg2 = obj1;
25424 arg3 = obj2;
25425 {
25426 PyThreadState* __tstate = wxPyBeginAllowThreads();
25427 (arg1)->_setCallbackInfo(arg2,arg3);
25428
25429 wxPyEndAllowThreads(__tstate);
25430 if (PyErr_Occurred()) SWIG_fail;
25431 }
25432 Py_INCREF(Py_None); resultobj = Py_None;
25433 return resultobj;
25434 fail:
25435 return NULL;
25436 }
25437
25438
25439 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
25440 PyObject *resultobj;
25441 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25442 size_t result;
25443 PyObject * obj0 = 0 ;
25444 char *kwnames[] = {
25445 (char *) "self", NULL
25446 };
25447
25448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25451 {
25452 PyThreadState* __tstate = wxPyBeginAllowThreads();
25453 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25454
25455 wxPyEndAllowThreads(__tstate);
25456 if (PyErr_Occurred()) SWIG_fail;
25457 }
25458 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25459 return resultobj;
25460 fail:
25461 return NULL;
25462 }
25463
25464
25465 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25466 PyObject *resultobj;
25467 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25468 unsigned int result;
25469 PyObject * obj0 = 0 ;
25470 char *kwnames[] = {
25471 (char *) "self", NULL
25472 };
25473
25474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25477 {
25478 PyThreadState* __tstate = wxPyBeginAllowThreads();
25479 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25480
25481 wxPyEndAllowThreads(__tstate);
25482 if (PyErr_Occurred()) SWIG_fail;
25483 }
25484 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25485 return resultobj;
25486 fail:
25487 return NULL;
25488 }
25489
25490
25491 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25492 PyObject *resultobj;
25493 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25494 unsigned int arg2 ;
25495 PyObject * obj0 = 0 ;
25496 PyObject * obj1 = 0 ;
25497 char *kwnames[] = {
25498 (char *) "self",(char *) "indent", NULL
25499 };
25500
25501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25504 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25505 if (PyErr_Occurred()) SWIG_fail;
25506 {
25507 PyThreadState* __tstate = wxPyBeginAllowThreads();
25508 (arg1)->SetIndent(arg2);
25509
25510 wxPyEndAllowThreads(__tstate);
25511 if (PyErr_Occurred()) SWIG_fail;
25512 }
25513 Py_INCREF(Py_None); resultobj = Py_None;
25514 return resultobj;
25515 fail:
25516 return NULL;
25517 }
25518
25519
25520 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25521 PyObject *resultobj;
25522 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25523 unsigned int result;
25524 PyObject * obj0 = 0 ;
25525 char *kwnames[] = {
25526 (char *) "self", NULL
25527 };
25528
25529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25532 {
25533 PyThreadState* __tstate = wxPyBeginAllowThreads();
25534 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25535
25536 wxPyEndAllowThreads(__tstate);
25537 if (PyErr_Occurred()) SWIG_fail;
25538 }
25539 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25540 return resultobj;
25541 fail:
25542 return NULL;
25543 }
25544
25545
25546 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25547 PyObject *resultobj;
25548 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25549 unsigned int arg2 ;
25550 PyObject * obj0 = 0 ;
25551 PyObject * obj1 = 0 ;
25552 char *kwnames[] = {
25553 (char *) "self",(char *) "spacing", NULL
25554 };
25555
25556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25559 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25560 if (PyErr_Occurred()) SWIG_fail;
25561 {
25562 PyThreadState* __tstate = wxPyBeginAllowThreads();
25563 (arg1)->SetSpacing(arg2);
25564
25565 wxPyEndAllowThreads(__tstate);
25566 if (PyErr_Occurred()) SWIG_fail;
25567 }
25568 Py_INCREF(Py_None); resultobj = Py_None;
25569 return resultobj;
25570 fail:
25571 return NULL;
25572 }
25573
25574
25575 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25576 PyObject *resultobj;
25577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25578 wxImageList *result;
25579 PyObject * obj0 = 0 ;
25580 char *kwnames[] = {
25581 (char *) "self", NULL
25582 };
25583
25584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25587 {
25588 PyThreadState* __tstate = wxPyBeginAllowThreads();
25589 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25590
25591 wxPyEndAllowThreads(__tstate);
25592 if (PyErr_Occurred()) SWIG_fail;
25593 }
25594 {
25595 resultobj = wxPyMake_wxObject(result, 0);
25596 }
25597 return resultobj;
25598 fail:
25599 return NULL;
25600 }
25601
25602
25603 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25604 PyObject *resultobj;
25605 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25606 wxImageList *result;
25607 PyObject * obj0 = 0 ;
25608 char *kwnames[] = {
25609 (char *) "self", NULL
25610 };
25611
25612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25615 {
25616 PyThreadState* __tstate = wxPyBeginAllowThreads();
25617 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25618
25619 wxPyEndAllowThreads(__tstate);
25620 if (PyErr_Occurred()) SWIG_fail;
25621 }
25622 {
25623 resultobj = wxPyMake_wxObject(result, 0);
25624 }
25625 return resultobj;
25626 fail:
25627 return NULL;
25628 }
25629
25630
25631 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25632 PyObject *resultobj;
25633 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25634 wxImageList *arg2 = (wxImageList *) 0 ;
25635 PyObject * obj0 = 0 ;
25636 PyObject * obj1 = 0 ;
25637 char *kwnames[] = {
25638 (char *) "self",(char *) "imageList", NULL
25639 };
25640
25641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25644 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25646 {
25647 PyThreadState* __tstate = wxPyBeginAllowThreads();
25648 (arg1)->SetImageList(arg2);
25649
25650 wxPyEndAllowThreads(__tstate);
25651 if (PyErr_Occurred()) SWIG_fail;
25652 }
25653 Py_INCREF(Py_None); resultobj = Py_None;
25654 return resultobj;
25655 fail:
25656 return NULL;
25657 }
25658
25659
25660 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25661 PyObject *resultobj;
25662 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25663 wxImageList *arg2 = (wxImageList *) 0 ;
25664 PyObject * obj0 = 0 ;
25665 PyObject * obj1 = 0 ;
25666 char *kwnames[] = {
25667 (char *) "self",(char *) "imageList", NULL
25668 };
25669
25670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25673 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25675 {
25676 PyThreadState* __tstate = wxPyBeginAllowThreads();
25677 (arg1)->SetStateImageList(arg2);
25678
25679 wxPyEndAllowThreads(__tstate);
25680 if (PyErr_Occurred()) SWIG_fail;
25681 }
25682 Py_INCREF(Py_None); resultobj = Py_None;
25683 return resultobj;
25684 fail:
25685 return NULL;
25686 }
25687
25688
25689 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25690 PyObject *resultobj;
25691 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25692 wxImageList *arg2 = (wxImageList *) 0 ;
25693 PyObject * obj0 = 0 ;
25694 PyObject * obj1 = 0 ;
25695 char *kwnames[] = {
25696 (char *) "self",(char *) "imageList", NULL
25697 };
25698
25699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25702 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25703 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25704 {
25705 PyThreadState* __tstate = wxPyBeginAllowThreads();
25706 (arg1)->AssignImageList(arg2);
25707
25708 wxPyEndAllowThreads(__tstate);
25709 if (PyErr_Occurred()) SWIG_fail;
25710 }
25711 Py_INCREF(Py_None); resultobj = Py_None;
25712 return resultobj;
25713 fail:
25714 return NULL;
25715 }
25716
25717
25718 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25719 PyObject *resultobj;
25720 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25721 wxImageList *arg2 = (wxImageList *) 0 ;
25722 PyObject * obj0 = 0 ;
25723 PyObject * obj1 = 0 ;
25724 char *kwnames[] = {
25725 (char *) "self",(char *) "imageList", NULL
25726 };
25727
25728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25731 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25732 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25733 {
25734 PyThreadState* __tstate = wxPyBeginAllowThreads();
25735 (arg1)->AssignStateImageList(arg2);
25736
25737 wxPyEndAllowThreads(__tstate);
25738 if (PyErr_Occurred()) SWIG_fail;
25739 }
25740 Py_INCREF(Py_None); resultobj = Py_None;
25741 return resultobj;
25742 fail:
25743 return NULL;
25744 }
25745
25746
25747 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
25748 PyObject *resultobj;
25749 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25750 wxTreeItemId *arg2 = 0 ;
25751 wxString result;
25752 PyObject * obj0 = 0 ;
25753 PyObject * obj1 = 0 ;
25754 char *kwnames[] = {
25755 (char *) "self",(char *) "item", NULL
25756 };
25757
25758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25761 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25762 SWIG_POINTER_EXCEPTION | 0)) == -1)
25763 SWIG_fail;
25764 if (arg2 == NULL) {
25765 PyErr_SetString(PyExc_TypeError,"null reference");
25766 SWIG_fail;
25767 }
25768 {
25769 PyThreadState* __tstate = wxPyBeginAllowThreads();
25770 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25771
25772 wxPyEndAllowThreads(__tstate);
25773 if (PyErr_Occurred()) SWIG_fail;
25774 }
25775 {
25776 #if wxUSE_UNICODE
25777 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25778 #else
25779 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25780 #endif
25781 }
25782 return resultobj;
25783 fail:
25784 return NULL;
25785 }
25786
25787
25788 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
25789 PyObject *resultobj;
25790 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25791 wxTreeItemId *arg2 = 0 ;
25792 int arg3 = (int) wxTreeItemIcon_Normal ;
25793 int result;
25794 PyObject * obj0 = 0 ;
25795 PyObject * obj1 = 0 ;
25796 PyObject * obj2 = 0 ;
25797 char *kwnames[] = {
25798 (char *) "self",(char *) "item",(char *) "which", NULL
25799 };
25800
25801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25804 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25805 SWIG_POINTER_EXCEPTION | 0)) == -1)
25806 SWIG_fail;
25807 if (arg2 == NULL) {
25808 PyErr_SetString(PyExc_TypeError,"null reference");
25809 SWIG_fail;
25810 }
25811 if (obj2) {
25812 arg3 = (int)SWIG_As_int(obj2);
25813 if (PyErr_Occurred()) SWIG_fail;
25814 }
25815 {
25816 PyThreadState* __tstate = wxPyBeginAllowThreads();
25817 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25818
25819 wxPyEndAllowThreads(__tstate);
25820 if (PyErr_Occurred()) SWIG_fail;
25821 }
25822 resultobj = SWIG_From_int((int)result);
25823 return resultobj;
25824 fail:
25825 return NULL;
25826 }
25827
25828
25829 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
25830 PyObject *resultobj;
25831 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25832 wxTreeItemId *arg2 = 0 ;
25833 wxPyTreeItemData *result;
25834 PyObject * obj0 = 0 ;
25835 PyObject * obj1 = 0 ;
25836 char *kwnames[] = {
25837 (char *) "self",(char *) "item", NULL
25838 };
25839
25840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25844 SWIG_POINTER_EXCEPTION | 0)) == -1)
25845 SWIG_fail;
25846 if (arg2 == NULL) {
25847 PyErr_SetString(PyExc_TypeError,"null reference");
25848 SWIG_fail;
25849 }
25850 {
25851 PyThreadState* __tstate = wxPyBeginAllowThreads();
25852 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25853
25854 wxPyEndAllowThreads(__tstate);
25855 if (PyErr_Occurred()) SWIG_fail;
25856 }
25857 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25858 return resultobj;
25859 fail:
25860 return NULL;
25861 }
25862
25863
25864 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
25865 PyObject *resultobj;
25866 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25867 wxTreeItemId *arg2 = 0 ;
25868 PyObject *result;
25869 PyObject * obj0 = 0 ;
25870 PyObject * obj1 = 0 ;
25871 char *kwnames[] = {
25872 (char *) "self",(char *) "item", NULL
25873 };
25874
25875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25878 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25879 SWIG_POINTER_EXCEPTION | 0)) == -1)
25880 SWIG_fail;
25881 if (arg2 == NULL) {
25882 PyErr_SetString(PyExc_TypeError,"null reference");
25883 SWIG_fail;
25884 }
25885 {
25886 PyThreadState* __tstate = wxPyBeginAllowThreads();
25887 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25888
25889 wxPyEndAllowThreads(__tstate);
25890 if (PyErr_Occurred()) SWIG_fail;
25891 }
25892 resultobj = result;
25893 return resultobj;
25894 fail:
25895 return NULL;
25896 }
25897
25898
25899 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
25900 PyObject *resultobj;
25901 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25902 wxTreeItemId *arg2 = 0 ;
25903 wxColour result;
25904 PyObject * obj0 = 0 ;
25905 PyObject * obj1 = 0 ;
25906 char *kwnames[] = {
25907 (char *) "self",(char *) "item", NULL
25908 };
25909
25910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25913 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25914 SWIG_POINTER_EXCEPTION | 0)) == -1)
25915 SWIG_fail;
25916 if (arg2 == NULL) {
25917 PyErr_SetString(PyExc_TypeError,"null reference");
25918 SWIG_fail;
25919 }
25920 {
25921 PyThreadState* __tstate = wxPyBeginAllowThreads();
25922 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25923
25924 wxPyEndAllowThreads(__tstate);
25925 if (PyErr_Occurred()) SWIG_fail;
25926 }
25927 {
25928 wxColour * resultptr;
25929 resultptr = new wxColour((wxColour &) result);
25930 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25931 }
25932 return resultobj;
25933 fail:
25934 return NULL;
25935 }
25936
25937
25938 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
25939 PyObject *resultobj;
25940 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25941 wxTreeItemId *arg2 = 0 ;
25942 wxColour result;
25943 PyObject * obj0 = 0 ;
25944 PyObject * obj1 = 0 ;
25945 char *kwnames[] = {
25946 (char *) "self",(char *) "item", NULL
25947 };
25948
25949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25952 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25953 SWIG_POINTER_EXCEPTION | 0)) == -1)
25954 SWIG_fail;
25955 if (arg2 == NULL) {
25956 PyErr_SetString(PyExc_TypeError,"null reference");
25957 SWIG_fail;
25958 }
25959 {
25960 PyThreadState* __tstate = wxPyBeginAllowThreads();
25961 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25962
25963 wxPyEndAllowThreads(__tstate);
25964 if (PyErr_Occurred()) SWIG_fail;
25965 }
25966 {
25967 wxColour * resultptr;
25968 resultptr = new wxColour((wxColour &) result);
25969 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25970 }
25971 return resultobj;
25972 fail:
25973 return NULL;
25974 }
25975
25976
25977 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
25978 PyObject *resultobj;
25979 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25980 wxTreeItemId *arg2 = 0 ;
25981 wxFont result;
25982 PyObject * obj0 = 0 ;
25983 PyObject * obj1 = 0 ;
25984 char *kwnames[] = {
25985 (char *) "self",(char *) "item", NULL
25986 };
25987
25988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
25989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25991 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25992 SWIG_POINTER_EXCEPTION | 0)) == -1)
25993 SWIG_fail;
25994 if (arg2 == NULL) {
25995 PyErr_SetString(PyExc_TypeError,"null reference");
25996 SWIG_fail;
25997 }
25998 {
25999 PyThreadState* __tstate = wxPyBeginAllowThreads();
26000 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
26001
26002 wxPyEndAllowThreads(__tstate);
26003 if (PyErr_Occurred()) SWIG_fail;
26004 }
26005 {
26006 wxFont * resultptr;
26007 resultptr = new wxFont((wxFont &) result);
26008 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
26009 }
26010 return resultobj;
26011 fail:
26012 return NULL;
26013 }
26014
26015
26016 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26017 PyObject *resultobj;
26018 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26019 wxTreeItemId *arg2 = 0 ;
26020 wxString *arg3 = 0 ;
26021 bool temp3 = False ;
26022 PyObject * obj0 = 0 ;
26023 PyObject * obj1 = 0 ;
26024 PyObject * obj2 = 0 ;
26025 char *kwnames[] = {
26026 (char *) "self",(char *) "item",(char *) "text", NULL
26027 };
26028
26029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
26030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26032 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26033 SWIG_POINTER_EXCEPTION | 0)) == -1)
26034 SWIG_fail;
26035 if (arg2 == NULL) {
26036 PyErr_SetString(PyExc_TypeError,"null reference");
26037 SWIG_fail;
26038 }
26039 {
26040 arg3 = wxString_in_helper(obj2);
26041 if (arg3 == NULL) SWIG_fail;
26042 temp3 = True;
26043 }
26044 {
26045 PyThreadState* __tstate = wxPyBeginAllowThreads();
26046 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
26047
26048 wxPyEndAllowThreads(__tstate);
26049 if (PyErr_Occurred()) SWIG_fail;
26050 }
26051 Py_INCREF(Py_None); resultobj = Py_None;
26052 {
26053 if (temp3)
26054 delete arg3;
26055 }
26056 return resultobj;
26057 fail:
26058 {
26059 if (temp3)
26060 delete arg3;
26061 }
26062 return NULL;
26063 }
26064
26065
26066 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26067 PyObject *resultobj;
26068 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26069 wxTreeItemId *arg2 = 0 ;
26070 int arg3 ;
26071 int arg4 = (int) wxTreeItemIcon_Normal ;
26072 PyObject * obj0 = 0 ;
26073 PyObject * obj1 = 0 ;
26074 PyObject * obj2 = 0 ;
26075 PyObject * obj3 = 0 ;
26076 char *kwnames[] = {
26077 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
26078 };
26079
26080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26084 SWIG_POINTER_EXCEPTION | 0)) == -1)
26085 SWIG_fail;
26086 if (arg2 == NULL) {
26087 PyErr_SetString(PyExc_TypeError,"null reference");
26088 SWIG_fail;
26089 }
26090 arg3 = (int)SWIG_As_int(obj2);
26091 if (PyErr_Occurred()) SWIG_fail;
26092 if (obj3) {
26093 arg4 = (int)SWIG_As_int(obj3);
26094 if (PyErr_Occurred()) SWIG_fail;
26095 }
26096 {
26097 PyThreadState* __tstate = wxPyBeginAllowThreads();
26098 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
26099
26100 wxPyEndAllowThreads(__tstate);
26101 if (PyErr_Occurred()) SWIG_fail;
26102 }
26103 Py_INCREF(Py_None); resultobj = Py_None;
26104 return resultobj;
26105 fail:
26106 return NULL;
26107 }
26108
26109
26110 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26111 PyObject *resultobj;
26112 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26113 wxTreeItemId *arg2 = 0 ;
26114 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
26115 PyObject * obj0 = 0 ;
26116 PyObject * obj1 = 0 ;
26117 PyObject * obj2 = 0 ;
26118 char *kwnames[] = {
26119 (char *) "self",(char *) "item",(char *) "data", NULL
26120 };
26121
26122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26125 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26126 SWIG_POINTER_EXCEPTION | 0)) == -1)
26127 SWIG_fail;
26128 if (arg2 == NULL) {
26129 PyErr_SetString(PyExc_TypeError,"null reference");
26130 SWIG_fail;
26131 }
26132 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
26133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26134 {
26135 PyThreadState* __tstate = wxPyBeginAllowThreads();
26136 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
26137
26138 wxPyEndAllowThreads(__tstate);
26139 if (PyErr_Occurred()) SWIG_fail;
26140 }
26141 Py_INCREF(Py_None); resultobj = Py_None;
26142 return resultobj;
26143 fail:
26144 return NULL;
26145 }
26146
26147
26148 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26149 PyObject *resultobj;
26150 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26151 wxTreeItemId *arg2 = 0 ;
26152 PyObject *arg3 = (PyObject *) 0 ;
26153 PyObject * obj0 = 0 ;
26154 PyObject * obj1 = 0 ;
26155 PyObject * obj2 = 0 ;
26156 char *kwnames[] = {
26157 (char *) "self",(char *) "item",(char *) "obj", NULL
26158 };
26159
26160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26164 SWIG_POINTER_EXCEPTION | 0)) == -1)
26165 SWIG_fail;
26166 if (arg2 == NULL) {
26167 PyErr_SetString(PyExc_TypeError,"null reference");
26168 SWIG_fail;
26169 }
26170 arg3 = obj2;
26171 {
26172 PyThreadState* __tstate = wxPyBeginAllowThreads();
26173 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
26174
26175 wxPyEndAllowThreads(__tstate);
26176 if (PyErr_Occurred()) SWIG_fail;
26177 }
26178 Py_INCREF(Py_None); resultobj = Py_None;
26179 return resultobj;
26180 fail:
26181 return NULL;
26182 }
26183
26184
26185 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26186 PyObject *resultobj;
26187 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26188 wxTreeItemId *arg2 = 0 ;
26189 bool arg3 = (bool) True ;
26190 PyObject * obj0 = 0 ;
26191 PyObject * obj1 = 0 ;
26192 PyObject * obj2 = 0 ;
26193 char *kwnames[] = {
26194 (char *) "self",(char *) "item",(char *) "has", NULL
26195 };
26196
26197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
26198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26200 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26201 SWIG_POINTER_EXCEPTION | 0)) == -1)
26202 SWIG_fail;
26203 if (arg2 == NULL) {
26204 PyErr_SetString(PyExc_TypeError,"null reference");
26205 SWIG_fail;
26206 }
26207 if (obj2) {
26208 arg3 = (bool)SWIG_As_bool(obj2);
26209 if (PyErr_Occurred()) SWIG_fail;
26210 }
26211 {
26212 PyThreadState* __tstate = wxPyBeginAllowThreads();
26213 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
26214
26215 wxPyEndAllowThreads(__tstate);
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
26218 Py_INCREF(Py_None); resultobj = Py_None;
26219 return resultobj;
26220 fail:
26221 return NULL;
26222 }
26223
26224
26225 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) {
26226 PyObject *resultobj;
26227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26228 wxTreeItemId *arg2 = 0 ;
26229 bool arg3 = (bool) True ;
26230 PyObject * obj0 = 0 ;
26231 PyObject * obj1 = 0 ;
26232 PyObject * obj2 = 0 ;
26233 char *kwnames[] = {
26234 (char *) "self",(char *) "item",(char *) "bold", NULL
26235 };
26236
26237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
26238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26240 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26241 SWIG_POINTER_EXCEPTION | 0)) == -1)
26242 SWIG_fail;
26243 if (arg2 == NULL) {
26244 PyErr_SetString(PyExc_TypeError,"null reference");
26245 SWIG_fail;
26246 }
26247 if (obj2) {
26248 arg3 = (bool)SWIG_As_bool(obj2);
26249 if (PyErr_Occurred()) SWIG_fail;
26250 }
26251 {
26252 PyThreadState* __tstate = wxPyBeginAllowThreads();
26253 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
26254
26255 wxPyEndAllowThreads(__tstate);
26256 if (PyErr_Occurred()) SWIG_fail;
26257 }
26258 Py_INCREF(Py_None); resultobj = Py_None;
26259 return resultobj;
26260 fail:
26261 return NULL;
26262 }
26263
26264
26265 static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) {
26266 PyObject *resultobj;
26267 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26268 wxTreeItemId *arg2 = 0 ;
26269 bool arg3 = (bool) True ;
26270 PyObject * obj0 = 0 ;
26271 PyObject * obj1 = 0 ;
26272 PyObject * obj2 = 0 ;
26273 char *kwnames[] = {
26274 (char *) "self",(char *) "item",(char *) "highlight", NULL
26275 };
26276
26277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
26278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26280 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26281 SWIG_POINTER_EXCEPTION | 0)) == -1)
26282 SWIG_fail;
26283 if (arg2 == NULL) {
26284 PyErr_SetString(PyExc_TypeError,"null reference");
26285 SWIG_fail;
26286 }
26287 if (obj2) {
26288 arg3 = (bool)SWIG_As_bool(obj2);
26289 if (PyErr_Occurred()) SWIG_fail;
26290 }
26291 {
26292 PyThreadState* __tstate = wxPyBeginAllowThreads();
26293 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
26294
26295 wxPyEndAllowThreads(__tstate);
26296 if (PyErr_Occurred()) SWIG_fail;
26297 }
26298 Py_INCREF(Py_None); resultobj = Py_None;
26299 return resultobj;
26300 fail:
26301 return NULL;
26302 }
26303
26304
26305 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26306 PyObject *resultobj;
26307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26308 wxTreeItemId *arg2 = 0 ;
26309 wxColour *arg3 = 0 ;
26310 wxColour temp3 ;
26311 PyObject * obj0 = 0 ;
26312 PyObject * obj1 = 0 ;
26313 PyObject * obj2 = 0 ;
26314 char *kwnames[] = {
26315 (char *) "self",(char *) "item",(char *) "col", NULL
26316 };
26317
26318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26322 SWIG_POINTER_EXCEPTION | 0)) == -1)
26323 SWIG_fail;
26324 if (arg2 == NULL) {
26325 PyErr_SetString(PyExc_TypeError,"null reference");
26326 SWIG_fail;
26327 }
26328 {
26329 arg3 = &temp3;
26330 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26331 }
26332 {
26333 PyThreadState* __tstate = wxPyBeginAllowThreads();
26334 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26335
26336 wxPyEndAllowThreads(__tstate);
26337 if (PyErr_Occurred()) SWIG_fail;
26338 }
26339 Py_INCREF(Py_None); resultobj = Py_None;
26340 return resultobj;
26341 fail:
26342 return NULL;
26343 }
26344
26345
26346 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26347 PyObject *resultobj;
26348 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26349 wxTreeItemId *arg2 = 0 ;
26350 wxColour *arg3 = 0 ;
26351 wxColour temp3 ;
26352 PyObject * obj0 = 0 ;
26353 PyObject * obj1 = 0 ;
26354 PyObject * obj2 = 0 ;
26355 char *kwnames[] = {
26356 (char *) "self",(char *) "item",(char *) "col", NULL
26357 };
26358
26359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26362 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26363 SWIG_POINTER_EXCEPTION | 0)) == -1)
26364 SWIG_fail;
26365 if (arg2 == NULL) {
26366 PyErr_SetString(PyExc_TypeError,"null reference");
26367 SWIG_fail;
26368 }
26369 {
26370 arg3 = &temp3;
26371 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26372 }
26373 {
26374 PyThreadState* __tstate = wxPyBeginAllowThreads();
26375 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26376
26377 wxPyEndAllowThreads(__tstate);
26378 if (PyErr_Occurred()) SWIG_fail;
26379 }
26380 Py_INCREF(Py_None); resultobj = Py_None;
26381 return resultobj;
26382 fail:
26383 return NULL;
26384 }
26385
26386
26387 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26388 PyObject *resultobj;
26389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26390 wxTreeItemId *arg2 = 0 ;
26391 wxFont *arg3 = 0 ;
26392 PyObject * obj0 = 0 ;
26393 PyObject * obj1 = 0 ;
26394 PyObject * obj2 = 0 ;
26395 char *kwnames[] = {
26396 (char *) "self",(char *) "item",(char *) "font", NULL
26397 };
26398
26399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26403 SWIG_POINTER_EXCEPTION | 0)) == -1)
26404 SWIG_fail;
26405 if (arg2 == NULL) {
26406 PyErr_SetString(PyExc_TypeError,"null reference");
26407 SWIG_fail;
26408 }
26409 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26410 SWIG_POINTER_EXCEPTION | 0)) == -1)
26411 SWIG_fail;
26412 if (arg3 == NULL) {
26413 PyErr_SetString(PyExc_TypeError,"null reference");
26414 SWIG_fail;
26415 }
26416 {
26417 PyThreadState* __tstate = wxPyBeginAllowThreads();
26418 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26419
26420 wxPyEndAllowThreads(__tstate);
26421 if (PyErr_Occurred()) SWIG_fail;
26422 }
26423 Py_INCREF(Py_None); resultobj = Py_None;
26424 return resultobj;
26425 fail:
26426 return NULL;
26427 }
26428
26429
26430 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26431 PyObject *resultobj;
26432 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26433 wxTreeItemId *arg2 = 0 ;
26434 bool result;
26435 PyObject * obj0 = 0 ;
26436 PyObject * obj1 = 0 ;
26437 char *kwnames[] = {
26438 (char *) "self",(char *) "item", NULL
26439 };
26440
26441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26445 SWIG_POINTER_EXCEPTION | 0)) == -1)
26446 SWIG_fail;
26447 if (arg2 == NULL) {
26448 PyErr_SetString(PyExc_TypeError,"null reference");
26449 SWIG_fail;
26450 }
26451 {
26452 PyThreadState* __tstate = wxPyBeginAllowThreads();
26453 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26454
26455 wxPyEndAllowThreads(__tstate);
26456 if (PyErr_Occurred()) SWIG_fail;
26457 }
26458 {
26459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26460 }
26461 return resultobj;
26462 fail:
26463 return NULL;
26464 }
26465
26466
26467 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26468 PyObject *resultobj;
26469 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26470 wxTreeItemId *arg2 = 0 ;
26471 bool result;
26472 PyObject * obj0 = 0 ;
26473 PyObject * obj1 = 0 ;
26474 char *kwnames[] = {
26475 (char *) "self",(char *) "item", NULL
26476 };
26477
26478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26481 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26482 SWIG_POINTER_EXCEPTION | 0)) == -1)
26483 SWIG_fail;
26484 if (arg2 == NULL) {
26485 PyErr_SetString(PyExc_TypeError,"null reference");
26486 SWIG_fail;
26487 }
26488 {
26489 PyThreadState* __tstate = wxPyBeginAllowThreads();
26490 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26491
26492 wxPyEndAllowThreads(__tstate);
26493 if (PyErr_Occurred()) SWIG_fail;
26494 }
26495 {
26496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26497 }
26498 return resultobj;
26499 fail:
26500 return NULL;
26501 }
26502
26503
26504 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) {
26505 PyObject *resultobj;
26506 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26507 wxTreeItemId *arg2 = 0 ;
26508 bool result;
26509 PyObject * obj0 = 0 ;
26510 PyObject * obj1 = 0 ;
26511 char *kwnames[] = {
26512 (char *) "self",(char *) "item", NULL
26513 };
26514
26515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26519 SWIG_POINTER_EXCEPTION | 0)) == -1)
26520 SWIG_fail;
26521 if (arg2 == NULL) {
26522 PyErr_SetString(PyExc_TypeError,"null reference");
26523 SWIG_fail;
26524 }
26525 {
26526 PyThreadState* __tstate = wxPyBeginAllowThreads();
26527 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26528
26529 wxPyEndAllowThreads(__tstate);
26530 if (PyErr_Occurred()) SWIG_fail;
26531 }
26532 {
26533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26534 }
26535 return resultobj;
26536 fail:
26537 return NULL;
26538 }
26539
26540
26541 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
26542 PyObject *resultobj;
26543 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26544 wxTreeItemId *arg2 = 0 ;
26545 bool result;
26546 PyObject * obj0 = 0 ;
26547 PyObject * obj1 = 0 ;
26548 char *kwnames[] = {
26549 (char *) "self",(char *) "item", NULL
26550 };
26551
26552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26555 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26556 SWIG_POINTER_EXCEPTION | 0)) == -1)
26557 SWIG_fail;
26558 if (arg2 == NULL) {
26559 PyErr_SetString(PyExc_TypeError,"null reference");
26560 SWIG_fail;
26561 }
26562 {
26563 PyThreadState* __tstate = wxPyBeginAllowThreads();
26564 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26565
26566 wxPyEndAllowThreads(__tstate);
26567 if (PyErr_Occurred()) SWIG_fail;
26568 }
26569 {
26570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26571 }
26572 return resultobj;
26573 fail:
26574 return NULL;
26575 }
26576
26577
26578 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) {
26579 PyObject *resultobj;
26580 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26581 wxTreeItemId *arg2 = 0 ;
26582 bool result;
26583 PyObject * obj0 = 0 ;
26584 PyObject * obj1 = 0 ;
26585 char *kwnames[] = {
26586 (char *) "self",(char *) "item", NULL
26587 };
26588
26589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26592 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26593 SWIG_POINTER_EXCEPTION | 0)) == -1)
26594 SWIG_fail;
26595 if (arg2 == NULL) {
26596 PyErr_SetString(PyExc_TypeError,"null reference");
26597 SWIG_fail;
26598 }
26599 {
26600 PyThreadState* __tstate = wxPyBeginAllowThreads();
26601 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26602
26603 wxPyEndAllowThreads(__tstate);
26604 if (PyErr_Occurred()) SWIG_fail;
26605 }
26606 {
26607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26608 }
26609 return resultobj;
26610 fail:
26611 return NULL;
26612 }
26613
26614
26615 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) {
26616 PyObject *resultobj;
26617 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26618 wxTreeItemId *arg2 = 0 ;
26619 bool arg3 = (bool) True ;
26620 size_t result;
26621 PyObject * obj0 = 0 ;
26622 PyObject * obj1 = 0 ;
26623 PyObject * obj2 = 0 ;
26624 char *kwnames[] = {
26625 (char *) "self",(char *) "item",(char *) "recursively", NULL
26626 };
26627
26628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26632 SWIG_POINTER_EXCEPTION | 0)) == -1)
26633 SWIG_fail;
26634 if (arg2 == NULL) {
26635 PyErr_SetString(PyExc_TypeError,"null reference");
26636 SWIG_fail;
26637 }
26638 if (obj2) {
26639 arg3 = (bool)SWIG_As_bool(obj2);
26640 if (PyErr_Occurred()) SWIG_fail;
26641 }
26642 {
26643 PyThreadState* __tstate = wxPyBeginAllowThreads();
26644 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26645
26646 wxPyEndAllowThreads(__tstate);
26647 if (PyErr_Occurred()) SWIG_fail;
26648 }
26649 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
26650 return resultobj;
26651 fail:
26652 return NULL;
26653 }
26654
26655
26656 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) {
26657 PyObject *resultobj;
26658 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26659 wxTreeItemId result;
26660 PyObject * obj0 = 0 ;
26661 char *kwnames[] = {
26662 (char *) "self", NULL
26663 };
26664
26665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26668 {
26669 PyThreadState* __tstate = wxPyBeginAllowThreads();
26670 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26671
26672 wxPyEndAllowThreads(__tstate);
26673 if (PyErr_Occurred()) SWIG_fail;
26674 }
26675 {
26676 wxTreeItemId * resultptr;
26677 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26678 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26679 }
26680 return resultobj;
26681 fail:
26682 return NULL;
26683 }
26684
26685
26686 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
26687 PyObject *resultobj;
26688 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26689 wxTreeItemId result;
26690 PyObject * obj0 = 0 ;
26691 char *kwnames[] = {
26692 (char *) "self", NULL
26693 };
26694
26695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26698 {
26699 PyThreadState* __tstate = wxPyBeginAllowThreads();
26700 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26701
26702 wxPyEndAllowThreads(__tstate);
26703 if (PyErr_Occurred()) SWIG_fail;
26704 }
26705 {
26706 wxTreeItemId * resultptr;
26707 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26708 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26709 }
26710 return resultobj;
26711 fail:
26712 return NULL;
26713 }
26714
26715
26716 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
26717 PyObject *resultobj;
26718 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26719 PyObject *result;
26720 PyObject * obj0 = 0 ;
26721 char *kwnames[] = {
26722 (char *) "self", NULL
26723 };
26724
26725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26728 {
26729 PyThreadState* __tstate = wxPyBeginAllowThreads();
26730 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26731
26732 wxPyEndAllowThreads(__tstate);
26733 if (PyErr_Occurred()) SWIG_fail;
26734 }
26735 resultobj = result;
26736 return resultobj;
26737 fail:
26738 return NULL;
26739 }
26740
26741
26742 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) {
26743 PyObject *resultobj;
26744 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26745 wxTreeItemId *arg2 = 0 ;
26746 wxTreeItemId result;
26747 PyObject * obj0 = 0 ;
26748 PyObject * obj1 = 0 ;
26749 char *kwnames[] = {
26750 (char *) "self",(char *) "item", NULL
26751 };
26752
26753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26756 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26757 SWIG_POINTER_EXCEPTION | 0)) == -1)
26758 SWIG_fail;
26759 if (arg2 == NULL) {
26760 PyErr_SetString(PyExc_TypeError,"null reference");
26761 SWIG_fail;
26762 }
26763 {
26764 PyThreadState* __tstate = wxPyBeginAllowThreads();
26765 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26766
26767 wxPyEndAllowThreads(__tstate);
26768 if (PyErr_Occurred()) SWIG_fail;
26769 }
26770 {
26771 wxTreeItemId * resultptr;
26772 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26773 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26774 }
26775 return resultobj;
26776 fail:
26777 return NULL;
26778 }
26779
26780
26781 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) {
26782 PyObject *resultobj;
26783 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26784 wxTreeItemId *arg2 = 0 ;
26785 PyObject *result;
26786 PyObject * obj0 = 0 ;
26787 PyObject * obj1 = 0 ;
26788 char *kwnames[] = {
26789 (char *) "self",(char *) "item", NULL
26790 };
26791
26792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26795 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26796 SWIG_POINTER_EXCEPTION | 0)) == -1)
26797 SWIG_fail;
26798 if (arg2 == NULL) {
26799 PyErr_SetString(PyExc_TypeError,"null reference");
26800 SWIG_fail;
26801 }
26802 {
26803 PyThreadState* __tstate = wxPyBeginAllowThreads();
26804 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26805
26806 wxPyEndAllowThreads(__tstate);
26807 if (PyErr_Occurred()) SWIG_fail;
26808 }
26809 resultobj = result;
26810 return resultobj;
26811 fail:
26812 return NULL;
26813 }
26814
26815
26816 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) {
26817 PyObject *resultobj;
26818 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26819 wxTreeItemId *arg2 = 0 ;
26820 void *arg3 = (void *) 0 ;
26821 PyObject *result;
26822 PyObject * obj0 = 0 ;
26823 PyObject * obj1 = 0 ;
26824 PyObject * obj2 = 0 ;
26825 char *kwnames[] = {
26826 (char *) "self",(char *) "item",(char *) "cookie", NULL
26827 };
26828
26829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26832 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26833 SWIG_POINTER_EXCEPTION | 0)) == -1)
26834 SWIG_fail;
26835 if (arg2 == NULL) {
26836 PyErr_SetString(PyExc_TypeError,"null reference");
26837 SWIG_fail;
26838 }
26839 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26840 {
26841 PyThreadState* __tstate = wxPyBeginAllowThreads();
26842 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26843
26844 wxPyEndAllowThreads(__tstate);
26845 if (PyErr_Occurred()) SWIG_fail;
26846 }
26847 resultobj = result;
26848 return resultobj;
26849 fail:
26850 return NULL;
26851 }
26852
26853
26854 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) {
26855 PyObject *resultobj;
26856 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26857 wxTreeItemId *arg2 = 0 ;
26858 wxTreeItemId result;
26859 PyObject * obj0 = 0 ;
26860 PyObject * obj1 = 0 ;
26861 char *kwnames[] = {
26862 (char *) "self",(char *) "item", NULL
26863 };
26864
26865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
26866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26868 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26869 SWIG_POINTER_EXCEPTION | 0)) == -1)
26870 SWIG_fail;
26871 if (arg2 == NULL) {
26872 PyErr_SetString(PyExc_TypeError,"null reference");
26873 SWIG_fail;
26874 }
26875 {
26876 PyThreadState* __tstate = wxPyBeginAllowThreads();
26877 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26878
26879 wxPyEndAllowThreads(__tstate);
26880 if (PyErr_Occurred()) SWIG_fail;
26881 }
26882 {
26883 wxTreeItemId * resultptr;
26884 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26885 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26886 }
26887 return resultobj;
26888 fail:
26889 return NULL;
26890 }
26891
26892
26893 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) {
26894 PyObject *resultobj;
26895 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26896 wxTreeItemId *arg2 = 0 ;
26897 wxTreeItemId result;
26898 PyObject * obj0 = 0 ;
26899 PyObject * obj1 = 0 ;
26900 char *kwnames[] = {
26901 (char *) "self",(char *) "item", NULL
26902 };
26903
26904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26907 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26908 SWIG_POINTER_EXCEPTION | 0)) == -1)
26909 SWIG_fail;
26910 if (arg2 == NULL) {
26911 PyErr_SetString(PyExc_TypeError,"null reference");
26912 SWIG_fail;
26913 }
26914 {
26915 PyThreadState* __tstate = wxPyBeginAllowThreads();
26916 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26917
26918 wxPyEndAllowThreads(__tstate);
26919 if (PyErr_Occurred()) SWIG_fail;
26920 }
26921 {
26922 wxTreeItemId * resultptr;
26923 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26924 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26925 }
26926 return resultobj;
26927 fail:
26928 return NULL;
26929 }
26930
26931
26932 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) {
26933 PyObject *resultobj;
26934 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26935 wxTreeItemId *arg2 = 0 ;
26936 wxTreeItemId result;
26937 PyObject * obj0 = 0 ;
26938 PyObject * obj1 = 0 ;
26939 char *kwnames[] = {
26940 (char *) "self",(char *) "item", NULL
26941 };
26942
26943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26946 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26947 SWIG_POINTER_EXCEPTION | 0)) == -1)
26948 SWIG_fail;
26949 if (arg2 == NULL) {
26950 PyErr_SetString(PyExc_TypeError,"null reference");
26951 SWIG_fail;
26952 }
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26956
26957 wxPyEndAllowThreads(__tstate);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 {
26961 wxTreeItemId * resultptr;
26962 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26963 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26964 }
26965 return resultobj;
26966 fail:
26967 return NULL;
26968 }
26969
26970
26971 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) {
26972 PyObject *resultobj;
26973 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26974 wxTreeItemId result;
26975 PyObject * obj0 = 0 ;
26976 char *kwnames[] = {
26977 (char *) "self", NULL
26978 };
26979
26980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
26981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26983 {
26984 PyThreadState* __tstate = wxPyBeginAllowThreads();
26985 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
26986
26987 wxPyEndAllowThreads(__tstate);
26988 if (PyErr_Occurred()) SWIG_fail;
26989 }
26990 {
26991 wxTreeItemId * resultptr;
26992 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26993 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26994 }
26995 return resultobj;
26996 fail:
26997 return NULL;
26998 }
26999
27000
27001 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27002 PyObject *resultobj;
27003 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27004 wxTreeItemId *arg2 = 0 ;
27005 wxTreeItemId result;
27006 PyObject * obj0 = 0 ;
27007 PyObject * obj1 = 0 ;
27008 char *kwnames[] = {
27009 (char *) "self",(char *) "item", NULL
27010 };
27011
27012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
27013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27016 SWIG_POINTER_EXCEPTION | 0)) == -1)
27017 SWIG_fail;
27018 if (arg2 == NULL) {
27019 PyErr_SetString(PyExc_TypeError,"null reference");
27020 SWIG_fail;
27021 }
27022 {
27023 PyThreadState* __tstate = wxPyBeginAllowThreads();
27024 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
27025
27026 wxPyEndAllowThreads(__tstate);
27027 if (PyErr_Occurred()) SWIG_fail;
27028 }
27029 {
27030 wxTreeItemId * resultptr;
27031 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27032 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27033 }
27034 return resultobj;
27035 fail:
27036 return NULL;
27037 }
27038
27039
27040 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27041 PyObject *resultobj;
27042 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27043 wxTreeItemId *arg2 = 0 ;
27044 wxTreeItemId result;
27045 PyObject * obj0 = 0 ;
27046 PyObject * obj1 = 0 ;
27047 char *kwnames[] = {
27048 (char *) "self",(char *) "item", NULL
27049 };
27050
27051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
27052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27054 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27055 SWIG_POINTER_EXCEPTION | 0)) == -1)
27056 SWIG_fail;
27057 if (arg2 == NULL) {
27058 PyErr_SetString(PyExc_TypeError,"null reference");
27059 SWIG_fail;
27060 }
27061 {
27062 PyThreadState* __tstate = wxPyBeginAllowThreads();
27063 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
27064
27065 wxPyEndAllowThreads(__tstate);
27066 if (PyErr_Occurred()) SWIG_fail;
27067 }
27068 {
27069 wxTreeItemId * resultptr;
27070 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27071 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27072 }
27073 return resultobj;
27074 fail:
27075 return NULL;
27076 }
27077
27078
27079 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) {
27080 PyObject *resultobj;
27081 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27082 wxString *arg2 = 0 ;
27083 int arg3 = (int) -1 ;
27084 int arg4 = (int) -1 ;
27085 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
27086 wxTreeItemId result;
27087 bool temp2 = False ;
27088 PyObject * obj0 = 0 ;
27089 PyObject * obj1 = 0 ;
27090 PyObject * obj2 = 0 ;
27091 PyObject * obj3 = 0 ;
27092 PyObject * obj4 = 0 ;
27093 char *kwnames[] = {
27094 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27095 };
27096
27097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27100 {
27101 arg2 = wxString_in_helper(obj1);
27102 if (arg2 == NULL) SWIG_fail;
27103 temp2 = True;
27104 }
27105 if (obj2) {
27106 arg3 = (int)SWIG_As_int(obj2);
27107 if (PyErr_Occurred()) SWIG_fail;
27108 }
27109 if (obj3) {
27110 arg4 = (int)SWIG_As_int(obj3);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 if (obj4) {
27114 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
27115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27116 }
27117 {
27118 PyThreadState* __tstate = wxPyBeginAllowThreads();
27119 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
27120
27121 wxPyEndAllowThreads(__tstate);
27122 if (PyErr_Occurred()) SWIG_fail;
27123 }
27124 {
27125 wxTreeItemId * resultptr;
27126 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27127 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27128 }
27129 {
27130 if (temp2)
27131 delete arg2;
27132 }
27133 return resultobj;
27134 fail:
27135 {
27136 if (temp2)
27137 delete arg2;
27138 }
27139 return NULL;
27140 }
27141
27142
27143 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
27144 PyObject *resultobj;
27145 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27146 wxTreeItemId *arg2 = 0 ;
27147 wxString *arg3 = 0 ;
27148 int arg4 = (int) -1 ;
27149 int arg5 = (int) -1 ;
27150 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27151 wxTreeItemId result;
27152 bool temp3 = False ;
27153 PyObject * obj0 = 0 ;
27154 PyObject * obj1 = 0 ;
27155 PyObject * obj2 = 0 ;
27156 PyObject * obj3 = 0 ;
27157 PyObject * obj4 = 0 ;
27158 PyObject * obj5 = 0 ;
27159 char *kwnames[] = {
27160 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27161 };
27162
27163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27166 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27167 SWIG_POINTER_EXCEPTION | 0)) == -1)
27168 SWIG_fail;
27169 if (arg2 == NULL) {
27170 PyErr_SetString(PyExc_TypeError,"null reference");
27171 SWIG_fail;
27172 }
27173 {
27174 arg3 = wxString_in_helper(obj2);
27175 if (arg3 == NULL) SWIG_fail;
27176 temp3 = True;
27177 }
27178 if (obj3) {
27179 arg4 = (int)SWIG_As_int(obj3);
27180 if (PyErr_Occurred()) SWIG_fail;
27181 }
27182 if (obj4) {
27183 arg5 = (int)SWIG_As_int(obj4);
27184 if (PyErr_Occurred()) SWIG_fail;
27185 }
27186 if (obj5) {
27187 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27189 }
27190 {
27191 PyThreadState* __tstate = wxPyBeginAllowThreads();
27192 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27193
27194 wxPyEndAllowThreads(__tstate);
27195 if (PyErr_Occurred()) SWIG_fail;
27196 }
27197 {
27198 wxTreeItemId * resultptr;
27199 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27200 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27201 }
27202 {
27203 if (temp3)
27204 delete arg3;
27205 }
27206 return resultobj;
27207 fail:
27208 {
27209 if (temp3)
27210 delete arg3;
27211 }
27212 return NULL;
27213 }
27214
27215
27216 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
27217 PyObject *resultobj;
27218 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27219 wxTreeItemId *arg2 = 0 ;
27220 wxTreeItemId *arg3 = 0 ;
27221 wxString *arg4 = 0 ;
27222 int arg5 = (int) -1 ;
27223 int arg6 = (int) -1 ;
27224 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27225 wxTreeItemId result;
27226 bool temp4 = False ;
27227 PyObject * obj0 = 0 ;
27228 PyObject * obj1 = 0 ;
27229 PyObject * obj2 = 0 ;
27230 PyObject * obj3 = 0 ;
27231 PyObject * obj4 = 0 ;
27232 PyObject * obj5 = 0 ;
27233 PyObject * obj6 = 0 ;
27234 char *kwnames[] = {
27235 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27236 };
27237
27238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27242 SWIG_POINTER_EXCEPTION | 0)) == -1)
27243 SWIG_fail;
27244 if (arg2 == NULL) {
27245 PyErr_SetString(PyExc_TypeError,"null reference");
27246 SWIG_fail;
27247 }
27248 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
27249 SWIG_POINTER_EXCEPTION | 0)) == -1)
27250 SWIG_fail;
27251 if (arg3 == NULL) {
27252 PyErr_SetString(PyExc_TypeError,"null reference");
27253 SWIG_fail;
27254 }
27255 {
27256 arg4 = wxString_in_helper(obj3);
27257 if (arg4 == NULL) SWIG_fail;
27258 temp4 = True;
27259 }
27260 if (obj4) {
27261 arg5 = (int)SWIG_As_int(obj4);
27262 if (PyErr_Occurred()) SWIG_fail;
27263 }
27264 if (obj5) {
27265 arg6 = (int)SWIG_As_int(obj5);
27266 if (PyErr_Occurred()) SWIG_fail;
27267 }
27268 if (obj6) {
27269 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27271 }
27272 {
27273 PyThreadState* __tstate = wxPyBeginAllowThreads();
27274 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27275
27276 wxPyEndAllowThreads(__tstate);
27277 if (PyErr_Occurred()) SWIG_fail;
27278 }
27279 {
27280 wxTreeItemId * resultptr;
27281 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27282 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27283 }
27284 {
27285 if (temp4)
27286 delete arg4;
27287 }
27288 return resultobj;
27289 fail:
27290 {
27291 if (temp4)
27292 delete arg4;
27293 }
27294 return NULL;
27295 }
27296
27297
27298 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) {
27299 PyObject *resultobj;
27300 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27301 wxTreeItemId *arg2 = 0 ;
27302 size_t arg3 ;
27303 wxString *arg4 = 0 ;
27304 int arg5 = (int) -1 ;
27305 int arg6 = (int) -1 ;
27306 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27307 wxTreeItemId result;
27308 bool temp4 = False ;
27309 PyObject * obj0 = 0 ;
27310 PyObject * obj1 = 0 ;
27311 PyObject * obj2 = 0 ;
27312 PyObject * obj3 = 0 ;
27313 PyObject * obj4 = 0 ;
27314 PyObject * obj5 = 0 ;
27315 PyObject * obj6 = 0 ;
27316 char *kwnames[] = {
27317 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27318 };
27319
27320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27323 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27324 SWIG_POINTER_EXCEPTION | 0)) == -1)
27325 SWIG_fail;
27326 if (arg2 == NULL) {
27327 PyErr_SetString(PyExc_TypeError,"null reference");
27328 SWIG_fail;
27329 }
27330 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
27331 if (PyErr_Occurred()) SWIG_fail;
27332 {
27333 arg4 = wxString_in_helper(obj3);
27334 if (arg4 == NULL) SWIG_fail;
27335 temp4 = True;
27336 }
27337 if (obj4) {
27338 arg5 = (int)SWIG_As_int(obj4);
27339 if (PyErr_Occurred()) SWIG_fail;
27340 }
27341 if (obj5) {
27342 arg6 = (int)SWIG_As_int(obj5);
27343 if (PyErr_Occurred()) SWIG_fail;
27344 }
27345 if (obj6) {
27346 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27348 }
27349 {
27350 PyThreadState* __tstate = wxPyBeginAllowThreads();
27351 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27352
27353 wxPyEndAllowThreads(__tstate);
27354 if (PyErr_Occurred()) SWIG_fail;
27355 }
27356 {
27357 wxTreeItemId * resultptr;
27358 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27359 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27360 }
27361 {
27362 if (temp4)
27363 delete arg4;
27364 }
27365 return resultobj;
27366 fail:
27367 {
27368 if (temp4)
27369 delete arg4;
27370 }
27371 return NULL;
27372 }
27373
27374
27375 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
27376 PyObject *resultobj;
27377 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27378 wxTreeItemId *arg2 = 0 ;
27379 wxString *arg3 = 0 ;
27380 int arg4 = (int) -1 ;
27381 int arg5 = (int) -1 ;
27382 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27383 wxTreeItemId result;
27384 bool temp3 = False ;
27385 PyObject * obj0 = 0 ;
27386 PyObject * obj1 = 0 ;
27387 PyObject * obj2 = 0 ;
27388 PyObject * obj3 = 0 ;
27389 PyObject * obj4 = 0 ;
27390 PyObject * obj5 = 0 ;
27391 char *kwnames[] = {
27392 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27393 };
27394
27395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27398 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27399 SWIG_POINTER_EXCEPTION | 0)) == -1)
27400 SWIG_fail;
27401 if (arg2 == NULL) {
27402 PyErr_SetString(PyExc_TypeError,"null reference");
27403 SWIG_fail;
27404 }
27405 {
27406 arg3 = wxString_in_helper(obj2);
27407 if (arg3 == NULL) SWIG_fail;
27408 temp3 = True;
27409 }
27410 if (obj3) {
27411 arg4 = (int)SWIG_As_int(obj3);
27412 if (PyErr_Occurred()) SWIG_fail;
27413 }
27414 if (obj4) {
27415 arg5 = (int)SWIG_As_int(obj4);
27416 if (PyErr_Occurred()) SWIG_fail;
27417 }
27418 if (obj5) {
27419 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27421 }
27422 {
27423 PyThreadState* __tstate = wxPyBeginAllowThreads();
27424 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27425
27426 wxPyEndAllowThreads(__tstate);
27427 if (PyErr_Occurred()) SWIG_fail;
27428 }
27429 {
27430 wxTreeItemId * resultptr;
27431 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27432 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27433 }
27434 {
27435 if (temp3)
27436 delete arg3;
27437 }
27438 return resultobj;
27439 fail:
27440 {
27441 if (temp3)
27442 delete arg3;
27443 }
27444 return NULL;
27445 }
27446
27447
27448 static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
27449 PyObject *resultobj;
27450 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27451 wxTreeItemId *arg2 = 0 ;
27452 PyObject * obj0 = 0 ;
27453 PyObject * obj1 = 0 ;
27454 char *kwnames[] = {
27455 (char *) "self",(char *) "item", NULL
27456 };
27457
27458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27462 SWIG_POINTER_EXCEPTION | 0)) == -1)
27463 SWIG_fail;
27464 if (arg2 == NULL) {
27465 PyErr_SetString(PyExc_TypeError,"null reference");
27466 SWIG_fail;
27467 }
27468 {
27469 PyThreadState* __tstate = wxPyBeginAllowThreads();
27470 (arg1)->Delete((wxTreeItemId const &)*arg2);
27471
27472 wxPyEndAllowThreads(__tstate);
27473 if (PyErr_Occurred()) SWIG_fail;
27474 }
27475 Py_INCREF(Py_None); resultobj = Py_None;
27476 return resultobj;
27477 fail:
27478 return NULL;
27479 }
27480
27481
27482 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27483 PyObject *resultobj;
27484 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27485 wxTreeItemId *arg2 = 0 ;
27486 PyObject * obj0 = 0 ;
27487 PyObject * obj1 = 0 ;
27488 char *kwnames[] = {
27489 (char *) "self",(char *) "item", NULL
27490 };
27491
27492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27495 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27496 SWIG_POINTER_EXCEPTION | 0)) == -1)
27497 SWIG_fail;
27498 if (arg2 == NULL) {
27499 PyErr_SetString(PyExc_TypeError,"null reference");
27500 SWIG_fail;
27501 }
27502 {
27503 PyThreadState* __tstate = wxPyBeginAllowThreads();
27504 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27505
27506 wxPyEndAllowThreads(__tstate);
27507 if (PyErr_Occurred()) SWIG_fail;
27508 }
27509 Py_INCREF(Py_None); resultobj = Py_None;
27510 return resultobj;
27511 fail:
27512 return NULL;
27513 }
27514
27515
27516 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
27517 PyObject *resultobj;
27518 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27519 PyObject * obj0 = 0 ;
27520 char *kwnames[] = {
27521 (char *) "self", NULL
27522 };
27523
27524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27527 {
27528 PyThreadState* __tstate = wxPyBeginAllowThreads();
27529 (arg1)->DeleteAllItems();
27530
27531 wxPyEndAllowThreads(__tstate);
27532 if (PyErr_Occurred()) SWIG_fail;
27533 }
27534 Py_INCREF(Py_None); resultobj = Py_None;
27535 return resultobj;
27536 fail:
27537 return NULL;
27538 }
27539
27540
27541 static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) {
27542 PyObject *resultobj;
27543 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27544 wxTreeItemId *arg2 = 0 ;
27545 PyObject * obj0 = 0 ;
27546 PyObject * obj1 = 0 ;
27547 char *kwnames[] = {
27548 (char *) "self",(char *) "item", NULL
27549 };
27550
27551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27554 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27555 SWIG_POINTER_EXCEPTION | 0)) == -1)
27556 SWIG_fail;
27557 if (arg2 == NULL) {
27558 PyErr_SetString(PyExc_TypeError,"null reference");
27559 SWIG_fail;
27560 }
27561 {
27562 PyThreadState* __tstate = wxPyBeginAllowThreads();
27563 (arg1)->Expand((wxTreeItemId const &)*arg2);
27564
27565 wxPyEndAllowThreads(__tstate);
27566 if (PyErr_Occurred()) SWIG_fail;
27567 }
27568 Py_INCREF(Py_None); resultobj = Py_None;
27569 return resultobj;
27570 fail:
27571 return NULL;
27572 }
27573
27574
27575 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) {
27576 PyObject *resultobj;
27577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27578 wxTreeItemId *arg2 = 0 ;
27579 PyObject * obj0 = 0 ;
27580 PyObject * obj1 = 0 ;
27581 char *kwnames[] = {
27582 (char *) "self",(char *) "item", NULL
27583 };
27584
27585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27588 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27589 SWIG_POINTER_EXCEPTION | 0)) == -1)
27590 SWIG_fail;
27591 if (arg2 == NULL) {
27592 PyErr_SetString(PyExc_TypeError,"null reference");
27593 SWIG_fail;
27594 }
27595 {
27596 PyThreadState* __tstate = wxPyBeginAllowThreads();
27597 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27598
27599 wxPyEndAllowThreads(__tstate);
27600 if (PyErr_Occurred()) SWIG_fail;
27601 }
27602 Py_INCREF(Py_None); resultobj = Py_None;
27603 return resultobj;
27604 fail:
27605 return NULL;
27606 }
27607
27608
27609 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) {
27610 PyObject *resultobj;
27611 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27612 wxTreeItemId *arg2 = 0 ;
27613 PyObject * obj0 = 0 ;
27614 PyObject * obj1 = 0 ;
27615 char *kwnames[] = {
27616 (char *) "self",(char *) "item", NULL
27617 };
27618
27619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27623 SWIG_POINTER_EXCEPTION | 0)) == -1)
27624 SWIG_fail;
27625 if (arg2 == NULL) {
27626 PyErr_SetString(PyExc_TypeError,"null reference");
27627 SWIG_fail;
27628 }
27629 {
27630 PyThreadState* __tstate = wxPyBeginAllowThreads();
27631 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27632
27633 wxPyEndAllowThreads(__tstate);
27634 if (PyErr_Occurred()) SWIG_fail;
27635 }
27636 Py_INCREF(Py_None); resultobj = Py_None;
27637 return resultobj;
27638 fail:
27639 return NULL;
27640 }
27641
27642
27643 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
27644 PyObject *resultobj;
27645 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27646 wxTreeItemId *arg2 = 0 ;
27647 PyObject * obj0 = 0 ;
27648 PyObject * obj1 = 0 ;
27649 char *kwnames[] = {
27650 (char *) "self",(char *) "item", NULL
27651 };
27652
27653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27656 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27657 SWIG_POINTER_EXCEPTION | 0)) == -1)
27658 SWIG_fail;
27659 if (arg2 == NULL) {
27660 PyErr_SetString(PyExc_TypeError,"null reference");
27661 SWIG_fail;
27662 }
27663 {
27664 PyThreadState* __tstate = wxPyBeginAllowThreads();
27665 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27666
27667 wxPyEndAllowThreads(__tstate);
27668 if (PyErr_Occurred()) SWIG_fail;
27669 }
27670 Py_INCREF(Py_None); resultobj = Py_None;
27671 return resultobj;
27672 fail:
27673 return NULL;
27674 }
27675
27676
27677 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) {
27678 PyObject *resultobj;
27679 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27680 PyObject * obj0 = 0 ;
27681 char *kwnames[] = {
27682 (char *) "self", NULL
27683 };
27684
27685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27688 {
27689 PyThreadState* __tstate = wxPyBeginAllowThreads();
27690 (arg1)->Unselect();
27691
27692 wxPyEndAllowThreads(__tstate);
27693 if (PyErr_Occurred()) SWIG_fail;
27694 }
27695 Py_INCREF(Py_None); resultobj = Py_None;
27696 return resultobj;
27697 fail:
27698 return NULL;
27699 }
27700
27701
27702 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) {
27703 PyObject *resultobj;
27704 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27705 wxTreeItemId *arg2 = 0 ;
27706 PyObject * obj0 = 0 ;
27707 PyObject * obj1 = 0 ;
27708 char *kwnames[] = {
27709 (char *) "self",(char *) "item", NULL
27710 };
27711
27712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27716 SWIG_POINTER_EXCEPTION | 0)) == -1)
27717 SWIG_fail;
27718 if (arg2 == NULL) {
27719 PyErr_SetString(PyExc_TypeError,"null reference");
27720 SWIG_fail;
27721 }
27722 {
27723 PyThreadState* __tstate = wxPyBeginAllowThreads();
27724 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27725
27726 wxPyEndAllowThreads(__tstate);
27727 if (PyErr_Occurred()) SWIG_fail;
27728 }
27729 Py_INCREF(Py_None); resultobj = Py_None;
27730 return resultobj;
27731 fail:
27732 return NULL;
27733 }
27734
27735
27736 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
27737 PyObject *resultobj;
27738 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27739 PyObject * obj0 = 0 ;
27740 char *kwnames[] = {
27741 (char *) "self", NULL
27742 };
27743
27744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27747 {
27748 PyThreadState* __tstate = wxPyBeginAllowThreads();
27749 (arg1)->UnselectAll();
27750
27751 wxPyEndAllowThreads(__tstate);
27752 if (PyErr_Occurred()) SWIG_fail;
27753 }
27754 Py_INCREF(Py_None); resultobj = Py_None;
27755 return resultobj;
27756 fail:
27757 return NULL;
27758 }
27759
27760
27761 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) {
27762 PyObject *resultobj;
27763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27764 wxTreeItemId *arg2 = 0 ;
27765 bool arg3 = (bool) True ;
27766 PyObject * obj0 = 0 ;
27767 PyObject * obj1 = 0 ;
27768 PyObject * obj2 = 0 ;
27769 char *kwnames[] = {
27770 (char *) "self",(char *) "item",(char *) "select", NULL
27771 };
27772
27773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27776 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27777 SWIG_POINTER_EXCEPTION | 0)) == -1)
27778 SWIG_fail;
27779 if (arg2 == NULL) {
27780 PyErr_SetString(PyExc_TypeError,"null reference");
27781 SWIG_fail;
27782 }
27783 if (obj2) {
27784 arg3 = (bool)SWIG_As_bool(obj2);
27785 if (PyErr_Occurred()) SWIG_fail;
27786 }
27787 {
27788 PyThreadState* __tstate = wxPyBeginAllowThreads();
27789 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27790
27791 wxPyEndAllowThreads(__tstate);
27792 if (PyErr_Occurred()) SWIG_fail;
27793 }
27794 Py_INCREF(Py_None); resultobj = Py_None;
27795 return resultobj;
27796 fail:
27797 return NULL;
27798 }
27799
27800
27801 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) {
27802 PyObject *resultobj;
27803 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27804 wxTreeItemId *arg2 = 0 ;
27805 PyObject * obj0 = 0 ;
27806 PyObject * obj1 = 0 ;
27807 char *kwnames[] = {
27808 (char *) "self",(char *) "item", NULL
27809 };
27810
27811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27814 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27815 SWIG_POINTER_EXCEPTION | 0)) == -1)
27816 SWIG_fail;
27817 if (arg2 == NULL) {
27818 PyErr_SetString(PyExc_TypeError,"null reference");
27819 SWIG_fail;
27820 }
27821 {
27822 PyThreadState* __tstate = wxPyBeginAllowThreads();
27823 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27824
27825 wxPyEndAllowThreads(__tstate);
27826 if (PyErr_Occurred()) SWIG_fail;
27827 }
27828 Py_INCREF(Py_None); resultobj = Py_None;
27829 return resultobj;
27830 fail:
27831 return NULL;
27832 }
27833
27834
27835 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27836 PyObject *resultobj;
27837 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27838 wxTreeItemId *arg2 = 0 ;
27839 PyObject * obj0 = 0 ;
27840 PyObject * obj1 = 0 ;
27841 char *kwnames[] = {
27842 (char *) "self",(char *) "item", NULL
27843 };
27844
27845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27849 SWIG_POINTER_EXCEPTION | 0)) == -1)
27850 SWIG_fail;
27851 if (arg2 == NULL) {
27852 PyErr_SetString(PyExc_TypeError,"null reference");
27853 SWIG_fail;
27854 }
27855 {
27856 PyThreadState* __tstate = wxPyBeginAllowThreads();
27857 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27858
27859 wxPyEndAllowThreads(__tstate);
27860 if (PyErr_Occurred()) SWIG_fail;
27861 }
27862 Py_INCREF(Py_None); resultobj = Py_None;
27863 return resultobj;
27864 fail:
27865 return NULL;
27866 }
27867
27868
27869 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) {
27870 PyObject *resultobj;
27871 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27872 wxTreeItemId *arg2 = 0 ;
27873 PyObject * obj0 = 0 ;
27874 PyObject * obj1 = 0 ;
27875 char *kwnames[] = {
27876 (char *) "self",(char *) "item", NULL
27877 };
27878
27879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27882 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27883 SWIG_POINTER_EXCEPTION | 0)) == -1)
27884 SWIG_fail;
27885 if (arg2 == NULL) {
27886 PyErr_SetString(PyExc_TypeError,"null reference");
27887 SWIG_fail;
27888 }
27889 {
27890 PyThreadState* __tstate = wxPyBeginAllowThreads();
27891 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27892
27893 wxPyEndAllowThreads(__tstate);
27894 if (PyErr_Occurred()) SWIG_fail;
27895 }
27896 Py_INCREF(Py_None); resultobj = Py_None;
27897 return resultobj;
27898 fail:
27899 return NULL;
27900 }
27901
27902
27903 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
27904 PyObject *resultobj;
27905 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27906 wxTreeItemId *arg2 = 0 ;
27907 PyObject * obj0 = 0 ;
27908 PyObject * obj1 = 0 ;
27909 char *kwnames[] = {
27910 (char *) "self",(char *) "item", NULL
27911 };
27912
27913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27916 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27917 SWIG_POINTER_EXCEPTION | 0)) == -1)
27918 SWIG_fail;
27919 if (arg2 == NULL) {
27920 PyErr_SetString(PyExc_TypeError,"null reference");
27921 SWIG_fail;
27922 }
27923 {
27924 PyThreadState* __tstate = wxPyBeginAllowThreads();
27925 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27926
27927 wxPyEndAllowThreads(__tstate);
27928 if (PyErr_Occurred()) SWIG_fail;
27929 }
27930 Py_INCREF(Py_None); resultobj = Py_None;
27931 return resultobj;
27932 fail:
27933 return NULL;
27934 }
27935
27936
27937 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
27938 PyObject *resultobj;
27939 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27940 wxTextCtrl *result;
27941 PyObject * obj0 = 0 ;
27942 char *kwnames[] = {
27943 (char *) "self", NULL
27944 };
27945
27946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27949 {
27950 PyThreadState* __tstate = wxPyBeginAllowThreads();
27951 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27952
27953 wxPyEndAllowThreads(__tstate);
27954 if (PyErr_Occurred()) SWIG_fail;
27955 }
27956 {
27957 resultobj = wxPyMake_wxObject(result, 0);
27958 }
27959 return resultobj;
27960 fail:
27961 return NULL;
27962 }
27963
27964
27965 static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
27966 PyObject *resultobj;
27967 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27968 wxTreeItemId *arg2 = 0 ;
27969 bool arg3 = (bool) False ;
27970 PyObject * obj0 = 0 ;
27971 PyObject * obj1 = 0 ;
27972 PyObject * obj2 = 0 ;
27973 char *kwnames[] = {
27974 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
27975 };
27976
27977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
27978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27980 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27981 SWIG_POINTER_EXCEPTION | 0)) == -1)
27982 SWIG_fail;
27983 if (arg2 == NULL) {
27984 PyErr_SetString(PyExc_TypeError,"null reference");
27985 SWIG_fail;
27986 }
27987 if (obj2) {
27988 arg3 = (bool)SWIG_As_bool(obj2);
27989 if (PyErr_Occurred()) SWIG_fail;
27990 }
27991 {
27992 PyThreadState* __tstate = wxPyBeginAllowThreads();
27993 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
27994
27995 wxPyEndAllowThreads(__tstate);
27996 if (PyErr_Occurred()) SWIG_fail;
27997 }
27998 Py_INCREF(Py_None); resultobj = Py_None;
27999 return resultobj;
28000 fail:
28001 return NULL;
28002 }
28003
28004
28005 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) {
28006 PyObject *resultobj;
28007 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28008 wxTreeItemId *arg2 = 0 ;
28009 PyObject * obj0 = 0 ;
28010 PyObject * obj1 = 0 ;
28011 char *kwnames[] = {
28012 (char *) "self",(char *) "item", NULL
28013 };
28014
28015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
28016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28019 SWIG_POINTER_EXCEPTION | 0)) == -1)
28020 SWIG_fail;
28021 if (arg2 == NULL) {
28022 PyErr_SetString(PyExc_TypeError,"null reference");
28023 SWIG_fail;
28024 }
28025 {
28026 PyThreadState* __tstate = wxPyBeginAllowThreads();
28027 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
28028
28029 wxPyEndAllowThreads(__tstate);
28030 if (PyErr_Occurred()) SWIG_fail;
28031 }
28032 Py_INCREF(Py_None); resultobj = Py_None;
28033 return resultobj;
28034 fail:
28035 return NULL;
28036 }
28037
28038
28039 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
28040 PyObject *resultobj;
28041 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28042 wxPoint *arg2 = 0 ;
28043 int *arg3 = 0 ;
28044 wxTreeItemId result;
28045 wxPoint temp2 ;
28046 int temp3 ;
28047 int res3 = 0 ;
28048 PyObject * obj0 = 0 ;
28049 PyObject * obj1 = 0 ;
28050 char *kwnames[] = {
28051 (char *) "self",(char *) "point", NULL
28052 };
28053
28054 arg3 = &temp3; res3 = SWIG_NEWOBJ;
28055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
28056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28058 {
28059 arg2 = &temp2;
28060 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28061 }
28062 {
28063 PyThreadState* __tstate = wxPyBeginAllowThreads();
28064 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
28065
28066 wxPyEndAllowThreads(__tstate);
28067 if (PyErr_Occurred()) SWIG_fail;
28068 }
28069 {
28070 wxTreeItemId * resultptr;
28071 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28072 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28073 }
28074 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
28075 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
28076 return resultobj;
28077 fail:
28078 return NULL;
28079 }
28080
28081
28082 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) {
28083 PyObject *resultobj;
28084 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28085 wxTreeItemId *arg2 = 0 ;
28086 bool arg3 = (bool) False ;
28087 PyObject *result;
28088 PyObject * obj0 = 0 ;
28089 PyObject * obj1 = 0 ;
28090 PyObject * obj2 = 0 ;
28091 char *kwnames[] = {
28092 (char *) "self",(char *) "item",(char *) "textOnly", NULL
28093 };
28094
28095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
28096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28098 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28099 SWIG_POINTER_EXCEPTION | 0)) == -1)
28100 SWIG_fail;
28101 if (arg2 == NULL) {
28102 PyErr_SetString(PyExc_TypeError,"null reference");
28103 SWIG_fail;
28104 }
28105 if (obj2) {
28106 arg3 = (bool)SWIG_As_bool(obj2);
28107 if (PyErr_Occurred()) SWIG_fail;
28108 }
28109 {
28110 PyThreadState* __tstate = wxPyBeginAllowThreads();
28111 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
28112
28113 wxPyEndAllowThreads(__tstate);
28114 if (PyErr_Occurred()) SWIG_fail;
28115 }
28116 resultobj = result;
28117 return resultobj;
28118 fail:
28119 return NULL;
28120 }
28121
28122
28123 static PyObject *_wrap_TreeCtrl_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
28124 PyObject *resultobj;
28125 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28126 wxTreeItemId *arg2 = 0 ;
28127 int arg3 ;
28128 PyObject * obj0 = 0 ;
28129 PyObject * obj1 = 0 ;
28130 PyObject * obj2 = 0 ;
28131 char *kwnames[] = {
28132 (char *) "self",(char *) "node",(char *) "state", NULL
28133 };
28134
28135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) goto fail;
28136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28138 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28139 SWIG_POINTER_EXCEPTION | 0)) == -1)
28140 SWIG_fail;
28141 if (arg2 == NULL) {
28142 PyErr_SetString(PyExc_TypeError,"null reference");
28143 SWIG_fail;
28144 }
28145 arg3 = (int)SWIG_As_int(obj2);
28146 if (PyErr_Occurred()) SWIG_fail;
28147 {
28148 PyThreadState* __tstate = wxPyBeginAllowThreads();
28149 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
28150
28151 wxPyEndAllowThreads(__tstate);
28152 if (PyErr_Occurred()) SWIG_fail;
28153 }
28154 Py_INCREF(Py_None); resultobj = Py_None;
28155 return resultobj;
28156 fail:
28157 return NULL;
28158 }
28159
28160
28161 static PyObject *_wrap_TreeCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
28162 PyObject *resultobj;
28163 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28164 wxTreeItemId *arg2 = 0 ;
28165 int result;
28166 PyObject * obj0 = 0 ;
28167 PyObject * obj1 = 0 ;
28168 char *kwnames[] = {
28169 (char *) "self",(char *) "node", NULL
28170 };
28171
28172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) goto fail;
28173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28175 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28176 SWIG_POINTER_EXCEPTION | 0)) == -1)
28177 SWIG_fail;
28178 if (arg2 == NULL) {
28179 PyErr_SetString(PyExc_TypeError,"null reference");
28180 SWIG_fail;
28181 }
28182 {
28183 PyThreadState* __tstate = wxPyBeginAllowThreads();
28184 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
28185
28186 wxPyEndAllowThreads(__tstate);
28187 if (PyErr_Occurred()) SWIG_fail;
28188 }
28189 resultobj = SWIG_From_int((int)result);
28190 return resultobj;
28191 fail:
28192 return NULL;
28193 }
28194
28195
28196 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
28197 PyObject *resultobj;
28198 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
28199 wxVisualAttributes result;
28200 PyObject * obj0 = 0 ;
28201 char *kwnames[] = {
28202 (char *) "variant", NULL
28203 };
28204
28205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
28206 if (obj0) {
28207 arg1 = (int)SWIG_As_int(obj0);
28208 if (PyErr_Occurred()) SWIG_fail;
28209 }
28210 {
28211 if (!wxPyCheckForApp()) SWIG_fail;
28212 PyThreadState* __tstate = wxPyBeginAllowThreads();
28213 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
28214
28215 wxPyEndAllowThreads(__tstate);
28216 if (PyErr_Occurred()) SWIG_fail;
28217 }
28218 {
28219 wxVisualAttributes * resultptr;
28220 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
28221 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
28222 }
28223 return resultobj;
28224 fail:
28225 return NULL;
28226 }
28227
28228
28229 static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) {
28230 PyObject *obj;
28231 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28232 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
28233 Py_INCREF(obj);
28234 return Py_BuildValue((char *)"");
28235 }
28236 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
28237 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
28238 return 1;
28239 }
28240
28241
28242 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
28243 PyObject *pyobj;
28244
28245 {
28246 #if wxUSE_UNICODE
28247 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28248 #else
28249 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28250 #endif
28251 }
28252 return pyobj;
28253 }
28254
28255
28256 static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28257 PyObject *resultobj;
28258 wxWindow *arg1 = (wxWindow *) 0 ;
28259 int arg2 = (int) (int)-1 ;
28260 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
28261 wxString *arg3 = (wxString *) &arg3_defvalue ;
28262 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28263 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28264 wxSize const &arg5_defvalue = wxDefaultSize ;
28265 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28266 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28267 wxString const &arg7_defvalue = wxPyEmptyString ;
28268 wxString *arg7 = (wxString *) &arg7_defvalue ;
28269 int arg8 = (int) 0 ;
28270 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
28271 wxString *arg9 = (wxString *) &arg9_defvalue ;
28272 wxGenericDirCtrl *result;
28273 bool temp3 = False ;
28274 wxPoint temp4 ;
28275 wxSize temp5 ;
28276 bool temp7 = False ;
28277 bool temp9 = False ;
28278 PyObject * obj0 = 0 ;
28279 PyObject * obj1 = 0 ;
28280 PyObject * obj2 = 0 ;
28281 PyObject * obj3 = 0 ;
28282 PyObject * obj4 = 0 ;
28283 PyObject * obj5 = 0 ;
28284 PyObject * obj6 = 0 ;
28285 PyObject * obj7 = 0 ;
28286 PyObject * obj8 = 0 ;
28287 char *kwnames[] = {
28288 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28289 };
28290
28291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
28292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28294 if (obj1) {
28295 arg2 = (int)SWIG_As_int(obj1);
28296 if (PyErr_Occurred()) SWIG_fail;
28297 }
28298 if (obj2) {
28299 {
28300 arg3 = wxString_in_helper(obj2);
28301 if (arg3 == NULL) SWIG_fail;
28302 temp3 = True;
28303 }
28304 }
28305 if (obj3) {
28306 {
28307 arg4 = &temp4;
28308 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28309 }
28310 }
28311 if (obj4) {
28312 {
28313 arg5 = &temp5;
28314 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28315 }
28316 }
28317 if (obj5) {
28318 arg6 = (long)SWIG_As_long(obj5);
28319 if (PyErr_Occurred()) SWIG_fail;
28320 }
28321 if (obj6) {
28322 {
28323 arg7 = wxString_in_helper(obj6);
28324 if (arg7 == NULL) SWIG_fail;
28325 temp7 = True;
28326 }
28327 }
28328 if (obj7) {
28329 arg8 = (int)SWIG_As_int(obj7);
28330 if (PyErr_Occurred()) SWIG_fail;
28331 }
28332 if (obj8) {
28333 {
28334 arg9 = wxString_in_helper(obj8);
28335 if (arg9 == NULL) SWIG_fail;
28336 temp9 = True;
28337 }
28338 }
28339 {
28340 if (!wxPyCheckForApp()) SWIG_fail;
28341 PyThreadState* __tstate = wxPyBeginAllowThreads();
28342 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
28343
28344 wxPyEndAllowThreads(__tstate);
28345 if (PyErr_Occurred()) SWIG_fail;
28346 }
28347 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28348 {
28349 if (temp3)
28350 delete arg3;
28351 }
28352 {
28353 if (temp7)
28354 delete arg7;
28355 }
28356 {
28357 if (temp9)
28358 delete arg9;
28359 }
28360 return resultobj;
28361 fail:
28362 {
28363 if (temp3)
28364 delete arg3;
28365 }
28366 {
28367 if (temp7)
28368 delete arg7;
28369 }
28370 {
28371 if (temp9)
28372 delete arg9;
28373 }
28374 return NULL;
28375 }
28376
28377
28378 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28379 PyObject *resultobj;
28380 wxGenericDirCtrl *result;
28381 char *kwnames[] = {
28382 NULL
28383 };
28384
28385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
28386 {
28387 if (!wxPyCheckForApp()) SWIG_fail;
28388 PyThreadState* __tstate = wxPyBeginAllowThreads();
28389 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
28390
28391 wxPyEndAllowThreads(__tstate);
28392 if (PyErr_Occurred()) SWIG_fail;
28393 }
28394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28395 return resultobj;
28396 fail:
28397 return NULL;
28398 }
28399
28400
28401 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28402 PyObject *resultobj;
28403 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28404 wxWindow *arg2 = (wxWindow *) 0 ;
28405 int arg3 = (int) (int)-1 ;
28406 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28407 wxString *arg4 = (wxString *) &arg4_defvalue ;
28408 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28409 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28410 wxSize const &arg6_defvalue = wxDefaultSize ;
28411 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28412 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28413 wxString const &arg8_defvalue = wxPyEmptyString ;
28414 wxString *arg8 = (wxString *) &arg8_defvalue ;
28415 int arg9 = (int) 0 ;
28416 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28417 wxString *arg10 = (wxString *) &arg10_defvalue ;
28418 bool result;
28419 bool temp4 = False ;
28420 wxPoint temp5 ;
28421 wxSize temp6 ;
28422 bool temp8 = False ;
28423 bool temp10 = False ;
28424 PyObject * obj0 = 0 ;
28425 PyObject * obj1 = 0 ;
28426 PyObject * obj2 = 0 ;
28427 PyObject * obj3 = 0 ;
28428 PyObject * obj4 = 0 ;
28429 PyObject * obj5 = 0 ;
28430 PyObject * obj6 = 0 ;
28431 PyObject * obj7 = 0 ;
28432 PyObject * obj8 = 0 ;
28433 PyObject * obj9 = 0 ;
28434 char *kwnames[] = {
28435 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28436 };
28437
28438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28441 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28443 if (obj2) {
28444 arg3 = (int)SWIG_As_int(obj2);
28445 if (PyErr_Occurred()) SWIG_fail;
28446 }
28447 if (obj3) {
28448 {
28449 arg4 = wxString_in_helper(obj3);
28450 if (arg4 == NULL) SWIG_fail;
28451 temp4 = True;
28452 }
28453 }
28454 if (obj4) {
28455 {
28456 arg5 = &temp5;
28457 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28458 }
28459 }
28460 if (obj5) {
28461 {
28462 arg6 = &temp6;
28463 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28464 }
28465 }
28466 if (obj6) {
28467 arg7 = (long)SWIG_As_long(obj6);
28468 if (PyErr_Occurred()) SWIG_fail;
28469 }
28470 if (obj7) {
28471 {
28472 arg8 = wxString_in_helper(obj7);
28473 if (arg8 == NULL) SWIG_fail;
28474 temp8 = True;
28475 }
28476 }
28477 if (obj8) {
28478 arg9 = (int)SWIG_As_int(obj8);
28479 if (PyErr_Occurred()) SWIG_fail;
28480 }
28481 if (obj9) {
28482 {
28483 arg10 = wxString_in_helper(obj9);
28484 if (arg10 == NULL) SWIG_fail;
28485 temp10 = True;
28486 }
28487 }
28488 {
28489 PyThreadState* __tstate = wxPyBeginAllowThreads();
28490 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28491
28492 wxPyEndAllowThreads(__tstate);
28493 if (PyErr_Occurred()) SWIG_fail;
28494 }
28495 {
28496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28497 }
28498 {
28499 if (temp4)
28500 delete arg4;
28501 }
28502 {
28503 if (temp8)
28504 delete arg8;
28505 }
28506 {
28507 if (temp10)
28508 delete arg10;
28509 }
28510 return resultobj;
28511 fail:
28512 {
28513 if (temp4)
28514 delete arg4;
28515 }
28516 {
28517 if (temp8)
28518 delete arg8;
28519 }
28520 {
28521 if (temp10)
28522 delete arg10;
28523 }
28524 return NULL;
28525 }
28526
28527
28528 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) {
28529 PyObject *resultobj;
28530 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28531 wxString *arg2 = 0 ;
28532 bool result;
28533 bool temp2 = False ;
28534 PyObject * obj0 = 0 ;
28535 PyObject * obj1 = 0 ;
28536 char *kwnames[] = {
28537 (char *) "self",(char *) "path", NULL
28538 };
28539
28540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28543 {
28544 arg2 = wxString_in_helper(obj1);
28545 if (arg2 == NULL) SWIG_fail;
28546 temp2 = True;
28547 }
28548 {
28549 PyThreadState* __tstate = wxPyBeginAllowThreads();
28550 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28551
28552 wxPyEndAllowThreads(__tstate);
28553 if (PyErr_Occurred()) SWIG_fail;
28554 }
28555 {
28556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28557 }
28558 {
28559 if (temp2)
28560 delete arg2;
28561 }
28562 return resultobj;
28563 fail:
28564 {
28565 if (temp2)
28566 delete arg2;
28567 }
28568 return NULL;
28569 }
28570
28571
28572 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28573 PyObject *resultobj;
28574 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28575 wxString result;
28576 PyObject * obj0 = 0 ;
28577 char *kwnames[] = {
28578 (char *) "self", NULL
28579 };
28580
28581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28584 {
28585 PyThreadState* __tstate = wxPyBeginAllowThreads();
28586 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28587
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 {
28592 #if wxUSE_UNICODE
28593 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28594 #else
28595 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28596 #endif
28597 }
28598 return resultobj;
28599 fail:
28600 return NULL;
28601 }
28602
28603
28604 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28605 PyObject *resultobj;
28606 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28607 wxString *arg2 = 0 ;
28608 bool temp2 = False ;
28609 PyObject * obj0 = 0 ;
28610 PyObject * obj1 = 0 ;
28611 char *kwnames[] = {
28612 (char *) "self",(char *) "path", NULL
28613 };
28614
28615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28618 {
28619 arg2 = wxString_in_helper(obj1);
28620 if (arg2 == NULL) SWIG_fail;
28621 temp2 = True;
28622 }
28623 {
28624 PyThreadState* __tstate = wxPyBeginAllowThreads();
28625 (arg1)->SetDefaultPath((wxString const &)*arg2);
28626
28627 wxPyEndAllowThreads(__tstate);
28628 if (PyErr_Occurred()) SWIG_fail;
28629 }
28630 Py_INCREF(Py_None); resultobj = Py_None;
28631 {
28632 if (temp2)
28633 delete arg2;
28634 }
28635 return resultobj;
28636 fail:
28637 {
28638 if (temp2)
28639 delete arg2;
28640 }
28641 return NULL;
28642 }
28643
28644
28645 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28646 PyObject *resultobj;
28647 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28648 wxString result;
28649 PyObject * obj0 = 0 ;
28650 char *kwnames[] = {
28651 (char *) "self", NULL
28652 };
28653
28654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28657 {
28658 PyThreadState* __tstate = wxPyBeginAllowThreads();
28659 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28660
28661 wxPyEndAllowThreads(__tstate);
28662 if (PyErr_Occurred()) SWIG_fail;
28663 }
28664 {
28665 #if wxUSE_UNICODE
28666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28667 #else
28668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28669 #endif
28670 }
28671 return resultobj;
28672 fail:
28673 return NULL;
28674 }
28675
28676
28677 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) {
28678 PyObject *resultobj;
28679 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28680 wxString result;
28681 PyObject * obj0 = 0 ;
28682 char *kwnames[] = {
28683 (char *) "self", NULL
28684 };
28685
28686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28689 {
28690 PyThreadState* __tstate = wxPyBeginAllowThreads();
28691 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28692
28693 wxPyEndAllowThreads(__tstate);
28694 if (PyErr_Occurred()) SWIG_fail;
28695 }
28696 {
28697 #if wxUSE_UNICODE
28698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28699 #else
28700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28701 #endif
28702 }
28703 return resultobj;
28704 fail:
28705 return NULL;
28706 }
28707
28708
28709 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28710 PyObject *resultobj;
28711 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28712 wxString *arg2 = 0 ;
28713 bool temp2 = False ;
28714 PyObject * obj0 = 0 ;
28715 PyObject * obj1 = 0 ;
28716 char *kwnames[] = {
28717 (char *) "self",(char *) "path", NULL
28718 };
28719
28720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28723 {
28724 arg2 = wxString_in_helper(obj1);
28725 if (arg2 == NULL) SWIG_fail;
28726 temp2 = True;
28727 }
28728 {
28729 PyThreadState* __tstate = wxPyBeginAllowThreads();
28730 (arg1)->SetPath((wxString const &)*arg2);
28731
28732 wxPyEndAllowThreads(__tstate);
28733 if (PyErr_Occurred()) SWIG_fail;
28734 }
28735 Py_INCREF(Py_None); resultobj = Py_None;
28736 {
28737 if (temp2)
28738 delete arg2;
28739 }
28740 return resultobj;
28741 fail:
28742 {
28743 if (temp2)
28744 delete arg2;
28745 }
28746 return NULL;
28747 }
28748
28749
28750 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
28751 PyObject *resultobj;
28752 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28753 bool arg2 ;
28754 PyObject * obj0 = 0 ;
28755 PyObject * obj1 = 0 ;
28756 char *kwnames[] = {
28757 (char *) "self",(char *) "show", NULL
28758 };
28759
28760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28763 arg2 = (bool)SWIG_As_bool(obj1);
28764 if (PyErr_Occurred()) SWIG_fail;
28765 {
28766 PyThreadState* __tstate = wxPyBeginAllowThreads();
28767 (arg1)->ShowHidden(arg2);
28768
28769 wxPyEndAllowThreads(__tstate);
28770 if (PyErr_Occurred()) SWIG_fail;
28771 }
28772 Py_INCREF(Py_None); resultobj = Py_None;
28773 return resultobj;
28774 fail:
28775 return NULL;
28776 }
28777
28778
28779 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
28780 PyObject *resultobj;
28781 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28782 bool result;
28783 PyObject * obj0 = 0 ;
28784 char *kwnames[] = {
28785 (char *) "self", NULL
28786 };
28787
28788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28791 {
28792 PyThreadState* __tstate = wxPyBeginAllowThreads();
28793 result = (bool)(arg1)->GetShowHidden();
28794
28795 wxPyEndAllowThreads(__tstate);
28796 if (PyErr_Occurred()) SWIG_fail;
28797 }
28798 {
28799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28800 }
28801 return resultobj;
28802 fail:
28803 return NULL;
28804 }
28805
28806
28807 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
28808 PyObject *resultobj;
28809 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28810 wxString result;
28811 PyObject * obj0 = 0 ;
28812 char *kwnames[] = {
28813 (char *) "self", NULL
28814 };
28815
28816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28819 {
28820 PyThreadState* __tstate = wxPyBeginAllowThreads();
28821 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28822
28823 wxPyEndAllowThreads(__tstate);
28824 if (PyErr_Occurred()) SWIG_fail;
28825 }
28826 {
28827 #if wxUSE_UNICODE
28828 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28829 #else
28830 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28831 #endif
28832 }
28833 return resultobj;
28834 fail:
28835 return NULL;
28836 }
28837
28838
28839 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
28840 PyObject *resultobj;
28841 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28842 wxString *arg2 = 0 ;
28843 bool temp2 = False ;
28844 PyObject * obj0 = 0 ;
28845 PyObject * obj1 = 0 ;
28846 char *kwnames[] = {
28847 (char *) "self",(char *) "filter", NULL
28848 };
28849
28850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28853 {
28854 arg2 = wxString_in_helper(obj1);
28855 if (arg2 == NULL) SWIG_fail;
28856 temp2 = True;
28857 }
28858 {
28859 PyThreadState* __tstate = wxPyBeginAllowThreads();
28860 (arg1)->SetFilter((wxString const &)*arg2);
28861
28862 wxPyEndAllowThreads(__tstate);
28863 if (PyErr_Occurred()) SWIG_fail;
28864 }
28865 Py_INCREF(Py_None); resultobj = Py_None;
28866 {
28867 if (temp2)
28868 delete arg2;
28869 }
28870 return resultobj;
28871 fail:
28872 {
28873 if (temp2)
28874 delete arg2;
28875 }
28876 return NULL;
28877 }
28878
28879
28880 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
28881 PyObject *resultobj;
28882 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28883 int result;
28884 PyObject * obj0 = 0 ;
28885 char *kwnames[] = {
28886 (char *) "self", NULL
28887 };
28888
28889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28892 {
28893 PyThreadState* __tstate = wxPyBeginAllowThreads();
28894 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28895
28896 wxPyEndAllowThreads(__tstate);
28897 if (PyErr_Occurred()) SWIG_fail;
28898 }
28899 resultobj = SWIG_From_int((int)result);
28900 return resultobj;
28901 fail:
28902 return NULL;
28903 }
28904
28905
28906 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
28907 PyObject *resultobj;
28908 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28909 int arg2 ;
28910 PyObject * obj0 = 0 ;
28911 PyObject * obj1 = 0 ;
28912 char *kwnames[] = {
28913 (char *) "self",(char *) "n", NULL
28914 };
28915
28916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28919 arg2 = (int)SWIG_As_int(obj1);
28920 if (PyErr_Occurred()) SWIG_fail;
28921 {
28922 PyThreadState* __tstate = wxPyBeginAllowThreads();
28923 (arg1)->SetFilterIndex(arg2);
28924
28925 wxPyEndAllowThreads(__tstate);
28926 if (PyErr_Occurred()) SWIG_fail;
28927 }
28928 Py_INCREF(Py_None); resultobj = Py_None;
28929 return resultobj;
28930 fail:
28931 return NULL;
28932 }
28933
28934
28935 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) {
28936 PyObject *resultobj;
28937 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28938 wxTreeItemId result;
28939 PyObject * obj0 = 0 ;
28940 char *kwnames[] = {
28941 (char *) "self", NULL
28942 };
28943
28944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28947 {
28948 PyThreadState* __tstate = wxPyBeginAllowThreads();
28949 result = (arg1)->GetRootId();
28950
28951 wxPyEndAllowThreads(__tstate);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 {
28955 wxTreeItemId * resultptr;
28956 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28957 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28958 }
28959 return resultobj;
28960 fail:
28961 return NULL;
28962 }
28963
28964
28965 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28966 PyObject *resultobj;
28967 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28968 wxPyTreeCtrl *result;
28969 PyObject * obj0 = 0 ;
28970 char *kwnames[] = {
28971 (char *) "self", NULL
28972 };
28973
28974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
28975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28977 {
28978 PyThreadState* __tstate = wxPyBeginAllowThreads();
28979 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
28980
28981 wxPyEndAllowThreads(__tstate);
28982 if (PyErr_Occurred()) SWIG_fail;
28983 }
28984 {
28985 resultobj = wxPyMake_wxObject(result, 0);
28986 }
28987 return resultobj;
28988 fail:
28989 return NULL;
28990 }
28991
28992
28993 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28994 PyObject *resultobj;
28995 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28996 wxDirFilterListCtrl *result;
28997 PyObject * obj0 = 0 ;
28998 char *kwnames[] = {
28999 (char *) "self", NULL
29000 };
29001
29002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
29003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29005 {
29006 PyThreadState* __tstate = wxPyBeginAllowThreads();
29007 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
29008
29009 wxPyEndAllowThreads(__tstate);
29010 if (PyErr_Occurred()) SWIG_fail;
29011 }
29012 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
29013 return resultobj;
29014 fail:
29015 return NULL;
29016 }
29017
29018
29019 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) {
29020 PyObject *resultobj;
29021 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29022 wxTreeItemId arg2 ;
29023 wxString *arg3 = 0 ;
29024 bool *arg4 = 0 ;
29025 wxTreeItemId result;
29026 wxTreeItemId *argp2 ;
29027 bool temp3 = False ;
29028 bool temp4 ;
29029 int res4 = 0 ;
29030 PyObject * obj0 = 0 ;
29031 PyObject * obj1 = 0 ;
29032 PyObject * obj2 = 0 ;
29033 char *kwnames[] = {
29034 (char *) "self",(char *) "parentId",(char *) "path", NULL
29035 };
29036
29037 arg4 = &temp4; res4 = SWIG_NEWOBJ;
29038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
29039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29041 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
29042 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
29043 arg2 = *argp2;
29044 {
29045 arg3 = wxString_in_helper(obj2);
29046 if (arg3 == NULL) SWIG_fail;
29047 temp3 = True;
29048 }
29049 {
29050 PyThreadState* __tstate = wxPyBeginAllowThreads();
29051 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
29052
29053 wxPyEndAllowThreads(__tstate);
29054 if (PyErr_Occurred()) SWIG_fail;
29055 }
29056 {
29057 wxTreeItemId * resultptr;
29058 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29059 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29060 }
29061 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
29062 SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0)));
29063 {
29064 if (temp3)
29065 delete arg3;
29066 }
29067 return resultobj;
29068 fail:
29069 {
29070 if (temp3)
29071 delete arg3;
29072 }
29073 return NULL;
29074 }
29075
29076
29077 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) {
29078 PyObject *resultobj;
29079 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29080 PyObject * obj0 = 0 ;
29081 char *kwnames[] = {
29082 (char *) "self", NULL
29083 };
29084
29085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
29086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29088 {
29089 PyThreadState* __tstate = wxPyBeginAllowThreads();
29090 (arg1)->DoResize();
29091
29092 wxPyEndAllowThreads(__tstate);
29093 if (PyErr_Occurred()) SWIG_fail;
29094 }
29095 Py_INCREF(Py_None); resultobj = Py_None;
29096 return resultobj;
29097 fail:
29098 return NULL;
29099 }
29100
29101
29102 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) {
29103 PyObject *resultobj;
29104 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29105 PyObject * obj0 = 0 ;
29106 char *kwnames[] = {
29107 (char *) "self", NULL
29108 };
29109
29110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
29111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29113 {
29114 PyThreadState* __tstate = wxPyBeginAllowThreads();
29115 (arg1)->ReCreateTree();
29116
29117 wxPyEndAllowThreads(__tstate);
29118 if (PyErr_Occurred()) SWIG_fail;
29119 }
29120 Py_INCREF(Py_None); resultobj = Py_None;
29121 return resultobj;
29122 fail:
29123 return NULL;
29124 }
29125
29126
29127 static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) {
29128 PyObject *obj;
29129 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29130 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
29131 Py_INCREF(obj);
29132 return Py_BuildValue((char *)"");
29133 }
29134 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29135 PyObject *resultobj;
29136 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29137 int arg2 = (int) (int)-1 ;
29138 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29139 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29140 wxSize const &arg4_defvalue = wxDefaultSize ;
29141 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29142 long arg5 = (long) 0 ;
29143 wxDirFilterListCtrl *result;
29144 wxPoint temp3 ;
29145 wxSize temp4 ;
29146 PyObject * obj0 = 0 ;
29147 PyObject * obj1 = 0 ;
29148 PyObject * obj2 = 0 ;
29149 PyObject * obj3 = 0 ;
29150 PyObject * obj4 = 0 ;
29151 char *kwnames[] = {
29152 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29153 };
29154
29155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29158 if (obj1) {
29159 arg2 = (int)SWIG_As_int(obj1);
29160 if (PyErr_Occurred()) SWIG_fail;
29161 }
29162 if (obj2) {
29163 {
29164 arg3 = &temp3;
29165 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29166 }
29167 }
29168 if (obj3) {
29169 {
29170 arg4 = &temp4;
29171 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29172 }
29173 }
29174 if (obj4) {
29175 arg5 = (long)SWIG_As_long(obj4);
29176 if (PyErr_Occurred()) SWIG_fail;
29177 }
29178 {
29179 if (!wxPyCheckForApp()) SWIG_fail;
29180 PyThreadState* __tstate = wxPyBeginAllowThreads();
29181 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
29182
29183 wxPyEndAllowThreads(__tstate);
29184 if (PyErr_Occurred()) SWIG_fail;
29185 }
29186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29187 return resultobj;
29188 fail:
29189 return NULL;
29190 }
29191
29192
29193 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29194 PyObject *resultobj;
29195 wxDirFilterListCtrl *result;
29196 char *kwnames[] = {
29197 NULL
29198 };
29199
29200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
29201 {
29202 if (!wxPyCheckForApp()) SWIG_fail;
29203 PyThreadState* __tstate = wxPyBeginAllowThreads();
29204 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
29205
29206 wxPyEndAllowThreads(__tstate);
29207 if (PyErr_Occurred()) SWIG_fail;
29208 }
29209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29210 return resultobj;
29211 fail:
29212 return NULL;
29213 }
29214
29215
29216 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
29217 PyObject *resultobj;
29218 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29219 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
29220 int arg3 = (int) (int)-1 ;
29221 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29222 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29223 wxSize const &arg5_defvalue = wxDefaultSize ;
29224 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29225 long arg6 = (long) 0 ;
29226 bool result;
29227 wxPoint temp4 ;
29228 wxSize temp5 ;
29229 PyObject * obj0 = 0 ;
29230 PyObject * obj1 = 0 ;
29231 PyObject * obj2 = 0 ;
29232 PyObject * obj3 = 0 ;
29233 PyObject * obj4 = 0 ;
29234 PyObject * obj5 = 0 ;
29235 char *kwnames[] = {
29236 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29237 };
29238
29239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29242 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
29243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29244 if (obj2) {
29245 arg3 = (int)SWIG_As_int(obj2);
29246 if (PyErr_Occurred()) SWIG_fail;
29247 }
29248 if (obj3) {
29249 {
29250 arg4 = &temp4;
29251 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29252 }
29253 }
29254 if (obj4) {
29255 {
29256 arg5 = &temp5;
29257 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29258 }
29259 }
29260 if (obj5) {
29261 arg6 = (long)SWIG_As_long(obj5);
29262 if (PyErr_Occurred()) SWIG_fail;
29263 }
29264 {
29265 PyThreadState* __tstate = wxPyBeginAllowThreads();
29266 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
29267
29268 wxPyEndAllowThreads(__tstate);
29269 if (PyErr_Occurred()) SWIG_fail;
29270 }
29271 {
29272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29273 }
29274 return resultobj;
29275 fail:
29276 return NULL;
29277 }
29278
29279
29280 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) {
29281 PyObject *resultobj;
29282 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29283 wxString *arg2 = 0 ;
29284 int arg3 ;
29285 bool temp2 = False ;
29286 PyObject * obj0 = 0 ;
29287 PyObject * obj1 = 0 ;
29288 PyObject * obj2 = 0 ;
29289 char *kwnames[] = {
29290 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
29291 };
29292
29293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
29294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29296 {
29297 arg2 = wxString_in_helper(obj1);
29298 if (arg2 == NULL) SWIG_fail;
29299 temp2 = True;
29300 }
29301 arg3 = (int)SWIG_As_int(obj2);
29302 if (PyErr_Occurred()) SWIG_fail;
29303 {
29304 PyThreadState* __tstate = wxPyBeginAllowThreads();
29305 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
29306
29307 wxPyEndAllowThreads(__tstate);
29308 if (PyErr_Occurred()) SWIG_fail;
29309 }
29310 Py_INCREF(Py_None); resultobj = Py_None;
29311 {
29312 if (temp2)
29313 delete arg2;
29314 }
29315 return resultobj;
29316 fail:
29317 {
29318 if (temp2)
29319 delete arg2;
29320 }
29321 return NULL;
29322 }
29323
29324
29325 static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) {
29326 PyObject *obj;
29327 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29328 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
29329 Py_INCREF(obj);
29330 return Py_BuildValue((char *)"");
29331 }
29332 static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29333 PyObject *resultobj;
29334 wxWindow *arg1 = (wxWindow *) 0 ;
29335 int arg2 = (int) (int)-1 ;
29336 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29337 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29338 wxSize const &arg4_defvalue = wxDefaultSize ;
29339 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29340 long arg5 = (long) 0 ;
29341 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29342 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29343 wxString const &arg7_defvalue = wxPyControlNameStr ;
29344 wxString *arg7 = (wxString *) &arg7_defvalue ;
29345 wxPyControl *result;
29346 wxPoint temp3 ;
29347 wxSize temp4 ;
29348 bool temp7 = False ;
29349 PyObject * obj0 = 0 ;
29350 PyObject * obj1 = 0 ;
29351 PyObject * obj2 = 0 ;
29352 PyObject * obj3 = 0 ;
29353 PyObject * obj4 = 0 ;
29354 PyObject * obj5 = 0 ;
29355 PyObject * obj6 = 0 ;
29356 char *kwnames[] = {
29357 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29358 };
29359
29360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
29361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29363 if (obj1) {
29364 arg2 = (int)SWIG_As_int(obj1);
29365 if (PyErr_Occurred()) SWIG_fail;
29366 }
29367 if (obj2) {
29368 {
29369 arg3 = &temp3;
29370 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29371 }
29372 }
29373 if (obj3) {
29374 {
29375 arg4 = &temp4;
29376 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29377 }
29378 }
29379 if (obj4) {
29380 arg5 = (long)SWIG_As_long(obj4);
29381 if (PyErr_Occurred()) SWIG_fail;
29382 }
29383 if (obj5) {
29384 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
29385 SWIG_POINTER_EXCEPTION | 0)) == -1)
29386 SWIG_fail;
29387 if (arg6 == NULL) {
29388 PyErr_SetString(PyExc_TypeError,"null reference");
29389 SWIG_fail;
29390 }
29391 }
29392 if (obj6) {
29393 {
29394 arg7 = wxString_in_helper(obj6);
29395 if (arg7 == NULL) SWIG_fail;
29396 temp7 = True;
29397 }
29398 }
29399 {
29400 if (!wxPyCheckForApp()) SWIG_fail;
29401 PyThreadState* __tstate = wxPyBeginAllowThreads();
29402 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29403
29404 wxPyEndAllowThreads(__tstate);
29405 if (PyErr_Occurred()) SWIG_fail;
29406 }
29407 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29408 {
29409 if (temp7)
29410 delete arg7;
29411 }
29412 return resultobj;
29413 fail:
29414 {
29415 if (temp7)
29416 delete arg7;
29417 }
29418 return NULL;
29419 }
29420
29421
29422 static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29423 PyObject *resultobj;
29424 wxPyControl *result;
29425 char *kwnames[] = {
29426 NULL
29427 };
29428
29429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29430 {
29431 if (!wxPyCheckForApp()) SWIG_fail;
29432 PyThreadState* __tstate = wxPyBeginAllowThreads();
29433 result = (wxPyControl *)new wxPyControl();
29434
29435 wxPyEndAllowThreads(__tstate);
29436 if (PyErr_Occurred()) SWIG_fail;
29437 }
29438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29439 return resultobj;
29440 fail:
29441 return NULL;
29442 }
29443
29444
29445 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29446 PyObject *resultobj;
29447 wxPyControl *arg1 = (wxPyControl *) 0 ;
29448 PyObject *arg2 = (PyObject *) 0 ;
29449 PyObject *arg3 = (PyObject *) 0 ;
29450 PyObject * obj0 = 0 ;
29451 PyObject * obj1 = 0 ;
29452 PyObject * obj2 = 0 ;
29453 char *kwnames[] = {
29454 (char *) "self",(char *) "self",(char *) "_class", NULL
29455 };
29456
29457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29460 arg2 = obj1;
29461 arg3 = obj2;
29462 {
29463 PyThreadState* __tstate = wxPyBeginAllowThreads();
29464 (arg1)->_setCallbackInfo(arg2,arg3);
29465
29466 wxPyEndAllowThreads(__tstate);
29467 if (PyErr_Occurred()) SWIG_fail;
29468 }
29469 Py_INCREF(Py_None); resultobj = Py_None;
29470 return resultobj;
29471 fail:
29472 return NULL;
29473 }
29474
29475
29476 static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29477 PyObject *resultobj;
29478 wxPyControl *arg1 = (wxPyControl *) 0 ;
29479 wxSize *arg2 = 0 ;
29480 wxSize temp2 ;
29481 PyObject * obj0 = 0 ;
29482 PyObject * obj1 = 0 ;
29483 char *kwnames[] = {
29484 (char *) "self",(char *) "size", NULL
29485 };
29486
29487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29490 {
29491 arg2 = &temp2;
29492 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29493 }
29494 {
29495 PyThreadState* __tstate = wxPyBeginAllowThreads();
29496 (arg1)->SetBestSize((wxSize const &)*arg2);
29497
29498 wxPyEndAllowThreads(__tstate);
29499 if (PyErr_Occurred()) SWIG_fail;
29500 }
29501 Py_INCREF(Py_None); resultobj = Py_None;
29502 return resultobj;
29503 fail:
29504 return NULL;
29505 }
29506
29507
29508 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29509 PyObject *resultobj;
29510 wxPyControl *arg1 = (wxPyControl *) 0 ;
29511 int arg2 ;
29512 int arg3 ;
29513 int arg4 ;
29514 int arg5 ;
29515 PyObject * obj0 = 0 ;
29516 PyObject * obj1 = 0 ;
29517 PyObject * obj2 = 0 ;
29518 PyObject * obj3 = 0 ;
29519 PyObject * obj4 = 0 ;
29520 char *kwnames[] = {
29521 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29522 };
29523
29524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29527 arg2 = (int)SWIG_As_int(obj1);
29528 if (PyErr_Occurred()) SWIG_fail;
29529 arg3 = (int)SWIG_As_int(obj2);
29530 if (PyErr_Occurred()) SWIG_fail;
29531 arg4 = (int)SWIG_As_int(obj3);
29532 if (PyErr_Occurred()) SWIG_fail;
29533 arg5 = (int)SWIG_As_int(obj4);
29534 if (PyErr_Occurred()) SWIG_fail;
29535 {
29536 PyThreadState* __tstate = wxPyBeginAllowThreads();
29537 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29538
29539 wxPyEndAllowThreads(__tstate);
29540 if (PyErr_Occurred()) SWIG_fail;
29541 }
29542 Py_INCREF(Py_None); resultobj = Py_None;
29543 return resultobj;
29544 fail:
29545 return NULL;
29546 }
29547
29548
29549 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29550 PyObject *resultobj;
29551 wxPyControl *arg1 = (wxPyControl *) 0 ;
29552 int arg2 ;
29553 int arg3 ;
29554 int arg4 ;
29555 int arg5 ;
29556 int arg6 = (int) wxSIZE_AUTO ;
29557 PyObject * obj0 = 0 ;
29558 PyObject * obj1 = 0 ;
29559 PyObject * obj2 = 0 ;
29560 PyObject * obj3 = 0 ;
29561 PyObject * obj4 = 0 ;
29562 PyObject * obj5 = 0 ;
29563 char *kwnames[] = {
29564 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29565 };
29566
29567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29570 arg2 = (int)SWIG_As_int(obj1);
29571 if (PyErr_Occurred()) SWIG_fail;
29572 arg3 = (int)SWIG_As_int(obj2);
29573 if (PyErr_Occurred()) SWIG_fail;
29574 arg4 = (int)SWIG_As_int(obj3);
29575 if (PyErr_Occurred()) SWIG_fail;
29576 arg5 = (int)SWIG_As_int(obj4);
29577 if (PyErr_Occurred()) SWIG_fail;
29578 if (obj5) {
29579 arg6 = (int)SWIG_As_int(obj5);
29580 if (PyErr_Occurred()) SWIG_fail;
29581 }
29582 {
29583 PyThreadState* __tstate = wxPyBeginAllowThreads();
29584 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29585
29586 wxPyEndAllowThreads(__tstate);
29587 if (PyErr_Occurred()) SWIG_fail;
29588 }
29589 Py_INCREF(Py_None); resultobj = Py_None;
29590 return resultobj;
29591 fail:
29592 return NULL;
29593 }
29594
29595
29596 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29597 PyObject *resultobj;
29598 wxPyControl *arg1 = (wxPyControl *) 0 ;
29599 int arg2 ;
29600 int arg3 ;
29601 PyObject * obj0 = 0 ;
29602 PyObject * obj1 = 0 ;
29603 PyObject * obj2 = 0 ;
29604 char *kwnames[] = {
29605 (char *) "self",(char *) "width",(char *) "height", NULL
29606 };
29607
29608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29611 arg2 = (int)SWIG_As_int(obj1);
29612 if (PyErr_Occurred()) SWIG_fail;
29613 arg3 = (int)SWIG_As_int(obj2);
29614 if (PyErr_Occurred()) SWIG_fail;
29615 {
29616 PyThreadState* __tstate = wxPyBeginAllowThreads();
29617 (arg1)->base_DoSetClientSize(arg2,arg3);
29618
29619 wxPyEndAllowThreads(__tstate);
29620 if (PyErr_Occurred()) SWIG_fail;
29621 }
29622 Py_INCREF(Py_None); resultobj = Py_None;
29623 return resultobj;
29624 fail:
29625 return NULL;
29626 }
29627
29628
29629 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29630 PyObject *resultobj;
29631 wxPyControl *arg1 = (wxPyControl *) 0 ;
29632 int arg2 ;
29633 int arg3 ;
29634 PyObject * obj0 = 0 ;
29635 PyObject * obj1 = 0 ;
29636 PyObject * obj2 = 0 ;
29637 char *kwnames[] = {
29638 (char *) "self",(char *) "x",(char *) "y", NULL
29639 };
29640
29641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29644 arg2 = (int)SWIG_As_int(obj1);
29645 if (PyErr_Occurred()) SWIG_fail;
29646 arg3 = (int)SWIG_As_int(obj2);
29647 if (PyErr_Occurred()) SWIG_fail;
29648 {
29649 PyThreadState* __tstate = wxPyBeginAllowThreads();
29650 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29651
29652 wxPyEndAllowThreads(__tstate);
29653 if (PyErr_Occurred()) SWIG_fail;
29654 }
29655 Py_INCREF(Py_None); resultobj = Py_None;
29656 return resultobj;
29657 fail:
29658 return NULL;
29659 }
29660
29661
29662 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29663 PyObject *resultobj;
29664 wxPyControl *arg1 = (wxPyControl *) 0 ;
29665 int *arg2 = (int *) 0 ;
29666 int *arg3 = (int *) 0 ;
29667 int temp2 ;
29668 int res2 = 0 ;
29669 int temp3 ;
29670 int res3 = 0 ;
29671 PyObject * obj0 = 0 ;
29672 char *kwnames[] = {
29673 (char *) "self", NULL
29674 };
29675
29676 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29677 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29681 {
29682 PyThreadState* __tstate = wxPyBeginAllowThreads();
29683 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29684
29685 wxPyEndAllowThreads(__tstate);
29686 if (PyErr_Occurred()) SWIG_fail;
29687 }
29688 Py_INCREF(Py_None); resultobj = Py_None;
29689 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29690 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29691 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29692 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29693 return resultobj;
29694 fail:
29695 return NULL;
29696 }
29697
29698
29699 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29700 PyObject *resultobj;
29701 wxPyControl *arg1 = (wxPyControl *) 0 ;
29702 int *arg2 = (int *) 0 ;
29703 int *arg3 = (int *) 0 ;
29704 int temp2 ;
29705 int res2 = 0 ;
29706 int temp3 ;
29707 int res3 = 0 ;
29708 PyObject * obj0 = 0 ;
29709 char *kwnames[] = {
29710 (char *) "self", NULL
29711 };
29712
29713 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29714 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29718 {
29719 PyThreadState* __tstate = wxPyBeginAllowThreads();
29720 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29721
29722 wxPyEndAllowThreads(__tstate);
29723 if (PyErr_Occurred()) SWIG_fail;
29724 }
29725 Py_INCREF(Py_None); resultobj = Py_None;
29726 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29727 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29728 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29729 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29730 return resultobj;
29731 fail:
29732 return NULL;
29733 }
29734
29735
29736 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
29737 PyObject *resultobj;
29738 wxPyControl *arg1 = (wxPyControl *) 0 ;
29739 int *arg2 = (int *) 0 ;
29740 int *arg3 = (int *) 0 ;
29741 int temp2 ;
29742 int res2 = 0 ;
29743 int temp3 ;
29744 int res3 = 0 ;
29745 PyObject * obj0 = 0 ;
29746 char *kwnames[] = {
29747 (char *) "self", NULL
29748 };
29749
29750 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29751 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29755 {
29756 PyThreadState* __tstate = wxPyBeginAllowThreads();
29757 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29758
29759 wxPyEndAllowThreads(__tstate);
29760 if (PyErr_Occurred()) SWIG_fail;
29761 }
29762 Py_INCREF(Py_None); resultobj = Py_None;
29763 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29764 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29765 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29766 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29767 return resultobj;
29768 fail:
29769 return NULL;
29770 }
29771
29772
29773 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29774 PyObject *resultobj;
29775 wxPyControl *arg1 = (wxPyControl *) 0 ;
29776 wxSize result;
29777 PyObject * obj0 = 0 ;
29778 char *kwnames[] = {
29779 (char *) "self", NULL
29780 };
29781
29782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29785 {
29786 PyThreadState* __tstate = wxPyBeginAllowThreads();
29787 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29788
29789 wxPyEndAllowThreads(__tstate);
29790 if (PyErr_Occurred()) SWIG_fail;
29791 }
29792 {
29793 wxSize * resultptr;
29794 resultptr = new wxSize((wxSize &) result);
29795 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29796 }
29797 return resultobj;
29798 fail:
29799 return NULL;
29800 }
29801
29802
29803 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29804 PyObject *resultobj;
29805 wxPyControl *arg1 = (wxPyControl *) 0 ;
29806 wxSize result;
29807 PyObject * obj0 = 0 ;
29808 char *kwnames[] = {
29809 (char *) "self", NULL
29810 };
29811
29812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29815 {
29816 PyThreadState* __tstate = wxPyBeginAllowThreads();
29817 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29818
29819 wxPyEndAllowThreads(__tstate);
29820 if (PyErr_Occurred()) SWIG_fail;
29821 }
29822 {
29823 wxSize * resultptr;
29824 resultptr = new wxSize((wxSize &) result);
29825 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29826 }
29827 return resultobj;
29828 fail:
29829 return NULL;
29830 }
29831
29832
29833 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
29834 PyObject *resultobj;
29835 wxPyControl *arg1 = (wxPyControl *) 0 ;
29836 PyObject * obj0 = 0 ;
29837 char *kwnames[] = {
29838 (char *) "self", NULL
29839 };
29840
29841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29844 {
29845 PyThreadState* __tstate = wxPyBeginAllowThreads();
29846 (arg1)->base_InitDialog();
29847
29848 wxPyEndAllowThreads(__tstate);
29849 if (PyErr_Occurred()) SWIG_fail;
29850 }
29851 Py_INCREF(Py_None); resultobj = Py_None;
29852 return resultobj;
29853 fail:
29854 return NULL;
29855 }
29856
29857
29858 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29859 PyObject *resultobj;
29860 wxPyControl *arg1 = (wxPyControl *) 0 ;
29861 bool result;
29862 PyObject * obj0 = 0 ;
29863 char *kwnames[] = {
29864 (char *) "self", NULL
29865 };
29866
29867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29870 {
29871 PyThreadState* __tstate = wxPyBeginAllowThreads();
29872 result = (bool)(arg1)->base_TransferDataToWindow();
29873
29874 wxPyEndAllowThreads(__tstate);
29875 if (PyErr_Occurred()) SWIG_fail;
29876 }
29877 {
29878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29879 }
29880 return resultobj;
29881 fail:
29882 return NULL;
29883 }
29884
29885
29886 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29887 PyObject *resultobj;
29888 wxPyControl *arg1 = (wxPyControl *) 0 ;
29889 bool result;
29890 PyObject * obj0 = 0 ;
29891 char *kwnames[] = {
29892 (char *) "self", NULL
29893 };
29894
29895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29898 {
29899 PyThreadState* __tstate = wxPyBeginAllowThreads();
29900 result = (bool)(arg1)->base_TransferDataFromWindow();
29901
29902 wxPyEndAllowThreads(__tstate);
29903 if (PyErr_Occurred()) SWIG_fail;
29904 }
29905 {
29906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29907 }
29908 return resultobj;
29909 fail:
29910 return NULL;
29911 }
29912
29913
29914 static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
29915 PyObject *resultobj;
29916 wxPyControl *arg1 = (wxPyControl *) 0 ;
29917 bool result;
29918 PyObject * obj0 = 0 ;
29919 char *kwnames[] = {
29920 (char *) "self", NULL
29921 };
29922
29923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29926 {
29927 PyThreadState* __tstate = wxPyBeginAllowThreads();
29928 result = (bool)(arg1)->base_Validate();
29929
29930 wxPyEndAllowThreads(__tstate);
29931 if (PyErr_Occurred()) SWIG_fail;
29932 }
29933 {
29934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29935 }
29936 return resultobj;
29937 fail:
29938 return NULL;
29939 }
29940
29941
29942 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
29943 PyObject *resultobj;
29944 wxPyControl *arg1 = (wxPyControl *) 0 ;
29945 bool result;
29946 PyObject * obj0 = 0 ;
29947 char *kwnames[] = {
29948 (char *) "self", NULL
29949 };
29950
29951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29954 {
29955 PyThreadState* __tstate = wxPyBeginAllowThreads();
29956 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29957
29958 wxPyEndAllowThreads(__tstate);
29959 if (PyErr_Occurred()) SWIG_fail;
29960 }
29961 {
29962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29963 }
29964 return resultobj;
29965 fail:
29966 return NULL;
29967 }
29968
29969
29970 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
29971 PyObject *resultobj;
29972 wxPyControl *arg1 = (wxPyControl *) 0 ;
29973 bool result;
29974 PyObject * obj0 = 0 ;
29975 char *kwnames[] = {
29976 (char *) "self", NULL
29977 };
29978
29979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
29980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29982 {
29983 PyThreadState* __tstate = wxPyBeginAllowThreads();
29984 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
29985
29986 wxPyEndAllowThreads(__tstate);
29987 if (PyErr_Occurred()) SWIG_fail;
29988 }
29989 {
29990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29991 }
29992 return resultobj;
29993 fail:
29994 return NULL;
29995 }
29996
29997
29998 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
29999 PyObject *resultobj;
30000 wxPyControl *arg1 = (wxPyControl *) 0 ;
30001 wxSize result;
30002 PyObject * obj0 = 0 ;
30003 char *kwnames[] = {
30004 (char *) "self", NULL
30005 };
30006
30007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
30008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30010 {
30011 PyThreadState* __tstate = wxPyBeginAllowThreads();
30012 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
30013
30014 wxPyEndAllowThreads(__tstate);
30015 if (PyErr_Occurred()) SWIG_fail;
30016 }
30017 {
30018 wxSize * resultptr;
30019 resultptr = new wxSize((wxSize &) result);
30020 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30021 }
30022 return resultobj;
30023 fail:
30024 return NULL;
30025 }
30026
30027
30028 static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
30029 PyObject *resultobj;
30030 wxPyControl *arg1 = (wxPyControl *) 0 ;
30031 wxWindow *arg2 = (wxWindow *) 0 ;
30032 PyObject * obj0 = 0 ;
30033 PyObject * obj1 = 0 ;
30034 char *kwnames[] = {
30035 (char *) "self",(char *) "child", NULL
30036 };
30037
30038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
30039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30043 {
30044 PyThreadState* __tstate = wxPyBeginAllowThreads();
30045 (arg1)->base_AddChild(arg2);
30046
30047 wxPyEndAllowThreads(__tstate);
30048 if (PyErr_Occurred()) SWIG_fail;
30049 }
30050 Py_INCREF(Py_None); resultobj = Py_None;
30051 return resultobj;
30052 fail:
30053 return NULL;
30054 }
30055
30056
30057 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
30058 PyObject *resultobj;
30059 wxPyControl *arg1 = (wxPyControl *) 0 ;
30060 wxWindow *arg2 = (wxWindow *) 0 ;
30061 PyObject * obj0 = 0 ;
30062 PyObject * obj1 = 0 ;
30063 char *kwnames[] = {
30064 (char *) "self",(char *) "child", NULL
30065 };
30066
30067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
30068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30070 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30072 {
30073 PyThreadState* __tstate = wxPyBeginAllowThreads();
30074 (arg1)->base_RemoveChild(arg2);
30075
30076 wxPyEndAllowThreads(__tstate);
30077 if (PyErr_Occurred()) SWIG_fail;
30078 }
30079 Py_INCREF(Py_None); resultobj = Py_None;
30080 return resultobj;
30081 fail:
30082 return NULL;
30083 }
30084
30085
30086 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
30087 PyObject *resultobj;
30088 wxPyControl *arg1 = (wxPyControl *) 0 ;
30089 bool result;
30090 PyObject * obj0 = 0 ;
30091 char *kwnames[] = {
30092 (char *) "self", NULL
30093 };
30094
30095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
30096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30098 {
30099 PyThreadState* __tstate = wxPyBeginAllowThreads();
30100 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
30101
30102 wxPyEndAllowThreads(__tstate);
30103 if (PyErr_Occurred()) SWIG_fail;
30104 }
30105 {
30106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30107 }
30108 return resultobj;
30109 fail:
30110 return NULL;
30111 }
30112
30113
30114 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
30115 PyObject *resultobj;
30116 wxPyControl *arg1 = (wxPyControl *) 0 ;
30117 wxColour *arg2 = 0 ;
30118 wxColour temp2 ;
30119 PyObject * obj0 = 0 ;
30120 PyObject * obj1 = 0 ;
30121 char *kwnames[] = {
30122 (char *) "self",(char *) "c", NULL
30123 };
30124
30125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
30126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30128 {
30129 arg2 = &temp2;
30130 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30131 }
30132 {
30133 PyThreadState* __tstate = wxPyBeginAllowThreads();
30134 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
30135
30136 wxPyEndAllowThreads(__tstate);
30137 if (PyErr_Occurred()) SWIG_fail;
30138 }
30139 Py_INCREF(Py_None); resultobj = Py_None;
30140 return resultobj;
30141 fail:
30142 return NULL;
30143 }
30144
30145
30146 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
30147 PyObject *resultobj;
30148 wxPyControl *arg1 = (wxPyControl *) 0 ;
30149 wxVisualAttributes result;
30150 PyObject * obj0 = 0 ;
30151 char *kwnames[] = {
30152 (char *) "self", NULL
30153 };
30154
30155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
30156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30158 {
30159 PyThreadState* __tstate = wxPyBeginAllowThreads();
30160 result = (arg1)->base_GetDefaultAttributes();
30161
30162 wxPyEndAllowThreads(__tstate);
30163 if (PyErr_Occurred()) SWIG_fail;
30164 }
30165 {
30166 wxVisualAttributes * resultptr;
30167 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
30168 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
30169 }
30170 return resultobj;
30171 fail:
30172 return NULL;
30173 }
30174
30175
30176 static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
30177 PyObject *obj;
30178 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30179 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
30180 Py_INCREF(obj);
30181 return Py_BuildValue((char *)"");
30182 }
30183 static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) {
30184 PyObject *resultobj;
30185 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
30186 int arg2 = (int) 0 ;
30187 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30188 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30189 wxHelpEvent *result;
30190 wxPoint temp3 ;
30191 PyObject * obj0 = 0 ;
30192 PyObject * obj1 = 0 ;
30193 PyObject * obj2 = 0 ;
30194 char *kwnames[] = {
30195 (char *) "type",(char *) "winid",(char *) "pt", NULL
30196 };
30197
30198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
30199 if (obj0) {
30200 arg1 = (wxEventType)SWIG_As_int(obj0);
30201 if (PyErr_Occurred()) SWIG_fail;
30202 }
30203 if (obj1) {
30204 arg2 = (int)SWIG_As_int(obj1);
30205 if (PyErr_Occurred()) SWIG_fail;
30206 }
30207 if (obj2) {
30208 {
30209 arg3 = &temp3;
30210 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30211 }
30212 }
30213 {
30214 PyThreadState* __tstate = wxPyBeginAllowThreads();
30215 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
30216
30217 wxPyEndAllowThreads(__tstate);
30218 if (PyErr_Occurred()) SWIG_fail;
30219 }
30220 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
30221 return resultobj;
30222 fail:
30223 return NULL;
30224 }
30225
30226
30227 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30228 PyObject *resultobj;
30229 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30230 wxPoint result;
30231 PyObject * obj0 = 0 ;
30232 char *kwnames[] = {
30233 (char *) "self", NULL
30234 };
30235
30236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
30237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30239 {
30240 PyThreadState* __tstate = wxPyBeginAllowThreads();
30241 result = ((wxHelpEvent const *)arg1)->GetPosition();
30242
30243 wxPyEndAllowThreads(__tstate);
30244 if (PyErr_Occurred()) SWIG_fail;
30245 }
30246 {
30247 wxPoint * resultptr;
30248 resultptr = new wxPoint((wxPoint &) result);
30249 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
30250 }
30251 return resultobj;
30252 fail:
30253 return NULL;
30254 }
30255
30256
30257 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30258 PyObject *resultobj;
30259 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30260 wxPoint *arg2 = 0 ;
30261 wxPoint temp2 ;
30262 PyObject * obj0 = 0 ;
30263 PyObject * obj1 = 0 ;
30264 char *kwnames[] = {
30265 (char *) "self",(char *) "pos", NULL
30266 };
30267
30268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
30269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30271 {
30272 arg2 = &temp2;
30273 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30274 }
30275 {
30276 PyThreadState* __tstate = wxPyBeginAllowThreads();
30277 (arg1)->SetPosition((wxPoint const &)*arg2);
30278
30279 wxPyEndAllowThreads(__tstate);
30280 if (PyErr_Occurred()) SWIG_fail;
30281 }
30282 Py_INCREF(Py_None); resultobj = Py_None;
30283 return resultobj;
30284 fail:
30285 return NULL;
30286 }
30287
30288
30289 static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30290 PyObject *resultobj;
30291 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30292 wxString *result;
30293 PyObject * obj0 = 0 ;
30294 char *kwnames[] = {
30295 (char *) "self", NULL
30296 };
30297
30298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
30299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30301 {
30302 PyThreadState* __tstate = wxPyBeginAllowThreads();
30303 {
30304 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
30305 result = (wxString *) &_result_ref;
30306 }
30307
30308 wxPyEndAllowThreads(__tstate);
30309 if (PyErr_Occurred()) SWIG_fail;
30310 }
30311 {
30312 #if wxUSE_UNICODE
30313 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30314 #else
30315 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30316 #endif
30317 }
30318 return resultobj;
30319 fail:
30320 return NULL;
30321 }
30322
30323
30324 static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30325 PyObject *resultobj;
30326 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30327 wxString *arg2 = 0 ;
30328 bool temp2 = False ;
30329 PyObject * obj0 = 0 ;
30330 PyObject * obj1 = 0 ;
30331 char *kwnames[] = {
30332 (char *) "self",(char *) "link", NULL
30333 };
30334
30335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
30336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30338 {
30339 arg2 = wxString_in_helper(obj1);
30340 if (arg2 == NULL) SWIG_fail;
30341 temp2 = True;
30342 }
30343 {
30344 PyThreadState* __tstate = wxPyBeginAllowThreads();
30345 (arg1)->SetLink((wxString const &)*arg2);
30346
30347 wxPyEndAllowThreads(__tstate);
30348 if (PyErr_Occurred()) SWIG_fail;
30349 }
30350 Py_INCREF(Py_None); resultobj = Py_None;
30351 {
30352 if (temp2)
30353 delete arg2;
30354 }
30355 return resultobj;
30356 fail:
30357 {
30358 if (temp2)
30359 delete arg2;
30360 }
30361 return NULL;
30362 }
30363
30364
30365 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30366 PyObject *resultobj;
30367 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30368 wxString *result;
30369 PyObject * obj0 = 0 ;
30370 char *kwnames[] = {
30371 (char *) "self", NULL
30372 };
30373
30374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
30375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30377 {
30378 PyThreadState* __tstate = wxPyBeginAllowThreads();
30379 {
30380 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
30381 result = (wxString *) &_result_ref;
30382 }
30383
30384 wxPyEndAllowThreads(__tstate);
30385 if (PyErr_Occurred()) SWIG_fail;
30386 }
30387 {
30388 #if wxUSE_UNICODE
30389 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30390 #else
30391 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30392 #endif
30393 }
30394 return resultobj;
30395 fail:
30396 return NULL;
30397 }
30398
30399
30400 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30401 PyObject *resultobj;
30402 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30403 wxString *arg2 = 0 ;
30404 bool temp2 = False ;
30405 PyObject * obj0 = 0 ;
30406 PyObject * obj1 = 0 ;
30407 char *kwnames[] = {
30408 (char *) "self",(char *) "target", NULL
30409 };
30410
30411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
30412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30414 {
30415 arg2 = wxString_in_helper(obj1);
30416 if (arg2 == NULL) SWIG_fail;
30417 temp2 = True;
30418 }
30419 {
30420 PyThreadState* __tstate = wxPyBeginAllowThreads();
30421 (arg1)->SetTarget((wxString const &)*arg2);
30422
30423 wxPyEndAllowThreads(__tstate);
30424 if (PyErr_Occurred()) SWIG_fail;
30425 }
30426 Py_INCREF(Py_None); resultobj = Py_None;
30427 {
30428 if (temp2)
30429 delete arg2;
30430 }
30431 return resultobj;
30432 fail:
30433 {
30434 if (temp2)
30435 delete arg2;
30436 }
30437 return NULL;
30438 }
30439
30440
30441 static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) {
30442 PyObject *obj;
30443 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30444 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30445 Py_INCREF(obj);
30446 return Py_BuildValue((char *)"");
30447 }
30448 static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30449 PyObject *resultobj;
30450 wxWindow *arg1 = (wxWindow *) NULL ;
30451 bool arg2 = (bool) True ;
30452 wxContextHelp *result;
30453 PyObject * obj0 = 0 ;
30454 PyObject * obj1 = 0 ;
30455 char *kwnames[] = {
30456 (char *) "window",(char *) "doNow", NULL
30457 };
30458
30459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30460 if (obj0) {
30461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30463 }
30464 if (obj1) {
30465 arg2 = (bool)SWIG_As_bool(obj1);
30466 if (PyErr_Occurred()) SWIG_fail;
30467 }
30468 {
30469 if (!wxPyCheckForApp()) SWIG_fail;
30470 PyThreadState* __tstate = wxPyBeginAllowThreads();
30471 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30472
30473 wxPyEndAllowThreads(__tstate);
30474 if (PyErr_Occurred()) SWIG_fail;
30475 }
30476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30477 return resultobj;
30478 fail:
30479 return NULL;
30480 }
30481
30482
30483 static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30484 PyObject *resultobj;
30485 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30486 PyObject * obj0 = 0 ;
30487 char *kwnames[] = {
30488 (char *) "self", NULL
30489 };
30490
30491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30494 {
30495 PyThreadState* __tstate = wxPyBeginAllowThreads();
30496 delete arg1;
30497
30498 wxPyEndAllowThreads(__tstate);
30499 if (PyErr_Occurred()) SWIG_fail;
30500 }
30501 Py_INCREF(Py_None); resultobj = Py_None;
30502 return resultobj;
30503 fail:
30504 return NULL;
30505 }
30506
30507
30508 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30509 PyObject *resultobj;
30510 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30511 wxWindow *arg2 = (wxWindow *) NULL ;
30512 bool result;
30513 PyObject * obj0 = 0 ;
30514 PyObject * obj1 = 0 ;
30515 char *kwnames[] = {
30516 (char *) "self",(char *) "window", NULL
30517 };
30518
30519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30522 if (obj1) {
30523 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30525 }
30526 {
30527 PyThreadState* __tstate = wxPyBeginAllowThreads();
30528 result = (bool)(arg1)->BeginContextHelp(arg2);
30529
30530 wxPyEndAllowThreads(__tstate);
30531 if (PyErr_Occurred()) SWIG_fail;
30532 }
30533 {
30534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30535 }
30536 return resultobj;
30537 fail:
30538 return NULL;
30539 }
30540
30541
30542 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30543 PyObject *resultobj;
30544 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30545 bool result;
30546 PyObject * obj0 = 0 ;
30547 char *kwnames[] = {
30548 (char *) "self", NULL
30549 };
30550
30551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30554 {
30555 PyThreadState* __tstate = wxPyBeginAllowThreads();
30556 result = (bool)(arg1)->EndContextHelp();
30557
30558 wxPyEndAllowThreads(__tstate);
30559 if (PyErr_Occurred()) SWIG_fail;
30560 }
30561 {
30562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30563 }
30564 return resultobj;
30565 fail:
30566 return NULL;
30567 }
30568
30569
30570 static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) {
30571 PyObject *obj;
30572 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30573 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30574 Py_INCREF(obj);
30575 return Py_BuildValue((char *)"");
30576 }
30577 static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
30578 PyObject *resultobj;
30579 wxWindow *arg1 = (wxWindow *) 0 ;
30580 int arg2 = (int) wxID_CONTEXT_HELP ;
30581 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30582 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30583 wxSize const &arg4_defvalue = wxDefaultSize ;
30584 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30585 long arg5 = (long) wxBU_AUTODRAW ;
30586 wxContextHelpButton *result;
30587 wxPoint temp3 ;
30588 wxSize temp4 ;
30589 PyObject * obj0 = 0 ;
30590 PyObject * obj1 = 0 ;
30591 PyObject * obj2 = 0 ;
30592 PyObject * obj3 = 0 ;
30593 PyObject * obj4 = 0 ;
30594 char *kwnames[] = {
30595 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30596 };
30597
30598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30601 if (obj1) {
30602 arg2 = (int)SWIG_As_int(obj1);
30603 if (PyErr_Occurred()) SWIG_fail;
30604 }
30605 if (obj2) {
30606 {
30607 arg3 = &temp3;
30608 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30609 }
30610 }
30611 if (obj3) {
30612 {
30613 arg4 = &temp4;
30614 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30615 }
30616 }
30617 if (obj4) {
30618 arg5 = (long)SWIG_As_long(obj4);
30619 if (PyErr_Occurred()) SWIG_fail;
30620 }
30621 {
30622 if (!wxPyCheckForApp()) SWIG_fail;
30623 PyThreadState* __tstate = wxPyBeginAllowThreads();
30624 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30625
30626 wxPyEndAllowThreads(__tstate);
30627 if (PyErr_Occurred()) SWIG_fail;
30628 }
30629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30630 return resultobj;
30631 fail:
30632 return NULL;
30633 }
30634
30635
30636 static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) {
30637 PyObject *obj;
30638 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30639 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30640 Py_INCREF(obj);
30641 return Py_BuildValue((char *)"");
30642 }
30643 static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) {
30644 PyObject *resultobj;
30645 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30646 wxHelpProvider *result;
30647 PyObject * obj0 = 0 ;
30648 char *kwnames[] = {
30649 (char *) "helpProvider", NULL
30650 };
30651
30652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30655 {
30656 PyThreadState* __tstate = wxPyBeginAllowThreads();
30657 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30658
30659 wxPyEndAllowThreads(__tstate);
30660 if (PyErr_Occurred()) SWIG_fail;
30661 }
30662 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30663 return resultobj;
30664 fail:
30665 return NULL;
30666 }
30667
30668
30669 static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) {
30670 PyObject *resultobj;
30671 wxHelpProvider *result;
30672 char *kwnames[] = {
30673 NULL
30674 };
30675
30676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30677 {
30678 PyThreadState* __tstate = wxPyBeginAllowThreads();
30679 result = (wxHelpProvider *)wxHelpProvider::Get();
30680
30681 wxPyEndAllowThreads(__tstate);
30682 if (PyErr_Occurred()) SWIG_fail;
30683 }
30684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30685 return resultobj;
30686 fail:
30687 return NULL;
30688 }
30689
30690
30691 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30692 PyObject *resultobj;
30693 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30694 wxWindow *arg2 = (wxWindow *) 0 ;
30695 wxString result;
30696 PyObject * obj0 = 0 ;
30697 PyObject * obj1 = 0 ;
30698 char *kwnames[] = {
30699 (char *) "self",(char *) "window", NULL
30700 };
30701
30702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30705 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30707 {
30708 PyThreadState* __tstate = wxPyBeginAllowThreads();
30709 result = (arg1)->GetHelp((wxWindow const *)arg2);
30710
30711 wxPyEndAllowThreads(__tstate);
30712 if (PyErr_Occurred()) SWIG_fail;
30713 }
30714 {
30715 #if wxUSE_UNICODE
30716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30717 #else
30718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30719 #endif
30720 }
30721 return resultobj;
30722 fail:
30723 return NULL;
30724 }
30725
30726
30727 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30728 PyObject *resultobj;
30729 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30730 wxWindow *arg2 = (wxWindow *) 0 ;
30731 bool result;
30732 PyObject * obj0 = 0 ;
30733 PyObject * obj1 = 0 ;
30734 char *kwnames[] = {
30735 (char *) "self",(char *) "window", NULL
30736 };
30737
30738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30743 {
30744 PyThreadState* __tstate = wxPyBeginAllowThreads();
30745 result = (bool)(arg1)->ShowHelp(arg2);
30746
30747 wxPyEndAllowThreads(__tstate);
30748 if (PyErr_Occurred()) SWIG_fail;
30749 }
30750 {
30751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30752 }
30753 return resultobj;
30754 fail:
30755 return NULL;
30756 }
30757
30758
30759 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30760 PyObject *resultobj;
30761 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30762 wxWindow *arg2 = (wxWindow *) 0 ;
30763 wxString *arg3 = 0 ;
30764 bool temp3 = False ;
30765 PyObject * obj0 = 0 ;
30766 PyObject * obj1 = 0 ;
30767 PyObject * obj2 = 0 ;
30768 char *kwnames[] = {
30769 (char *) "self",(char *) "window",(char *) "text", NULL
30770 };
30771
30772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30775 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30777 {
30778 arg3 = wxString_in_helper(obj2);
30779 if (arg3 == NULL) SWIG_fail;
30780 temp3 = True;
30781 }
30782 {
30783 PyThreadState* __tstate = wxPyBeginAllowThreads();
30784 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30785
30786 wxPyEndAllowThreads(__tstate);
30787 if (PyErr_Occurred()) SWIG_fail;
30788 }
30789 Py_INCREF(Py_None); resultobj = Py_None;
30790 {
30791 if (temp3)
30792 delete arg3;
30793 }
30794 return resultobj;
30795 fail:
30796 {
30797 if (temp3)
30798 delete arg3;
30799 }
30800 return NULL;
30801 }
30802
30803
30804 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) {
30805 PyObject *resultobj;
30806 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30807 int arg2 ;
30808 wxString *arg3 = 0 ;
30809 bool temp3 = False ;
30810 PyObject * obj0 = 0 ;
30811 PyObject * obj1 = 0 ;
30812 PyObject * obj2 = 0 ;
30813 char *kwnames[] = {
30814 (char *) "self",(char *) "id",(char *) "text", NULL
30815 };
30816
30817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30820 arg2 = (int)SWIG_As_int(obj1);
30821 if (PyErr_Occurred()) SWIG_fail;
30822 {
30823 arg3 = wxString_in_helper(obj2);
30824 if (arg3 == NULL) SWIG_fail;
30825 temp3 = True;
30826 }
30827 {
30828 PyThreadState* __tstate = wxPyBeginAllowThreads();
30829 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30830
30831 wxPyEndAllowThreads(__tstate);
30832 if (PyErr_Occurred()) SWIG_fail;
30833 }
30834 Py_INCREF(Py_None); resultobj = Py_None;
30835 {
30836 if (temp3)
30837 delete arg3;
30838 }
30839 return resultobj;
30840 fail:
30841 {
30842 if (temp3)
30843 delete arg3;
30844 }
30845 return NULL;
30846 }
30847
30848
30849 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30850 PyObject *resultobj;
30851 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30852 wxWindow *arg2 = (wxWindow *) 0 ;
30853 PyObject * obj0 = 0 ;
30854 PyObject * obj1 = 0 ;
30855 char *kwnames[] = {
30856 (char *) "self",(char *) "window", NULL
30857 };
30858
30859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30864 {
30865 PyThreadState* __tstate = wxPyBeginAllowThreads();
30866 (arg1)->RemoveHelp(arg2);
30867
30868 wxPyEndAllowThreads(__tstate);
30869 if (PyErr_Occurred()) SWIG_fail;
30870 }
30871 Py_INCREF(Py_None); resultobj = Py_None;
30872 return resultobj;
30873 fail:
30874 return NULL;
30875 }
30876
30877
30878 static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
30879 PyObject *resultobj;
30880 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30881 PyObject * obj0 = 0 ;
30882 char *kwnames[] = {
30883 (char *) "self", NULL
30884 };
30885
30886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30889 {
30890 PyThreadState* __tstate = wxPyBeginAllowThreads();
30891 wxHelpProvider_Destroy(arg1);
30892
30893 wxPyEndAllowThreads(__tstate);
30894 if (PyErr_Occurred()) SWIG_fail;
30895 }
30896 Py_INCREF(Py_None); resultobj = Py_None;
30897 return resultobj;
30898 fail:
30899 return NULL;
30900 }
30901
30902
30903 static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) {
30904 PyObject *obj;
30905 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30906 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30907 Py_INCREF(obj);
30908 return Py_BuildValue((char *)"");
30909 }
30910 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) {
30911 PyObject *resultobj;
30912 wxSimpleHelpProvider *result;
30913 char *kwnames[] = {
30914 NULL
30915 };
30916
30917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30918 {
30919 PyThreadState* __tstate = wxPyBeginAllowThreads();
30920 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30921
30922 wxPyEndAllowThreads(__tstate);
30923 if (PyErr_Occurred()) SWIG_fail;
30924 }
30925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30926 return resultobj;
30927 fail:
30928 return NULL;
30929 }
30930
30931
30932 static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) {
30933 PyObject *obj;
30934 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30935 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30936 Py_INCREF(obj);
30937 return Py_BuildValue((char *)"");
30938 }
30939 static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
30940 PyObject *resultobj;
30941 wxBitmap *arg1 = 0 ;
30942 wxCursor const &arg2_defvalue = wxNullCursor ;
30943 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30944 wxGenericDragImage *result;
30945 PyObject * obj0 = 0 ;
30946 PyObject * obj1 = 0 ;
30947 char *kwnames[] = {
30948 (char *) "image",(char *) "cursor", NULL
30949 };
30950
30951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30953 SWIG_POINTER_EXCEPTION | 0)) == -1)
30954 SWIG_fail;
30955 if (arg1 == NULL) {
30956 PyErr_SetString(PyExc_TypeError,"null reference");
30957 SWIG_fail;
30958 }
30959 if (obj1) {
30960 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30961 SWIG_POINTER_EXCEPTION | 0)) == -1)
30962 SWIG_fail;
30963 if (arg2 == NULL) {
30964 PyErr_SetString(PyExc_TypeError,"null reference");
30965 SWIG_fail;
30966 }
30967 }
30968 {
30969 if (!wxPyCheckForApp()) SWIG_fail;
30970 PyThreadState* __tstate = wxPyBeginAllowThreads();
30971 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30972
30973 wxPyEndAllowThreads(__tstate);
30974 if (PyErr_Occurred()) SWIG_fail;
30975 }
30976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30977 return resultobj;
30978 fail:
30979 return NULL;
30980 }
30981
30982
30983 static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) {
30984 PyObject *resultobj;
30985 wxIcon *arg1 = 0 ;
30986 wxCursor const &arg2_defvalue = wxNullCursor ;
30987 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30988 wxGenericDragImage *result;
30989 PyObject * obj0 = 0 ;
30990 PyObject * obj1 = 0 ;
30991 char *kwnames[] = {
30992 (char *) "image",(char *) "cursor", NULL
30993 };
30994
30995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
30996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
30997 SWIG_POINTER_EXCEPTION | 0)) == -1)
30998 SWIG_fail;
30999 if (arg1 == NULL) {
31000 PyErr_SetString(PyExc_TypeError,"null reference");
31001 SWIG_fail;
31002 }
31003 if (obj1) {
31004 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31005 SWIG_POINTER_EXCEPTION | 0)) == -1)
31006 SWIG_fail;
31007 if (arg2 == NULL) {
31008 PyErr_SetString(PyExc_TypeError,"null reference");
31009 SWIG_fail;
31010 }
31011 }
31012 {
31013 if (!wxPyCheckForApp()) SWIG_fail;
31014 PyThreadState* __tstate = wxPyBeginAllowThreads();
31015 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
31016
31017 wxPyEndAllowThreads(__tstate);
31018 if (PyErr_Occurred()) SWIG_fail;
31019 }
31020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31021 return resultobj;
31022 fail:
31023 return NULL;
31024 }
31025
31026
31027 static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) {
31028 PyObject *resultobj;
31029 wxString *arg1 = 0 ;
31030 wxCursor const &arg2_defvalue = wxNullCursor ;
31031 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31032 wxGenericDragImage *result;
31033 bool temp1 = False ;
31034 PyObject * obj0 = 0 ;
31035 PyObject * obj1 = 0 ;
31036 char *kwnames[] = {
31037 (char *) "str",(char *) "cursor", NULL
31038 };
31039
31040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
31041 {
31042 arg1 = wxString_in_helper(obj0);
31043 if (arg1 == NULL) SWIG_fail;
31044 temp1 = True;
31045 }
31046 if (obj1) {
31047 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31048 SWIG_POINTER_EXCEPTION | 0)) == -1)
31049 SWIG_fail;
31050 if (arg2 == NULL) {
31051 PyErr_SetString(PyExc_TypeError,"null reference");
31052 SWIG_fail;
31053 }
31054 }
31055 {
31056 if (!wxPyCheckForApp()) SWIG_fail;
31057 PyThreadState* __tstate = wxPyBeginAllowThreads();
31058 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
31059
31060 wxPyEndAllowThreads(__tstate);
31061 if (PyErr_Occurred()) SWIG_fail;
31062 }
31063 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31064 {
31065 if (temp1)
31066 delete arg1;
31067 }
31068 return resultobj;
31069 fail:
31070 {
31071 if (temp1)
31072 delete arg1;
31073 }
31074 return NULL;
31075 }
31076
31077
31078 static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) {
31079 PyObject *resultobj;
31080 wxPyTreeCtrl *arg1 = 0 ;
31081 wxTreeItemId *arg2 = 0 ;
31082 wxGenericDragImage *result;
31083 PyObject * obj0 = 0 ;
31084 PyObject * obj1 = 0 ;
31085 char *kwnames[] = {
31086 (char *) "treeCtrl",(char *) "id", NULL
31087 };
31088
31089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
31090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
31091 SWIG_POINTER_EXCEPTION | 0)) == -1)
31092 SWIG_fail;
31093 if (arg1 == NULL) {
31094 PyErr_SetString(PyExc_TypeError,"null reference");
31095 SWIG_fail;
31096 }
31097 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
31098 SWIG_POINTER_EXCEPTION | 0)) == -1)
31099 SWIG_fail;
31100 if (arg2 == NULL) {
31101 PyErr_SetString(PyExc_TypeError,"null reference");
31102 SWIG_fail;
31103 }
31104 {
31105 if (!wxPyCheckForApp()) SWIG_fail;
31106 PyThreadState* __tstate = wxPyBeginAllowThreads();
31107 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
31108
31109 wxPyEndAllowThreads(__tstate);
31110 if (PyErr_Occurred()) SWIG_fail;
31111 }
31112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31113 return resultobj;
31114 fail:
31115 return NULL;
31116 }
31117
31118
31119 static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) {
31120 PyObject *resultobj;
31121 wxPyListCtrl *arg1 = 0 ;
31122 long arg2 ;
31123 wxGenericDragImage *result;
31124 PyObject * obj0 = 0 ;
31125 PyObject * obj1 = 0 ;
31126 char *kwnames[] = {
31127 (char *) "listCtrl",(char *) "id", NULL
31128 };
31129
31130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
31131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
31132 SWIG_POINTER_EXCEPTION | 0)) == -1)
31133 SWIG_fail;
31134 if (arg1 == NULL) {
31135 PyErr_SetString(PyExc_TypeError,"null reference");
31136 SWIG_fail;
31137 }
31138 arg2 = (long)SWIG_As_long(obj1);
31139 if (PyErr_Occurred()) SWIG_fail;
31140 {
31141 if (!wxPyCheckForApp()) SWIG_fail;
31142 PyThreadState* __tstate = wxPyBeginAllowThreads();
31143 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
31144
31145 wxPyEndAllowThreads(__tstate);
31146 if (PyErr_Occurred()) SWIG_fail;
31147 }
31148 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31149 return resultobj;
31150 fail:
31151 return NULL;
31152 }
31153
31154
31155 static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31156 PyObject *resultobj;
31157 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31158 PyObject * obj0 = 0 ;
31159 char *kwnames[] = {
31160 (char *) "self", NULL
31161 };
31162
31163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
31164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31166 {
31167 PyThreadState* __tstate = wxPyBeginAllowThreads();
31168 delete arg1;
31169
31170 wxPyEndAllowThreads(__tstate);
31171 if (PyErr_Occurred()) SWIG_fail;
31172 }
31173 Py_INCREF(Py_None); resultobj = Py_None;
31174 return resultobj;
31175 fail:
31176 return NULL;
31177 }
31178
31179
31180 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
31181 PyObject *resultobj;
31182 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31183 wxBitmap *arg2 = (wxBitmap *) 0 ;
31184 PyObject * obj0 = 0 ;
31185 PyObject * obj1 = 0 ;
31186 char *kwnames[] = {
31187 (char *) "self",(char *) "bitmap", NULL
31188 };
31189
31190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
31191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31193 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
31194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31195 {
31196 PyThreadState* __tstate = wxPyBeginAllowThreads();
31197 (arg1)->SetBackingBitmap(arg2);
31198
31199 wxPyEndAllowThreads(__tstate);
31200 if (PyErr_Occurred()) SWIG_fail;
31201 }
31202 Py_INCREF(Py_None); resultobj = Py_None;
31203 return resultobj;
31204 fail:
31205 return NULL;
31206 }
31207
31208
31209 static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31210 PyObject *resultobj;
31211 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31212 wxPoint *arg2 = 0 ;
31213 wxWindow *arg3 = (wxWindow *) 0 ;
31214 bool arg4 = (bool) False ;
31215 wxRect *arg5 = (wxRect *) NULL ;
31216 bool result;
31217 wxPoint temp2 ;
31218 PyObject * obj0 = 0 ;
31219 PyObject * obj1 = 0 ;
31220 PyObject * obj2 = 0 ;
31221 PyObject * obj3 = 0 ;
31222 PyObject * obj4 = 0 ;
31223 char *kwnames[] = {
31224 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
31225 };
31226
31227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31230 {
31231 arg2 = &temp2;
31232 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31233 }
31234 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31236 if (obj3) {
31237 arg4 = (bool)SWIG_As_bool(obj3);
31238 if (PyErr_Occurred()) SWIG_fail;
31239 }
31240 if (obj4) {
31241 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
31242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31243 }
31244 {
31245 PyThreadState* __tstate = wxPyBeginAllowThreads();
31246 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
31247
31248 wxPyEndAllowThreads(__tstate);
31249 if (PyErr_Occurred()) SWIG_fail;
31250 }
31251 {
31252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31253 }
31254 return resultobj;
31255 fail:
31256 return NULL;
31257 }
31258
31259
31260 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) {
31261 PyObject *resultobj;
31262 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31263 wxPoint *arg2 = 0 ;
31264 wxWindow *arg3 = (wxWindow *) 0 ;
31265 wxWindow *arg4 = (wxWindow *) 0 ;
31266 bool result;
31267 wxPoint temp2 ;
31268 PyObject * obj0 = 0 ;
31269 PyObject * obj1 = 0 ;
31270 PyObject * obj2 = 0 ;
31271 PyObject * obj3 = 0 ;
31272 char *kwnames[] = {
31273 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
31274 };
31275
31276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31279 {
31280 arg2 = &temp2;
31281 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31282 }
31283 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31285 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
31286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31287 {
31288 PyThreadState* __tstate = wxPyBeginAllowThreads();
31289 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
31290
31291 wxPyEndAllowThreads(__tstate);
31292 if (PyErr_Occurred()) SWIG_fail;
31293 }
31294 {
31295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31296 }
31297 return resultobj;
31298 fail:
31299 return NULL;
31300 }
31301
31302
31303 static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31304 PyObject *resultobj;
31305 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31306 bool result;
31307 PyObject * obj0 = 0 ;
31308 char *kwnames[] = {
31309 (char *) "self", NULL
31310 };
31311
31312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
31313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31315 {
31316 PyThreadState* __tstate = wxPyBeginAllowThreads();
31317 result = (bool)(arg1)->EndDrag();
31318
31319 wxPyEndAllowThreads(__tstate);
31320 if (PyErr_Occurred()) SWIG_fail;
31321 }
31322 {
31323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31324 }
31325 return resultobj;
31326 fail:
31327 return NULL;
31328 }
31329
31330
31331 static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) {
31332 PyObject *resultobj;
31333 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31334 wxPoint *arg2 = 0 ;
31335 bool result;
31336 wxPoint temp2 ;
31337 PyObject * obj0 = 0 ;
31338 PyObject * obj1 = 0 ;
31339 char *kwnames[] = {
31340 (char *) "self",(char *) "pt", NULL
31341 };
31342
31343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
31344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31346 {
31347 arg2 = &temp2;
31348 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31349 }
31350 {
31351 PyThreadState* __tstate = wxPyBeginAllowThreads();
31352 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
31353
31354 wxPyEndAllowThreads(__tstate);
31355 if (PyErr_Occurred()) SWIG_fail;
31356 }
31357 {
31358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31359 }
31360 return resultobj;
31361 fail:
31362 return NULL;
31363 }
31364
31365
31366 static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) {
31367 PyObject *resultobj;
31368 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31369 bool result;
31370 PyObject * obj0 = 0 ;
31371 char *kwnames[] = {
31372 (char *) "self", NULL
31373 };
31374
31375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
31376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31378 {
31379 PyThreadState* __tstate = wxPyBeginAllowThreads();
31380 result = (bool)(arg1)->Show();
31381
31382 wxPyEndAllowThreads(__tstate);
31383 if (PyErr_Occurred()) SWIG_fail;
31384 }
31385 {
31386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31387 }
31388 return resultobj;
31389 fail:
31390 return NULL;
31391 }
31392
31393
31394 static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
31395 PyObject *resultobj;
31396 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31397 bool result;
31398 PyObject * obj0 = 0 ;
31399 char *kwnames[] = {
31400 (char *) "self", NULL
31401 };
31402
31403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
31404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31406 {
31407 PyThreadState* __tstate = wxPyBeginAllowThreads();
31408 result = (bool)(arg1)->Hide();
31409
31410 wxPyEndAllowThreads(__tstate);
31411 if (PyErr_Occurred()) SWIG_fail;
31412 }
31413 {
31414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31415 }
31416 return resultobj;
31417 fail:
31418 return NULL;
31419 }
31420
31421
31422 static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) {
31423 PyObject *resultobj;
31424 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31425 wxPoint *arg2 = 0 ;
31426 wxRect result;
31427 wxPoint temp2 ;
31428 PyObject * obj0 = 0 ;
31429 PyObject * obj1 = 0 ;
31430 char *kwnames[] = {
31431 (char *) "self",(char *) "pos", NULL
31432 };
31433
31434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31437 {
31438 arg2 = &temp2;
31439 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31440 }
31441 {
31442 PyThreadState* __tstate = wxPyBeginAllowThreads();
31443 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31444
31445 wxPyEndAllowThreads(__tstate);
31446 if (PyErr_Occurred()) SWIG_fail;
31447 }
31448 {
31449 wxRect * resultptr;
31450 resultptr = new wxRect((wxRect &) result);
31451 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31452 }
31453 return resultobj;
31454 fail:
31455 return NULL;
31456 }
31457
31458
31459 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31460 PyObject *resultobj;
31461 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31462 wxDC *arg2 = 0 ;
31463 wxPoint *arg3 = 0 ;
31464 bool result;
31465 wxPoint temp3 ;
31466 PyObject * obj0 = 0 ;
31467 PyObject * obj1 = 0 ;
31468 PyObject * obj2 = 0 ;
31469 char *kwnames[] = {
31470 (char *) "self",(char *) "dc",(char *) "pos", NULL
31471 };
31472
31473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31476 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31477 SWIG_POINTER_EXCEPTION | 0)) == -1)
31478 SWIG_fail;
31479 if (arg2 == NULL) {
31480 PyErr_SetString(PyExc_TypeError,"null reference");
31481 SWIG_fail;
31482 }
31483 {
31484 arg3 = &temp3;
31485 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31486 }
31487 {
31488 PyThreadState* __tstate = wxPyBeginAllowThreads();
31489 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31490
31491 wxPyEndAllowThreads(__tstate);
31492 if (PyErr_Occurred()) SWIG_fail;
31493 }
31494 {
31495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31496 }
31497 return resultobj;
31498 fail:
31499 return NULL;
31500 }
31501
31502
31503 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31504 PyObject *resultobj;
31505 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31506 wxDC *arg2 = 0 ;
31507 wxMemoryDC *arg3 = 0 ;
31508 wxRect *arg4 = 0 ;
31509 wxRect *arg5 = 0 ;
31510 bool result;
31511 wxRect temp4 ;
31512 wxRect temp5 ;
31513 PyObject * obj0 = 0 ;
31514 PyObject * obj1 = 0 ;
31515 PyObject * obj2 = 0 ;
31516 PyObject * obj3 = 0 ;
31517 PyObject * obj4 = 0 ;
31518 char *kwnames[] = {
31519 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31520 };
31521
31522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31526 SWIG_POINTER_EXCEPTION | 0)) == -1)
31527 SWIG_fail;
31528 if (arg2 == NULL) {
31529 PyErr_SetString(PyExc_TypeError,"null reference");
31530 SWIG_fail;
31531 }
31532 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31533 SWIG_POINTER_EXCEPTION | 0)) == -1)
31534 SWIG_fail;
31535 if (arg3 == NULL) {
31536 PyErr_SetString(PyExc_TypeError,"null reference");
31537 SWIG_fail;
31538 }
31539 {
31540 arg4 = &temp4;
31541 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31542 }
31543 {
31544 arg5 = &temp5;
31545 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31546 }
31547 {
31548 PyThreadState* __tstate = wxPyBeginAllowThreads();
31549 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31550
31551 wxPyEndAllowThreads(__tstate);
31552 if (PyErr_Occurred()) SWIG_fail;
31553 }
31554 {
31555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31556 }
31557 return resultobj;
31558 fail:
31559 return NULL;
31560 }
31561
31562
31563 static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31564 PyObject *resultobj;
31565 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31566 wxPoint *arg2 = 0 ;
31567 wxPoint *arg3 = 0 ;
31568 bool arg4 ;
31569 bool arg5 ;
31570 bool result;
31571 wxPoint temp2 ;
31572 wxPoint temp3 ;
31573 PyObject * obj0 = 0 ;
31574 PyObject * obj1 = 0 ;
31575 PyObject * obj2 = 0 ;
31576 PyObject * obj3 = 0 ;
31577 PyObject * obj4 = 0 ;
31578 char *kwnames[] = {
31579 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31580 };
31581
31582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31585 {
31586 arg2 = &temp2;
31587 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31588 }
31589 {
31590 arg3 = &temp3;
31591 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31592 }
31593 arg4 = (bool)SWIG_As_bool(obj3);
31594 if (PyErr_Occurred()) SWIG_fail;
31595 arg5 = (bool)SWIG_As_bool(obj4);
31596 if (PyErr_Occurred()) SWIG_fail;
31597 {
31598 PyThreadState* __tstate = wxPyBeginAllowThreads();
31599 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31600
31601 wxPyEndAllowThreads(__tstate);
31602 if (PyErr_Occurred()) SWIG_fail;
31603 }
31604 {
31605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31606 }
31607 return resultobj;
31608 fail:
31609 return NULL;
31610 }
31611
31612
31613 static PyObject * DragImage_swigregister(PyObject *, PyObject *args) {
31614 PyObject *obj;
31615 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31616 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31617 Py_INCREF(obj);
31618 return Py_BuildValue((char *)"");
31619 }
31620 static PyMethodDef SwigMethods[] = {
31621 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL },
31622 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL },
31623 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31624 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31625 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31626 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31627 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL },
31628 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31629 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31630 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31631 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31632 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31633 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31634 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31635 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31636 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31637 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31638 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31639 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31640 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL },
31641 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL },
31642 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL },
31643 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31644 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31645 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31646 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31647 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31648 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31649 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31650 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31651 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL },
31652 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL },
31653 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31654 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL },
31655 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL },
31656 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL },
31657 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31658 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31659 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31660 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31661 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31662 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL },
31663 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31664 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31665 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31666 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31667 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31668 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31669 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31670 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31671 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31672 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31673 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31674 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31675 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31676 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL },
31677 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31678 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31679 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31680 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31681 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31682 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31683 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL },
31684 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL },
31685 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL },
31686 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31687 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31688 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31689 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31690 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31691 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31692 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31693 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31694 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
31695 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
31696 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31697 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL },
31698 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
31699 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
31700 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31701 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31702 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL },
31703 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
31704 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
31705 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31706 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31707 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31708 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31709 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL },
31710 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL },
31711 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL },
31712 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31713 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31714 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL },
31715 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31716 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31717 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31718 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31719 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31720 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
31721 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31722 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL },
31723 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31724 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31725 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31726 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
31727 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL },
31728 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL },
31729 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31730 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31731 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL },
31732 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL },
31733 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31734 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31735 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
31736 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL },
31737 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL },
31738 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31739 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31740 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL },
31741 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31742 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31743 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
31744 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31745 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL },
31746 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31747 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31748 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31749 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31750 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL },
31751 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL },
31752 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31753 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
31754 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL },
31755 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31756 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31757 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL },
31758 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31759 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31760 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31761 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31762 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31763 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31764 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31765 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
31766 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31767 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31768 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
31769 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31770 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31771 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31772 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31773 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
31774 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31775 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31776 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31777 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31778 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31779 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31780 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31781 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31782 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
31783 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31784 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL },
31785 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL },
31786 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31787 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31788 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31789 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31790 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31791 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31792 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL },
31793 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL },
31794 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL },
31795 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL },
31796 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31797 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL },
31798 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL },
31799 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31800 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31801 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
31802 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31803 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31804 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
31805 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
31806 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL },
31807 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL },
31808 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL },
31809 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL },
31810 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL },
31811 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL },
31812 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31813 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31814 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31815 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31816 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31817 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL },
31818 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31819 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31820 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL },
31821 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31822 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31823 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31824 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
31825 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
31826 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
31827 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
31828 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
31829 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
31830 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
31831 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31832 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31833 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31834 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31835 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31836 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31837 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31838 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL },
31839 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL },
31840 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL },
31841 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
31842 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31843 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL },
31844 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31845 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31846 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL },
31847 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31848 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL },
31849 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
31850 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
31851 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31852 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31853 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL },
31854 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31855 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31856 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31857 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31858 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
31859 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31860 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL },
31861 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
31862 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
31863 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31864 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31865 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31866 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31867 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31868 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31869 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31870 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31871 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31872 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31873 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL },
31874 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31875 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31876 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31877 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31878 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31879 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL },
31880 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31881 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31882 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31883 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31884 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31885 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL },
31886 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31887 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31888 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31889 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL },
31890 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
31891 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
31892 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31893 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31894 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31895 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31896 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31897 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
31898 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
31899 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
31900 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31901 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL },
31902 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL },
31903 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
31904 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
31905 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
31906 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31907 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL },
31908 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
31909 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
31910 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31911 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31912 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31913 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31914 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL },
31915 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL },
31916 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL },
31917 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31918 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31919 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31920 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31921 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31922 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31923 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31924 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31925 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
31926 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31927 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
31928 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31929 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
31930 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
31931 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
31932 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
31933 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL },
31934 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL },
31935 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL },
31936 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31937 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL },
31938 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31939 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31940 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL },
31941 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
31942 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
31943 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31944 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31945 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31946 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31947 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31948 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL },
31949 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL },
31950 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS, NULL },
31951 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31952 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
31953 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
31954 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31955 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31956 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31957 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
31958 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
31959 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31960 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
31961 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL },
31962 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL },
31963 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
31964 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS, NULL },
31965 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL },
31966 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31967 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31968 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31969 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS, NULL },
31970 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31971 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31972 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31973 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31974 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31975 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS, NULL },
31976 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL },
31977 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
31978 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31979 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
31980 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL },
31981 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL },
31982 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31983 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
31984 { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
31985 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31986 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL },
31987 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31988 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL },
31989 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL },
31990 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL },
31991 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31992 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31993 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL },
31994 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31995 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL },
31996 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL },
31997 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
31998 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
31999 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32000 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL },
32001 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32002 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32003 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32004 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32005 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL },
32006 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32007 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32008 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32009 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
32010 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL },
32011 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32012 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32013 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
32014 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32015 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32016 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32017 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32018 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32019 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32020 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32021 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32022 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32023 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
32024 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32025 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32026 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32027 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32028 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32029 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32030 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32031 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
32032 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
32033 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32034 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32035 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL },
32036 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL },
32037 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL },
32038 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32039 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32040 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL },
32041 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL },
32042 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL },
32043 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32044 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32045 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL },
32046 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL },
32047 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL },
32048 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL },
32049 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL },
32050 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL },
32051 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL },
32052 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32053 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32054 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32055 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL },
32056 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL },
32057 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32058 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32059 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32060 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32061 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32062 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL },
32063 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32064 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32065 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32066 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32067 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32068 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32069 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32070 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
32071 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL },
32072 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL },
32073 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL },
32074 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32075 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32076 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL },
32077 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32078 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL },
32079 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32080 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL },
32081 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32082 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32083 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32084 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32085 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32086 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL },
32087 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32088 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32089 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32090 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32091 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32092 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32093 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32094 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32095 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32096 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32097 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32098 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL },
32099 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32100 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32101 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32102 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32103 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32104 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32105 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32106 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32107 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL },
32108 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
32109 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32110 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32111 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32112 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32113 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32114 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32115 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32116 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32117 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32118 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32119 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32120 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32121 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32122 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32123 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32124 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32125 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32126 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32127 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32128 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32129 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32130 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32131 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32132 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL },
32133 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL },
32134 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32135 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32136 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL },
32137 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL },
32138 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32139 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32140 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL },
32141 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL },
32142 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL },
32143 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL },
32144 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL },
32145 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL },
32146 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL },
32147 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL },
32148 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
32149 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
32150 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL },
32151 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32152 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL },
32153 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL },
32154 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32155 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32156 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32157 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32158 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32159 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32160 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL },
32161 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL },
32162 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL },
32163 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32164 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32165 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32166 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32167 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32168 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32169 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32170 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32171 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32172 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32173 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL },
32174 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL },
32175 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32176 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32177 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL },
32178 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32179 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32180 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32181 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32182 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32183 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32184 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32185 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32186 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32187 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32188 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL },
32189 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL },
32190 { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32191 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32192 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32193 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32194 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32195 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32196 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32197 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32198 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32199 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32200 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32201 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32202 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL },
32203 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32204 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32205 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32206 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32207 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32208 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32209 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32210 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL },
32211 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32212 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32213 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32214 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32215 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32216 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32217 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL },
32218 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL },
32219 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL },
32220 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL },
32221 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL },
32222 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
32223 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32224 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32225 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL },
32226 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL },
32227 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32228 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32229 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32230 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
32231 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32232 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL },
32233 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32234 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32235 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32236 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL },
32237 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32238 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32239 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32240 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32241 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL },
32242 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32243 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32244 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32245 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32246 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL },
32247 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32248 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32249 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL },
32250 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL },
32251 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL },
32252 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32253 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32254 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL },
32255 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL },
32256 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32257 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32258 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32259 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32260 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32261 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL },
32262 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32263 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32264 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
32265 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
32266 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
32267 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL },
32268 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL },
32269 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL },
32270 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32271 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32272 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32273 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32274 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32275 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32276 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL },
32277 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32278 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32279 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32280 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32281 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32282 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32283 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32284 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32285 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32286 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32287 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32288 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32289 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32290 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32291 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
32292 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL },
32293 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32294 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32295 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32296 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32297 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32298 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32299 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32300 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32301 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32302 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32303 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32304 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32305 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32306 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32307 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32308 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32309 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32310 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32311 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32312 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32313 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32314 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32315 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32316 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32317 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32318 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32319 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32320 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL },
32321 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL },
32322 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32323 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32324 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32325 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32326 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32327 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL },
32328 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32329 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL },
32330 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL },
32331 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL },
32332 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32333 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32334 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL },
32335 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL },
32336 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL },
32337 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL },
32338 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32339 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32340 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL },
32341 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32342 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32343 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL },
32344 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
32345 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32346 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL },
32347 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
32348 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
32349 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32350 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32351 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL },
32352 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL },
32353 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL },
32354 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32355 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL },
32356 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32357 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32358 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32359 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32360 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32361 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL },
32362 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32363 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32364 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32365 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32366 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32367 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL },
32368 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32369 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32370 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32371 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL },
32372 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32373 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32374 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32375 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL },
32376 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32377 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32378 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32379 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL },
32380 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32381 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32382 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32383 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32384 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32385 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32386 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32387 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL },
32388 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32389 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32390 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL },
32391 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL },
32392 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL },
32393 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL },
32394 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32395 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32396 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32397 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
32398 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
32399 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32400 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32401 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32402 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32403 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32404 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32405 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32406 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32407 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32408 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32409 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32410 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32411 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32412 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
32413 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32414 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32415 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
32416 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
32417 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
32418 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
32419 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
32420 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
32421 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
32422 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32423 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32424 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
32425 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32426 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32427 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32428 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32429 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32430 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32431 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32432 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL },
32433 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32434 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32435 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32436 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32437 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL },
32438 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL },
32439 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL },
32440 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32441 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL },
32442 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32443 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32444 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32445 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL },
32446 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32447 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32448 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL },
32449 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL },
32450 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL },
32451 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32452 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32453 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL },
32454 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL },
32455 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32456 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32457 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32458 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32459 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL },
32460 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32461 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL },
32462 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL },
32463 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
32464 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL },
32465 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32466 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32467 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32468 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL },
32469 { NULL, NULL, 0, NULL }
32470 };
32471
32472
32473 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32474
32475 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
32476 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32477 }
32478 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
32479 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
32480 }
32481 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32482 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32483 }
32484 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32485 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32486 }
32487 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32488 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32489 }
32490 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32491 return (void *)((wxSizer *) ((wxGridSizer *) x));
32492 }
32493 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32494 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32495 }
32496 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32497 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32498 }
32499 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32500 return (void *)((wxSizer *) ((wxPySizer *) x));
32501 }
32502 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32503 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32504 }
32505 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32506 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32507 }
32508 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32509 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32510 }
32511 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32512 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32513 }
32514 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32515 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32516 }
32517 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32518 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32519 }
32520 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32521 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32522 }
32523 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32524 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32525 }
32526 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32527 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32528 }
32529 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32530 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32531 }
32532 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32533 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32534 }
32535 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
32536 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32537 }
32538 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32539 return (void *)((wxEvent *) ((wxPyEvent *) x));
32540 }
32541 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32542 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32543 }
32544 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32545 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32546 }
32547 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32548 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32549 }
32550 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32551 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32552 }
32553 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32554 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32555 }
32556 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32557 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32558 }
32559 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32560 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32561 }
32562 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32563 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32564 }
32565 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32566 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32567 }
32568 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32569 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32570 }
32571 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32572 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32573 }
32574 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32575 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32576 }
32577 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32578 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32579 }
32580 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32581 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32582 }
32583 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32584 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32585 }
32586 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32587 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32588 }
32589 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32590 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32591 }
32592 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32593 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32594 }
32595 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32596 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32597 }
32598 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32599 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32600 }
32601 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32602 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32603 }
32604 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32605 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32606 }
32607 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32608 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32609 }
32610 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32611 return (void *)((wxEvent *) ((wxShowEvent *) x));
32612 }
32613 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32614 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32615 }
32616 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32617 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32618 }
32619 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32620 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32621 }
32622 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32623 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32624 }
32625 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32626 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32627 }
32628 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32629 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32630 }
32631 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32632 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32633 }
32634 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32635 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32636 }
32637 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32638 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32639 }
32640 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32641 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32642 }
32643 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32644 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32645 }
32646 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32647 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32648 }
32649 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32650 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32651 }
32652 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32653 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32654 }
32655 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
32656 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32657 }
32658 static void *_p_wxListBoxTo_p_wxControl(void *x) {
32659 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
32660 }
32661 static void *_p_wxChoiceTo_p_wxControl(void *x) {
32662 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
32663 }
32664 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32665 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32666 }
32667 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
32668 return (void *)((wxControl *) ((wxStaticBitmap *) x));
32669 }
32670 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32671 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32672 }
32673 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
32674 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32675 }
32676 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32677 return (void *)((wxControl *) ((wxStaticBox *) x));
32678 }
32679 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32680 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32681 }
32682 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32683 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32684 }
32685 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32686 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32687 }
32688 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32689 return (void *)((wxControl *) ((wxScrollBar *) x));
32690 }
32691 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32692 return (void *)((wxControl *) ((wxBookCtrl *) x));
32693 }
32694 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32695 return (void *)((wxControl *) ((wxRadioButton *) x));
32696 }
32697 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32698 return (void *)((wxControl *) ((wxToggleButton *) x));
32699 }
32700 static void *_p_wxGaugeTo_p_wxControl(void *x) {
32701 return (void *)((wxControl *) ((wxGauge *) x));
32702 }
32703 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32704 return (void *)((wxControl *) ((wxToolBarBase *) x));
32705 }
32706 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32707 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32708 }
32709 static void *_p_wxButtonTo_p_wxControl(void *x) {
32710 return (void *)((wxControl *) ((wxButton *) x));
32711 }
32712 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32713 return (void *)((wxControl *) ((wxSpinButton *) x));
32714 }
32715 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32716 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32717 }
32718 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32719 return (void *)((wxControl *) ((wxControlWithItems *) x));
32720 }
32721 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32722 return (void *)((wxControl *) ((wxRadioBox *) x));
32723 }
32724 static void *_p_wxNotebookTo_p_wxControl(void *x) {
32725 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32726 }
32727 static void *_p_wxListbookTo_p_wxControl(void *x) {
32728 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32729 }
32730 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32731 return (void *)((wxControl *) ((wxCheckBox *) x));
32732 }
32733 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32734 return (void *)((wxControl *) ((wxTextCtrl *) x));
32735 }
32736 static void *_p_wxListViewTo_p_wxControl(void *x) {
32737 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32738 }
32739 static void *_p_wxSliderTo_p_wxControl(void *x) {
32740 return (void *)((wxControl *) ((wxSlider *) x));
32741 }
32742 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32743 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32744 }
32745 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32746 return (void *)((wxControl *) ((wxPyControl *) x));
32747 }
32748 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32749 return (void *)((wxControl *) ((wxStaticLine *) x));
32750 }
32751 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32752 return (void *)((wxControl *) ((wxStaticText *) x));
32753 }
32754 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32755 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32756 }
32757 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
32758 return (void *)((wxChoice *) ((wxComboBox *) x));
32759 }
32760 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32761 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32762 }
32763 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32764 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32765 }
32766 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32767 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32768 }
32769 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32770 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32771 }
32772 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32773 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32774 }
32775 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32776 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32777 }
32778 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32779 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32780 }
32781 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32782 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32783 }
32784 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32785 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32786 }
32787 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32788 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32789 }
32790 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32791 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32792 }
32793 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32794 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32795 }
32796 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32797 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32798 }
32799 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32800 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32801 }
32802 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32803 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32804 }
32805 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32806 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32807 }
32808 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32809 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32810 }
32811 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32812 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32813 }
32814 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32815 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32816 }
32817 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32818 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32819 }
32820 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32821 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32822 }
32823 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32824 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32825 }
32826 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32827 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32828 }
32829 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32830 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32831 }
32832 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32833 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32834 }
32835 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32836 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32837 }
32838 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32839 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32840 }
32841 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32842 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32843 }
32844 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32845 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32846 }
32847 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32848 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32849 }
32850 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32851 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32852 }
32853 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32854 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32855 }
32856 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32857 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32858 }
32859 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32860 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32861 }
32862 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32863 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32864 }
32865 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32866 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32867 }
32868 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32869 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32870 }
32871 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32872 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32873 }
32874 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32875 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32876 }
32877 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32878 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32879 }
32880 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32881 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32882 }
32883 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32884 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32885 }
32886 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32887 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32888 }
32889 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32890 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32891 }
32892 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32893 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32894 }
32895 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32896 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32897 }
32898 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32899 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32900 }
32901 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32902 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32903 }
32904 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32905 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32906 }
32907 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32908 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32909 }
32910 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32911 return (void *)((wxButton *) ((wxBitmapButton *) x));
32912 }
32913 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32914 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32915 }
32916 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32917 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32918 }
32919 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32920 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32921 }
32922 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32923 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32924 }
32925 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32926 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32927 }
32928 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32929 return (void *)((wxObject *) ((wxSizerItem *) x));
32930 }
32931 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32932 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32933 }
32934 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32935 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32936 }
32937 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32938 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32939 }
32940 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32941 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32942 }
32943 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32944 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32945 }
32946 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32947 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32948 }
32949 static void *_p_wxSizerTo_p_wxObject(void *x) {
32950 return (void *)((wxObject *) ((wxSizer *) x));
32951 }
32952 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32953 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32954 }
32955 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32956 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32957 }
32958 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32959 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32960 }
32961 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32962 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32963 }
32964 static void *_p_wxEventTo_p_wxObject(void *x) {
32965 return (void *)((wxObject *) ((wxEvent *) x));
32966 }
32967 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32968 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32969 }
32970 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32971 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32972 }
32973 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32974 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32975 }
32976 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
32977 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32978 }
32979 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
32980 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32981 }
32982 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
32983 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32984 }
32985 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32986 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32987 }
32988 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32989 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32990 }
32991 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32992 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32993 }
32994 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32995 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32996 }
32997 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32998 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32999 }
33000 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
33001 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
33002 }
33003 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
33004 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
33005 }
33006 static void *_p_wxControlTo_p_wxObject(void *x) {
33007 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
33008 }
33009 static void *_p_wxPyControlTo_p_wxObject(void *x) {
33010 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
33011 }
33012 static void *_p_wxGaugeTo_p_wxObject(void *x) {
33013 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
33014 }
33015 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
33016 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
33017 }
33018 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
33019 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
33020 }
33021 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
33022 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33023 }
33024 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
33025 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
33026 }
33027 static void *_p_wxChoiceTo_p_wxObject(void *x) {
33028 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33029 }
33030 static void *_p_wxFSFileTo_p_wxObject(void *x) {
33031 return (void *)((wxObject *) ((wxFSFile *) x));
33032 }
33033 static void *_p_wxPySizerTo_p_wxObject(void *x) {
33034 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
33035 }
33036 static void *_p_wxListViewTo_p_wxObject(void *x) {
33037 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33038 }
33039 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
33040 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33041 }
33042 static void *_p_wxNotebookTo_p_wxObject(void *x) {
33043 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33044 }
33045 static void *_p_wxPyEventTo_p_wxObject(void *x) {
33046 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
33047 }
33048 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
33049 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
33050 }
33051 static void *_p_wxListbookTo_p_wxObject(void *x) {
33052 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33053 }
33054 static void *_p_wxShowEventTo_p_wxObject(void *x) {
33055 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
33056 }
33057 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
33058 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33059 }
33060 static void *_p_wxSliderTo_p_wxObject(void *x) {
33061 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
33062 }
33063 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
33064 return (void *)((wxObject *) ((wxMenuItem *) x));
33065 }
33066 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
33067 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
33068 }
33069 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
33070 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
33071 }
33072 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
33073 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
33074 }
33075 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
33076 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
33077 }
33078 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
33079 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
33080 }
33081 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
33082 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
33083 }
33084 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
33085 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
33086 }
33087 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
33088 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
33089 }
33090 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
33091 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
33092 }
33093 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
33094 return (void *)((wxObject *) ((wxContextHelp *) x));
33095 }
33096 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
33097 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
33098 }
33099 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
33100 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
33101 }
33102 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
33103 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
33104 }
33105 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
33106 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
33107 }
33108 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
33109 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
33110 }
33111 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
33112 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
33113 }
33114 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
33115 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
33116 }
33117 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
33118 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
33119 }
33120 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
33121 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
33122 }
33123 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
33124 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
33125 }
33126 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
33127 return (void *)((wxObject *) ((wxImageHandler *) x));
33128 }
33129 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
33130 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
33131 }
33132 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
33133 return (void *)((wxObject *) ((wxEvtHandler *) x));
33134 }
33135 static void *_p_wxListEventTo_p_wxObject(void *x) {
33136 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
33137 }
33138 static void *_p_wxListBoxTo_p_wxObject(void *x) {
33139 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33140 }
33141 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
33142 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33143 }
33144 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
33145 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
33146 }
33147 static void *_p_wxButtonTo_p_wxObject(void *x) {
33148 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
33149 }
33150 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
33151 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33152 }
33153 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
33154 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
33155 }
33156 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
33157 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33158 }
33159 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
33160 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
33161 }
33162 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
33163 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
33164 }
33165 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
33166 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
33167 }
33168 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
33169 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33170 }
33171 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
33172 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
33173 }
33174 static void *_p_wxListItemTo_p_wxObject(void *x) {
33175 return (void *)((wxObject *) ((wxListItem *) x));
33176 }
33177 static void *_p_wxImageTo_p_wxObject(void *x) {
33178 return (void *)((wxObject *) ((wxImage *) x));
33179 }
33180 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
33181 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
33182 }
33183 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
33184 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
33185 }
33186 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
33187 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
33188 }
33189 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
33190 return (void *)((wxObject *) ((wxGenericDragImage *) x));
33191 }
33192 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
33193 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33194 }
33195 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
33196 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33197 }
33198 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
33199 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33200 }
33201 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
33202 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33203 }
33204 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
33205 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
33206 }
33207 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
33208 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
33209 }
33210 static void *_p_wxWindowTo_p_wxObject(void *x) {
33211 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
33212 }
33213 static void *_p_wxMenuTo_p_wxObject(void *x) {
33214 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
33215 }
33216 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
33217 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
33218 }
33219 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
33220 return (void *)((wxObject *) ((wxFileSystem *) x));
33221 }
33222 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
33223 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
33224 }
33225 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
33226 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
33227 }
33228 static void *_p_wxPyAppTo_p_wxObject(void *x) {
33229 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
33230 }
33231 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
33232 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
33233 }
33234 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
33235 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
33236 }
33237 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
33238 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
33239 }
33240 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
33241 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
33242 }
33243 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
33244 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
33245 }
33246 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
33247 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
33248 }
33249 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
33250 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
33251 }
33252 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
33253 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
33254 }
33255 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
33256 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
33257 }
33258 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
33259 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33260 }
33261 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
33262 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33263 }
33264 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
33265 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
33266 }
33267 static void *_p_wxToolBarTo_p_wxObject(void *x) {
33268 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33269 }
33270 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
33271 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
33272 }
33273 static void *_p_wxValidatorTo_p_wxObject(void *x) {
33274 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
33275 }
33276 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
33277 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
33278 }
33279 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
33280 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
33281 }
33282 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
33283 return (void *)((wxWindow *) ((wxMenuBar *) x));
33284 }
33285 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
33286 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33287 }
33288 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
33289 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
33290 }
33291 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
33292 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
33293 }
33294 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
33295 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
33296 }
33297 static void *_p_wxControlTo_p_wxWindow(void *x) {
33298 return (void *)((wxWindow *) ((wxControl *) x));
33299 }
33300 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
33301 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
33302 }
33303 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
33304 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33305 }
33306 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
33307 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
33308 }
33309 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
33310 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33311 }
33312 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
33313 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
33314 }
33315 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
33316 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
33317 }
33318 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33319 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33320 }
33321 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
33322 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
33323 }
33324 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
33325 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
33326 }
33327 static void *_p_wxListbookTo_p_wxWindow(void *x) {
33328 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33329 }
33330 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
33331 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
33332 }
33333 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
33334 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
33335 }
33336 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
33337 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
33338 }
33339 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
33340 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33341 }
33342 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
33343 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33344 }
33345 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
33346 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33347 }
33348 static void *_p_wxListViewTo_p_wxWindow(void *x) {
33349 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33350 }
33351 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
33352 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33353 }
33354 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
33355 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
33356 }
33357 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
33358 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
33359 }
33360 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
33361 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
33362 }
33363 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
33364 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
33365 }
33366 static void *_p_wxSliderTo_p_wxWindow(void *x) {
33367 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
33368 }
33369 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
33370 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
33371 }
33372 static void *_p_wxButtonTo_p_wxWindow(void *x) {
33373 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
33374 }
33375 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
33376 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
33377 }
33378 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
33379 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33380 }
33381 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
33382 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
33383 }
33384 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
33385 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33386 }
33387 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
33388 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
33389 }
33390 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
33391 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
33392 }
33393 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
33394 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
33395 }
33396 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
33397 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
33398 }
33399 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
33400 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
33401 }
33402 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
33403 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
33404 }
33405 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
33406 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33407 }
33408 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
33409 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33410 }
33411 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
33412 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
33413 }
33414 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
33415 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
33416 }
33417 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
33418 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
33419 }
33420 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
33421 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
33422 }
33423 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
33424 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
33425 }
33426 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
33427 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
33428 }
33429 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
33430 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
33431 }
33432 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
33433 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
33434 }
33435 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
33436 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
33437 }
33438 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33439 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33440 }
33441 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33442 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33443 }
33444 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33445 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33446 }
33447 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33448 return (void *)((wxValidator *) ((wxPyValidator *) x));
33449 }
33450 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}};
33451 static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33452 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}};
33453 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}};
33454 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}};
33455 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33456 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}};
33457 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}};
33458 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}};
33459 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}};
33460 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}};
33461 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}};
33462 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}};
33463 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33464 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}};
33465 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}};
33466 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}};
33467 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}};
33468 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}};
33469 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}};
33470 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}};
33471 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}};
33472 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}};
33473 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}};
33474 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}};
33475 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}};
33476 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}};
33477 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}};
33478 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}};
33479 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}};
33480 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}};
33481 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}};
33482 static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33483 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}};
33484 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}};
33485 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}};
33486 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}};
33487 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}};
33488 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}};
33489 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}};
33490 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}};
33491 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33492 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}};
33493 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}};
33494 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}};
33495 static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33496 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}};
33497 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}};
33498 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}};
33499 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}};
33500 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}};
33501 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}};
33502 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}};
33503 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}};
33504 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}};
33505 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}};
33506 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}};
33507 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}};
33508 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}};
33509 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}};
33510 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}};
33511 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}};
33512 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}};
33513 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}};
33514 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}};
33515 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}};
33516 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}};
33517 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}};
33518 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}};
33519 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33520 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}};
33521 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}};
33522 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33523 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}};
33524 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}};
33525 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}};
33526 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}};
33527 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33528 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}};
33529 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}};
33530 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}};
33531 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}};
33532 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}};
33533 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}};
33534 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}};
33535
33536 static swig_type_info *swig_types_initial[] = {
33537 _swigt__p_wxTextUrlEvent,
33538 _swigt__p_wxBookCtrlEvent,
33539 _swigt__p_wxSizer,
33540 _swigt__p_wxCheckBox,
33541 _swigt__p_wxPyTreeCtrl,
33542 _swigt__p_wxEvent,
33543 _swigt__p_wxGenericDirCtrl,
33544 _swigt__p_bool,
33545 _swigt__p_wxPyTreeItemData,
33546 _swigt__p_wxItemContainer,
33547 _swigt__p_wxPyListCtrl,
33548 _swigt__p_wxDirFilterListCtrl,
33549 _swigt__p_wxStaticLine,
33550 _swigt__p_wxControl,
33551 _swigt__p_wxPyControl,
33552 _swigt__p_wxGauge,
33553 _swigt__p_wxToolBarBase,
33554 _swigt__p_wxFont,
33555 _swigt__p_wxToggleButton,
33556 _swigt__p_wxRadioButton,
33557 _swigt__p_wxChoice,
33558 _swigt__p_wxMemoryDC,
33559 _swigt__p_wxListItemAttr,
33560 _swigt__p_void,
33561 _swigt__p_int,
33562 _swigt__p_wxSize,
33563 _swigt__p_wxDC,
33564 _swigt__p_wxListView,
33565 _swigt__p_wxIcon,
33566 _swigt__p_wxVisualAttributes,
33567 _swigt__p_wxTextCtrl,
33568 _swigt__p_wxNotebook,
33569 _swigt__p_wxNotifyEvent,
33570 _swigt__p_wxArrayString,
33571 _swigt__p_wxListbook,
33572 _swigt__p_wxStaticBitmap,
33573 _swigt__p_wxSlider,
33574 _swigt__p_wxStaticBox,
33575 _swigt__p_wxArrayInt,
33576 _swigt__p_wxContextHelp,
33577 _swigt__p_long,
33578 _swigt__p_wxEvtHandler,
33579 _swigt__p_wxListEvent,
33580 _swigt__p_wxCheckListBox,
33581 _swigt__p_wxListBox,
33582 _swigt__p_wxBookCtrl,
33583 _swigt__p_wxSpinButton,
33584 _swigt__p_wxButton,
33585 _swigt__p_wxBitmapButton,
33586 _swigt__p_wxRect,
33587 _swigt__p_wxContextHelpButton,
33588 _swigt__p_wxRadioBox,
33589 _swigt__p_wxScrollBar,
33590 _swigt__p_char,
33591 _swigt__p_wxTreeItemId,
33592 _swigt__p_wxComboBox,
33593 _swigt__p_wxHelpEvent,
33594 _swigt__p_wxListItem,
33595 _swigt__p_wxNotebookSizer,
33596 _swigt__p_wxSpinEvent,
33597 _swigt__p_wxGenericDragImage,
33598 _swigt__p_wxSpinCtrl,
33599 _swigt__p_wxImageList,
33600 _swigt__p_wxHelpProvider,
33601 _swigt__p_wxTextAttr,
33602 _swigt__p_wxSimpleHelpProvider,
33603 _swigt__p_wxPoint,
33604 _swigt__p_wxListbookEvent,
33605 _swigt__p_wxNotebookEvent,
33606 _swigt__p_wxObject,
33607 _swigt__p_wxCursor,
33608 _swigt__p_wxKeyEvent,
33609 _swigt__p_wxWindow,
33610 _swigt__p_wxString,
33611 _swigt__p_wxBitmap,
33612 _swigt__p_wxTreeEvent,
33613 _swigt__p_wxMouseEvent,
33614 _swigt__p_wxCommandEvent,
33615 _swigt__p_wxStaticText,
33616 _swigt__p_wxControlWithItems,
33617 _swigt__p_wxToolBarToolBase,
33618 _swigt__p_wxColour,
33619 _swigt__p_wxToolBar,
33620 _swigt__p_wxBookCtrlSizer,
33621 _swigt__p_wxValidator,
33622 0
33623 };
33624
33625
33626 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33627
33628 static swig_const_info swig_const_table[] = {
33629 {0, 0, 0, 0.0, 0, 0}};
33630
33631 #ifdef __cplusplus
33632 }
33633 #endif
33634
33635 #ifdef __cplusplus
33636 extern "C"
33637 #endif
33638 SWIGEXPORT(void) SWIG_init(void) {
33639 static PyObject *SWIG_globals = 0;
33640 static int typeinit = 0;
33641 PyObject *m, *d;
33642 int i;
33643 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33644 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33645 d = PyModule_GetDict(m);
33646
33647 if (!typeinit) {
33648 for (i = 0; swig_types_initial[i]; i++) {
33649 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33650 }
33651 typeinit = 1;
33652 }
33653 SWIG_InstallConstants(d,swig_const_table);
33654
33655 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33656 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33657 PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT));
33658 PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP));
33659 PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT));
33660 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM));
33661 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT));
33662 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW));
33663 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33664 PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE));
33665 PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE));
33666 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
33667 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED));
33668 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED));
33669 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED));
33670 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
33671 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
33672 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
33673 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL));
33674 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL));
33675 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH));
33676 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR));
33677 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
33678 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
33679 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
33680 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33681 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33682 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL));
33683 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL));
33684 PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY));
33685 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE));
33686 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB));
33687 PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT));
33688 PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER));
33689 PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT));
33690 PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE));
33691 PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH));
33692 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER));
33693 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD));
33694 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL));
33695 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL));
33696 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP));
33697 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP));
33698 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP));
33699 PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2));
33700 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT));
33701 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT));
33702 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE));
33703 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER));
33704 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT));
33705 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33706 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR));
33707 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33708 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE));
33709 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE));
33710 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT));
33711 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC));
33712 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE));
33713 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT));
33714 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT));
33715 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT));
33716 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT));
33717 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS));
33718 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN));
33719 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE));
33720 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT));
33721 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW));
33722 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND));
33723 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33724 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33725 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33726 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33727 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33728 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33729 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33730 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL));
33731 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL));
33732 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS));
33733 PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP));
33734 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33735 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33736 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33737 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33738 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33739 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33740 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33741 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH));
33742 PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP));
33743 PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT));
33744 PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT));
33745 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM));
33746 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE));
33747 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE));
33748 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON));
33749 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL));
33750 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM));
33751 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33752 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33753 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT));
33754 PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP));
33755 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM));
33756 PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT));
33757 PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT));
33758 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK));
33759 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33760 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33761 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON));
33762 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR));
33763 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL));
33764 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL));
33765 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL));
33766 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS));
33767 PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT));
33768 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE));
33769 PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS));
33770 PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT));
33771 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER));
33772 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN));
33773 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT));
33774 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT));
33775 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33776 PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES));
33777 PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES));
33778 PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON));
33779 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON));
33780 PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST));
33781 PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT));
33782 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP));
33783 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT));
33784 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE));
33785 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL));
33786 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS));
33787 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER));
33788 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER));
33789 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL));
33790 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING));
33791 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING));
33792 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE));
33793 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN));
33794 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT));
33795 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE));
33796 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT));
33797 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE));
33798 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA));
33799 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM));
33800 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH));
33801 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT));
33802 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE));
33803 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED));
33804 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED));
33805 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED));
33806 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT));
33807 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED));
33808 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED));
33809 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE));
33810 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED));
33811 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE));
33812 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE));
33813 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW));
33814 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE));
33815 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON));
33816 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL));
33817 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT));
33818 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON));
33819 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT));
33820 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT));
33821 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM));
33822 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE));
33823 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL));
33824 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW));
33825 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT));
33826 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT));
33827 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT));
33828 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT));
33829 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP));
33830 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID));
33831 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT));
33832 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT));
33833 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE));
33834 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER));
33835 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE));
33836 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER));
33837 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS));
33838 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON));
33839 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL));
33840 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP));
33841 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN));
33842 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT));
33843 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT));
33844 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33845 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33846 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33847 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33848 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33849 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33850 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33851 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33852 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33853 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33854 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33855 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33856 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33857 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33858 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33859 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33860 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33861 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33862 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33863 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33864 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33865 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33866
33867 // Map renamed classes back to their common name for OOR
33868 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33869
33870 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33871 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS));
33872 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS));
33873 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES));
33874 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT));
33875 PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE));
33876 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE));
33877 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED));
33878 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33879 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS));
33880 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT));
33881 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES));
33882 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT));
33883 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE));
33884 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS));
33885 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS));
33886 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS));
33887 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal));
33888 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected));
33889 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded));
33890 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded));
33891 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max));
33892 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE));
33893 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW));
33894 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE));
33895 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON));
33896 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON));
33897 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT));
33898 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL));
33899 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT));
33900 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON));
33901 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT));
33902 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT));
33903 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART));
33904 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART));
33905 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM));
33906 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33907 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33908 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33909 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33910 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33911 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33912 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33913 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33914 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33915 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33916 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33917 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33918 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33919 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33920 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33921 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33922 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33923 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33924 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33925 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33926
33927 // Map renamed classes back to their common name for OOR
33928 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33929 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33930
33931 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33932 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY));
33933 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST));
33934 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS));
33935 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL));
33936 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS));
33937 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP));
33938 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP));
33939 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33940 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33941
33942 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33943
33944 }
33945