]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
trying to make GetData() return data format more clear
[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 if (!PyTuple_Check(target)) {
604 o2 = target;
605 target = PyTuple_New(1);
606 PyTuple_SetItem(target, 0, o2);
607 }
608 o3 = PyTuple_New(1);
609 PyTuple_SetItem(o3, 0, o);
610
611 o2 = target;
612 target = PySequence_Concat(o2, o3);
613 Py_DECREF(o2);
614 Py_DECREF(o3);
615 }
616 return target;
617 }
618
619
620
621 // See my_fragments.i
622 SWIGSTATICINLINE(int)
623 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
624 {
625 long v = 0;
626 if (SWIG_AsVal_long(obj, &v) && v < 0) {
627 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
628 return 0;
629 }
630 else if (val)
631 *val = (unsigned long)v;
632 return 1;
633 }
634
635
636 SWIGSTATICINLINE(unsigned long)
637 SWIG_As_unsigned_SS_long(PyObject* obj)
638 {
639 unsigned long v;
640 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
641 /*
642 this is needed to make valgrind/purify happier. the other
643 solution is throw an exception, but since this code should work
644 with plain C ....
645 */
646 memset((void*)&v, 0, sizeof(unsigned long));
647 }
648 return v;
649 }
650
651
652 SWIGSTATICINLINE(int)
653 SWIG_Check_unsigned_SS_long(PyObject* obj)
654 {
655 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
656 }
657
658 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
659 self->AppendText(text);
660 }
661 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
662 return self->GetValue().Mid(from, to - from);
663 }
664 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
665 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
666 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
667 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
668 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
669
670 #include <wx/slider.h>
671
672
673 static const wxString wxPySliderNameStr(wxSliderNameStr);
674 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
675
676 #if !wxUSE_TOGGLEBTN
677 // implement dummy items for platforms that don't have this class
678
679 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
680
681 class wxToggleButton : public wxControl
682 {
683 public:
684 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
685 const wxPoint&, const wxSize&, long,
686 const wxValidator&, const wxString&)
687 { wxPyRaiseNotImplemented(); }
688
689 wxToggleButton()
690 { wxPyRaiseNotImplemented(); }
691 };
692 #endif
693
694 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
695
696 SWIGSTATICINLINE(PyObject* )
697 SWIG_From_unsigned_SS_long(unsigned long value)
698 {
699 return (value > LONG_MAX) ?
700 PyLong_FromUnsignedLong(value)
701 : PyInt_FromLong(swig_numeric_cast(value,long));
702 }
703
704 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
705 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
706 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
707 if (udata) {
708 Py_INCREF(udata->m_obj);
709 return udata->m_obj;
710 } else {
711 Py_INCREF(Py_None);
712 return Py_None;
713 }
714 }
715 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
716 self->SetClientData(new wxPyUserData(clientData));
717 }
718 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){
719 wxPyUserData* udata = NULL;
720 if (clientData && clientData != Py_None)
721 udata = new wxPyUserData(clientData);
722 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
723 shortHelp, longHelp, udata);
724 }
725 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){
726 wxPyUserData* udata = NULL;
727 if (clientData && clientData != Py_None)
728 udata = new wxPyUserData(clientData);
729 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
730 shortHelp, longHelp, udata);
731 }
732 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
733 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
734 if (udata) {
735 Py_INCREF(udata->m_obj);
736 return udata->m_obj;
737 } else {
738 Py_INCREF(Py_None);
739 return Py_None;
740 }
741 }
742 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
743 self->SetToolClientData(id, new wxPyUserData(clientData));
744 }
745
746 #include <wx/listctrl.h>
747
748 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
749 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
750 // Python aware sorting function for wxPyListCtrl
751 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
752 int retval = 0;
753 PyObject* func = (PyObject*)funcPtr;
754 bool blocked = wxPyBeginBlockThreads();
755
756 PyObject* args = Py_BuildValue("(ii)", item1, item2);
757 PyObject* result = PyEval_CallObject(func, args);
758 Py_DECREF(args);
759 if (result) {
760 retval = PyInt_AsLong(result);
761 Py_DECREF(result);
762 }
763
764 wxPyEndBlockThreads(blocked);
765 return retval;
766 }
767
768 // C++ Version of a Python aware class
769 class wxPyListCtrl : public wxListCtrl {
770 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
771 public:
772 wxPyListCtrl() : wxListCtrl() {}
773 wxPyListCtrl(wxWindow* parent, wxWindowID id,
774 const wxPoint& pos,
775 const wxSize& size,
776 long style,
777 const wxValidator& validator,
778 const wxString& name) :
779 wxListCtrl(parent, id, pos, size, style, validator, name) {}
780
781 bool Create(wxWindow* parent, wxWindowID id,
782 const wxPoint& pos,
783 const wxSize& size,
784 long style,
785 const wxValidator& validator,
786 const wxString& name) {
787 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
788 }
789
790 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
791 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
792 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
793
794 PYPRIVATE;
795 };
796
797 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
798
799 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
800 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
801 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
802
803 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
804 wxListItem item;
805 item.SetMask( wxLIST_MASK_STATE |
806 wxLIST_MASK_TEXT |
807 wxLIST_MASK_IMAGE |
808 wxLIST_MASK_DATA |
809 wxLIST_SET_ITEM |
810 wxLIST_MASK_WIDTH |
811 wxLIST_MASK_FORMAT
812 );
813 if (self->GetColumn(col, item))
814 return new wxListItem(item);
815 else
816 return NULL;
817 }
818 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
819 wxListItem* info = new wxListItem;
820 info->m_itemId = itemId;
821 info->m_col = col;
822 info->m_mask = 0xFFFF;
823 self->GetItem(*info);
824 return info;
825 }
826 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
827 wxPoint pos;
828 self->GetItemPosition(item, pos);
829 return pos;
830 }
831 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
832 wxRect rect;
833 self->GetItemRect(item, rect, code);
834 return rect;
835 }
836
837 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
838 if (!PyCallable_Check(func))
839 return False;
840 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
841 }
842 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
843
844 return self;
845
846
847
848 }
849
850 #include <wx/treectrl.h>
851 #include "wx/wxPython/pytree.h"
852
853 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
854 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
855 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
856 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
857 // C++ version of Python aware wxTreeCtrl
858 class wxPyTreeCtrl : public wxTreeCtrl {
859 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
860 public:
861 wxPyTreeCtrl() : wxTreeCtrl() {}
862 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
863 const wxPoint& pos,
864 const wxSize& size,
865 long style,
866 const wxValidator& validator,
867 const wxString& name) :
868 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
869
870 bool Create(wxWindow *parent, wxWindowID id,
871 const wxPoint& pos,
872 const wxSize& size,
873 long style,
874 const wxValidator& validator,
875 const wxString& name) {
876 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
877 }
878
879
880 int OnCompareItems(const wxTreeItemId& item1,
881 const wxTreeItemId& item2) {
882 int rval = 0;
883 bool found;
884 bool blocked = wxPyBeginBlockThreads();
885 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
886 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
887 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
888 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
889 Py_DECREF(o1);
890 Py_DECREF(o2);
891 }
892 wxPyEndBlockThreads(blocked);
893 if (! found)
894 rval = wxTreeCtrl::OnCompareItems(item1, item2);
895 return rval;
896 }
897 PYPRIVATE;
898 };
899
900 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
901
902
903
904 #if UINT_MAX < LONG_MAX
905 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
906 #define SWIG_From_unsigned_SS_int SWIG_From_long
907 /*@@*/
908 #else
909 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
910 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
911 /*@@*/
912 #endif
913
914
915 SWIGSTATICINLINE(int)
916 SWIG_CheckUnsignedLongInRange(unsigned long value,
917 unsigned long max_value,
918 const char *errmsg)
919 {
920 if (value > max_value) {
921 if (errmsg) {
922 PyErr_Format(PyExc_OverflowError,
923 "value %ld is greater than '%s' minimum %ld",
924 value, errmsg, max_value);
925 }
926 return 0;
927 }
928 return 1;
929 }
930
931
932 #if UINT_MAX != ULONG_MAX
933 SWIGSTATICINLINE(int)
934 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
935 {
936 const char* errmsg = val ? "unsigned int" : 0;
937 unsigned long v;
938 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
939 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
940 if (val) *val = swig_numeric_cast(v, unsigned int);
941 return 1;
942 }
943 } else {
944 PyErr_Clear();
945 }
946 if (val) {
947 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
948 }
949 return 0;
950 }
951 #else
952 SWIGSTATICINLINE(unsigned int)
953 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
954 {
955 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
956 }
957 #endif
958
959
960 SWIGSTATICINLINE(unsigned int)
961 SWIG_As_unsigned_SS_int(PyObject* obj)
962 {
963 unsigned int v;
964 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
965 /*
966 this is needed to make valgrind/purify happier. the other
967 solution is throw an exception, but since this code should work
968 with plain C ....
969 */
970 memset((void*)&v, 0, sizeof(unsigned int));
971 }
972 return v;
973 }
974
975
976 SWIGSTATICINLINE(int)
977 SWIG_Check_unsigned_SS_int(PyObject* obj)
978 {
979 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
980 }
981
982 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
983 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
984 if (data == NULL) {
985 data = new wxPyTreeItemData();
986 data->SetId(item); // set the id
987 self->SetItemData(item, data);
988 }
989 return data;
990 }
991 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
992 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
993 if (data == NULL) {
994 data = new wxPyTreeItemData();
995 data->SetId(item); // set the id
996 self->SetItemData(item, data);
997 }
998 return data->GetData();
999 }
1000 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
1001 data->SetId(item); // set the id
1002 self->SetItemData(item, data);
1003 }
1004 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
1005 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
1006 if (data == NULL) {
1007 data = new wxPyTreeItemData(obj);
1008 data->SetId(item); // set the id
1009 self->SetItemData(item, data);
1010 } else
1011 data->SetData(obj);
1012 }
1013 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
1014 bool blocked = wxPyBeginBlockThreads();
1015 PyObject* rval = PyList_New(0);
1016 wxArrayTreeItemIds array;
1017 size_t num, x;
1018 num = self->GetSelections(array);
1019 for (x=0; x < num; x++) {
1020 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
1021 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
1022 PyList_Append(rval, item);
1023 Py_DECREF(item);
1024 }
1025 wxPyEndBlockThreads(blocked);
1026 return rval;
1027 }
1028 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
1029 void* cookie = 0;
1030 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
1031 bool blocked = wxPyBeginBlockThreads();
1032 PyObject* tup = PyTuple_New(2);
1033 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
1034 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1035 wxPyEndBlockThreads(blocked);
1036 return tup;
1037 }
1038 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
1039 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
1040 bool blocked = wxPyBeginBlockThreads();
1041 PyObject* tup = PyTuple_New(2);
1042 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
1043 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1044 wxPyEndBlockThreads(blocked);
1045 return tup;
1046 }
1047 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
1048 wxRect rect;
1049 if (self->GetBoundingRect(item, rect, textOnly)) {
1050 bool blocked = wxPyBeginBlockThreads();
1051 wxRect* r = new wxRect(rect);
1052 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
1053 wxPyEndBlockThreads(blocked);
1054 return val;
1055 }
1056 else
1057 RETURN_NONE();
1058 }
1059 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
1060
1061 SWIGSTATICINLINE(PyObject*)
1062 SWIG_From_bool(bool value)
1063 {
1064 PyObject *obj = value ? Py_True : Py_False;
1065 Py_INCREF(obj);
1066 return obj;
1067 }
1068
1069
1070 // C++ version of Python aware wxControl
1071 class wxPyControl : public wxControl
1072 {
1073 DECLARE_DYNAMIC_CLASS(wxPyControl)
1074 public:
1075 wxPyControl() : wxControl() {}
1076 wxPyControl(wxWindow* parent, const wxWindowID id,
1077 const wxPoint& pos = wxDefaultPosition,
1078 const wxSize& size = wxDefaultSize,
1079 long style = 0,
1080 const wxValidator& validator=wxDefaultValidator,
1081 const wxString& name = wxPyControlNameStr)
1082 : wxControl(parent, id, pos, size, style, validator, name) {}
1083
1084 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
1085
1086 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
1087 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
1088 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
1089 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
1090
1091 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
1092 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
1093 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
1094
1095 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
1096 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
1097
1098 DEC_PYCALLBACK__(InitDialog);
1099 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
1100 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
1101 DEC_PYCALLBACK_BOOL_(Validate);
1102
1103 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
1104 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
1105 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
1106
1107 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
1108 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
1109
1110 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1111 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
1112 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
1113
1114 PYPRIVATE;
1115 };
1116
1117 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
1118
1119 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
1120 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
1121 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
1122 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
1123
1124 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
1125 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
1126 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
1127
1128 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
1129 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
1130
1131 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
1132 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
1133 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
1134 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1135
1136 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1137 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1138 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1139
1140 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1141 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1142
1143 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
1144 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1145 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
1146
1147
1148
1149 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1150
1151 #include <wx/generic/dragimgg.h>
1152
1153 #ifdef __cplusplus
1154 extern "C" {
1155 #endif
1156 static int _wrap_ButtonNameStr_set(PyObject *) {
1157 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1158 return 1;
1159 }
1160
1161
1162 static PyObject *_wrap_ButtonNameStr_get() {
1163 PyObject *pyobj;
1164
1165 {
1166 #if wxUSE_UNICODE
1167 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1168 #else
1169 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1170 #endif
1171 }
1172 return pyobj;
1173 }
1174
1175
1176 static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) {
1177 PyObject *resultobj;
1178 wxWindow *arg1 = (wxWindow *) 0 ;
1179 int arg2 = (int) -1 ;
1180 wxString const &arg3_defvalue = wxPyEmptyString ;
1181 wxString *arg3 = (wxString *) &arg3_defvalue ;
1182 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1183 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1184 wxSize const &arg5_defvalue = wxDefaultSize ;
1185 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1186 long arg6 = (long) 0 ;
1187 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1188 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1189 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1190 wxString *arg8 = (wxString *) &arg8_defvalue ;
1191 wxButton *result;
1192 bool temp3 = False ;
1193 wxPoint temp4 ;
1194 wxSize temp5 ;
1195 bool temp8 = False ;
1196 PyObject * obj0 = 0 ;
1197 PyObject * obj1 = 0 ;
1198 PyObject * obj2 = 0 ;
1199 PyObject * obj3 = 0 ;
1200 PyObject * obj4 = 0 ;
1201 PyObject * obj5 = 0 ;
1202 PyObject * obj6 = 0 ;
1203 PyObject * obj7 = 0 ;
1204 char *kwnames[] = {
1205 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1206 };
1207
1208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1211 if (obj1) {
1212 arg2 = (int)SWIG_As_int(obj1);
1213 if (PyErr_Occurred()) SWIG_fail;
1214 }
1215 if (obj2) {
1216 {
1217 arg3 = wxString_in_helper(obj2);
1218 if (arg3 == NULL) SWIG_fail;
1219 temp3 = True;
1220 }
1221 }
1222 if (obj3) {
1223 {
1224 arg4 = &temp4;
1225 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1226 }
1227 }
1228 if (obj4) {
1229 {
1230 arg5 = &temp5;
1231 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1232 }
1233 }
1234 if (obj5) {
1235 arg6 = (long)SWIG_As_long(obj5);
1236 if (PyErr_Occurred()) SWIG_fail;
1237 }
1238 if (obj6) {
1239 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1240 SWIG_POINTER_EXCEPTION | 0)) == -1)
1241 SWIG_fail;
1242 if (arg7 == NULL) {
1243 PyErr_SetString(PyExc_TypeError,"null reference");
1244 SWIG_fail;
1245 }
1246 }
1247 if (obj7) {
1248 {
1249 arg8 = wxString_in_helper(obj7);
1250 if (arg8 == NULL) SWIG_fail;
1251 temp8 = True;
1252 }
1253 }
1254 {
1255 if (!wxPyCheckForApp()) SWIG_fail;
1256 PyThreadState* __tstate = wxPyBeginAllowThreads();
1257 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1258
1259 wxPyEndAllowThreads(__tstate);
1260 if (PyErr_Occurred()) SWIG_fail;
1261 }
1262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1263 {
1264 if (temp3)
1265 delete arg3;
1266 }
1267 {
1268 if (temp8)
1269 delete arg8;
1270 }
1271 return resultobj;
1272 fail:
1273 {
1274 if (temp3)
1275 delete arg3;
1276 }
1277 {
1278 if (temp8)
1279 delete arg8;
1280 }
1281 return NULL;
1282 }
1283
1284
1285 static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) {
1286 PyObject *resultobj;
1287 wxButton *result;
1288 char *kwnames[] = {
1289 NULL
1290 };
1291
1292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1293 {
1294 if (!wxPyCheckForApp()) SWIG_fail;
1295 PyThreadState* __tstate = wxPyBeginAllowThreads();
1296 result = (wxButton *)new wxButton();
1297
1298 wxPyEndAllowThreads(__tstate);
1299 if (PyErr_Occurred()) SWIG_fail;
1300 }
1301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1302 return resultobj;
1303 fail:
1304 return NULL;
1305 }
1306
1307
1308 static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1309 PyObject *resultobj;
1310 wxButton *arg1 = (wxButton *) 0 ;
1311 wxWindow *arg2 = (wxWindow *) 0 ;
1312 int arg3 = (int) -1 ;
1313 wxString const &arg4_defvalue = wxPyEmptyString ;
1314 wxString *arg4 = (wxString *) &arg4_defvalue ;
1315 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1316 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1317 wxSize const &arg6_defvalue = wxDefaultSize ;
1318 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1319 long arg7 = (long) 0 ;
1320 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1321 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1322 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1323 wxString *arg9 = (wxString *) &arg9_defvalue ;
1324 bool result;
1325 bool temp4 = False ;
1326 wxPoint temp5 ;
1327 wxSize temp6 ;
1328 bool temp9 = False ;
1329 PyObject * obj0 = 0 ;
1330 PyObject * obj1 = 0 ;
1331 PyObject * obj2 = 0 ;
1332 PyObject * obj3 = 0 ;
1333 PyObject * obj4 = 0 ;
1334 PyObject * obj5 = 0 ;
1335 PyObject * obj6 = 0 ;
1336 PyObject * obj7 = 0 ;
1337 PyObject * obj8 = 0 ;
1338 char *kwnames[] = {
1339 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1340 };
1341
1342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1345 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1347 if (obj2) {
1348 arg3 = (int)SWIG_As_int(obj2);
1349 if (PyErr_Occurred()) SWIG_fail;
1350 }
1351 if (obj3) {
1352 {
1353 arg4 = wxString_in_helper(obj3);
1354 if (arg4 == NULL) SWIG_fail;
1355 temp4 = True;
1356 }
1357 }
1358 if (obj4) {
1359 {
1360 arg5 = &temp5;
1361 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1362 }
1363 }
1364 if (obj5) {
1365 {
1366 arg6 = &temp6;
1367 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1368 }
1369 }
1370 if (obj6) {
1371 arg7 = (long)SWIG_As_long(obj6);
1372 if (PyErr_Occurred()) SWIG_fail;
1373 }
1374 if (obj7) {
1375 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1376 SWIG_POINTER_EXCEPTION | 0)) == -1)
1377 SWIG_fail;
1378 if (arg8 == NULL) {
1379 PyErr_SetString(PyExc_TypeError,"null reference");
1380 SWIG_fail;
1381 }
1382 }
1383 if (obj8) {
1384 {
1385 arg9 = wxString_in_helper(obj8);
1386 if (arg9 == NULL) SWIG_fail;
1387 temp9 = True;
1388 }
1389 }
1390 {
1391 PyThreadState* __tstate = wxPyBeginAllowThreads();
1392 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1393
1394 wxPyEndAllowThreads(__tstate);
1395 if (PyErr_Occurred()) SWIG_fail;
1396 }
1397 {
1398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1399 }
1400 {
1401 if (temp4)
1402 delete arg4;
1403 }
1404 {
1405 if (temp9)
1406 delete arg9;
1407 }
1408 return resultobj;
1409 fail:
1410 {
1411 if (temp4)
1412 delete arg4;
1413 }
1414 {
1415 if (temp9)
1416 delete arg9;
1417 }
1418 return NULL;
1419 }
1420
1421
1422 static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
1423 PyObject *resultobj;
1424 wxButton *arg1 = (wxButton *) 0 ;
1425 PyObject * obj0 = 0 ;
1426 char *kwnames[] = {
1427 (char *) "self", NULL
1428 };
1429
1430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1433 {
1434 PyThreadState* __tstate = wxPyBeginAllowThreads();
1435 (arg1)->SetDefault();
1436
1437 wxPyEndAllowThreads(__tstate);
1438 if (PyErr_Occurred()) SWIG_fail;
1439 }
1440 Py_INCREF(Py_None); resultobj = Py_None;
1441 return resultobj;
1442 fail:
1443 return NULL;
1444 }
1445
1446
1447 static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
1448 PyObject *resultobj;
1449 wxSize result;
1450 char *kwnames[] = {
1451 NULL
1452 };
1453
1454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1455 {
1456 PyThreadState* __tstate = wxPyBeginAllowThreads();
1457 result = wxButton::GetDefaultSize();
1458
1459 wxPyEndAllowThreads(__tstate);
1460 if (PyErr_Occurred()) SWIG_fail;
1461 }
1462 {
1463 wxSize * resultptr;
1464 resultptr = new wxSize((wxSize &) result);
1465 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1466 }
1467 return resultobj;
1468 fail:
1469 return NULL;
1470 }
1471
1472
1473 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
1474 PyObject *resultobj;
1475 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1476 wxVisualAttributes result;
1477 PyObject * obj0 = 0 ;
1478 char *kwnames[] = {
1479 (char *) "variant", NULL
1480 };
1481
1482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1483 if (obj0) {
1484 arg1 = (int)SWIG_As_int(obj0);
1485 if (PyErr_Occurred()) SWIG_fail;
1486 }
1487 {
1488 if (!wxPyCheckForApp()) SWIG_fail;
1489 PyThreadState* __tstate = wxPyBeginAllowThreads();
1490 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1491
1492 wxPyEndAllowThreads(__tstate);
1493 if (PyErr_Occurred()) SWIG_fail;
1494 }
1495 {
1496 wxVisualAttributes * resultptr;
1497 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1498 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1499 }
1500 return resultobj;
1501 fail:
1502 return NULL;
1503 }
1504
1505
1506 static PyObject * Button_swigregister(PyObject *, PyObject *args) {
1507 PyObject *obj;
1508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1509 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1510 Py_INCREF(obj);
1511 return Py_BuildValue((char *)"");
1512 }
1513 static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1514 PyObject *resultobj;
1515 wxWindow *arg1 = (wxWindow *) 0 ;
1516 int arg2 = (int) -1 ;
1517 wxBitmap const &arg3_defvalue = wxNullBitmap ;
1518 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
1519 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1520 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1521 wxSize const &arg5_defvalue = wxDefaultSize ;
1522 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1523 long arg6 = (long) wxBU_AUTODRAW ;
1524 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1525 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1526 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1527 wxString *arg8 = (wxString *) &arg8_defvalue ;
1528 wxBitmapButton *result;
1529 wxPoint temp4 ;
1530 wxSize temp5 ;
1531 bool temp8 = False ;
1532 PyObject * obj0 = 0 ;
1533 PyObject * obj1 = 0 ;
1534 PyObject * obj2 = 0 ;
1535 PyObject * obj3 = 0 ;
1536 PyObject * obj4 = 0 ;
1537 PyObject * obj5 = 0 ;
1538 PyObject * obj6 = 0 ;
1539 PyObject * obj7 = 0 ;
1540 char *kwnames[] = {
1541 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1542 };
1543
1544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1547 if (obj1) {
1548 arg2 = (int)SWIG_As_int(obj1);
1549 if (PyErr_Occurred()) SWIG_fail;
1550 }
1551 if (obj2) {
1552 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1553 SWIG_POINTER_EXCEPTION | 0)) == -1)
1554 SWIG_fail;
1555 if (arg3 == NULL) {
1556 PyErr_SetString(PyExc_TypeError,"null reference");
1557 SWIG_fail;
1558 }
1559 }
1560 if (obj3) {
1561 {
1562 arg4 = &temp4;
1563 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1564 }
1565 }
1566 if (obj4) {
1567 {
1568 arg5 = &temp5;
1569 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1570 }
1571 }
1572 if (obj5) {
1573 arg6 = (long)SWIG_As_long(obj5);
1574 if (PyErr_Occurred()) SWIG_fail;
1575 }
1576 if (obj6) {
1577 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1578 SWIG_POINTER_EXCEPTION | 0)) == -1)
1579 SWIG_fail;
1580 if (arg7 == NULL) {
1581 PyErr_SetString(PyExc_TypeError,"null reference");
1582 SWIG_fail;
1583 }
1584 }
1585 if (obj7) {
1586 {
1587 arg8 = wxString_in_helper(obj7);
1588 if (arg8 == NULL) SWIG_fail;
1589 temp8 = True;
1590 }
1591 }
1592 {
1593 if (!wxPyCheckForApp()) SWIG_fail;
1594 PyThreadState* __tstate = wxPyBeginAllowThreads();
1595 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1596
1597 wxPyEndAllowThreads(__tstate);
1598 if (PyErr_Occurred()) SWIG_fail;
1599 }
1600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1601 {
1602 if (temp8)
1603 delete arg8;
1604 }
1605 return resultobj;
1606 fail:
1607 {
1608 if (temp8)
1609 delete arg8;
1610 }
1611 return NULL;
1612 }
1613
1614
1615 static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1616 PyObject *resultobj;
1617 wxBitmapButton *result;
1618 char *kwnames[] = {
1619 NULL
1620 };
1621
1622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1623 {
1624 if (!wxPyCheckForApp()) SWIG_fail;
1625 PyThreadState* __tstate = wxPyBeginAllowThreads();
1626 result = (wxBitmapButton *)new wxBitmapButton();
1627
1628 wxPyEndAllowThreads(__tstate);
1629 if (PyErr_Occurred()) SWIG_fail;
1630 }
1631 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1632 return resultobj;
1633 fail:
1634 return NULL;
1635 }
1636
1637
1638 static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1639 PyObject *resultobj;
1640 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1641 wxWindow *arg2 = (wxWindow *) 0 ;
1642 int arg3 = (int) -1 ;
1643 wxBitmap const &arg4_defvalue = wxNullBitmap ;
1644 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1645 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1646 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1647 wxSize const &arg6_defvalue = wxDefaultSize ;
1648 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1649 long arg7 = (long) wxBU_AUTODRAW ;
1650 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1651 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1652 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1653 wxString *arg9 = (wxString *) &arg9_defvalue ;
1654 bool result;
1655 wxPoint temp5 ;
1656 wxSize temp6 ;
1657 bool temp9 = False ;
1658 PyObject * obj0 = 0 ;
1659 PyObject * obj1 = 0 ;
1660 PyObject * obj2 = 0 ;
1661 PyObject * obj3 = 0 ;
1662 PyObject * obj4 = 0 ;
1663 PyObject * obj5 = 0 ;
1664 PyObject * obj6 = 0 ;
1665 PyObject * obj7 = 0 ;
1666 PyObject * obj8 = 0 ;
1667 char *kwnames[] = {
1668 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1669 };
1670
1671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1676 if (obj2) {
1677 arg3 = (int)SWIG_As_int(obj2);
1678 if (PyErr_Occurred()) SWIG_fail;
1679 }
1680 if (obj3) {
1681 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1682 SWIG_POINTER_EXCEPTION | 0)) == -1)
1683 SWIG_fail;
1684 if (arg4 == NULL) {
1685 PyErr_SetString(PyExc_TypeError,"null reference");
1686 SWIG_fail;
1687 }
1688 }
1689 if (obj4) {
1690 {
1691 arg5 = &temp5;
1692 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1693 }
1694 }
1695 if (obj5) {
1696 {
1697 arg6 = &temp6;
1698 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1699 }
1700 }
1701 if (obj6) {
1702 arg7 = (long)SWIG_As_long(obj6);
1703 if (PyErr_Occurred()) SWIG_fail;
1704 }
1705 if (obj7) {
1706 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1707 SWIG_POINTER_EXCEPTION | 0)) == -1)
1708 SWIG_fail;
1709 if (arg8 == NULL) {
1710 PyErr_SetString(PyExc_TypeError,"null reference");
1711 SWIG_fail;
1712 }
1713 }
1714 if (obj8) {
1715 {
1716 arg9 = wxString_in_helper(obj8);
1717 if (arg9 == NULL) SWIG_fail;
1718 temp9 = True;
1719 }
1720 }
1721 {
1722 PyThreadState* __tstate = wxPyBeginAllowThreads();
1723 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1724
1725 wxPyEndAllowThreads(__tstate);
1726 if (PyErr_Occurred()) SWIG_fail;
1727 }
1728 {
1729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1730 }
1731 {
1732 if (temp9)
1733 delete arg9;
1734 }
1735 return resultobj;
1736 fail:
1737 {
1738 if (temp9)
1739 delete arg9;
1740 }
1741 return NULL;
1742 }
1743
1744
1745 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1746 PyObject *resultobj;
1747 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1748 wxBitmap result;
1749 PyObject * obj0 = 0 ;
1750 char *kwnames[] = {
1751 (char *) "self", NULL
1752 };
1753
1754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1757 {
1758 PyThreadState* __tstate = wxPyBeginAllowThreads();
1759 result = (arg1)->GetBitmapLabel();
1760
1761 wxPyEndAllowThreads(__tstate);
1762 if (PyErr_Occurred()) SWIG_fail;
1763 }
1764 {
1765 wxBitmap * resultptr;
1766 resultptr = new wxBitmap((wxBitmap &) result);
1767 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1768 }
1769 return resultobj;
1770 fail:
1771 return NULL;
1772 }
1773
1774
1775 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1776 PyObject *resultobj;
1777 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1778 wxBitmap result;
1779 PyObject * obj0 = 0 ;
1780 char *kwnames[] = {
1781 (char *) "self", NULL
1782 };
1783
1784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1787 {
1788 PyThreadState* __tstate = wxPyBeginAllowThreads();
1789 result = (arg1)->GetBitmapDisabled();
1790
1791 wxPyEndAllowThreads(__tstate);
1792 if (PyErr_Occurred()) SWIG_fail;
1793 }
1794 {
1795 wxBitmap * resultptr;
1796 resultptr = new wxBitmap((wxBitmap &) result);
1797 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1798 }
1799 return resultobj;
1800 fail:
1801 return NULL;
1802 }
1803
1804
1805 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1806 PyObject *resultobj;
1807 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1808 wxBitmap result;
1809 PyObject * obj0 = 0 ;
1810 char *kwnames[] = {
1811 (char *) "self", NULL
1812 };
1813
1814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1817 {
1818 PyThreadState* __tstate = wxPyBeginAllowThreads();
1819 result = (arg1)->GetBitmapFocus();
1820
1821 wxPyEndAllowThreads(__tstate);
1822 if (PyErr_Occurred()) SWIG_fail;
1823 }
1824 {
1825 wxBitmap * resultptr;
1826 resultptr = new wxBitmap((wxBitmap &) result);
1827 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1828 }
1829 return resultobj;
1830 fail:
1831 return NULL;
1832 }
1833
1834
1835 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1836 PyObject *resultobj;
1837 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1838 wxBitmap result;
1839 PyObject * obj0 = 0 ;
1840 char *kwnames[] = {
1841 (char *) "self", NULL
1842 };
1843
1844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1847 {
1848 PyThreadState* __tstate = wxPyBeginAllowThreads();
1849 result = (arg1)->GetBitmapSelected();
1850
1851 wxPyEndAllowThreads(__tstate);
1852 if (PyErr_Occurred()) SWIG_fail;
1853 }
1854 {
1855 wxBitmap * resultptr;
1856 resultptr = new wxBitmap((wxBitmap &) result);
1857 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1858 }
1859 return resultobj;
1860 fail:
1861 return NULL;
1862 }
1863
1864
1865 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1866 PyObject *resultobj;
1867 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1868 wxBitmap *arg2 = 0 ;
1869 PyObject * obj0 = 0 ;
1870 PyObject * obj1 = 0 ;
1871 char *kwnames[] = {
1872 (char *) "self",(char *) "bitmap", NULL
1873 };
1874
1875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1878 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1879 SWIG_POINTER_EXCEPTION | 0)) == -1)
1880 SWIG_fail;
1881 if (arg2 == NULL) {
1882 PyErr_SetString(PyExc_TypeError,"null reference");
1883 SWIG_fail;
1884 }
1885 {
1886 PyThreadState* __tstate = wxPyBeginAllowThreads();
1887 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1888
1889 wxPyEndAllowThreads(__tstate);
1890 if (PyErr_Occurred()) SWIG_fail;
1891 }
1892 Py_INCREF(Py_None); resultobj = Py_None;
1893 return resultobj;
1894 fail:
1895 return NULL;
1896 }
1897
1898
1899 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1900 PyObject *resultobj;
1901 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1902 wxBitmap *arg2 = 0 ;
1903 PyObject * obj0 = 0 ;
1904 PyObject * obj1 = 0 ;
1905 char *kwnames[] = {
1906 (char *) "self",(char *) "bitmap", NULL
1907 };
1908
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1913 SWIG_POINTER_EXCEPTION | 0)) == -1)
1914 SWIG_fail;
1915 if (arg2 == NULL) {
1916 PyErr_SetString(PyExc_TypeError,"null reference");
1917 SWIG_fail;
1918 }
1919 {
1920 PyThreadState* __tstate = wxPyBeginAllowThreads();
1921 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1922
1923 wxPyEndAllowThreads(__tstate);
1924 if (PyErr_Occurred()) SWIG_fail;
1925 }
1926 Py_INCREF(Py_None); resultobj = Py_None;
1927 return resultobj;
1928 fail:
1929 return NULL;
1930 }
1931
1932
1933 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1934 PyObject *resultobj;
1935 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1936 wxBitmap *arg2 = 0 ;
1937 PyObject * obj0 = 0 ;
1938 PyObject * obj1 = 0 ;
1939 char *kwnames[] = {
1940 (char *) "self",(char *) "bitmap", NULL
1941 };
1942
1943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1946 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1947 SWIG_POINTER_EXCEPTION | 0)) == -1)
1948 SWIG_fail;
1949 if (arg2 == NULL) {
1950 PyErr_SetString(PyExc_TypeError,"null reference");
1951 SWIG_fail;
1952 }
1953 {
1954 PyThreadState* __tstate = wxPyBeginAllowThreads();
1955 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1956
1957 wxPyEndAllowThreads(__tstate);
1958 if (PyErr_Occurred()) SWIG_fail;
1959 }
1960 Py_INCREF(Py_None); resultobj = Py_None;
1961 return resultobj;
1962 fail:
1963 return NULL;
1964 }
1965
1966
1967 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1968 PyObject *resultobj;
1969 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1970 wxBitmap *arg2 = 0 ;
1971 PyObject * obj0 = 0 ;
1972 PyObject * obj1 = 0 ;
1973 char *kwnames[] = {
1974 (char *) "self",(char *) "bitmap", NULL
1975 };
1976
1977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1980 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1981 SWIG_POINTER_EXCEPTION | 0)) == -1)
1982 SWIG_fail;
1983 if (arg2 == NULL) {
1984 PyErr_SetString(PyExc_TypeError,"null reference");
1985 SWIG_fail;
1986 }
1987 {
1988 PyThreadState* __tstate = wxPyBeginAllowThreads();
1989 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1990
1991 wxPyEndAllowThreads(__tstate);
1992 if (PyErr_Occurred()) SWIG_fail;
1993 }
1994 Py_INCREF(Py_None); resultobj = Py_None;
1995 return resultobj;
1996 fail:
1997 return NULL;
1998 }
1999
2000
2001 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
2002 PyObject *resultobj;
2003 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2004 int arg2 ;
2005 int arg3 ;
2006 PyObject * obj0 = 0 ;
2007 PyObject * obj1 = 0 ;
2008 PyObject * obj2 = 0 ;
2009 char *kwnames[] = {
2010 (char *) "self",(char *) "x",(char *) "y", NULL
2011 };
2012
2013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
2014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2016 arg2 = (int)SWIG_As_int(obj1);
2017 if (PyErr_Occurred()) SWIG_fail;
2018 arg3 = (int)SWIG_As_int(obj2);
2019 if (PyErr_Occurred()) SWIG_fail;
2020 {
2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
2022 (arg1)->SetMargins(arg2,arg3);
2023
2024 wxPyEndAllowThreads(__tstate);
2025 if (PyErr_Occurred()) SWIG_fail;
2026 }
2027 Py_INCREF(Py_None); resultobj = Py_None;
2028 return resultobj;
2029 fail:
2030 return NULL;
2031 }
2032
2033
2034 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) {
2035 PyObject *resultobj;
2036 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2037 int result;
2038 PyObject * obj0 = 0 ;
2039 char *kwnames[] = {
2040 (char *) "self", NULL
2041 };
2042
2043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
2044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2046 {
2047 PyThreadState* __tstate = wxPyBeginAllowThreads();
2048 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
2049
2050 wxPyEndAllowThreads(__tstate);
2051 if (PyErr_Occurred()) SWIG_fail;
2052 }
2053 resultobj = SWIG_From_int((int)result);
2054 return resultobj;
2055 fail:
2056 return NULL;
2057 }
2058
2059
2060 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) {
2061 PyObject *resultobj;
2062 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2063 int result;
2064 PyObject * obj0 = 0 ;
2065 char *kwnames[] = {
2066 (char *) "self", NULL
2067 };
2068
2069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
2070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2072 {
2073 PyThreadState* __tstate = wxPyBeginAllowThreads();
2074 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
2075
2076 wxPyEndAllowThreads(__tstate);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 }
2079 resultobj = SWIG_From_int((int)result);
2080 return resultobj;
2081 fail:
2082 return NULL;
2083 }
2084
2085
2086 static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) {
2087 PyObject *obj;
2088 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2089 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
2090 Py_INCREF(obj);
2091 return Py_BuildValue((char *)"");
2092 }
2093 static int _wrap_CheckBoxNameStr_set(PyObject *) {
2094 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
2095 return 1;
2096 }
2097
2098
2099 static PyObject *_wrap_CheckBoxNameStr_get() {
2100 PyObject *pyobj;
2101
2102 {
2103 #if wxUSE_UNICODE
2104 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2105 #else
2106 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2107 #endif
2108 }
2109 return pyobj;
2110 }
2111
2112
2113 static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2114 PyObject *resultobj;
2115 wxWindow *arg1 = (wxWindow *) 0 ;
2116 int arg2 = (int) -1 ;
2117 wxString const &arg3_defvalue = wxPyEmptyString ;
2118 wxString *arg3 = (wxString *) &arg3_defvalue ;
2119 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2120 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2121 wxSize const &arg5_defvalue = wxDefaultSize ;
2122 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2123 long arg6 = (long) 0 ;
2124 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2125 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2126 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
2127 wxString *arg8 = (wxString *) &arg8_defvalue ;
2128 wxCheckBox *result;
2129 bool temp3 = False ;
2130 wxPoint temp4 ;
2131 wxSize temp5 ;
2132 bool temp8 = False ;
2133 PyObject * obj0 = 0 ;
2134 PyObject * obj1 = 0 ;
2135 PyObject * obj2 = 0 ;
2136 PyObject * obj3 = 0 ;
2137 PyObject * obj4 = 0 ;
2138 PyObject * obj5 = 0 ;
2139 PyObject * obj6 = 0 ;
2140 PyObject * obj7 = 0 ;
2141 char *kwnames[] = {
2142 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2143 };
2144
2145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2148 if (obj1) {
2149 arg2 = (int)SWIG_As_int(obj1);
2150 if (PyErr_Occurred()) SWIG_fail;
2151 }
2152 if (obj2) {
2153 {
2154 arg3 = wxString_in_helper(obj2);
2155 if (arg3 == NULL) SWIG_fail;
2156 temp3 = True;
2157 }
2158 }
2159 if (obj3) {
2160 {
2161 arg4 = &temp4;
2162 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2163 }
2164 }
2165 if (obj4) {
2166 {
2167 arg5 = &temp5;
2168 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2169 }
2170 }
2171 if (obj5) {
2172 arg6 = (long)SWIG_As_long(obj5);
2173 if (PyErr_Occurred()) SWIG_fail;
2174 }
2175 if (obj6) {
2176 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2177 SWIG_POINTER_EXCEPTION | 0)) == -1)
2178 SWIG_fail;
2179 if (arg7 == NULL) {
2180 PyErr_SetString(PyExc_TypeError,"null reference");
2181 SWIG_fail;
2182 }
2183 }
2184 if (obj7) {
2185 {
2186 arg8 = wxString_in_helper(obj7);
2187 if (arg8 == NULL) SWIG_fail;
2188 temp8 = True;
2189 }
2190 }
2191 {
2192 if (!wxPyCheckForApp()) SWIG_fail;
2193 PyThreadState* __tstate = wxPyBeginAllowThreads();
2194 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2195
2196 wxPyEndAllowThreads(__tstate);
2197 if (PyErr_Occurred()) SWIG_fail;
2198 }
2199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2200 {
2201 if (temp3)
2202 delete arg3;
2203 }
2204 {
2205 if (temp8)
2206 delete arg8;
2207 }
2208 return resultobj;
2209 fail:
2210 {
2211 if (temp3)
2212 delete arg3;
2213 }
2214 {
2215 if (temp8)
2216 delete arg8;
2217 }
2218 return NULL;
2219 }
2220
2221
2222 static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2223 PyObject *resultobj;
2224 wxCheckBox *result;
2225 char *kwnames[] = {
2226 NULL
2227 };
2228
2229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2230 {
2231 if (!wxPyCheckForApp()) SWIG_fail;
2232 PyThreadState* __tstate = wxPyBeginAllowThreads();
2233 result = (wxCheckBox *)new wxCheckBox();
2234
2235 wxPyEndAllowThreads(__tstate);
2236 if (PyErr_Occurred()) SWIG_fail;
2237 }
2238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2239 return resultobj;
2240 fail:
2241 return NULL;
2242 }
2243
2244
2245 static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2246 PyObject *resultobj;
2247 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2248 wxWindow *arg2 = (wxWindow *) 0 ;
2249 int arg3 = (int) -1 ;
2250 wxString const &arg4_defvalue = wxPyEmptyString ;
2251 wxString *arg4 = (wxString *) &arg4_defvalue ;
2252 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2253 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2254 wxSize const &arg6_defvalue = wxDefaultSize ;
2255 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2256 long arg7 = (long) 0 ;
2257 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2258 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2259 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2260 wxString *arg9 = (wxString *) &arg9_defvalue ;
2261 bool result;
2262 bool temp4 = False ;
2263 wxPoint temp5 ;
2264 wxSize temp6 ;
2265 bool temp9 = False ;
2266 PyObject * obj0 = 0 ;
2267 PyObject * obj1 = 0 ;
2268 PyObject * obj2 = 0 ;
2269 PyObject * obj3 = 0 ;
2270 PyObject * obj4 = 0 ;
2271 PyObject * obj5 = 0 ;
2272 PyObject * obj6 = 0 ;
2273 PyObject * obj7 = 0 ;
2274 PyObject * obj8 = 0 ;
2275 char *kwnames[] = {
2276 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2277 };
2278
2279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2282 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2284 if (obj2) {
2285 arg3 = (int)SWIG_As_int(obj2);
2286 if (PyErr_Occurred()) SWIG_fail;
2287 }
2288 if (obj3) {
2289 {
2290 arg4 = wxString_in_helper(obj3);
2291 if (arg4 == NULL) SWIG_fail;
2292 temp4 = True;
2293 }
2294 }
2295 if (obj4) {
2296 {
2297 arg5 = &temp5;
2298 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2299 }
2300 }
2301 if (obj5) {
2302 {
2303 arg6 = &temp6;
2304 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2305 }
2306 }
2307 if (obj6) {
2308 arg7 = (long)SWIG_As_long(obj6);
2309 if (PyErr_Occurred()) SWIG_fail;
2310 }
2311 if (obj7) {
2312 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2313 SWIG_POINTER_EXCEPTION | 0)) == -1)
2314 SWIG_fail;
2315 if (arg8 == NULL) {
2316 PyErr_SetString(PyExc_TypeError,"null reference");
2317 SWIG_fail;
2318 }
2319 }
2320 if (obj8) {
2321 {
2322 arg9 = wxString_in_helper(obj8);
2323 if (arg9 == NULL) SWIG_fail;
2324 temp9 = True;
2325 }
2326 }
2327 {
2328 PyThreadState* __tstate = wxPyBeginAllowThreads();
2329 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2330
2331 wxPyEndAllowThreads(__tstate);
2332 if (PyErr_Occurred()) SWIG_fail;
2333 }
2334 {
2335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2336 }
2337 {
2338 if (temp4)
2339 delete arg4;
2340 }
2341 {
2342 if (temp9)
2343 delete arg9;
2344 }
2345 return resultobj;
2346 fail:
2347 {
2348 if (temp4)
2349 delete arg4;
2350 }
2351 {
2352 if (temp9)
2353 delete arg9;
2354 }
2355 return NULL;
2356 }
2357
2358
2359 static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2360 PyObject *resultobj;
2361 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2362 bool result;
2363 PyObject * obj0 = 0 ;
2364 char *kwnames[] = {
2365 (char *) "self", NULL
2366 };
2367
2368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2371 {
2372 PyThreadState* __tstate = wxPyBeginAllowThreads();
2373 result = (bool)(arg1)->GetValue();
2374
2375 wxPyEndAllowThreads(__tstate);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 }
2378 {
2379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2380 }
2381 return resultobj;
2382 fail:
2383 return NULL;
2384 }
2385
2386
2387 static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
2388 PyObject *resultobj;
2389 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2390 bool result;
2391 PyObject * obj0 = 0 ;
2392 char *kwnames[] = {
2393 (char *) "self", NULL
2394 };
2395
2396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2399 {
2400 PyThreadState* __tstate = wxPyBeginAllowThreads();
2401 result = (bool)(arg1)->IsChecked();
2402
2403 wxPyEndAllowThreads(__tstate);
2404 if (PyErr_Occurred()) SWIG_fail;
2405 }
2406 {
2407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2408 }
2409 return resultobj;
2410 fail:
2411 return NULL;
2412 }
2413
2414
2415 static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2416 PyObject *resultobj;
2417 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2418 bool arg2 ;
2419 PyObject * obj0 = 0 ;
2420 PyObject * obj1 = 0 ;
2421 char *kwnames[] = {
2422 (char *) "self",(char *) "state", NULL
2423 };
2424
2425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2428 arg2 = (bool)SWIG_As_bool(obj1);
2429 if (PyErr_Occurred()) SWIG_fail;
2430 {
2431 PyThreadState* __tstate = wxPyBeginAllowThreads();
2432 (arg1)->SetValue(arg2);
2433
2434 wxPyEndAllowThreads(__tstate);
2435 if (PyErr_Occurred()) SWIG_fail;
2436 }
2437 Py_INCREF(Py_None); resultobj = Py_None;
2438 return resultobj;
2439 fail:
2440 return NULL;
2441 }
2442
2443
2444 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2445 PyObject *resultobj;
2446 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2447 int result;
2448 PyObject * obj0 = 0 ;
2449 char *kwnames[] = {
2450 (char *) "self", NULL
2451 };
2452
2453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2456 {
2457 PyThreadState* __tstate = wxPyBeginAllowThreads();
2458 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2459
2460 wxPyEndAllowThreads(__tstate);
2461 if (PyErr_Occurred()) SWIG_fail;
2462 }
2463 resultobj = SWIG_From_int((int)result);
2464 return resultobj;
2465 fail:
2466 return NULL;
2467 }
2468
2469
2470 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2471 PyObject *resultobj;
2472 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2473 int arg2 ;
2474 PyObject * obj0 = 0 ;
2475 PyObject * obj1 = 0 ;
2476 char *kwnames[] = {
2477 (char *) "self",(char *) "state", NULL
2478 };
2479
2480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2483 arg2 = (int)SWIG_As_int(obj1);
2484 if (PyErr_Occurred()) SWIG_fail;
2485 {
2486 PyThreadState* __tstate = wxPyBeginAllowThreads();
2487 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2488
2489 wxPyEndAllowThreads(__tstate);
2490 if (PyErr_Occurred()) SWIG_fail;
2491 }
2492 Py_INCREF(Py_None); resultobj = Py_None;
2493 return resultobj;
2494 fail:
2495 return NULL;
2496 }
2497
2498
2499 static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) {
2500 PyObject *resultobj;
2501 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2502 bool result;
2503 PyObject * obj0 = 0 ;
2504 char *kwnames[] = {
2505 (char *) "self", NULL
2506 };
2507
2508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2511 {
2512 PyThreadState* __tstate = wxPyBeginAllowThreads();
2513 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2514
2515 wxPyEndAllowThreads(__tstate);
2516 if (PyErr_Occurred()) SWIG_fail;
2517 }
2518 {
2519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2520 }
2521 return resultobj;
2522 fail:
2523 return NULL;
2524 }
2525
2526
2527 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) {
2528 PyObject *resultobj;
2529 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2530 bool result;
2531 PyObject * obj0 = 0 ;
2532 char *kwnames[] = {
2533 (char *) "self", NULL
2534 };
2535
2536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2539 {
2540 PyThreadState* __tstate = wxPyBeginAllowThreads();
2541 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2542
2543 wxPyEndAllowThreads(__tstate);
2544 if (PyErr_Occurred()) SWIG_fail;
2545 }
2546 {
2547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2548 }
2549 return resultobj;
2550 fail:
2551 return NULL;
2552 }
2553
2554
2555 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
2556 PyObject *resultobj;
2557 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2558 wxVisualAttributes result;
2559 PyObject * obj0 = 0 ;
2560 char *kwnames[] = {
2561 (char *) "variant", NULL
2562 };
2563
2564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2565 if (obj0) {
2566 arg1 = (int)SWIG_As_int(obj0);
2567 if (PyErr_Occurred()) SWIG_fail;
2568 }
2569 {
2570 if (!wxPyCheckForApp()) SWIG_fail;
2571 PyThreadState* __tstate = wxPyBeginAllowThreads();
2572 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2573
2574 wxPyEndAllowThreads(__tstate);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 {
2578 wxVisualAttributes * resultptr;
2579 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2580 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2581 }
2582 return resultobj;
2583 fail:
2584 return NULL;
2585 }
2586
2587
2588 static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) {
2589 PyObject *obj;
2590 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2591 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2592 Py_INCREF(obj);
2593 return Py_BuildValue((char *)"");
2594 }
2595 static int _wrap_ChoiceNameStr_set(PyObject *) {
2596 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2597 return 1;
2598 }
2599
2600
2601 static PyObject *_wrap_ChoiceNameStr_get() {
2602 PyObject *pyobj;
2603
2604 {
2605 #if wxUSE_UNICODE
2606 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2607 #else
2608 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2609 #endif
2610 }
2611 return pyobj;
2612 }
2613
2614
2615 static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) {
2616 PyObject *resultobj;
2617 wxWindow *arg1 = (wxWindow *) 0 ;
2618 int arg2 = (int) -1 ;
2619 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2620 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2621 wxSize const &arg4_defvalue = wxDefaultSize ;
2622 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2623 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2624 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2625 long arg6 = (long) 0 ;
2626 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2627 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2628 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2629 wxString *arg8 = (wxString *) &arg8_defvalue ;
2630 wxChoice *result;
2631 wxPoint temp3 ;
2632 wxSize temp4 ;
2633 bool temp5 = False ;
2634 bool temp8 = False ;
2635 PyObject * obj0 = 0 ;
2636 PyObject * obj1 = 0 ;
2637 PyObject * obj2 = 0 ;
2638 PyObject * obj3 = 0 ;
2639 PyObject * obj4 = 0 ;
2640 PyObject * obj5 = 0 ;
2641 PyObject * obj6 = 0 ;
2642 PyObject * obj7 = 0 ;
2643 char *kwnames[] = {
2644 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2645 };
2646
2647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2650 if (obj1) {
2651 arg2 = (int)SWIG_As_int(obj1);
2652 if (PyErr_Occurred()) SWIG_fail;
2653 }
2654 if (obj2) {
2655 {
2656 arg3 = &temp3;
2657 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2658 }
2659 }
2660 if (obj3) {
2661 {
2662 arg4 = &temp4;
2663 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2664 }
2665 }
2666 if (obj4) {
2667 {
2668 if (! PySequence_Check(obj4)) {
2669 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2670 SWIG_fail;
2671 }
2672 arg5 = new wxArrayString;
2673 temp5 = True;
2674 int i, len=PySequence_Length(obj4);
2675 for (i=0; i<len; i++) {
2676 PyObject* item = PySequence_GetItem(obj4, i);
2677 #if wxUSE_UNICODE
2678 PyObject* str = PyObject_Unicode(item);
2679 #else
2680 PyObject* str = PyObject_Str(item);
2681 #endif
2682 if (PyErr_Occurred()) SWIG_fail;
2683 arg5->Add(Py2wxString(str));
2684 Py_DECREF(item);
2685 Py_DECREF(str);
2686 }
2687 }
2688 }
2689 if (obj5) {
2690 arg6 = (long)SWIG_As_long(obj5);
2691 if (PyErr_Occurred()) SWIG_fail;
2692 }
2693 if (obj6) {
2694 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2695 SWIG_POINTER_EXCEPTION | 0)) == -1)
2696 SWIG_fail;
2697 if (arg7 == NULL) {
2698 PyErr_SetString(PyExc_TypeError,"null reference");
2699 SWIG_fail;
2700 }
2701 }
2702 if (obj7) {
2703 {
2704 arg8 = wxString_in_helper(obj7);
2705 if (arg8 == NULL) SWIG_fail;
2706 temp8 = True;
2707 }
2708 }
2709 {
2710 if (!wxPyCheckForApp()) SWIG_fail;
2711 PyThreadState* __tstate = wxPyBeginAllowThreads();
2712 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2713
2714 wxPyEndAllowThreads(__tstate);
2715 if (PyErr_Occurred()) SWIG_fail;
2716 }
2717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2718 {
2719 if (temp5) delete arg5;
2720 }
2721 {
2722 if (temp8)
2723 delete arg8;
2724 }
2725 return resultobj;
2726 fail:
2727 {
2728 if (temp5) delete arg5;
2729 }
2730 {
2731 if (temp8)
2732 delete arg8;
2733 }
2734 return NULL;
2735 }
2736
2737
2738 static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) {
2739 PyObject *resultobj;
2740 wxChoice *result;
2741 char *kwnames[] = {
2742 NULL
2743 };
2744
2745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2746 {
2747 if (!wxPyCheckForApp()) SWIG_fail;
2748 PyThreadState* __tstate = wxPyBeginAllowThreads();
2749 result = (wxChoice *)new wxChoice();
2750
2751 wxPyEndAllowThreads(__tstate);
2752 if (PyErr_Occurred()) SWIG_fail;
2753 }
2754 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2755 return resultobj;
2756 fail:
2757 return NULL;
2758 }
2759
2760
2761 static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2762 PyObject *resultobj;
2763 wxChoice *arg1 = (wxChoice *) 0 ;
2764 wxWindow *arg2 = (wxWindow *) 0 ;
2765 int arg3 = (int) -1 ;
2766 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2767 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2768 wxSize const &arg5_defvalue = wxDefaultSize ;
2769 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2770 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2771 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2772 long arg7 = (long) 0 ;
2773 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2774 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2775 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2776 wxString *arg9 = (wxString *) &arg9_defvalue ;
2777 bool result;
2778 wxPoint temp4 ;
2779 wxSize temp5 ;
2780 bool temp6 = False ;
2781 bool temp9 = False ;
2782 PyObject * obj0 = 0 ;
2783 PyObject * obj1 = 0 ;
2784 PyObject * obj2 = 0 ;
2785 PyObject * obj3 = 0 ;
2786 PyObject * obj4 = 0 ;
2787 PyObject * obj5 = 0 ;
2788 PyObject * obj6 = 0 ;
2789 PyObject * obj7 = 0 ;
2790 PyObject * obj8 = 0 ;
2791 char *kwnames[] = {
2792 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2793 };
2794
2795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2798 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2800 if (obj2) {
2801 arg3 = (int)SWIG_As_int(obj2);
2802 if (PyErr_Occurred()) SWIG_fail;
2803 }
2804 if (obj3) {
2805 {
2806 arg4 = &temp4;
2807 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2808 }
2809 }
2810 if (obj4) {
2811 {
2812 arg5 = &temp5;
2813 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2814 }
2815 }
2816 if (obj5) {
2817 {
2818 if (! PySequence_Check(obj5)) {
2819 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2820 SWIG_fail;
2821 }
2822 arg6 = new wxArrayString;
2823 temp6 = True;
2824 int i, len=PySequence_Length(obj5);
2825 for (i=0; i<len; i++) {
2826 PyObject* item = PySequence_GetItem(obj5, i);
2827 #if wxUSE_UNICODE
2828 PyObject* str = PyObject_Unicode(item);
2829 #else
2830 PyObject* str = PyObject_Str(item);
2831 #endif
2832 if (PyErr_Occurred()) SWIG_fail;
2833 arg6->Add(Py2wxString(str));
2834 Py_DECREF(item);
2835 Py_DECREF(str);
2836 }
2837 }
2838 }
2839 if (obj6) {
2840 arg7 = (long)SWIG_As_long(obj6);
2841 if (PyErr_Occurred()) SWIG_fail;
2842 }
2843 if (obj7) {
2844 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2845 SWIG_POINTER_EXCEPTION | 0)) == -1)
2846 SWIG_fail;
2847 if (arg8 == NULL) {
2848 PyErr_SetString(PyExc_TypeError,"null reference");
2849 SWIG_fail;
2850 }
2851 }
2852 if (obj8) {
2853 {
2854 arg9 = wxString_in_helper(obj8);
2855 if (arg9 == NULL) SWIG_fail;
2856 temp9 = True;
2857 }
2858 }
2859 {
2860 PyThreadState* __tstate = wxPyBeginAllowThreads();
2861 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2862
2863 wxPyEndAllowThreads(__tstate);
2864 if (PyErr_Occurred()) SWIG_fail;
2865 }
2866 {
2867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2868 }
2869 {
2870 if (temp6) delete arg6;
2871 }
2872 {
2873 if (temp9)
2874 delete arg9;
2875 }
2876 return resultobj;
2877 fail:
2878 {
2879 if (temp6) delete arg6;
2880 }
2881 {
2882 if (temp9)
2883 delete arg9;
2884 }
2885 return NULL;
2886 }
2887
2888
2889 static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2890 PyObject *resultobj;
2891 wxChoice *arg1 = (wxChoice *) 0 ;
2892 int arg2 ;
2893 PyObject * obj0 = 0 ;
2894 PyObject * obj1 = 0 ;
2895 char *kwnames[] = {
2896 (char *) "self",(char *) "n", NULL
2897 };
2898
2899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2902 arg2 = (int)SWIG_As_int(obj1);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 {
2905 PyThreadState* __tstate = wxPyBeginAllowThreads();
2906 (arg1)->SetSelection(arg2);
2907
2908 wxPyEndAllowThreads(__tstate);
2909 if (PyErr_Occurred()) SWIG_fail;
2910 }
2911 Py_INCREF(Py_None); resultobj = Py_None;
2912 return resultobj;
2913 fail:
2914 return NULL;
2915 }
2916
2917
2918 static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2919 PyObject *resultobj;
2920 wxChoice *arg1 = (wxChoice *) 0 ;
2921 wxString *arg2 = 0 ;
2922 bool result;
2923 bool temp2 = False ;
2924 PyObject * obj0 = 0 ;
2925 PyObject * obj1 = 0 ;
2926 char *kwnames[] = {
2927 (char *) "self",(char *) "string", NULL
2928 };
2929
2930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2933 {
2934 arg2 = wxString_in_helper(obj1);
2935 if (arg2 == NULL) SWIG_fail;
2936 temp2 = True;
2937 }
2938 {
2939 PyThreadState* __tstate = wxPyBeginAllowThreads();
2940 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2941
2942 wxPyEndAllowThreads(__tstate);
2943 if (PyErr_Occurred()) SWIG_fail;
2944 }
2945 {
2946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2947 }
2948 {
2949 if (temp2)
2950 delete arg2;
2951 }
2952 return resultobj;
2953 fail:
2954 {
2955 if (temp2)
2956 delete arg2;
2957 }
2958 return NULL;
2959 }
2960
2961
2962 static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
2963 PyObject *resultobj;
2964 wxChoice *arg1 = (wxChoice *) 0 ;
2965 int arg2 ;
2966 wxString *arg3 = 0 ;
2967 bool temp3 = False ;
2968 PyObject * obj0 = 0 ;
2969 PyObject * obj1 = 0 ;
2970 PyObject * obj2 = 0 ;
2971 char *kwnames[] = {
2972 (char *) "self",(char *) "n",(char *) "string", NULL
2973 };
2974
2975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2978 arg2 = (int)SWIG_As_int(obj1);
2979 if (PyErr_Occurred()) SWIG_fail;
2980 {
2981 arg3 = wxString_in_helper(obj2);
2982 if (arg3 == NULL) SWIG_fail;
2983 temp3 = True;
2984 }
2985 {
2986 PyThreadState* __tstate = wxPyBeginAllowThreads();
2987 (arg1)->SetString(arg2,(wxString const &)*arg3);
2988
2989 wxPyEndAllowThreads(__tstate);
2990 if (PyErr_Occurred()) SWIG_fail;
2991 }
2992 Py_INCREF(Py_None); resultobj = Py_None;
2993 {
2994 if (temp3)
2995 delete arg3;
2996 }
2997 return resultobj;
2998 fail:
2999 {
3000 if (temp3)
3001 delete arg3;
3002 }
3003 return NULL;
3004 }
3005
3006
3007 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3008 PyObject *resultobj;
3009 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3010 wxVisualAttributes result;
3011 PyObject * obj0 = 0 ;
3012 char *kwnames[] = {
3013 (char *) "variant", NULL
3014 };
3015
3016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3017 if (obj0) {
3018 arg1 = (int)SWIG_As_int(obj0);
3019 if (PyErr_Occurred()) SWIG_fail;
3020 }
3021 {
3022 if (!wxPyCheckForApp()) SWIG_fail;
3023 PyThreadState* __tstate = wxPyBeginAllowThreads();
3024 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
3025
3026 wxPyEndAllowThreads(__tstate);
3027 if (PyErr_Occurred()) SWIG_fail;
3028 }
3029 {
3030 wxVisualAttributes * resultptr;
3031 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3032 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3033 }
3034 return resultobj;
3035 fail:
3036 return NULL;
3037 }
3038
3039
3040 static PyObject * Choice_swigregister(PyObject *, PyObject *args) {
3041 PyObject *obj;
3042 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3043 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
3044 Py_INCREF(obj);
3045 return Py_BuildValue((char *)"");
3046 }
3047 static int _wrap_ComboBoxNameStr_set(PyObject *) {
3048 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
3049 return 1;
3050 }
3051
3052
3053 static PyObject *_wrap_ComboBoxNameStr_get() {
3054 PyObject *pyobj;
3055
3056 {
3057 #if wxUSE_UNICODE
3058 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3059 #else
3060 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3061 #endif
3062 }
3063 return pyobj;
3064 }
3065
3066
3067 static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3068 PyObject *resultobj;
3069 wxWindow *arg1 = (wxWindow *) 0 ;
3070 int arg2 = (int) -1 ;
3071 wxString const &arg3_defvalue = wxPyEmptyString ;
3072 wxString *arg3 = (wxString *) &arg3_defvalue ;
3073 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3074 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3075 wxSize const &arg5_defvalue = wxDefaultSize ;
3076 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3077 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
3078 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
3079 long arg7 = (long) 0 ;
3080 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3081 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3082 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
3083 wxString *arg9 = (wxString *) &arg9_defvalue ;
3084 wxComboBox *result;
3085 bool temp3 = False ;
3086 wxPoint temp4 ;
3087 wxSize temp5 ;
3088 bool temp6 = False ;
3089 bool temp9 = False ;
3090 PyObject * obj0 = 0 ;
3091 PyObject * obj1 = 0 ;
3092 PyObject * obj2 = 0 ;
3093 PyObject * obj3 = 0 ;
3094 PyObject * obj4 = 0 ;
3095 PyObject * obj5 = 0 ;
3096 PyObject * obj6 = 0 ;
3097 PyObject * obj7 = 0 ;
3098 PyObject * obj8 = 0 ;
3099 char *kwnames[] = {
3100 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3101 };
3102
3103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3106 if (obj1) {
3107 arg2 = (int)SWIG_As_int(obj1);
3108 if (PyErr_Occurred()) SWIG_fail;
3109 }
3110 if (obj2) {
3111 {
3112 arg3 = wxString_in_helper(obj2);
3113 if (arg3 == NULL) SWIG_fail;
3114 temp3 = True;
3115 }
3116 }
3117 if (obj3) {
3118 {
3119 arg4 = &temp4;
3120 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3121 }
3122 }
3123 if (obj4) {
3124 {
3125 arg5 = &temp5;
3126 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3127 }
3128 }
3129 if (obj5) {
3130 {
3131 if (! PySequence_Check(obj5)) {
3132 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3133 SWIG_fail;
3134 }
3135 arg6 = new wxArrayString;
3136 temp6 = True;
3137 int i, len=PySequence_Length(obj5);
3138 for (i=0; i<len; i++) {
3139 PyObject* item = PySequence_GetItem(obj5, i);
3140 #if wxUSE_UNICODE
3141 PyObject* str = PyObject_Unicode(item);
3142 #else
3143 PyObject* str = PyObject_Str(item);
3144 #endif
3145 if (PyErr_Occurred()) SWIG_fail;
3146 arg6->Add(Py2wxString(str));
3147 Py_DECREF(item);
3148 Py_DECREF(str);
3149 }
3150 }
3151 }
3152 if (obj6) {
3153 arg7 = (long)SWIG_As_long(obj6);
3154 if (PyErr_Occurred()) SWIG_fail;
3155 }
3156 if (obj7) {
3157 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3158 SWIG_POINTER_EXCEPTION | 0)) == -1)
3159 SWIG_fail;
3160 if (arg8 == NULL) {
3161 PyErr_SetString(PyExc_TypeError,"null reference");
3162 SWIG_fail;
3163 }
3164 }
3165 if (obj8) {
3166 {
3167 arg9 = wxString_in_helper(obj8);
3168 if (arg9 == NULL) SWIG_fail;
3169 temp9 = True;
3170 }
3171 }
3172 {
3173 if (!wxPyCheckForApp()) SWIG_fail;
3174 PyThreadState* __tstate = wxPyBeginAllowThreads();
3175 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);
3176
3177 wxPyEndAllowThreads(__tstate);
3178 if (PyErr_Occurred()) SWIG_fail;
3179 }
3180 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3181 {
3182 if (temp3)
3183 delete arg3;
3184 }
3185 {
3186 if (temp6) delete arg6;
3187 }
3188 {
3189 if (temp9)
3190 delete arg9;
3191 }
3192 return resultobj;
3193 fail:
3194 {
3195 if (temp3)
3196 delete arg3;
3197 }
3198 {
3199 if (temp6) delete arg6;
3200 }
3201 {
3202 if (temp9)
3203 delete arg9;
3204 }
3205 return NULL;
3206 }
3207
3208
3209 static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3210 PyObject *resultobj;
3211 wxComboBox *result;
3212 char *kwnames[] = {
3213 NULL
3214 };
3215
3216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3217 {
3218 if (!wxPyCheckForApp()) SWIG_fail;
3219 PyThreadState* __tstate = wxPyBeginAllowThreads();
3220 result = (wxComboBox *)new wxComboBox();
3221
3222 wxPyEndAllowThreads(__tstate);
3223 if (PyErr_Occurred()) SWIG_fail;
3224 }
3225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3226 return resultobj;
3227 fail:
3228 return NULL;
3229 }
3230
3231
3232 static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
3233 PyObject *resultobj;
3234 wxComboBox *arg1 = (wxComboBox *) 0 ;
3235 wxWindow *arg2 = (wxWindow *) 0 ;
3236 int arg3 = (int) -1 ;
3237 wxString const &arg4_defvalue = wxPyEmptyString ;
3238 wxString *arg4 = (wxString *) &arg4_defvalue ;
3239 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3240 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3241 wxSize const &arg6_defvalue = wxDefaultSize ;
3242 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3243 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3244 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3245 long arg8 = (long) 0 ;
3246 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3247 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3248 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3249 wxString *arg10 = (wxString *) &arg10_defvalue ;
3250 bool result;
3251 bool temp4 = False ;
3252 wxPoint temp5 ;
3253 wxSize temp6 ;
3254 bool temp7 = False ;
3255 bool temp10 = False ;
3256 PyObject * obj0 = 0 ;
3257 PyObject * obj1 = 0 ;
3258 PyObject * obj2 = 0 ;
3259 PyObject * obj3 = 0 ;
3260 PyObject * obj4 = 0 ;
3261 PyObject * obj5 = 0 ;
3262 PyObject * obj6 = 0 ;
3263 PyObject * obj7 = 0 ;
3264 PyObject * obj8 = 0 ;
3265 PyObject * obj9 = 0 ;
3266 char *kwnames[] = {
3267 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3268 };
3269
3270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3275 if (obj2) {
3276 arg3 = (int)SWIG_As_int(obj2);
3277 if (PyErr_Occurred()) SWIG_fail;
3278 }
3279 if (obj3) {
3280 {
3281 arg4 = wxString_in_helper(obj3);
3282 if (arg4 == NULL) SWIG_fail;
3283 temp4 = True;
3284 }
3285 }
3286 if (obj4) {
3287 {
3288 arg5 = &temp5;
3289 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3290 }
3291 }
3292 if (obj5) {
3293 {
3294 arg6 = &temp6;
3295 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3296 }
3297 }
3298 if (obj6) {
3299 {
3300 if (! PySequence_Check(obj6)) {
3301 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3302 SWIG_fail;
3303 }
3304 arg7 = new wxArrayString;
3305 temp7 = True;
3306 int i, len=PySequence_Length(obj6);
3307 for (i=0; i<len; i++) {
3308 PyObject* item = PySequence_GetItem(obj6, i);
3309 #if wxUSE_UNICODE
3310 PyObject* str = PyObject_Unicode(item);
3311 #else
3312 PyObject* str = PyObject_Str(item);
3313 #endif
3314 if (PyErr_Occurred()) SWIG_fail;
3315 arg7->Add(Py2wxString(str));
3316 Py_DECREF(item);
3317 Py_DECREF(str);
3318 }
3319 }
3320 }
3321 if (obj7) {
3322 arg8 = (long)SWIG_As_long(obj7);
3323 if (PyErr_Occurred()) SWIG_fail;
3324 }
3325 if (obj8) {
3326 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3327 SWIG_POINTER_EXCEPTION | 0)) == -1)
3328 SWIG_fail;
3329 if (arg9 == NULL) {
3330 PyErr_SetString(PyExc_TypeError,"null reference");
3331 SWIG_fail;
3332 }
3333 }
3334 if (obj9) {
3335 {
3336 arg10 = wxString_in_helper(obj9);
3337 if (arg10 == NULL) SWIG_fail;
3338 temp10 = True;
3339 }
3340 }
3341 {
3342 PyThreadState* __tstate = wxPyBeginAllowThreads();
3343 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);
3344
3345 wxPyEndAllowThreads(__tstate);
3346 if (PyErr_Occurred()) SWIG_fail;
3347 }
3348 {
3349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3350 }
3351 {
3352 if (temp4)
3353 delete arg4;
3354 }
3355 {
3356 if (temp7) delete arg7;
3357 }
3358 {
3359 if (temp10)
3360 delete arg10;
3361 }
3362 return resultobj;
3363 fail:
3364 {
3365 if (temp4)
3366 delete arg4;
3367 }
3368 {
3369 if (temp7) delete arg7;
3370 }
3371 {
3372 if (temp10)
3373 delete arg10;
3374 }
3375 return NULL;
3376 }
3377
3378
3379 static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3380 PyObject *resultobj;
3381 wxComboBox *arg1 = (wxComboBox *) 0 ;
3382 wxString result;
3383 PyObject * obj0 = 0 ;
3384 char *kwnames[] = {
3385 (char *) "self", NULL
3386 };
3387
3388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3391 {
3392 PyThreadState* __tstate = wxPyBeginAllowThreads();
3393 result = ((wxComboBox const *)arg1)->GetValue();
3394
3395 wxPyEndAllowThreads(__tstate);
3396 if (PyErr_Occurred()) SWIG_fail;
3397 }
3398 {
3399 #if wxUSE_UNICODE
3400 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3401 #else
3402 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3403 #endif
3404 }
3405 return resultobj;
3406 fail:
3407 return NULL;
3408 }
3409
3410
3411 static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3412 PyObject *resultobj;
3413 wxComboBox *arg1 = (wxComboBox *) 0 ;
3414 wxString *arg2 = 0 ;
3415 bool temp2 = False ;
3416 PyObject * obj0 = 0 ;
3417 PyObject * obj1 = 0 ;
3418 char *kwnames[] = {
3419 (char *) "self",(char *) "value", NULL
3420 };
3421
3422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3425 {
3426 arg2 = wxString_in_helper(obj1);
3427 if (arg2 == NULL) SWIG_fail;
3428 temp2 = True;
3429 }
3430 {
3431 PyThreadState* __tstate = wxPyBeginAllowThreads();
3432 (arg1)->SetValue((wxString const &)*arg2);
3433
3434 wxPyEndAllowThreads(__tstate);
3435 if (PyErr_Occurred()) SWIG_fail;
3436 }
3437 Py_INCREF(Py_None); resultobj = Py_None;
3438 {
3439 if (temp2)
3440 delete arg2;
3441 }
3442 return resultobj;
3443 fail:
3444 {
3445 if (temp2)
3446 delete arg2;
3447 }
3448 return NULL;
3449 }
3450
3451
3452 static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
3453 PyObject *resultobj;
3454 wxComboBox *arg1 = (wxComboBox *) 0 ;
3455 PyObject * obj0 = 0 ;
3456 char *kwnames[] = {
3457 (char *) "self", NULL
3458 };
3459
3460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3463 {
3464 PyThreadState* __tstate = wxPyBeginAllowThreads();
3465 (arg1)->Copy();
3466
3467 wxPyEndAllowThreads(__tstate);
3468 if (PyErr_Occurred()) SWIG_fail;
3469 }
3470 Py_INCREF(Py_None); resultobj = Py_None;
3471 return resultobj;
3472 fail:
3473 return NULL;
3474 }
3475
3476
3477 static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
3478 PyObject *resultobj;
3479 wxComboBox *arg1 = (wxComboBox *) 0 ;
3480 PyObject * obj0 = 0 ;
3481 char *kwnames[] = {
3482 (char *) "self", NULL
3483 };
3484
3485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3488 {
3489 PyThreadState* __tstate = wxPyBeginAllowThreads();
3490 (arg1)->Cut();
3491
3492 wxPyEndAllowThreads(__tstate);
3493 if (PyErr_Occurred()) SWIG_fail;
3494 }
3495 Py_INCREF(Py_None); resultobj = Py_None;
3496 return resultobj;
3497 fail:
3498 return NULL;
3499 }
3500
3501
3502 static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
3503 PyObject *resultobj;
3504 wxComboBox *arg1 = (wxComboBox *) 0 ;
3505 PyObject * obj0 = 0 ;
3506 char *kwnames[] = {
3507 (char *) "self", NULL
3508 };
3509
3510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3513 {
3514 PyThreadState* __tstate = wxPyBeginAllowThreads();
3515 (arg1)->Paste();
3516
3517 wxPyEndAllowThreads(__tstate);
3518 if (PyErr_Occurred()) SWIG_fail;
3519 }
3520 Py_INCREF(Py_None); resultobj = Py_None;
3521 return resultobj;
3522 fail:
3523 return NULL;
3524 }
3525
3526
3527 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3528 PyObject *resultobj;
3529 wxComboBox *arg1 = (wxComboBox *) 0 ;
3530 long arg2 ;
3531 PyObject * obj0 = 0 ;
3532 PyObject * obj1 = 0 ;
3533 char *kwnames[] = {
3534 (char *) "self",(char *) "pos", NULL
3535 };
3536
3537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3540 arg2 = (long)SWIG_As_long(obj1);
3541 if (PyErr_Occurred()) SWIG_fail;
3542 {
3543 PyThreadState* __tstate = wxPyBeginAllowThreads();
3544 (arg1)->SetInsertionPoint(arg2);
3545
3546 wxPyEndAllowThreads(__tstate);
3547 if (PyErr_Occurred()) SWIG_fail;
3548 }
3549 Py_INCREF(Py_None); resultobj = Py_None;
3550 return resultobj;
3551 fail:
3552 return NULL;
3553 }
3554
3555
3556 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3557 PyObject *resultobj;
3558 wxComboBox *arg1 = (wxComboBox *) 0 ;
3559 long result;
3560 PyObject * obj0 = 0 ;
3561 char *kwnames[] = {
3562 (char *) "self", NULL
3563 };
3564
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3568 {
3569 PyThreadState* __tstate = wxPyBeginAllowThreads();
3570 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3571
3572 wxPyEndAllowThreads(__tstate);
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
3575 resultobj = SWIG_From_long((long)result);
3576 return resultobj;
3577 fail:
3578 return NULL;
3579 }
3580
3581
3582 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3583 PyObject *resultobj;
3584 wxComboBox *arg1 = (wxComboBox *) 0 ;
3585 long result;
3586 PyObject * obj0 = 0 ;
3587 char *kwnames[] = {
3588 (char *) "self", NULL
3589 };
3590
3591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3594 {
3595 PyThreadState* __tstate = wxPyBeginAllowThreads();
3596 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3597
3598 wxPyEndAllowThreads(__tstate);
3599 if (PyErr_Occurred()) SWIG_fail;
3600 }
3601 resultobj = SWIG_From_long((long)result);
3602 return resultobj;
3603 fail:
3604 return NULL;
3605 }
3606
3607
3608 static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
3609 PyObject *resultobj;
3610 wxComboBox *arg1 = (wxComboBox *) 0 ;
3611 long arg2 ;
3612 long arg3 ;
3613 wxString *arg4 = 0 ;
3614 bool temp4 = False ;
3615 PyObject * obj0 = 0 ;
3616 PyObject * obj1 = 0 ;
3617 PyObject * obj2 = 0 ;
3618 PyObject * obj3 = 0 ;
3619 char *kwnames[] = {
3620 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3621 };
3622
3623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3626 arg2 = (long)SWIG_As_long(obj1);
3627 if (PyErr_Occurred()) SWIG_fail;
3628 arg3 = (long)SWIG_As_long(obj2);
3629 if (PyErr_Occurred()) SWIG_fail;
3630 {
3631 arg4 = wxString_in_helper(obj3);
3632 if (arg4 == NULL) SWIG_fail;
3633 temp4 = True;
3634 }
3635 {
3636 PyThreadState* __tstate = wxPyBeginAllowThreads();
3637 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3638
3639 wxPyEndAllowThreads(__tstate);
3640 if (PyErr_Occurred()) SWIG_fail;
3641 }
3642 Py_INCREF(Py_None); resultobj = Py_None;
3643 {
3644 if (temp4)
3645 delete arg4;
3646 }
3647 return resultobj;
3648 fail:
3649 {
3650 if (temp4)
3651 delete arg4;
3652 }
3653 return NULL;
3654 }
3655
3656
3657 static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3658 PyObject *resultobj;
3659 wxComboBox *arg1 = (wxComboBox *) 0 ;
3660 int arg2 ;
3661 PyObject * obj0 = 0 ;
3662 PyObject * obj1 = 0 ;
3663 char *kwnames[] = {
3664 (char *) "self",(char *) "n", NULL
3665 };
3666
3667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3670 arg2 = (int)SWIG_As_int(obj1);
3671 if (PyErr_Occurred()) SWIG_fail;
3672 {
3673 PyThreadState* __tstate = wxPyBeginAllowThreads();
3674 (arg1)->SetSelection(arg2);
3675
3676 wxPyEndAllowThreads(__tstate);
3677 if (PyErr_Occurred()) SWIG_fail;
3678 }
3679 Py_INCREF(Py_None); resultobj = Py_None;
3680 return resultobj;
3681 fail:
3682 return NULL;
3683 }
3684
3685
3686 static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) {
3687 PyObject *resultobj;
3688 wxComboBox *arg1 = (wxComboBox *) 0 ;
3689 long arg2 ;
3690 long arg3 ;
3691 PyObject * obj0 = 0 ;
3692 PyObject * obj1 = 0 ;
3693 PyObject * obj2 = 0 ;
3694 char *kwnames[] = {
3695 (char *) "self",(char *) "from",(char *) "to", NULL
3696 };
3697
3698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3701 arg2 = (long)SWIG_As_long(obj1);
3702 if (PyErr_Occurred()) SWIG_fail;
3703 arg3 = (long)SWIG_As_long(obj2);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 {
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
3707 (arg1)->SetSelection(arg2,arg3);
3708
3709 wxPyEndAllowThreads(__tstate);
3710 if (PyErr_Occurred()) SWIG_fail;
3711 }
3712 Py_INCREF(Py_None); resultobj = Py_None;
3713 return resultobj;
3714 fail:
3715 return NULL;
3716 }
3717
3718
3719 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3720 PyObject *resultobj;
3721 wxComboBox *arg1 = (wxComboBox *) 0 ;
3722 wxString *arg2 = 0 ;
3723 bool result;
3724 bool temp2 = False ;
3725 PyObject * obj0 = 0 ;
3726 PyObject * obj1 = 0 ;
3727 char *kwnames[] = {
3728 (char *) "self",(char *) "string", NULL
3729 };
3730
3731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3734 {
3735 arg2 = wxString_in_helper(obj1);
3736 if (arg2 == NULL) SWIG_fail;
3737 temp2 = True;
3738 }
3739 {
3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
3741 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3742
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 {
3747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3748 }
3749 {
3750 if (temp2)
3751 delete arg2;
3752 }
3753 return resultobj;
3754 fail:
3755 {
3756 if (temp2)
3757 delete arg2;
3758 }
3759 return NULL;
3760 }
3761
3762
3763 static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
3764 PyObject *resultobj;
3765 wxComboBox *arg1 = (wxComboBox *) 0 ;
3766 int arg2 ;
3767 wxString *arg3 = 0 ;
3768 bool temp3 = False ;
3769 PyObject * obj0 = 0 ;
3770 PyObject * obj1 = 0 ;
3771 PyObject * obj2 = 0 ;
3772 char *kwnames[] = {
3773 (char *) "self",(char *) "n",(char *) "string", NULL
3774 };
3775
3776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3779 arg2 = (int)SWIG_As_int(obj1);
3780 if (PyErr_Occurred()) SWIG_fail;
3781 {
3782 arg3 = wxString_in_helper(obj2);
3783 if (arg3 == NULL) SWIG_fail;
3784 temp3 = True;
3785 }
3786 {
3787 PyThreadState* __tstate = wxPyBeginAllowThreads();
3788 (arg1)->SetString(arg2,(wxString const &)*arg3);
3789
3790 wxPyEndAllowThreads(__tstate);
3791 if (PyErr_Occurred()) SWIG_fail;
3792 }
3793 Py_INCREF(Py_None); resultobj = Py_None;
3794 {
3795 if (temp3)
3796 delete arg3;
3797 }
3798 return resultobj;
3799 fail:
3800 {
3801 if (temp3)
3802 delete arg3;
3803 }
3804 return NULL;
3805 }
3806
3807
3808 static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3809 PyObject *resultobj;
3810 wxComboBox *arg1 = (wxComboBox *) 0 ;
3811 bool arg2 ;
3812 PyObject * obj0 = 0 ;
3813 PyObject * obj1 = 0 ;
3814 char *kwnames[] = {
3815 (char *) "self",(char *) "editable", NULL
3816 };
3817
3818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3821 arg2 = (bool)SWIG_As_bool(obj1);
3822 if (PyErr_Occurred()) SWIG_fail;
3823 {
3824 PyThreadState* __tstate = wxPyBeginAllowThreads();
3825 (arg1)->SetEditable(arg2);
3826
3827 wxPyEndAllowThreads(__tstate);
3828 if (PyErr_Occurred()) SWIG_fail;
3829 }
3830 Py_INCREF(Py_None); resultobj = Py_None;
3831 return resultobj;
3832 fail:
3833 return NULL;
3834 }
3835
3836
3837 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
3838 PyObject *resultobj;
3839 wxComboBox *arg1 = (wxComboBox *) 0 ;
3840 PyObject * obj0 = 0 ;
3841 char *kwnames[] = {
3842 (char *) "self", NULL
3843 };
3844
3845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3848 {
3849 PyThreadState* __tstate = wxPyBeginAllowThreads();
3850 (arg1)->SetInsertionPointEnd();
3851
3852 wxPyEndAllowThreads(__tstate);
3853 if (PyErr_Occurred()) SWIG_fail;
3854 }
3855 Py_INCREF(Py_None); resultobj = Py_None;
3856 return resultobj;
3857 fail:
3858 return NULL;
3859 }
3860
3861
3862 static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
3863 PyObject *resultobj;
3864 wxComboBox *arg1 = (wxComboBox *) 0 ;
3865 long arg2 ;
3866 long arg3 ;
3867 PyObject * obj0 = 0 ;
3868 PyObject * obj1 = 0 ;
3869 PyObject * obj2 = 0 ;
3870 char *kwnames[] = {
3871 (char *) "self",(char *) "from",(char *) "to", NULL
3872 };
3873
3874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3877 arg2 = (long)SWIG_As_long(obj1);
3878 if (PyErr_Occurred()) SWIG_fail;
3879 arg3 = (long)SWIG_As_long(obj2);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 {
3882 PyThreadState* __tstate = wxPyBeginAllowThreads();
3883 (arg1)->Remove(arg2,arg3);
3884
3885 wxPyEndAllowThreads(__tstate);
3886 if (PyErr_Occurred()) SWIG_fail;
3887 }
3888 Py_INCREF(Py_None); resultobj = Py_None;
3889 return resultobj;
3890 fail:
3891 return NULL;
3892 }
3893
3894
3895 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3896 PyObject *resultobj;
3897 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3898 wxVisualAttributes result;
3899 PyObject * obj0 = 0 ;
3900 char *kwnames[] = {
3901 (char *) "variant", NULL
3902 };
3903
3904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3905 if (obj0) {
3906 arg1 = (int)SWIG_As_int(obj0);
3907 if (PyErr_Occurred()) SWIG_fail;
3908 }
3909 {
3910 if (!wxPyCheckForApp()) SWIG_fail;
3911 PyThreadState* __tstate = wxPyBeginAllowThreads();
3912 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3913
3914 wxPyEndAllowThreads(__tstate);
3915 if (PyErr_Occurred()) SWIG_fail;
3916 }
3917 {
3918 wxVisualAttributes * resultptr;
3919 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3920 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3921 }
3922 return resultobj;
3923 fail:
3924 return NULL;
3925 }
3926
3927
3928 static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) {
3929 PyObject *obj;
3930 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3931 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3932 Py_INCREF(obj);
3933 return Py_BuildValue((char *)"");
3934 }
3935 static int _wrap_GaugeNameStr_set(PyObject *) {
3936 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3937 return 1;
3938 }
3939
3940
3941 static PyObject *_wrap_GaugeNameStr_get() {
3942 PyObject *pyobj;
3943
3944 {
3945 #if wxUSE_UNICODE
3946 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3947 #else
3948 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3949 #endif
3950 }
3951 return pyobj;
3952 }
3953
3954
3955 static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) {
3956 PyObject *resultobj;
3957 wxWindow *arg1 = (wxWindow *) 0 ;
3958 int arg2 = (int) -1 ;
3959 int arg3 = (int) 100 ;
3960 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3961 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3962 wxSize const &arg5_defvalue = wxDefaultSize ;
3963 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3964 long arg6 = (long) wxGA_HORIZONTAL ;
3965 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3966 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3967 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3968 wxString *arg8 = (wxString *) &arg8_defvalue ;
3969 wxGauge *result;
3970 wxPoint temp4 ;
3971 wxSize temp5 ;
3972 bool temp8 = False ;
3973 PyObject * obj0 = 0 ;
3974 PyObject * obj1 = 0 ;
3975 PyObject * obj2 = 0 ;
3976 PyObject * obj3 = 0 ;
3977 PyObject * obj4 = 0 ;
3978 PyObject * obj5 = 0 ;
3979 PyObject * obj6 = 0 ;
3980 PyObject * obj7 = 0 ;
3981 char *kwnames[] = {
3982 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3983 };
3984
3985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3988 if (obj1) {
3989 arg2 = (int)SWIG_As_int(obj1);
3990 if (PyErr_Occurred()) SWIG_fail;
3991 }
3992 if (obj2) {
3993 arg3 = (int)SWIG_As_int(obj2);
3994 if (PyErr_Occurred()) SWIG_fail;
3995 }
3996 if (obj3) {
3997 {
3998 arg4 = &temp4;
3999 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4000 }
4001 }
4002 if (obj4) {
4003 {
4004 arg5 = &temp5;
4005 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4006 }
4007 }
4008 if (obj5) {
4009 arg6 = (long)SWIG_As_long(obj5);
4010 if (PyErr_Occurred()) SWIG_fail;
4011 }
4012 if (obj6) {
4013 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
4014 SWIG_POINTER_EXCEPTION | 0)) == -1)
4015 SWIG_fail;
4016 if (arg7 == NULL) {
4017 PyErr_SetString(PyExc_TypeError,"null reference");
4018 SWIG_fail;
4019 }
4020 }
4021 if (obj7) {
4022 {
4023 arg8 = wxString_in_helper(obj7);
4024 if (arg8 == NULL) SWIG_fail;
4025 temp8 = True;
4026 }
4027 }
4028 {
4029 if (!wxPyCheckForApp()) SWIG_fail;
4030 PyThreadState* __tstate = wxPyBeginAllowThreads();
4031 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4032
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4037 {
4038 if (temp8)
4039 delete arg8;
4040 }
4041 return resultobj;
4042 fail:
4043 {
4044 if (temp8)
4045 delete arg8;
4046 }
4047 return NULL;
4048 }
4049
4050
4051 static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) {
4052 PyObject *resultobj;
4053 wxGauge *result;
4054 char *kwnames[] = {
4055 NULL
4056 };
4057
4058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
4059 {
4060 if (!wxPyCheckForApp()) SWIG_fail;
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
4062 result = (wxGauge *)new wxGauge();
4063
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4068 return resultobj;
4069 fail:
4070 return NULL;
4071 }
4072
4073
4074 static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4075 PyObject *resultobj;
4076 wxGauge *arg1 = (wxGauge *) 0 ;
4077 wxWindow *arg2 = (wxWindow *) 0 ;
4078 int arg3 = (int) -1 ;
4079 int arg4 = (int) 100 ;
4080 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4081 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4082 wxSize const &arg6_defvalue = wxDefaultSize ;
4083 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4084 long arg7 = (long) wxGA_HORIZONTAL ;
4085 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4086 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4087 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
4088 wxString *arg9 = (wxString *) &arg9_defvalue ;
4089 bool result;
4090 wxPoint temp5 ;
4091 wxSize temp6 ;
4092 bool temp9 = False ;
4093 PyObject * obj0 = 0 ;
4094 PyObject * obj1 = 0 ;
4095 PyObject * obj2 = 0 ;
4096 PyObject * obj3 = 0 ;
4097 PyObject * obj4 = 0 ;
4098 PyObject * obj5 = 0 ;
4099 PyObject * obj6 = 0 ;
4100 PyObject * obj7 = 0 ;
4101 PyObject * obj8 = 0 ;
4102 char *kwnames[] = {
4103 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4104 };
4105
4106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4111 if (obj2) {
4112 arg3 = (int)SWIG_As_int(obj2);
4113 if (PyErr_Occurred()) SWIG_fail;
4114 }
4115 if (obj3) {
4116 arg4 = (int)SWIG_As_int(obj3);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 }
4119 if (obj4) {
4120 {
4121 arg5 = &temp5;
4122 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4123 }
4124 }
4125 if (obj5) {
4126 {
4127 arg6 = &temp6;
4128 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4129 }
4130 }
4131 if (obj6) {
4132 arg7 = (long)SWIG_As_long(obj6);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 }
4135 if (obj7) {
4136 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
4137 SWIG_POINTER_EXCEPTION | 0)) == -1)
4138 SWIG_fail;
4139 if (arg8 == NULL) {
4140 PyErr_SetString(PyExc_TypeError,"null reference");
4141 SWIG_fail;
4142 }
4143 }
4144 if (obj8) {
4145 {
4146 arg9 = wxString_in_helper(obj8);
4147 if (arg9 == NULL) SWIG_fail;
4148 temp9 = True;
4149 }
4150 }
4151 {
4152 PyThreadState* __tstate = wxPyBeginAllowThreads();
4153 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4154
4155 wxPyEndAllowThreads(__tstate);
4156 if (PyErr_Occurred()) SWIG_fail;
4157 }
4158 {
4159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4160 }
4161 {
4162 if (temp9)
4163 delete arg9;
4164 }
4165 return resultobj;
4166 fail:
4167 {
4168 if (temp9)
4169 delete arg9;
4170 }
4171 return NULL;
4172 }
4173
4174
4175 static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4176 PyObject *resultobj;
4177 wxGauge *arg1 = (wxGauge *) 0 ;
4178 int arg2 ;
4179 PyObject * obj0 = 0 ;
4180 PyObject * obj1 = 0 ;
4181 char *kwnames[] = {
4182 (char *) "self",(char *) "range", NULL
4183 };
4184
4185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4188 arg2 = (int)SWIG_As_int(obj1);
4189 if (PyErr_Occurred()) SWIG_fail;
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 (arg1)->SetRange(arg2);
4193
4194 wxPyEndAllowThreads(__tstate);
4195 if (PyErr_Occurred()) SWIG_fail;
4196 }
4197 Py_INCREF(Py_None); resultobj = Py_None;
4198 return resultobj;
4199 fail:
4200 return NULL;
4201 }
4202
4203
4204 static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4205 PyObject *resultobj;
4206 wxGauge *arg1 = (wxGauge *) 0 ;
4207 int result;
4208 PyObject * obj0 = 0 ;
4209 char *kwnames[] = {
4210 (char *) "self", NULL
4211 };
4212
4213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4216 {
4217 PyThreadState* __tstate = wxPyBeginAllowThreads();
4218 result = (int)((wxGauge const *)arg1)->GetRange();
4219
4220 wxPyEndAllowThreads(__tstate);
4221 if (PyErr_Occurred()) SWIG_fail;
4222 }
4223 resultobj = SWIG_From_int((int)result);
4224 return resultobj;
4225 fail:
4226 return NULL;
4227 }
4228
4229
4230 static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4231 PyObject *resultobj;
4232 wxGauge *arg1 = (wxGauge *) 0 ;
4233 int arg2 ;
4234 PyObject * obj0 = 0 ;
4235 PyObject * obj1 = 0 ;
4236 char *kwnames[] = {
4237 (char *) "self",(char *) "pos", NULL
4238 };
4239
4240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4243 arg2 = (int)SWIG_As_int(obj1);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 {
4246 PyThreadState* __tstate = wxPyBeginAllowThreads();
4247 (arg1)->SetValue(arg2);
4248
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 Py_INCREF(Py_None); resultobj = Py_None;
4253 return resultobj;
4254 fail:
4255 return NULL;
4256 }
4257
4258
4259 static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj;
4261 wxGauge *arg1 = (wxGauge *) 0 ;
4262 int result;
4263 PyObject * obj0 = 0 ;
4264 char *kwnames[] = {
4265 (char *) "self", NULL
4266 };
4267
4268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4271 {
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 result = (int)((wxGauge const *)arg1)->GetValue();
4274
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 resultobj = SWIG_From_int((int)result);
4279 return resultobj;
4280 fail:
4281 return NULL;
4282 }
4283
4284
4285 static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4286 PyObject *resultobj;
4287 wxGauge *arg1 = (wxGauge *) 0 ;
4288 bool result;
4289 PyObject * obj0 = 0 ;
4290 char *kwnames[] = {
4291 (char *) "self", NULL
4292 };
4293
4294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 result = (bool)((wxGauge const *)arg1)->IsVertical();
4300
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 {
4305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4306 }
4307 return resultobj;
4308 fail:
4309 return NULL;
4310 }
4311
4312
4313 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4314 PyObject *resultobj;
4315 wxGauge *arg1 = (wxGauge *) 0 ;
4316 int arg2 ;
4317 PyObject * obj0 = 0 ;
4318 PyObject * obj1 = 0 ;
4319 char *kwnames[] = {
4320 (char *) "self",(char *) "w", NULL
4321 };
4322
4323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4326 arg2 = (int)SWIG_As_int(obj1);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 (arg1)->SetShadowWidth(arg2);
4331
4332 wxPyEndAllowThreads(__tstate);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 Py_INCREF(Py_None); resultobj = Py_None;
4336 return resultobj;
4337 fail:
4338 return NULL;
4339 }
4340
4341
4342 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4343 PyObject *resultobj;
4344 wxGauge *arg1 = (wxGauge *) 0 ;
4345 int result;
4346 PyObject * obj0 = 0 ;
4347 char *kwnames[] = {
4348 (char *) "self", NULL
4349 };
4350
4351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4354 {
4355 PyThreadState* __tstate = wxPyBeginAllowThreads();
4356 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4357
4358 wxPyEndAllowThreads(__tstate);
4359 if (PyErr_Occurred()) SWIG_fail;
4360 }
4361 resultobj = SWIG_From_int((int)result);
4362 return resultobj;
4363 fail:
4364 return NULL;
4365 }
4366
4367
4368 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4369 PyObject *resultobj;
4370 wxGauge *arg1 = (wxGauge *) 0 ;
4371 int arg2 ;
4372 PyObject * obj0 = 0 ;
4373 PyObject * obj1 = 0 ;
4374 char *kwnames[] = {
4375 (char *) "self",(char *) "w", NULL
4376 };
4377
4378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4381 arg2 = (int)SWIG_As_int(obj1);
4382 if (PyErr_Occurred()) SWIG_fail;
4383 {
4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
4385 (arg1)->SetBezelFace(arg2);
4386
4387 wxPyEndAllowThreads(__tstate);
4388 if (PyErr_Occurred()) SWIG_fail;
4389 }
4390 Py_INCREF(Py_None); resultobj = Py_None;
4391 return resultobj;
4392 fail:
4393 return NULL;
4394 }
4395
4396
4397 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4398 PyObject *resultobj;
4399 wxGauge *arg1 = (wxGauge *) 0 ;
4400 int result;
4401 PyObject * obj0 = 0 ;
4402 char *kwnames[] = {
4403 (char *) "self", NULL
4404 };
4405
4406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4409 {
4410 PyThreadState* __tstate = wxPyBeginAllowThreads();
4411 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4412
4413 wxPyEndAllowThreads(__tstate);
4414 if (PyErr_Occurred()) SWIG_fail;
4415 }
4416 resultobj = SWIG_From_int((int)result);
4417 return resultobj;
4418 fail:
4419 return NULL;
4420 }
4421
4422
4423 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4424 PyObject *resultobj;
4425 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4426 wxVisualAttributes result;
4427 PyObject * obj0 = 0 ;
4428 char *kwnames[] = {
4429 (char *) "variant", NULL
4430 };
4431
4432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4433 if (obj0) {
4434 arg1 = (int)SWIG_As_int(obj0);
4435 if (PyErr_Occurred()) SWIG_fail;
4436 }
4437 {
4438 if (!wxPyCheckForApp()) SWIG_fail;
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4441
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 {
4446 wxVisualAttributes * resultptr;
4447 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4448 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4449 }
4450 return resultobj;
4451 fail:
4452 return NULL;
4453 }
4454
4455
4456 static PyObject * Gauge_swigregister(PyObject *, PyObject *args) {
4457 PyObject *obj;
4458 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4459 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4460 Py_INCREF(obj);
4461 return Py_BuildValue((char *)"");
4462 }
4463 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
4464 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4465 return 1;
4466 }
4467
4468
4469 static PyObject *_wrap_StaticBitmapNameStr_get() {
4470 PyObject *pyobj;
4471
4472 {
4473 #if wxUSE_UNICODE
4474 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4475 #else
4476 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4477 #endif
4478 }
4479 return pyobj;
4480 }
4481
4482
4483 static int _wrap_StaticBoxNameStr_set(PyObject *) {
4484 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4485 return 1;
4486 }
4487
4488
4489 static PyObject *_wrap_StaticBoxNameStr_get() {
4490 PyObject *pyobj;
4491
4492 {
4493 #if wxUSE_UNICODE
4494 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4495 #else
4496 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4497 #endif
4498 }
4499 return pyobj;
4500 }
4501
4502
4503 static int _wrap_StaticTextNameStr_set(PyObject *) {
4504 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4505 return 1;
4506 }
4507
4508
4509 static PyObject *_wrap_StaticTextNameStr_get() {
4510 PyObject *pyobj;
4511
4512 {
4513 #if wxUSE_UNICODE
4514 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4515 #else
4516 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4517 #endif
4518 }
4519 return pyobj;
4520 }
4521
4522
4523 static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4524 PyObject *resultobj;
4525 wxWindow *arg1 = (wxWindow *) 0 ;
4526 int arg2 = (int) -1 ;
4527 wxString const &arg3_defvalue = wxPyEmptyString ;
4528 wxString *arg3 = (wxString *) &arg3_defvalue ;
4529 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4530 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4531 wxSize const &arg5_defvalue = wxDefaultSize ;
4532 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4533 long arg6 = (long) 0 ;
4534 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4535 wxString *arg7 = (wxString *) &arg7_defvalue ;
4536 wxStaticBox *result;
4537 bool temp3 = False ;
4538 wxPoint temp4 ;
4539 wxSize temp5 ;
4540 bool temp7 = False ;
4541 PyObject * obj0 = 0 ;
4542 PyObject * obj1 = 0 ;
4543 PyObject * obj2 = 0 ;
4544 PyObject * obj3 = 0 ;
4545 PyObject * obj4 = 0 ;
4546 PyObject * obj5 = 0 ;
4547 PyObject * obj6 = 0 ;
4548 char *kwnames[] = {
4549 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4550 };
4551
4552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4555 if (obj1) {
4556 arg2 = (int)SWIG_As_int(obj1);
4557 if (PyErr_Occurred()) SWIG_fail;
4558 }
4559 if (obj2) {
4560 {
4561 arg3 = wxString_in_helper(obj2);
4562 if (arg3 == NULL) SWIG_fail;
4563 temp3 = True;
4564 }
4565 }
4566 if (obj3) {
4567 {
4568 arg4 = &temp4;
4569 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4570 }
4571 }
4572 if (obj4) {
4573 {
4574 arg5 = &temp5;
4575 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4576 }
4577 }
4578 if (obj5) {
4579 arg6 = (long)SWIG_As_long(obj5);
4580 if (PyErr_Occurred()) SWIG_fail;
4581 }
4582 if (obj6) {
4583 {
4584 arg7 = wxString_in_helper(obj6);
4585 if (arg7 == NULL) SWIG_fail;
4586 temp7 = True;
4587 }
4588 }
4589 {
4590 if (!wxPyCheckForApp()) SWIG_fail;
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4593
4594 wxPyEndAllowThreads(__tstate);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4598 {
4599 if (temp3)
4600 delete arg3;
4601 }
4602 {
4603 if (temp7)
4604 delete arg7;
4605 }
4606 return resultobj;
4607 fail:
4608 {
4609 if (temp3)
4610 delete arg3;
4611 }
4612 {
4613 if (temp7)
4614 delete arg7;
4615 }
4616 return NULL;
4617 }
4618
4619
4620 static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4621 PyObject *resultobj;
4622 wxStaticBox *result;
4623 char *kwnames[] = {
4624 NULL
4625 };
4626
4627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4628 {
4629 if (!wxPyCheckForApp()) SWIG_fail;
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 result = (wxStaticBox *)new wxStaticBox();
4632
4633 wxPyEndAllowThreads(__tstate);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 }
4636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4637 return resultobj;
4638 fail:
4639 return NULL;
4640 }
4641
4642
4643 static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4644 PyObject *resultobj;
4645 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4646 wxWindow *arg2 = (wxWindow *) 0 ;
4647 int arg3 = (int) -1 ;
4648 wxString const &arg4_defvalue = wxPyEmptyString ;
4649 wxString *arg4 = (wxString *) &arg4_defvalue ;
4650 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4651 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4652 wxSize const &arg6_defvalue = wxDefaultSize ;
4653 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4654 long arg7 = (long) 0 ;
4655 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4656 wxString *arg8 = (wxString *) &arg8_defvalue ;
4657 bool result;
4658 bool temp4 = False ;
4659 wxPoint temp5 ;
4660 wxSize temp6 ;
4661 bool temp8 = False ;
4662 PyObject * obj0 = 0 ;
4663 PyObject * obj1 = 0 ;
4664 PyObject * obj2 = 0 ;
4665 PyObject * obj3 = 0 ;
4666 PyObject * obj4 = 0 ;
4667 PyObject * obj5 = 0 ;
4668 PyObject * obj6 = 0 ;
4669 PyObject * obj7 = 0 ;
4670 char *kwnames[] = {
4671 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4672 };
4673
4674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4677 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4679 if (obj2) {
4680 arg3 = (int)SWIG_As_int(obj2);
4681 if (PyErr_Occurred()) SWIG_fail;
4682 }
4683 if (obj3) {
4684 {
4685 arg4 = wxString_in_helper(obj3);
4686 if (arg4 == NULL) SWIG_fail;
4687 temp4 = True;
4688 }
4689 }
4690 if (obj4) {
4691 {
4692 arg5 = &temp5;
4693 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4694 }
4695 }
4696 if (obj5) {
4697 {
4698 arg6 = &temp6;
4699 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4700 }
4701 }
4702 if (obj6) {
4703 arg7 = (long)SWIG_As_long(obj6);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 if (obj7) {
4707 {
4708 arg8 = wxString_in_helper(obj7);
4709 if (arg8 == NULL) SWIG_fail;
4710 temp8 = True;
4711 }
4712 }
4713 {
4714 PyThreadState* __tstate = wxPyBeginAllowThreads();
4715 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4716
4717 wxPyEndAllowThreads(__tstate);
4718 if (PyErr_Occurred()) SWIG_fail;
4719 }
4720 {
4721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4722 }
4723 {
4724 if (temp4)
4725 delete arg4;
4726 }
4727 {
4728 if (temp8)
4729 delete arg8;
4730 }
4731 return resultobj;
4732 fail:
4733 {
4734 if (temp4)
4735 delete arg4;
4736 }
4737 {
4738 if (temp8)
4739 delete arg8;
4740 }
4741 return NULL;
4742 }
4743
4744
4745 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4746 PyObject *resultobj;
4747 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4748 wxVisualAttributes result;
4749 PyObject * obj0 = 0 ;
4750 char *kwnames[] = {
4751 (char *) "variant", NULL
4752 };
4753
4754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4755 if (obj0) {
4756 arg1 = (int)SWIG_As_int(obj0);
4757 if (PyErr_Occurred()) SWIG_fail;
4758 }
4759 {
4760 if (!wxPyCheckForApp()) SWIG_fail;
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4763
4764 wxPyEndAllowThreads(__tstate);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 {
4768 wxVisualAttributes * resultptr;
4769 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4770 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4771 }
4772 return resultobj;
4773 fail:
4774 return NULL;
4775 }
4776
4777
4778 static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) {
4779 PyObject *obj;
4780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4781 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4782 Py_INCREF(obj);
4783 return Py_BuildValue((char *)"");
4784 }
4785 static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4786 PyObject *resultobj;
4787 wxWindow *arg1 = (wxWindow *) 0 ;
4788 int arg2 = (int) -1 ;
4789 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4790 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4791 wxSize const &arg4_defvalue = wxDefaultSize ;
4792 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4793 long arg5 = (long) wxLI_HORIZONTAL ;
4794 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4795 wxString *arg6 = (wxString *) &arg6_defvalue ;
4796 wxStaticLine *result;
4797 wxPoint temp3 ;
4798 wxSize temp4 ;
4799 bool temp6 = False ;
4800 PyObject * obj0 = 0 ;
4801 PyObject * obj1 = 0 ;
4802 PyObject * obj2 = 0 ;
4803 PyObject * obj3 = 0 ;
4804 PyObject * obj4 = 0 ;
4805 PyObject * obj5 = 0 ;
4806 char *kwnames[] = {
4807 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4808 };
4809
4810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4813 if (obj1) {
4814 arg2 = (int)SWIG_As_int(obj1);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 if (obj2) {
4818 {
4819 arg3 = &temp3;
4820 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4821 }
4822 }
4823 if (obj3) {
4824 {
4825 arg4 = &temp4;
4826 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4827 }
4828 }
4829 if (obj4) {
4830 arg5 = (long)SWIG_As_long(obj4);
4831 if (PyErr_Occurred()) SWIG_fail;
4832 }
4833 if (obj5) {
4834 {
4835 arg6 = wxString_in_helper(obj5);
4836 if (arg6 == NULL) SWIG_fail;
4837 temp6 = True;
4838 }
4839 }
4840 {
4841 if (!wxPyCheckForApp()) SWIG_fail;
4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
4843 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4844
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4849 {
4850 if (temp6)
4851 delete arg6;
4852 }
4853 return resultobj;
4854 fail:
4855 {
4856 if (temp6)
4857 delete arg6;
4858 }
4859 return NULL;
4860 }
4861
4862
4863 static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4864 PyObject *resultobj;
4865 wxStaticLine *result;
4866 char *kwnames[] = {
4867 NULL
4868 };
4869
4870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4871 {
4872 if (!wxPyCheckForApp()) SWIG_fail;
4873 PyThreadState* __tstate = wxPyBeginAllowThreads();
4874 result = (wxStaticLine *)new wxStaticLine();
4875
4876 wxPyEndAllowThreads(__tstate);
4877 if (PyErr_Occurred()) SWIG_fail;
4878 }
4879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4880 return resultobj;
4881 fail:
4882 return NULL;
4883 }
4884
4885
4886 static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4887 PyObject *resultobj;
4888 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4889 wxWindow *arg2 = (wxWindow *) 0 ;
4890 int arg3 = (int) -1 ;
4891 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4892 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4893 wxSize const &arg5_defvalue = wxDefaultSize ;
4894 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4895 long arg6 = (long) wxLI_HORIZONTAL ;
4896 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4897 wxString *arg7 = (wxString *) &arg7_defvalue ;
4898 bool result;
4899 wxPoint temp4 ;
4900 wxSize temp5 ;
4901 bool temp7 = False ;
4902 PyObject * obj0 = 0 ;
4903 PyObject * obj1 = 0 ;
4904 PyObject * obj2 = 0 ;
4905 PyObject * obj3 = 0 ;
4906 PyObject * obj4 = 0 ;
4907 PyObject * obj5 = 0 ;
4908 PyObject * obj6 = 0 ;
4909 char *kwnames[] = {
4910 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4911 };
4912
4913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4916 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4918 if (obj2) {
4919 arg3 = (int)SWIG_As_int(obj2);
4920 if (PyErr_Occurred()) SWIG_fail;
4921 }
4922 if (obj3) {
4923 {
4924 arg4 = &temp4;
4925 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4926 }
4927 }
4928 if (obj4) {
4929 {
4930 arg5 = &temp5;
4931 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4932 }
4933 }
4934 if (obj5) {
4935 arg6 = (long)SWIG_As_long(obj5);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 }
4938 if (obj6) {
4939 {
4940 arg7 = wxString_in_helper(obj6);
4941 if (arg7 == NULL) SWIG_fail;
4942 temp7 = True;
4943 }
4944 }
4945 {
4946 PyThreadState* __tstate = wxPyBeginAllowThreads();
4947 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4948
4949 wxPyEndAllowThreads(__tstate);
4950 if (PyErr_Occurred()) SWIG_fail;
4951 }
4952 {
4953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4954 }
4955 {
4956 if (temp7)
4957 delete arg7;
4958 }
4959 return resultobj;
4960 fail:
4961 {
4962 if (temp7)
4963 delete arg7;
4964 }
4965 return NULL;
4966 }
4967
4968
4969 static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4970 PyObject *resultobj;
4971 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4972 bool result;
4973 PyObject * obj0 = 0 ;
4974 char *kwnames[] = {
4975 (char *) "self", NULL
4976 };
4977
4978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4981 {
4982 PyThreadState* __tstate = wxPyBeginAllowThreads();
4983 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4984
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 {
4989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4990 }
4991 return resultobj;
4992 fail:
4993 return NULL;
4994 }
4995
4996
4997 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
4998 PyObject *resultobj;
4999 int result;
5000 char *kwnames[] = {
5001 NULL
5002 };
5003
5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
5005 {
5006 PyThreadState* __tstate = wxPyBeginAllowThreads();
5007 result = (int)wxStaticLine::GetDefaultSize();
5008
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 resultobj = SWIG_From_int((int)result);
5013 return resultobj;
5014 fail:
5015 return NULL;
5016 }
5017
5018
5019 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5020 PyObject *resultobj;
5021 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5022 wxVisualAttributes result;
5023 PyObject * obj0 = 0 ;
5024 char *kwnames[] = {
5025 (char *) "variant", NULL
5026 };
5027
5028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5029 if (obj0) {
5030 arg1 = (int)SWIG_As_int(obj0);
5031 if (PyErr_Occurred()) SWIG_fail;
5032 }
5033 {
5034 if (!wxPyCheckForApp()) SWIG_fail;
5035 PyThreadState* __tstate = wxPyBeginAllowThreads();
5036 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
5037
5038 wxPyEndAllowThreads(__tstate);
5039 if (PyErr_Occurred()) SWIG_fail;
5040 }
5041 {
5042 wxVisualAttributes * resultptr;
5043 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5045 }
5046 return resultobj;
5047 fail:
5048 return NULL;
5049 }
5050
5051
5052 static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) {
5053 PyObject *obj;
5054 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5055 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
5056 Py_INCREF(obj);
5057 return Py_BuildValue((char *)"");
5058 }
5059 static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5060 PyObject *resultobj;
5061 wxWindow *arg1 = (wxWindow *) 0 ;
5062 int arg2 = (int) -1 ;
5063 wxString const &arg3_defvalue = wxPyEmptyString ;
5064 wxString *arg3 = (wxString *) &arg3_defvalue ;
5065 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5066 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5067 wxSize const &arg5_defvalue = wxDefaultSize ;
5068 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5069 long arg6 = (long) 0 ;
5070 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5071 wxString *arg7 = (wxString *) &arg7_defvalue ;
5072 wxStaticText *result;
5073 bool temp3 = False ;
5074 wxPoint temp4 ;
5075 wxSize temp5 ;
5076 bool temp7 = False ;
5077 PyObject * obj0 = 0 ;
5078 PyObject * obj1 = 0 ;
5079 PyObject * obj2 = 0 ;
5080 PyObject * obj3 = 0 ;
5081 PyObject * obj4 = 0 ;
5082 PyObject * obj5 = 0 ;
5083 PyObject * obj6 = 0 ;
5084 char *kwnames[] = {
5085 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5086 };
5087
5088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5091 if (obj1) {
5092 arg2 = (int)SWIG_As_int(obj1);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 if (obj2) {
5096 {
5097 arg3 = wxString_in_helper(obj2);
5098 if (arg3 == NULL) SWIG_fail;
5099 temp3 = True;
5100 }
5101 }
5102 if (obj3) {
5103 {
5104 arg4 = &temp4;
5105 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5106 }
5107 }
5108 if (obj4) {
5109 {
5110 arg5 = &temp5;
5111 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5112 }
5113 }
5114 if (obj5) {
5115 arg6 = (long)SWIG_As_long(obj5);
5116 if (PyErr_Occurred()) SWIG_fail;
5117 }
5118 if (obj6) {
5119 {
5120 arg7 = wxString_in_helper(obj6);
5121 if (arg7 == NULL) SWIG_fail;
5122 temp7 = True;
5123 }
5124 }
5125 {
5126 if (!wxPyCheckForApp()) SWIG_fail;
5127 PyThreadState* __tstate = wxPyBeginAllowThreads();
5128 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5129
5130 wxPyEndAllowThreads(__tstate);
5131 if (PyErr_Occurred()) SWIG_fail;
5132 }
5133 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5134 {
5135 if (temp3)
5136 delete arg3;
5137 }
5138 {
5139 if (temp7)
5140 delete arg7;
5141 }
5142 return resultobj;
5143 fail:
5144 {
5145 if (temp3)
5146 delete arg3;
5147 }
5148 {
5149 if (temp7)
5150 delete arg7;
5151 }
5152 return NULL;
5153 }
5154
5155
5156 static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5157 PyObject *resultobj;
5158 wxStaticText *result;
5159 char *kwnames[] = {
5160 NULL
5161 };
5162
5163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
5164 {
5165 if (!wxPyCheckForApp()) SWIG_fail;
5166 PyThreadState* __tstate = wxPyBeginAllowThreads();
5167 result = (wxStaticText *)new wxStaticText();
5168
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5173 return resultobj;
5174 fail:
5175 return NULL;
5176 }
5177
5178
5179 static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5180 PyObject *resultobj;
5181 wxStaticText *arg1 = (wxStaticText *) 0 ;
5182 wxWindow *arg2 = (wxWindow *) 0 ;
5183 int arg3 = (int) -1 ;
5184 wxString const &arg4_defvalue = wxPyEmptyString ;
5185 wxString *arg4 = (wxString *) &arg4_defvalue ;
5186 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5187 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5188 wxSize const &arg6_defvalue = wxDefaultSize ;
5189 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5190 long arg7 = (long) 0 ;
5191 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
5192 wxString *arg8 = (wxString *) &arg8_defvalue ;
5193 bool result;
5194 bool temp4 = False ;
5195 wxPoint temp5 ;
5196 wxSize temp6 ;
5197 bool temp8 = False ;
5198 PyObject * obj0 = 0 ;
5199 PyObject * obj1 = 0 ;
5200 PyObject * obj2 = 0 ;
5201 PyObject * obj3 = 0 ;
5202 PyObject * obj4 = 0 ;
5203 PyObject * obj5 = 0 ;
5204 PyObject * obj6 = 0 ;
5205 PyObject * obj7 = 0 ;
5206 char *kwnames[] = {
5207 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5208 };
5209
5210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5213 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5215 if (obj2) {
5216 arg3 = (int)SWIG_As_int(obj2);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 }
5219 if (obj3) {
5220 {
5221 arg4 = wxString_in_helper(obj3);
5222 if (arg4 == NULL) SWIG_fail;
5223 temp4 = True;
5224 }
5225 }
5226 if (obj4) {
5227 {
5228 arg5 = &temp5;
5229 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5230 }
5231 }
5232 if (obj5) {
5233 {
5234 arg6 = &temp6;
5235 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5236 }
5237 }
5238 if (obj6) {
5239 arg7 = (long)SWIG_As_long(obj6);
5240 if (PyErr_Occurred()) SWIG_fail;
5241 }
5242 if (obj7) {
5243 {
5244 arg8 = wxString_in_helper(obj7);
5245 if (arg8 == NULL) SWIG_fail;
5246 temp8 = True;
5247 }
5248 }
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5252
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) SWIG_fail;
5255 }
5256 {
5257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5258 }
5259 {
5260 if (temp4)
5261 delete arg4;
5262 }
5263 {
5264 if (temp8)
5265 delete arg8;
5266 }
5267 return resultobj;
5268 fail:
5269 {
5270 if (temp4)
5271 delete arg4;
5272 }
5273 {
5274 if (temp8)
5275 delete arg8;
5276 }
5277 return NULL;
5278 }
5279
5280
5281 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5282 PyObject *resultobj;
5283 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5284 wxVisualAttributes result;
5285 PyObject * obj0 = 0 ;
5286 char *kwnames[] = {
5287 (char *) "variant", NULL
5288 };
5289
5290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5291 if (obj0) {
5292 arg1 = (int)SWIG_As_int(obj0);
5293 if (PyErr_Occurred()) SWIG_fail;
5294 }
5295 {
5296 if (!wxPyCheckForApp()) SWIG_fail;
5297 PyThreadState* __tstate = wxPyBeginAllowThreads();
5298 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5299
5300 wxPyEndAllowThreads(__tstate);
5301 if (PyErr_Occurred()) SWIG_fail;
5302 }
5303 {
5304 wxVisualAttributes * resultptr;
5305 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5306 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5307 }
5308 return resultobj;
5309 fail:
5310 return NULL;
5311 }
5312
5313
5314 static PyObject * StaticText_swigregister(PyObject *, PyObject *args) {
5315 PyObject *obj;
5316 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5317 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5318 Py_INCREF(obj);
5319 return Py_BuildValue((char *)"");
5320 }
5321 static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5322 PyObject *resultobj;
5323 wxWindow *arg1 = (wxWindow *) 0 ;
5324 int arg2 = (int) -1 ;
5325 wxBitmap const &arg3_defvalue = wxNullBitmap ;
5326 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
5327 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5328 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5329 wxSize const &arg5_defvalue = wxDefaultSize ;
5330 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5331 long arg6 = (long) 0 ;
5332 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5333 wxString *arg7 = (wxString *) &arg7_defvalue ;
5334 wxStaticBitmap *result;
5335 wxPoint temp4 ;
5336 wxSize temp5 ;
5337 bool temp7 = False ;
5338 PyObject * obj0 = 0 ;
5339 PyObject * obj1 = 0 ;
5340 PyObject * obj2 = 0 ;
5341 PyObject * obj3 = 0 ;
5342 PyObject * obj4 = 0 ;
5343 PyObject * obj5 = 0 ;
5344 PyObject * obj6 = 0 ;
5345 char *kwnames[] = {
5346 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5347 };
5348
5349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5352 if (obj1) {
5353 arg2 = (int)SWIG_As_int(obj1);
5354 if (PyErr_Occurred()) SWIG_fail;
5355 }
5356 if (obj2) {
5357 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5358 SWIG_POINTER_EXCEPTION | 0)) == -1)
5359 SWIG_fail;
5360 if (arg3 == NULL) {
5361 PyErr_SetString(PyExc_TypeError,"null reference");
5362 SWIG_fail;
5363 }
5364 }
5365 if (obj3) {
5366 {
5367 arg4 = &temp4;
5368 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5369 }
5370 }
5371 if (obj4) {
5372 {
5373 arg5 = &temp5;
5374 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5375 }
5376 }
5377 if (obj5) {
5378 arg6 = (long)SWIG_As_long(obj5);
5379 if (PyErr_Occurred()) SWIG_fail;
5380 }
5381 if (obj6) {
5382 {
5383 arg7 = wxString_in_helper(obj6);
5384 if (arg7 == NULL) SWIG_fail;
5385 temp7 = True;
5386 }
5387 }
5388 {
5389 if (!wxPyCheckForApp()) SWIG_fail;
5390 PyThreadState* __tstate = wxPyBeginAllowThreads();
5391 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5392
5393 wxPyEndAllowThreads(__tstate);
5394 if (PyErr_Occurred()) SWIG_fail;
5395 }
5396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5397 {
5398 if (temp7)
5399 delete arg7;
5400 }
5401 return resultobj;
5402 fail:
5403 {
5404 if (temp7)
5405 delete arg7;
5406 }
5407 return NULL;
5408 }
5409
5410
5411 static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5412 PyObject *resultobj;
5413 wxStaticBitmap *result;
5414 char *kwnames[] = {
5415 NULL
5416 };
5417
5418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5419 {
5420 if (!wxPyCheckForApp()) SWIG_fail;
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 result = (wxStaticBitmap *)new wxStaticBitmap();
5423
5424 wxPyEndAllowThreads(__tstate);
5425 if (PyErr_Occurred()) SWIG_fail;
5426 }
5427 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5428 return resultobj;
5429 fail:
5430 return NULL;
5431 }
5432
5433
5434 static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5435 PyObject *resultobj;
5436 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5437 wxWindow *arg2 = (wxWindow *) 0 ;
5438 int arg3 = (int) -1 ;
5439 wxBitmap const &arg4_defvalue = wxNullBitmap ;
5440 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
5441 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5442 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5443 wxSize const &arg6_defvalue = wxDefaultSize ;
5444 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5445 long arg7 = (long) 0 ;
5446 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5447 wxString *arg8 = (wxString *) &arg8_defvalue ;
5448 bool result;
5449 wxPoint temp5 ;
5450 wxSize temp6 ;
5451 bool temp8 = False ;
5452 PyObject * obj0 = 0 ;
5453 PyObject * obj1 = 0 ;
5454 PyObject * obj2 = 0 ;
5455 PyObject * obj3 = 0 ;
5456 PyObject * obj4 = 0 ;
5457 PyObject * obj5 = 0 ;
5458 PyObject * obj6 = 0 ;
5459 PyObject * obj7 = 0 ;
5460 char *kwnames[] = {
5461 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5462 };
5463
5464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5467 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5469 if (obj2) {
5470 arg3 = (int)SWIG_As_int(obj2);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 if (obj3) {
5474 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5475 SWIG_POINTER_EXCEPTION | 0)) == -1)
5476 SWIG_fail;
5477 if (arg4 == NULL) {
5478 PyErr_SetString(PyExc_TypeError,"null reference");
5479 SWIG_fail;
5480 }
5481 }
5482 if (obj4) {
5483 {
5484 arg5 = &temp5;
5485 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5486 }
5487 }
5488 if (obj5) {
5489 {
5490 arg6 = &temp6;
5491 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5492 }
5493 }
5494 if (obj6) {
5495 arg7 = (long)SWIG_As_long(obj6);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 }
5498 if (obj7) {
5499 {
5500 arg8 = wxString_in_helper(obj7);
5501 if (arg8 == NULL) SWIG_fail;
5502 temp8 = True;
5503 }
5504 }
5505 {
5506 PyThreadState* __tstate = wxPyBeginAllowThreads();
5507 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5508
5509 wxPyEndAllowThreads(__tstate);
5510 if (PyErr_Occurred()) SWIG_fail;
5511 }
5512 {
5513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5514 }
5515 {
5516 if (temp8)
5517 delete arg8;
5518 }
5519 return resultobj;
5520 fail:
5521 {
5522 if (temp8)
5523 delete arg8;
5524 }
5525 return NULL;
5526 }
5527
5528
5529 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj;
5531 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5532 wxBitmap result;
5533 PyObject * obj0 = 0 ;
5534 char *kwnames[] = {
5535 (char *) "self", NULL
5536 };
5537
5538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5541 {
5542 PyThreadState* __tstate = wxPyBeginAllowThreads();
5543 result = (arg1)->GetBitmap();
5544
5545 wxPyEndAllowThreads(__tstate);
5546 if (PyErr_Occurred()) SWIG_fail;
5547 }
5548 {
5549 wxBitmap * resultptr;
5550 resultptr = new wxBitmap((wxBitmap &) result);
5551 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5552 }
5553 return resultobj;
5554 fail:
5555 return NULL;
5556 }
5557
5558
5559 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5560 PyObject *resultobj;
5561 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5562 wxBitmap *arg2 = 0 ;
5563 PyObject * obj0 = 0 ;
5564 PyObject * obj1 = 0 ;
5565 char *kwnames[] = {
5566 (char *) "self",(char *) "bitmap", NULL
5567 };
5568
5569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5572 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5573 SWIG_POINTER_EXCEPTION | 0)) == -1)
5574 SWIG_fail;
5575 if (arg2 == NULL) {
5576 PyErr_SetString(PyExc_TypeError,"null reference");
5577 SWIG_fail;
5578 }
5579 {
5580 PyThreadState* __tstate = wxPyBeginAllowThreads();
5581 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5582
5583 wxPyEndAllowThreads(__tstate);
5584 if (PyErr_Occurred()) SWIG_fail;
5585 }
5586 Py_INCREF(Py_None); resultobj = Py_None;
5587 return resultobj;
5588 fail:
5589 return NULL;
5590 }
5591
5592
5593 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5594 PyObject *resultobj;
5595 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5596 wxIcon *arg2 = 0 ;
5597 PyObject * obj0 = 0 ;
5598 PyObject * obj1 = 0 ;
5599 char *kwnames[] = {
5600 (char *) "self",(char *) "icon", NULL
5601 };
5602
5603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5606 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5607 SWIG_POINTER_EXCEPTION | 0)) == -1)
5608 SWIG_fail;
5609 if (arg2 == NULL) {
5610 PyErr_SetString(PyExc_TypeError,"null reference");
5611 SWIG_fail;
5612 }
5613 {
5614 PyThreadState* __tstate = wxPyBeginAllowThreads();
5615 (arg1)->SetIcon((wxIcon const &)*arg2);
5616
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 Py_INCREF(Py_None); resultobj = Py_None;
5621 return resultobj;
5622 fail:
5623 return NULL;
5624 }
5625
5626
5627 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5628 PyObject *resultobj;
5629 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5630 wxVisualAttributes result;
5631 PyObject * obj0 = 0 ;
5632 char *kwnames[] = {
5633 (char *) "variant", NULL
5634 };
5635
5636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5637 if (obj0) {
5638 arg1 = (int)SWIG_As_int(obj0);
5639 if (PyErr_Occurred()) SWIG_fail;
5640 }
5641 {
5642 if (!wxPyCheckForApp()) SWIG_fail;
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5645
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 {
5650 wxVisualAttributes * resultptr;
5651 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5652 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5653 }
5654 return resultobj;
5655 fail:
5656 return NULL;
5657 }
5658
5659
5660 static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) {
5661 PyObject *obj;
5662 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5663 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5664 Py_INCREF(obj);
5665 return Py_BuildValue((char *)"");
5666 }
5667 static int _wrap_ListBoxNameStr_set(PyObject *) {
5668 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5669 return 1;
5670 }
5671
5672
5673 static PyObject *_wrap_ListBoxNameStr_get() {
5674 PyObject *pyobj;
5675
5676 {
5677 #if wxUSE_UNICODE
5678 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5679 #else
5680 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5681 #endif
5682 }
5683 return pyobj;
5684 }
5685
5686
5687 static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5688 PyObject *resultobj;
5689 wxWindow *arg1 = (wxWindow *) 0 ;
5690 int arg2 = (int) -1 ;
5691 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5692 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5693 wxSize const &arg4_defvalue = wxDefaultSize ;
5694 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5695 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5696 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5697 long arg6 = (long) 0 ;
5698 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5699 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5700 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5701 wxString *arg8 = (wxString *) &arg8_defvalue ;
5702 wxListBox *result;
5703 wxPoint temp3 ;
5704 wxSize temp4 ;
5705 bool temp5 = False ;
5706 bool temp8 = False ;
5707 PyObject * obj0 = 0 ;
5708 PyObject * obj1 = 0 ;
5709 PyObject * obj2 = 0 ;
5710 PyObject * obj3 = 0 ;
5711 PyObject * obj4 = 0 ;
5712 PyObject * obj5 = 0 ;
5713 PyObject * obj6 = 0 ;
5714 PyObject * obj7 = 0 ;
5715 char *kwnames[] = {
5716 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5717 };
5718
5719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5722 if (obj1) {
5723 arg2 = (int)SWIG_As_int(obj1);
5724 if (PyErr_Occurred()) SWIG_fail;
5725 }
5726 if (obj2) {
5727 {
5728 arg3 = &temp3;
5729 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5730 }
5731 }
5732 if (obj3) {
5733 {
5734 arg4 = &temp4;
5735 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5736 }
5737 }
5738 if (obj4) {
5739 {
5740 if (! PySequence_Check(obj4)) {
5741 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5742 SWIG_fail;
5743 }
5744 arg5 = new wxArrayString;
5745 temp5 = True;
5746 int i, len=PySequence_Length(obj4);
5747 for (i=0; i<len; i++) {
5748 PyObject* item = PySequence_GetItem(obj4, i);
5749 #if wxUSE_UNICODE
5750 PyObject* str = PyObject_Unicode(item);
5751 #else
5752 PyObject* str = PyObject_Str(item);
5753 #endif
5754 if (PyErr_Occurred()) SWIG_fail;
5755 arg5->Add(Py2wxString(str));
5756 Py_DECREF(item);
5757 Py_DECREF(str);
5758 }
5759 }
5760 }
5761 if (obj5) {
5762 arg6 = (long)SWIG_As_long(obj5);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 if (obj6) {
5766 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5767 SWIG_POINTER_EXCEPTION | 0)) == -1)
5768 SWIG_fail;
5769 if (arg7 == NULL) {
5770 PyErr_SetString(PyExc_TypeError,"null reference");
5771 SWIG_fail;
5772 }
5773 }
5774 if (obj7) {
5775 {
5776 arg8 = wxString_in_helper(obj7);
5777 if (arg8 == NULL) SWIG_fail;
5778 temp8 = True;
5779 }
5780 }
5781 {
5782 if (!wxPyCheckForApp()) SWIG_fail;
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
5784 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5785
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5790 {
5791 if (temp5) delete arg5;
5792 }
5793 {
5794 if (temp8)
5795 delete arg8;
5796 }
5797 return resultobj;
5798 fail:
5799 {
5800 if (temp5) delete arg5;
5801 }
5802 {
5803 if (temp8)
5804 delete arg8;
5805 }
5806 return NULL;
5807 }
5808
5809
5810 static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5811 PyObject *resultobj;
5812 wxListBox *result;
5813 char *kwnames[] = {
5814 NULL
5815 };
5816
5817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5818 {
5819 if (!wxPyCheckForApp()) SWIG_fail;
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 result = (wxListBox *)new wxListBox();
5822
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5827 return resultobj;
5828 fail:
5829 return NULL;
5830 }
5831
5832
5833 static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5834 PyObject *resultobj;
5835 wxListBox *arg1 = (wxListBox *) 0 ;
5836 wxWindow *arg2 = (wxWindow *) 0 ;
5837 int arg3 = (int) -1 ;
5838 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5839 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5840 wxSize const &arg5_defvalue = wxDefaultSize ;
5841 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5842 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5843 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5844 long arg7 = (long) 0 ;
5845 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5846 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5847 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5848 wxString *arg9 = (wxString *) &arg9_defvalue ;
5849 bool result;
5850 wxPoint temp4 ;
5851 wxSize temp5 ;
5852 bool temp6 = False ;
5853 bool temp9 = False ;
5854 PyObject * obj0 = 0 ;
5855 PyObject * obj1 = 0 ;
5856 PyObject * obj2 = 0 ;
5857 PyObject * obj3 = 0 ;
5858 PyObject * obj4 = 0 ;
5859 PyObject * obj5 = 0 ;
5860 PyObject * obj6 = 0 ;
5861 PyObject * obj7 = 0 ;
5862 PyObject * obj8 = 0 ;
5863 char *kwnames[] = {
5864 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5865 };
5866
5867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5870 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5872 if (obj2) {
5873 arg3 = (int)SWIG_As_int(obj2);
5874 if (PyErr_Occurred()) SWIG_fail;
5875 }
5876 if (obj3) {
5877 {
5878 arg4 = &temp4;
5879 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5880 }
5881 }
5882 if (obj4) {
5883 {
5884 arg5 = &temp5;
5885 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5886 }
5887 }
5888 if (obj5) {
5889 {
5890 if (! PySequence_Check(obj5)) {
5891 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5892 SWIG_fail;
5893 }
5894 arg6 = new wxArrayString;
5895 temp6 = True;
5896 int i, len=PySequence_Length(obj5);
5897 for (i=0; i<len; i++) {
5898 PyObject* item = PySequence_GetItem(obj5, i);
5899 #if wxUSE_UNICODE
5900 PyObject* str = PyObject_Unicode(item);
5901 #else
5902 PyObject* str = PyObject_Str(item);
5903 #endif
5904 if (PyErr_Occurred()) SWIG_fail;
5905 arg6->Add(Py2wxString(str));
5906 Py_DECREF(item);
5907 Py_DECREF(str);
5908 }
5909 }
5910 }
5911 if (obj6) {
5912 arg7 = (long)SWIG_As_long(obj6);
5913 if (PyErr_Occurred()) SWIG_fail;
5914 }
5915 if (obj7) {
5916 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5917 SWIG_POINTER_EXCEPTION | 0)) == -1)
5918 SWIG_fail;
5919 if (arg8 == NULL) {
5920 PyErr_SetString(PyExc_TypeError,"null reference");
5921 SWIG_fail;
5922 }
5923 }
5924 if (obj8) {
5925 {
5926 arg9 = wxString_in_helper(obj8);
5927 if (arg9 == NULL) SWIG_fail;
5928 temp9 = True;
5929 }
5930 }
5931 {
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5934
5935 wxPyEndAllowThreads(__tstate);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 {
5939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5940 }
5941 {
5942 if (temp6) delete arg6;
5943 }
5944 {
5945 if (temp9)
5946 delete arg9;
5947 }
5948 return resultobj;
5949 fail:
5950 {
5951 if (temp6) delete arg6;
5952 }
5953 {
5954 if (temp9)
5955 delete arg9;
5956 }
5957 return NULL;
5958 }
5959
5960
5961 static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxListBox *arg1 = (wxListBox *) 0 ;
5964 wxString *arg2 = 0 ;
5965 int arg3 ;
5966 PyObject *arg4 = (PyObject *) NULL ;
5967 bool temp2 = False ;
5968 PyObject * obj0 = 0 ;
5969 PyObject * obj1 = 0 ;
5970 PyObject * obj2 = 0 ;
5971 PyObject * obj3 = 0 ;
5972 char *kwnames[] = {
5973 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5974 };
5975
5976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5979 {
5980 arg2 = wxString_in_helper(obj1);
5981 if (arg2 == NULL) SWIG_fail;
5982 temp2 = True;
5983 }
5984 arg3 = (int)SWIG_As_int(obj2);
5985 if (PyErr_Occurred()) SWIG_fail;
5986 if (obj3) {
5987 arg4 = obj3;
5988 }
5989 {
5990 PyThreadState* __tstate = wxPyBeginAllowThreads();
5991 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5992
5993 wxPyEndAllowThreads(__tstate);
5994 if (PyErr_Occurred()) SWIG_fail;
5995 }
5996 Py_INCREF(Py_None); resultobj = Py_None;
5997 {
5998 if (temp2)
5999 delete arg2;
6000 }
6001 return resultobj;
6002 fail:
6003 {
6004 if (temp2)
6005 delete arg2;
6006 }
6007 return NULL;
6008 }
6009
6010
6011 static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) {
6012 PyObject *resultobj;
6013 wxListBox *arg1 = (wxListBox *) 0 ;
6014 wxArrayString *arg2 = 0 ;
6015 int arg3 ;
6016 bool temp2 = False ;
6017 PyObject * obj0 = 0 ;
6018 PyObject * obj1 = 0 ;
6019 PyObject * obj2 = 0 ;
6020 char *kwnames[] = {
6021 (char *) "self",(char *) "items",(char *) "pos", NULL
6022 };
6023
6024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
6025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6027 {
6028 if (! PySequence_Check(obj1)) {
6029 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6030 SWIG_fail;
6031 }
6032 arg2 = new wxArrayString;
6033 temp2 = True;
6034 int i, len=PySequence_Length(obj1);
6035 for (i=0; i<len; i++) {
6036 PyObject* item = PySequence_GetItem(obj1, i);
6037 #if wxUSE_UNICODE
6038 PyObject* str = PyObject_Unicode(item);
6039 #else
6040 PyObject* str = PyObject_Str(item);
6041 #endif
6042 if (PyErr_Occurred()) SWIG_fail;
6043 arg2->Add(Py2wxString(str));
6044 Py_DECREF(item);
6045 Py_DECREF(str);
6046 }
6047 }
6048 arg3 = (int)SWIG_As_int(obj2);
6049 if (PyErr_Occurred()) SWIG_fail;
6050 {
6051 PyThreadState* __tstate = wxPyBeginAllowThreads();
6052 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
6053
6054 wxPyEndAllowThreads(__tstate);
6055 if (PyErr_Occurred()) SWIG_fail;
6056 }
6057 Py_INCREF(Py_None); resultobj = Py_None;
6058 {
6059 if (temp2) delete arg2;
6060 }
6061 return resultobj;
6062 fail:
6063 {
6064 if (temp2) delete arg2;
6065 }
6066 return NULL;
6067 }
6068
6069
6070 static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) {
6071 PyObject *resultobj;
6072 wxListBox *arg1 = (wxListBox *) 0 ;
6073 wxArrayString *arg2 = 0 ;
6074 bool temp2 = False ;
6075 PyObject * obj0 = 0 ;
6076 PyObject * obj1 = 0 ;
6077 char *kwnames[] = {
6078 (char *) "self",(char *) "items", NULL
6079 };
6080
6081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
6082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6084 {
6085 if (! PySequence_Check(obj1)) {
6086 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6087 SWIG_fail;
6088 }
6089 arg2 = new wxArrayString;
6090 temp2 = True;
6091 int i, len=PySequence_Length(obj1);
6092 for (i=0; i<len; i++) {
6093 PyObject* item = PySequence_GetItem(obj1, i);
6094 #if wxUSE_UNICODE
6095 PyObject* str = PyObject_Unicode(item);
6096 #else
6097 PyObject* str = PyObject_Str(item);
6098 #endif
6099 if (PyErr_Occurred()) SWIG_fail;
6100 arg2->Add(Py2wxString(str));
6101 Py_DECREF(item);
6102 Py_DECREF(str);
6103 }
6104 }
6105 {
6106 PyThreadState* __tstate = wxPyBeginAllowThreads();
6107 (arg1)->Set((wxArrayString const &)*arg2);
6108
6109 wxPyEndAllowThreads(__tstate);
6110 if (PyErr_Occurred()) SWIG_fail;
6111 }
6112 Py_INCREF(Py_None); resultobj = Py_None;
6113 {
6114 if (temp2) delete arg2;
6115 }
6116 return resultobj;
6117 fail:
6118 {
6119 if (temp2) delete arg2;
6120 }
6121 return NULL;
6122 }
6123
6124
6125 static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
6126 PyObject *resultobj;
6127 wxListBox *arg1 = (wxListBox *) 0 ;
6128 int arg2 ;
6129 bool result;
6130 PyObject * obj0 = 0 ;
6131 PyObject * obj1 = 0 ;
6132 char *kwnames[] = {
6133 (char *) "self",(char *) "n", NULL
6134 };
6135
6136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
6137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6139 arg2 = (int)SWIG_As_int(obj1);
6140 if (PyErr_Occurred()) SWIG_fail;
6141 {
6142 PyThreadState* __tstate = wxPyBeginAllowThreads();
6143 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
6144
6145 wxPyEndAllowThreads(__tstate);
6146 if (PyErr_Occurred()) SWIG_fail;
6147 }
6148 {
6149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6150 }
6151 return resultobj;
6152 fail:
6153 return NULL;
6154 }
6155
6156
6157 static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6158 PyObject *resultobj;
6159 wxListBox *arg1 = (wxListBox *) 0 ;
6160 int arg2 ;
6161 bool arg3 = (bool) True ;
6162 PyObject * obj0 = 0 ;
6163 PyObject * obj1 = 0 ;
6164 PyObject * obj2 = 0 ;
6165 char *kwnames[] = {
6166 (char *) "self",(char *) "n",(char *) "select", NULL
6167 };
6168
6169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6172 arg2 = (int)SWIG_As_int(obj1);
6173 if (PyErr_Occurred()) SWIG_fail;
6174 if (obj2) {
6175 arg3 = (bool)SWIG_As_bool(obj2);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 (arg1)->SetSelection(arg2,arg3);
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 Py_INCREF(Py_None); resultobj = Py_None;
6186 return resultobj;
6187 fail:
6188 return NULL;
6189 }
6190
6191
6192 static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) {
6193 PyObject *resultobj;
6194 wxListBox *arg1 = (wxListBox *) 0 ;
6195 int arg2 ;
6196 PyObject * obj0 = 0 ;
6197 PyObject * obj1 = 0 ;
6198 char *kwnames[] = {
6199 (char *) "self",(char *) "n", NULL
6200 };
6201
6202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
6203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6205 arg2 = (int)SWIG_As_int(obj1);
6206 if (PyErr_Occurred()) SWIG_fail;
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 (arg1)->Select(arg2);
6210
6211 wxPyEndAllowThreads(__tstate);
6212 if (PyErr_Occurred()) SWIG_fail;
6213 }
6214 Py_INCREF(Py_None); resultobj = Py_None;
6215 return resultobj;
6216 fail:
6217 return NULL;
6218 }
6219
6220
6221 static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) {
6222 PyObject *resultobj;
6223 wxListBox *arg1 = (wxListBox *) 0 ;
6224 int arg2 ;
6225 PyObject * obj0 = 0 ;
6226 PyObject * obj1 = 0 ;
6227 char *kwnames[] = {
6228 (char *) "self",(char *) "n", NULL
6229 };
6230
6231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6234 arg2 = (int)SWIG_As_int(obj1);
6235 if (PyErr_Occurred()) SWIG_fail;
6236 {
6237 PyThreadState* __tstate = wxPyBeginAllowThreads();
6238 (arg1)->Deselect(arg2);
6239
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 Py_INCREF(Py_None); resultobj = Py_None;
6244 return resultobj;
6245 fail:
6246 return NULL;
6247 }
6248
6249
6250 static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
6251 PyObject *resultobj;
6252 wxListBox *arg1 = (wxListBox *) 0 ;
6253 int arg2 = (int) -1 ;
6254 PyObject * obj0 = 0 ;
6255 PyObject * obj1 = 0 ;
6256 char *kwnames[] = {
6257 (char *) "self",(char *) "itemToLeaveSelected", NULL
6258 };
6259
6260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6263 if (obj1) {
6264 arg2 = (int)SWIG_As_int(obj1);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 {
6268 PyThreadState* __tstate = wxPyBeginAllowThreads();
6269 (arg1)->DeselectAll(arg2);
6270
6271 wxPyEndAllowThreads(__tstate);
6272 if (PyErr_Occurred()) SWIG_fail;
6273 }
6274 Py_INCREF(Py_None); resultobj = Py_None;
6275 return resultobj;
6276 fail:
6277 return NULL;
6278 }
6279
6280
6281 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6282 PyObject *resultobj;
6283 wxListBox *arg1 = (wxListBox *) 0 ;
6284 wxString *arg2 = 0 ;
6285 bool arg3 = (bool) True ;
6286 bool result;
6287 bool temp2 = False ;
6288 PyObject * obj0 = 0 ;
6289 PyObject * obj1 = 0 ;
6290 PyObject * obj2 = 0 ;
6291 char *kwnames[] = {
6292 (char *) "self",(char *) "s",(char *) "select", NULL
6293 };
6294
6295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6298 {
6299 arg2 = wxString_in_helper(obj1);
6300 if (arg2 == NULL) SWIG_fail;
6301 temp2 = True;
6302 }
6303 if (obj2) {
6304 arg3 = (bool)SWIG_As_bool(obj2);
6305 if (PyErr_Occurred()) SWIG_fail;
6306 }
6307 {
6308 PyThreadState* __tstate = wxPyBeginAllowThreads();
6309 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6310
6311 wxPyEndAllowThreads(__tstate);
6312 if (PyErr_Occurred()) SWIG_fail;
6313 }
6314 {
6315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6316 }
6317 {
6318 if (temp2)
6319 delete arg2;
6320 }
6321 return resultobj;
6322 fail:
6323 {
6324 if (temp2)
6325 delete arg2;
6326 }
6327 return NULL;
6328 }
6329
6330
6331 static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj;
6333 wxListBox *arg1 = (wxListBox *) 0 ;
6334 PyObject *result;
6335 PyObject * obj0 = 0 ;
6336 char *kwnames[] = {
6337 (char *) "self", NULL
6338 };
6339
6340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6343 {
6344 PyThreadState* __tstate = wxPyBeginAllowThreads();
6345 result = (PyObject *)wxListBox_GetSelections(arg1);
6346
6347 wxPyEndAllowThreads(__tstate);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 resultobj = result;
6351 return resultobj;
6352 fail:
6353 return NULL;
6354 }
6355
6356
6357 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) {
6358 PyObject *resultobj;
6359 wxListBox *arg1 = (wxListBox *) 0 ;
6360 int arg2 ;
6361 PyObject * obj0 = 0 ;
6362 PyObject * obj1 = 0 ;
6363 char *kwnames[] = {
6364 (char *) "self",(char *) "n", NULL
6365 };
6366
6367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6370 arg2 = (int)SWIG_As_int(obj1);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 {
6373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6374 (arg1)->SetFirstItem(arg2);
6375
6376 wxPyEndAllowThreads(__tstate);
6377 if (PyErr_Occurred()) SWIG_fail;
6378 }
6379 Py_INCREF(Py_None); resultobj = Py_None;
6380 return resultobj;
6381 fail:
6382 return NULL;
6383 }
6384
6385
6386 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) {
6387 PyObject *resultobj;
6388 wxListBox *arg1 = (wxListBox *) 0 ;
6389 wxString *arg2 = 0 ;
6390 bool temp2 = False ;
6391 PyObject * obj0 = 0 ;
6392 PyObject * obj1 = 0 ;
6393 char *kwnames[] = {
6394 (char *) "self",(char *) "s", NULL
6395 };
6396
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6400 {
6401 arg2 = wxString_in_helper(obj1);
6402 if (arg2 == NULL) SWIG_fail;
6403 temp2 = True;
6404 }
6405 {
6406 PyThreadState* __tstate = wxPyBeginAllowThreads();
6407 (arg1)->SetFirstItem((wxString const &)*arg2);
6408
6409 wxPyEndAllowThreads(__tstate);
6410 if (PyErr_Occurred()) SWIG_fail;
6411 }
6412 Py_INCREF(Py_None); resultobj = Py_None;
6413 {
6414 if (temp2)
6415 delete arg2;
6416 }
6417 return resultobj;
6418 fail:
6419 {
6420 if (temp2)
6421 delete arg2;
6422 }
6423 return NULL;
6424 }
6425
6426
6427 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj;
6429 wxListBox *arg1 = (wxListBox *) 0 ;
6430 int arg2 ;
6431 PyObject * obj0 = 0 ;
6432 PyObject * obj1 = 0 ;
6433 char *kwnames[] = {
6434 (char *) "self",(char *) "n", NULL
6435 };
6436
6437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6440 arg2 = (int)SWIG_As_int(obj1);
6441 if (PyErr_Occurred()) SWIG_fail;
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 (arg1)->EnsureVisible(arg2);
6445
6446 wxPyEndAllowThreads(__tstate);
6447 if (PyErr_Occurred()) SWIG_fail;
6448 }
6449 Py_INCREF(Py_None); resultobj = Py_None;
6450 return resultobj;
6451 fail:
6452 return NULL;
6453 }
6454
6455
6456 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6457 PyObject *resultobj;
6458 wxListBox *arg1 = (wxListBox *) 0 ;
6459 wxString *arg2 = 0 ;
6460 bool temp2 = False ;
6461 PyObject * obj0 = 0 ;
6462 PyObject * obj1 = 0 ;
6463 char *kwnames[] = {
6464 (char *) "self",(char *) "s", NULL
6465 };
6466
6467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6470 {
6471 arg2 = wxString_in_helper(obj1);
6472 if (arg2 == NULL) SWIG_fail;
6473 temp2 = True;
6474 }
6475 {
6476 PyThreadState* __tstate = wxPyBeginAllowThreads();
6477 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6478
6479 wxPyEndAllowThreads(__tstate);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 }
6482 Py_INCREF(Py_None); resultobj = Py_None;
6483 {
6484 if (temp2)
6485 delete arg2;
6486 }
6487 return resultobj;
6488 fail:
6489 {
6490 if (temp2)
6491 delete arg2;
6492 }
6493 return NULL;
6494 }
6495
6496
6497 static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) {
6498 PyObject *resultobj;
6499 wxListBox *arg1 = (wxListBox *) 0 ;
6500 bool result;
6501 PyObject * obj0 = 0 ;
6502 char *kwnames[] = {
6503 (char *) "self", NULL
6504 };
6505
6506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6509 {
6510 PyThreadState* __tstate = wxPyBeginAllowThreads();
6511 result = (bool)((wxListBox const *)arg1)->IsSorted();
6512
6513 wxPyEndAllowThreads(__tstate);
6514 if (PyErr_Occurred()) SWIG_fail;
6515 }
6516 {
6517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6518 }
6519 return resultobj;
6520 fail:
6521 return NULL;
6522 }
6523
6524
6525 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6526 PyObject *resultobj;
6527 wxListBox *arg1 = (wxListBox *) 0 ;
6528 int arg2 ;
6529 wxColour *arg3 = 0 ;
6530 wxColour temp3 ;
6531 PyObject * obj0 = 0 ;
6532 PyObject * obj1 = 0 ;
6533 PyObject * obj2 = 0 ;
6534 char *kwnames[] = {
6535 (char *) "self",(char *) "item",(char *) "c", NULL
6536 };
6537
6538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6541 arg2 = (int)SWIG_As_int(obj1);
6542 if (PyErr_Occurred()) SWIG_fail;
6543 {
6544 arg3 = &temp3;
6545 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6546 }
6547 {
6548 PyThreadState* __tstate = wxPyBeginAllowThreads();
6549 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6550
6551 wxPyEndAllowThreads(__tstate);
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 Py_INCREF(Py_None); resultobj = Py_None;
6555 return resultobj;
6556 fail:
6557 return NULL;
6558 }
6559
6560
6561 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj;
6563 wxListBox *arg1 = (wxListBox *) 0 ;
6564 int arg2 ;
6565 wxColour *arg3 = 0 ;
6566 wxColour temp3 ;
6567 PyObject * obj0 = 0 ;
6568 PyObject * obj1 = 0 ;
6569 PyObject * obj2 = 0 ;
6570 char *kwnames[] = {
6571 (char *) "self",(char *) "item",(char *) "c", NULL
6572 };
6573
6574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6577 arg2 = (int)SWIG_As_int(obj1);
6578 if (PyErr_Occurred()) SWIG_fail;
6579 {
6580 arg3 = &temp3;
6581 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6582 }
6583 {
6584 PyThreadState* __tstate = wxPyBeginAllowThreads();
6585 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6586
6587 wxPyEndAllowThreads(__tstate);
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 Py_INCREF(Py_None); resultobj = Py_None;
6591 return resultobj;
6592 fail:
6593 return NULL;
6594 }
6595
6596
6597 static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
6598 PyObject *resultobj;
6599 wxListBox *arg1 = (wxListBox *) 0 ;
6600 int arg2 ;
6601 wxFont *arg3 = 0 ;
6602 PyObject * obj0 = 0 ;
6603 PyObject * obj1 = 0 ;
6604 PyObject * obj2 = 0 ;
6605 char *kwnames[] = {
6606 (char *) "self",(char *) "item",(char *) "f", NULL
6607 };
6608
6609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6612 arg2 = (int)SWIG_As_int(obj1);
6613 if (PyErr_Occurred()) SWIG_fail;
6614 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6615 SWIG_POINTER_EXCEPTION | 0)) == -1)
6616 SWIG_fail;
6617 if (arg3 == NULL) {
6618 PyErr_SetString(PyExc_TypeError,"null reference");
6619 SWIG_fail;
6620 }
6621 {
6622 PyThreadState* __tstate = wxPyBeginAllowThreads();
6623 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6624
6625 wxPyEndAllowThreads(__tstate);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 Py_INCREF(Py_None); resultobj = Py_None;
6629 return resultobj;
6630 fail:
6631 return NULL;
6632 }
6633
6634
6635 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
6636 PyObject *resultobj;
6637 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6638 wxVisualAttributes result;
6639 PyObject * obj0 = 0 ;
6640 char *kwnames[] = {
6641 (char *) "variant", NULL
6642 };
6643
6644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6645 if (obj0) {
6646 arg1 = (int)SWIG_As_int(obj0);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 {
6650 if (!wxPyCheckForApp()) SWIG_fail;
6651 PyThreadState* __tstate = wxPyBeginAllowThreads();
6652 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6653
6654 wxPyEndAllowThreads(__tstate);
6655 if (PyErr_Occurred()) SWIG_fail;
6656 }
6657 {
6658 wxVisualAttributes * resultptr;
6659 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6660 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6661 }
6662 return resultobj;
6663 fail:
6664 return NULL;
6665 }
6666
6667
6668 static PyObject * ListBox_swigregister(PyObject *, PyObject *args) {
6669 PyObject *obj;
6670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6671 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6672 Py_INCREF(obj);
6673 return Py_BuildValue((char *)"");
6674 }
6675 static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj;
6677 wxWindow *arg1 = (wxWindow *) 0 ;
6678 int arg2 = (int) -1 ;
6679 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6680 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6681 wxSize const &arg4_defvalue = wxDefaultSize ;
6682 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6683 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6684 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6685 long arg6 = (long) 0 ;
6686 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6687 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6688 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6689 wxString *arg8 = (wxString *) &arg8_defvalue ;
6690 wxCheckListBox *result;
6691 wxPoint temp3 ;
6692 wxSize temp4 ;
6693 bool temp5 = False ;
6694 bool temp8 = False ;
6695 PyObject * obj0 = 0 ;
6696 PyObject * obj1 = 0 ;
6697 PyObject * obj2 = 0 ;
6698 PyObject * obj3 = 0 ;
6699 PyObject * obj4 = 0 ;
6700 PyObject * obj5 = 0 ;
6701 PyObject * obj6 = 0 ;
6702 PyObject * obj7 = 0 ;
6703 char *kwnames[] = {
6704 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6705 };
6706
6707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6710 if (obj1) {
6711 arg2 = (int)SWIG_As_int(obj1);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 if (obj2) {
6715 {
6716 arg3 = &temp3;
6717 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6718 }
6719 }
6720 if (obj3) {
6721 {
6722 arg4 = &temp4;
6723 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6724 }
6725 }
6726 if (obj4) {
6727 {
6728 if (! PySequence_Check(obj4)) {
6729 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6730 SWIG_fail;
6731 }
6732 arg5 = new wxArrayString;
6733 temp5 = True;
6734 int i, len=PySequence_Length(obj4);
6735 for (i=0; i<len; i++) {
6736 PyObject* item = PySequence_GetItem(obj4, i);
6737 #if wxUSE_UNICODE
6738 PyObject* str = PyObject_Unicode(item);
6739 #else
6740 PyObject* str = PyObject_Str(item);
6741 #endif
6742 if (PyErr_Occurred()) SWIG_fail;
6743 arg5->Add(Py2wxString(str));
6744 Py_DECREF(item);
6745 Py_DECREF(str);
6746 }
6747 }
6748 }
6749 if (obj5) {
6750 arg6 = (long)SWIG_As_long(obj5);
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 if (obj6) {
6754 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6755 SWIG_POINTER_EXCEPTION | 0)) == -1)
6756 SWIG_fail;
6757 if (arg7 == NULL) {
6758 PyErr_SetString(PyExc_TypeError,"null reference");
6759 SWIG_fail;
6760 }
6761 }
6762 if (obj7) {
6763 {
6764 arg8 = wxString_in_helper(obj7);
6765 if (arg8 == NULL) SWIG_fail;
6766 temp8 = True;
6767 }
6768 }
6769 {
6770 if (!wxPyCheckForApp()) SWIG_fail;
6771 PyThreadState* __tstate = wxPyBeginAllowThreads();
6772 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6773
6774 wxPyEndAllowThreads(__tstate);
6775 if (PyErr_Occurred()) SWIG_fail;
6776 }
6777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6778 {
6779 if (temp5) delete arg5;
6780 }
6781 {
6782 if (temp8)
6783 delete arg8;
6784 }
6785 return resultobj;
6786 fail:
6787 {
6788 if (temp5) delete arg5;
6789 }
6790 {
6791 if (temp8)
6792 delete arg8;
6793 }
6794 return NULL;
6795 }
6796
6797
6798 static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6799 PyObject *resultobj;
6800 wxCheckListBox *result;
6801 char *kwnames[] = {
6802 NULL
6803 };
6804
6805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6806 {
6807 if (!wxPyCheckForApp()) SWIG_fail;
6808 PyThreadState* __tstate = wxPyBeginAllowThreads();
6809 result = (wxCheckListBox *)new wxCheckListBox();
6810
6811 wxPyEndAllowThreads(__tstate);
6812 if (PyErr_Occurred()) SWIG_fail;
6813 }
6814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6815 return resultobj;
6816 fail:
6817 return NULL;
6818 }
6819
6820
6821 static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6822 PyObject *resultobj;
6823 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6824 wxWindow *arg2 = (wxWindow *) 0 ;
6825 int arg3 = (int) -1 ;
6826 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6827 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6828 wxSize const &arg5_defvalue = wxDefaultSize ;
6829 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6830 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6831 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6832 long arg7 = (long) 0 ;
6833 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6834 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6835 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6836 wxString *arg9 = (wxString *) &arg9_defvalue ;
6837 bool result;
6838 wxPoint temp4 ;
6839 wxSize temp5 ;
6840 bool temp6 = False ;
6841 bool temp9 = False ;
6842 PyObject * obj0 = 0 ;
6843 PyObject * obj1 = 0 ;
6844 PyObject * obj2 = 0 ;
6845 PyObject * obj3 = 0 ;
6846 PyObject * obj4 = 0 ;
6847 PyObject * obj5 = 0 ;
6848 PyObject * obj6 = 0 ;
6849 PyObject * obj7 = 0 ;
6850 PyObject * obj8 = 0 ;
6851 char *kwnames[] = {
6852 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6853 };
6854
6855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6860 if (obj2) {
6861 arg3 = (int)SWIG_As_int(obj2);
6862 if (PyErr_Occurred()) SWIG_fail;
6863 }
6864 if (obj3) {
6865 {
6866 arg4 = &temp4;
6867 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6868 }
6869 }
6870 if (obj4) {
6871 {
6872 arg5 = &temp5;
6873 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6874 }
6875 }
6876 if (obj5) {
6877 {
6878 if (! PySequence_Check(obj5)) {
6879 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6880 SWIG_fail;
6881 }
6882 arg6 = new wxArrayString;
6883 temp6 = True;
6884 int i, len=PySequence_Length(obj5);
6885 for (i=0; i<len; i++) {
6886 PyObject* item = PySequence_GetItem(obj5, i);
6887 #if wxUSE_UNICODE
6888 PyObject* str = PyObject_Unicode(item);
6889 #else
6890 PyObject* str = PyObject_Str(item);
6891 #endif
6892 if (PyErr_Occurred()) SWIG_fail;
6893 arg6->Add(Py2wxString(str));
6894 Py_DECREF(item);
6895 Py_DECREF(str);
6896 }
6897 }
6898 }
6899 if (obj6) {
6900 arg7 = (long)SWIG_As_long(obj6);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 if (obj7) {
6904 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6905 SWIG_POINTER_EXCEPTION | 0)) == -1)
6906 SWIG_fail;
6907 if (arg8 == NULL) {
6908 PyErr_SetString(PyExc_TypeError,"null reference");
6909 SWIG_fail;
6910 }
6911 }
6912 if (obj8) {
6913 {
6914 arg9 = wxString_in_helper(obj8);
6915 if (arg9 == NULL) SWIG_fail;
6916 temp9 = True;
6917 }
6918 }
6919 {
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6922
6923 wxPyEndAllowThreads(__tstate);
6924 if (PyErr_Occurred()) SWIG_fail;
6925 }
6926 {
6927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6928 }
6929 {
6930 if (temp6) delete arg6;
6931 }
6932 {
6933 if (temp9)
6934 delete arg9;
6935 }
6936 return resultobj;
6937 fail:
6938 {
6939 if (temp6) delete arg6;
6940 }
6941 {
6942 if (temp9)
6943 delete arg9;
6944 }
6945 return NULL;
6946 }
6947
6948
6949 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
6950 PyObject *resultobj;
6951 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6952 int arg2 ;
6953 bool result;
6954 PyObject * obj0 = 0 ;
6955 PyObject * obj1 = 0 ;
6956 char *kwnames[] = {
6957 (char *) "self",(char *) "index", NULL
6958 };
6959
6960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6963 arg2 = (int)SWIG_As_int(obj1);
6964 if (PyErr_Occurred()) SWIG_fail;
6965 {
6966 PyThreadState* __tstate = wxPyBeginAllowThreads();
6967 result = (bool)(arg1)->IsChecked(arg2);
6968
6969 wxPyEndAllowThreads(__tstate);
6970 if (PyErr_Occurred()) SWIG_fail;
6971 }
6972 {
6973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6974 }
6975 return resultobj;
6976 fail:
6977 return NULL;
6978 }
6979
6980
6981 static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) {
6982 PyObject *resultobj;
6983 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6984 int arg2 ;
6985 int arg3 = (int) True ;
6986 PyObject * obj0 = 0 ;
6987 PyObject * obj1 = 0 ;
6988 PyObject * obj2 = 0 ;
6989 char *kwnames[] = {
6990 (char *) "self",(char *) "index",(char *) "check", NULL
6991 };
6992
6993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6996 arg2 = (int)SWIG_As_int(obj1);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 if (obj2) {
6999 arg3 = (int)SWIG_As_int(obj2);
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 (arg1)->Check(arg2,arg3);
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 Py_INCREF(Py_None); resultobj = Py_None;
7010 return resultobj;
7011 fail:
7012 return NULL;
7013 }
7014
7015
7016 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) {
7017 PyObject *resultobj;
7018 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7019 int result;
7020 PyObject * obj0 = 0 ;
7021 char *kwnames[] = {
7022 (char *) "self", NULL
7023 };
7024
7025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
7026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7028 {
7029 PyThreadState* __tstate = wxPyBeginAllowThreads();
7030 result = (int)(arg1)->GetItemHeight();
7031
7032 wxPyEndAllowThreads(__tstate);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_From_int((int)result);
7036 return resultobj;
7037 fail:
7038 return NULL;
7039 }
7040
7041
7042 static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj;
7044 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7045 wxPoint *arg2 = 0 ;
7046 int result;
7047 wxPoint temp2 ;
7048 PyObject * obj0 = 0 ;
7049 PyObject * obj1 = 0 ;
7050 char *kwnames[] = {
7051 (char *) "self",(char *) "pt", NULL
7052 };
7053
7054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
7055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7057 {
7058 arg2 = &temp2;
7059 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7060 }
7061 {
7062 PyThreadState* __tstate = wxPyBeginAllowThreads();
7063 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
7064
7065 wxPyEndAllowThreads(__tstate);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 resultobj = SWIG_From_int((int)result);
7069 return resultobj;
7070 fail:
7071 return NULL;
7072 }
7073
7074
7075 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
7076 PyObject *resultobj;
7077 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7078 int arg2 ;
7079 int arg3 ;
7080 int result;
7081 PyObject * obj0 = 0 ;
7082 PyObject * obj1 = 0 ;
7083 PyObject * obj2 = 0 ;
7084 char *kwnames[] = {
7085 (char *) "self",(char *) "x",(char *) "y", NULL
7086 };
7087
7088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7091 arg2 = (int)SWIG_As_int(obj1);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 arg3 = (int)SWIG_As_int(obj2);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 {
7096 PyThreadState* __tstate = wxPyBeginAllowThreads();
7097 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
7098
7099 wxPyEndAllowThreads(__tstate);
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 resultobj = SWIG_From_int((int)result);
7103 return resultobj;
7104 fail:
7105 return NULL;
7106 }
7107
7108
7109 static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) {
7110 PyObject *obj;
7111 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7112 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
7113 Py_INCREF(obj);
7114 return Py_BuildValue((char *)"");
7115 }
7116 static int _wrap_TextCtrlNameStr_set(PyObject *) {
7117 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
7118 return 1;
7119 }
7120
7121
7122 static PyObject *_wrap_TextCtrlNameStr_get() {
7123 PyObject *pyobj;
7124
7125 {
7126 #if wxUSE_UNICODE
7127 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7128 #else
7129 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7130 #endif
7131 }
7132 return pyobj;
7133 }
7134
7135
7136 static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7137 PyObject *resultobj;
7138 wxColour const &arg1_defvalue = wxNullColour ;
7139 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
7140 wxColour const &arg2_defvalue = wxNullColour ;
7141 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
7142 wxFont const &arg3_defvalue = wxNullFont ;
7143 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
7144 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
7145 wxTextAttr *result;
7146 wxColour temp1 ;
7147 wxColour temp2 ;
7148 PyObject * obj0 = 0 ;
7149 PyObject * obj1 = 0 ;
7150 PyObject * obj2 = 0 ;
7151 PyObject * obj3 = 0 ;
7152 char *kwnames[] = {
7153 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
7154 };
7155
7156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7157 if (obj0) {
7158 {
7159 arg1 = &temp1;
7160 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
7161 }
7162 }
7163 if (obj1) {
7164 {
7165 arg2 = &temp2;
7166 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7167 }
7168 }
7169 if (obj2) {
7170 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
7171 SWIG_POINTER_EXCEPTION | 0)) == -1)
7172 SWIG_fail;
7173 if (arg3 == NULL) {
7174 PyErr_SetString(PyExc_TypeError,"null reference");
7175 SWIG_fail;
7176 }
7177 }
7178 if (obj3) {
7179 arg4 = (int)SWIG_As_int(obj3);
7180 if (PyErr_Occurred()) SWIG_fail;
7181 }
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
7185
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
7190 return resultobj;
7191 fail:
7192 return NULL;
7193 }
7194
7195
7196 static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7197 PyObject *resultobj;
7198 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7199 PyObject * obj0 = 0 ;
7200 char *kwnames[] = {
7201 (char *) "self", NULL
7202 };
7203
7204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7207 {
7208 PyThreadState* __tstate = wxPyBeginAllowThreads();
7209 delete arg1;
7210
7211 wxPyEndAllowThreads(__tstate);
7212 if (PyErr_Occurred()) SWIG_fail;
7213 }
7214 Py_INCREF(Py_None); resultobj = Py_None;
7215 return resultobj;
7216 fail:
7217 return NULL;
7218 }
7219
7220
7221 static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7222 PyObject *resultobj;
7223 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7224 PyObject * obj0 = 0 ;
7225 char *kwnames[] = {
7226 (char *) "self", NULL
7227 };
7228
7229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7232 {
7233 PyThreadState* __tstate = wxPyBeginAllowThreads();
7234 (arg1)->Init();
7235
7236 wxPyEndAllowThreads(__tstate);
7237 if (PyErr_Occurred()) SWIG_fail;
7238 }
7239 Py_INCREF(Py_None); resultobj = Py_None;
7240 return resultobj;
7241 fail:
7242 return NULL;
7243 }
7244
7245
7246 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7247 PyObject *resultobj;
7248 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7249 wxColour *arg2 = 0 ;
7250 wxColour temp2 ;
7251 PyObject * obj0 = 0 ;
7252 PyObject * obj1 = 0 ;
7253 char *kwnames[] = {
7254 (char *) "self",(char *) "colText", NULL
7255 };
7256
7257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7260 {
7261 arg2 = &temp2;
7262 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7263 }
7264 {
7265 PyThreadState* __tstate = wxPyBeginAllowThreads();
7266 (arg1)->SetTextColour((wxColour const &)*arg2);
7267
7268 wxPyEndAllowThreads(__tstate);
7269 if (PyErr_Occurred()) SWIG_fail;
7270 }
7271 Py_INCREF(Py_None); resultobj = Py_None;
7272 return resultobj;
7273 fail:
7274 return NULL;
7275 }
7276
7277
7278 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7279 PyObject *resultobj;
7280 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7281 wxColour *arg2 = 0 ;
7282 wxColour temp2 ;
7283 PyObject * obj0 = 0 ;
7284 PyObject * obj1 = 0 ;
7285 char *kwnames[] = {
7286 (char *) "self",(char *) "colBack", NULL
7287 };
7288
7289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7292 {
7293 arg2 = &temp2;
7294 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7295 }
7296 {
7297 PyThreadState* __tstate = wxPyBeginAllowThreads();
7298 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7299
7300 wxPyEndAllowThreads(__tstate);
7301 if (PyErr_Occurred()) SWIG_fail;
7302 }
7303 Py_INCREF(Py_None); resultobj = Py_None;
7304 return resultobj;
7305 fail:
7306 return NULL;
7307 }
7308
7309
7310 static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7311 PyObject *resultobj;
7312 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7313 wxFont *arg2 = 0 ;
7314 long arg3 = (long) wxTEXT_ATTR_FONT ;
7315 PyObject * obj0 = 0 ;
7316 PyObject * obj1 = 0 ;
7317 PyObject * obj2 = 0 ;
7318 char *kwnames[] = {
7319 (char *) "self",(char *) "font",(char *) "flags", NULL
7320 };
7321
7322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7326 SWIG_POINTER_EXCEPTION | 0)) == -1)
7327 SWIG_fail;
7328 if (arg2 == NULL) {
7329 PyErr_SetString(PyExc_TypeError,"null reference");
7330 SWIG_fail;
7331 }
7332 if (obj2) {
7333 arg3 = (long)SWIG_As_long(obj2);
7334 if (PyErr_Occurred()) SWIG_fail;
7335 }
7336 {
7337 PyThreadState* __tstate = wxPyBeginAllowThreads();
7338 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7339
7340 wxPyEndAllowThreads(__tstate);
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 Py_INCREF(Py_None); resultobj = Py_None;
7344 return resultobj;
7345 fail:
7346 return NULL;
7347 }
7348
7349
7350 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7351 PyObject *resultobj;
7352 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7353 int arg2 ;
7354 PyObject * obj0 = 0 ;
7355 PyObject * obj1 = 0 ;
7356 char *kwnames[] = {
7357 (char *) "self",(char *) "alignment", NULL
7358 };
7359
7360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7363 arg2 = (int)SWIG_As_int(obj1);
7364 if (PyErr_Occurred()) SWIG_fail;
7365 {
7366 PyThreadState* __tstate = wxPyBeginAllowThreads();
7367 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7368
7369 wxPyEndAllowThreads(__tstate);
7370 if (PyErr_Occurred()) SWIG_fail;
7371 }
7372 Py_INCREF(Py_None); resultobj = Py_None;
7373 return resultobj;
7374 fail:
7375 return NULL;
7376 }
7377
7378
7379 static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7380 PyObject *resultobj;
7381 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7382 wxArrayInt *arg2 = 0 ;
7383 bool temp2 = False ;
7384 PyObject * obj0 = 0 ;
7385 PyObject * obj1 = 0 ;
7386 char *kwnames[] = {
7387 (char *) "self",(char *) "tabs", NULL
7388 };
7389
7390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7393 {
7394 if (! PySequence_Check(obj1)) {
7395 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7396 SWIG_fail;
7397 }
7398 arg2 = new wxArrayInt;
7399 temp2 = True;
7400 int i, len=PySequence_Length(obj1);
7401 for (i=0; i<len; i++) {
7402 PyObject* item = PySequence_GetItem(obj1, i);
7403 PyObject* number = PyNumber_Int(item);
7404 arg2->Add(PyInt_AS_LONG(number));
7405 Py_DECREF(item);
7406 Py_DECREF(number);
7407 }
7408 }
7409 {
7410 PyThreadState* __tstate = wxPyBeginAllowThreads();
7411 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7412
7413 wxPyEndAllowThreads(__tstate);
7414 if (PyErr_Occurred()) SWIG_fail;
7415 }
7416 Py_INCREF(Py_None); resultobj = Py_None;
7417 {
7418 if (temp2) delete arg2;
7419 }
7420 return resultobj;
7421 fail:
7422 {
7423 if (temp2) delete arg2;
7424 }
7425 return NULL;
7426 }
7427
7428
7429 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7430 PyObject *resultobj;
7431 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7432 int arg2 ;
7433 int arg3 = (int) 0 ;
7434 PyObject * obj0 = 0 ;
7435 PyObject * obj1 = 0 ;
7436 PyObject * obj2 = 0 ;
7437 char *kwnames[] = {
7438 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7439 };
7440
7441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7444 arg2 = (int)SWIG_As_int(obj1);
7445 if (PyErr_Occurred()) SWIG_fail;
7446 if (obj2) {
7447 arg3 = (int)SWIG_As_int(obj2);
7448 if (PyErr_Occurred()) SWIG_fail;
7449 }
7450 {
7451 PyThreadState* __tstate = wxPyBeginAllowThreads();
7452 (arg1)->SetLeftIndent(arg2,arg3);
7453
7454 wxPyEndAllowThreads(__tstate);
7455 if (PyErr_Occurred()) SWIG_fail;
7456 }
7457 Py_INCREF(Py_None); resultobj = Py_None;
7458 return resultobj;
7459 fail:
7460 return NULL;
7461 }
7462
7463
7464 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7465 PyObject *resultobj;
7466 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7467 int arg2 ;
7468 PyObject * obj0 = 0 ;
7469 PyObject * obj1 = 0 ;
7470 char *kwnames[] = {
7471 (char *) "self",(char *) "indent", NULL
7472 };
7473
7474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7477 arg2 = (int)SWIG_As_int(obj1);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 {
7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
7481 (arg1)->SetRightIndent(arg2);
7482
7483 wxPyEndAllowThreads(__tstate);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 Py_INCREF(Py_None); resultobj = Py_None;
7487 return resultobj;
7488 fail:
7489 return NULL;
7490 }
7491
7492
7493 static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7494 PyObject *resultobj;
7495 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7496 long arg2 ;
7497 PyObject * obj0 = 0 ;
7498 PyObject * obj1 = 0 ;
7499 char *kwnames[] = {
7500 (char *) "self",(char *) "flags", NULL
7501 };
7502
7503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7506 arg2 = (long)SWIG_As_long(obj1);
7507 if (PyErr_Occurred()) SWIG_fail;
7508 {
7509 PyThreadState* __tstate = wxPyBeginAllowThreads();
7510 (arg1)->SetFlags(arg2);
7511
7512 wxPyEndAllowThreads(__tstate);
7513 if (PyErr_Occurred()) SWIG_fail;
7514 }
7515 Py_INCREF(Py_None); resultobj = Py_None;
7516 return resultobj;
7517 fail:
7518 return NULL;
7519 }
7520
7521
7522 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7523 PyObject *resultobj;
7524 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7525 bool result;
7526 PyObject * obj0 = 0 ;
7527 char *kwnames[] = {
7528 (char *) "self", NULL
7529 };
7530
7531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7534 {
7535 PyThreadState* __tstate = wxPyBeginAllowThreads();
7536 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7537
7538 wxPyEndAllowThreads(__tstate);
7539 if (PyErr_Occurred()) SWIG_fail;
7540 }
7541 {
7542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7543 }
7544 return resultobj;
7545 fail:
7546 return NULL;
7547 }
7548
7549
7550 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7551 PyObject *resultobj;
7552 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7553 bool result;
7554 PyObject * obj0 = 0 ;
7555 char *kwnames[] = {
7556 (char *) "self", NULL
7557 };
7558
7559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7562 {
7563 PyThreadState* __tstate = wxPyBeginAllowThreads();
7564 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7565
7566 wxPyEndAllowThreads(__tstate);
7567 if (PyErr_Occurred()) SWIG_fail;
7568 }
7569 {
7570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7571 }
7572 return resultobj;
7573 fail:
7574 return NULL;
7575 }
7576
7577
7578 static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
7579 PyObject *resultobj;
7580 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7581 bool result;
7582 PyObject * obj0 = 0 ;
7583 char *kwnames[] = {
7584 (char *) "self", NULL
7585 };
7586
7587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7590 {
7591 PyThreadState* __tstate = wxPyBeginAllowThreads();
7592 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7593
7594 wxPyEndAllowThreads(__tstate);
7595 if (PyErr_Occurred()) SWIG_fail;
7596 }
7597 {
7598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7599 }
7600 return resultobj;
7601 fail:
7602 return NULL;
7603 }
7604
7605
7606 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7607 PyObject *resultobj;
7608 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7609 bool result;
7610 PyObject * obj0 = 0 ;
7611 char *kwnames[] = {
7612 (char *) "self", NULL
7613 };
7614
7615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7618 {
7619 PyThreadState* __tstate = wxPyBeginAllowThreads();
7620 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7621
7622 wxPyEndAllowThreads(__tstate);
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 {
7626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7627 }
7628 return resultobj;
7629 fail:
7630 return NULL;
7631 }
7632
7633
7634 static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7635 PyObject *resultobj;
7636 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7637 bool result;
7638 PyObject * obj0 = 0 ;
7639 char *kwnames[] = {
7640 (char *) "self", NULL
7641 };
7642
7643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7646 {
7647 PyThreadState* __tstate = wxPyBeginAllowThreads();
7648 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7649
7650 wxPyEndAllowThreads(__tstate);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 {
7654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7655 }
7656 return resultobj;
7657 fail:
7658 return NULL;
7659 }
7660
7661
7662 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7663 PyObject *resultobj;
7664 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7665 bool result;
7666 PyObject * obj0 = 0 ;
7667 char *kwnames[] = {
7668 (char *) "self", NULL
7669 };
7670
7671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7674 {
7675 PyThreadState* __tstate = wxPyBeginAllowThreads();
7676 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7677
7678 wxPyEndAllowThreads(__tstate);
7679 if (PyErr_Occurred()) SWIG_fail;
7680 }
7681 {
7682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7683 }
7684 return resultobj;
7685 fail:
7686 return NULL;
7687 }
7688
7689
7690 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj;
7692 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7693 bool result;
7694 PyObject * obj0 = 0 ;
7695 char *kwnames[] = {
7696 (char *) "self", NULL
7697 };
7698
7699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7702 {
7703 PyThreadState* __tstate = wxPyBeginAllowThreads();
7704 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7705
7706 wxPyEndAllowThreads(__tstate);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 }
7709 {
7710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7711 }
7712 return resultobj;
7713 fail:
7714 return NULL;
7715 }
7716
7717
7718 static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
7719 PyObject *resultobj;
7720 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7721 long arg2 ;
7722 bool result;
7723 PyObject * obj0 = 0 ;
7724 PyObject * obj1 = 0 ;
7725 char *kwnames[] = {
7726 (char *) "self",(char *) "flag", NULL
7727 };
7728
7729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7732 arg2 = (long)SWIG_As_long(obj1);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 {
7735 PyThreadState* __tstate = wxPyBeginAllowThreads();
7736 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7737
7738 wxPyEndAllowThreads(__tstate);
7739 if (PyErr_Occurred()) SWIG_fail;
7740 }
7741 {
7742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7743 }
7744 return resultobj;
7745 fail:
7746 return NULL;
7747 }
7748
7749
7750 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7751 PyObject *resultobj;
7752 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7753 wxColour *result;
7754 PyObject * obj0 = 0 ;
7755 char *kwnames[] = {
7756 (char *) "self", NULL
7757 };
7758
7759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7762 {
7763 PyThreadState* __tstate = wxPyBeginAllowThreads();
7764 {
7765 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7766 result = (wxColour *) &_result_ref;
7767 }
7768
7769 wxPyEndAllowThreads(__tstate);
7770 if (PyErr_Occurred()) SWIG_fail;
7771 }
7772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7773 return resultobj;
7774 fail:
7775 return NULL;
7776 }
7777
7778
7779 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7780 PyObject *resultobj;
7781 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7782 wxColour *result;
7783 PyObject * obj0 = 0 ;
7784 char *kwnames[] = {
7785 (char *) "self", NULL
7786 };
7787
7788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7791 {
7792 PyThreadState* __tstate = wxPyBeginAllowThreads();
7793 {
7794 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7795 result = (wxColour *) &_result_ref;
7796 }
7797
7798 wxPyEndAllowThreads(__tstate);
7799 if (PyErr_Occurred()) SWIG_fail;
7800 }
7801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7802 return resultobj;
7803 fail:
7804 return NULL;
7805 }
7806
7807
7808 static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7809 PyObject *resultobj;
7810 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7811 wxFont *result;
7812 PyObject * obj0 = 0 ;
7813 char *kwnames[] = {
7814 (char *) "self", NULL
7815 };
7816
7817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7820 {
7821 PyThreadState* __tstate = wxPyBeginAllowThreads();
7822 {
7823 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7824 result = (wxFont *) &_result_ref;
7825 }
7826
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 {
7831 wxFont* resultptr = new wxFont(*result);
7832 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7833 }
7834 return resultobj;
7835 fail:
7836 return NULL;
7837 }
7838
7839
7840 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7841 PyObject *resultobj;
7842 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7843 int result;
7844 PyObject * obj0 = 0 ;
7845 char *kwnames[] = {
7846 (char *) "self", NULL
7847 };
7848
7849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7852 {
7853 PyThreadState* __tstate = wxPyBeginAllowThreads();
7854 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7855
7856 wxPyEndAllowThreads(__tstate);
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 resultobj = SWIG_From_int((int)result);
7860 return resultobj;
7861 fail:
7862 return NULL;
7863 }
7864
7865
7866 static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7867 PyObject *resultobj;
7868 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7869 wxArrayInt *result;
7870 PyObject * obj0 = 0 ;
7871 char *kwnames[] = {
7872 (char *) "self", NULL
7873 };
7874
7875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7878 {
7879 PyThreadState* __tstate = wxPyBeginAllowThreads();
7880 {
7881 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7882 result = (wxArrayInt *) &_result_ref;
7883 }
7884
7885 wxPyEndAllowThreads(__tstate);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 {
7889 resultobj = PyList_New(0);
7890 size_t idx;
7891 for (idx = 0; idx < result->GetCount(); idx += 1) {
7892 PyObject* val = PyInt_FromLong( result->Item(idx) );
7893 PyList_Append(resultobj, val);
7894 Py_DECREF(val);
7895 }
7896 }
7897 return resultobj;
7898 fail:
7899 return NULL;
7900 }
7901
7902
7903 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7904 PyObject *resultobj;
7905 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7906 long result;
7907 PyObject * obj0 = 0 ;
7908 char *kwnames[] = {
7909 (char *) "self", NULL
7910 };
7911
7912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7915 {
7916 PyThreadState* __tstate = wxPyBeginAllowThreads();
7917 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7918
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 resultobj = SWIG_From_long((long)result);
7923 return resultobj;
7924 fail:
7925 return NULL;
7926 }
7927
7928
7929 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7930 PyObject *resultobj;
7931 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7932 long result;
7933 PyObject * obj0 = 0 ;
7934 char *kwnames[] = {
7935 (char *) "self", NULL
7936 };
7937
7938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
7939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7941 {
7942 PyThreadState* __tstate = wxPyBeginAllowThreads();
7943 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
7944
7945 wxPyEndAllowThreads(__tstate);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 resultobj = SWIG_From_long((long)result);
7949 return resultobj;
7950 fail:
7951 return NULL;
7952 }
7953
7954
7955 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7956 PyObject *resultobj;
7957 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7958 long result;
7959 PyObject * obj0 = 0 ;
7960 char *kwnames[] = {
7961 (char *) "self", NULL
7962 };
7963
7964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7967 {
7968 PyThreadState* __tstate = wxPyBeginAllowThreads();
7969 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7970
7971 wxPyEndAllowThreads(__tstate);
7972 if (PyErr_Occurred()) SWIG_fail;
7973 }
7974 resultobj = SWIG_From_long((long)result);
7975 return resultobj;
7976 fail:
7977 return NULL;
7978 }
7979
7980
7981 static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7982 PyObject *resultobj;
7983 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7984 long result;
7985 PyObject * obj0 = 0 ;
7986 char *kwnames[] = {
7987 (char *) "self", NULL
7988 };
7989
7990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7993 {
7994 PyThreadState* __tstate = wxPyBeginAllowThreads();
7995 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7996
7997 wxPyEndAllowThreads(__tstate);
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 resultobj = SWIG_From_long((long)result);
8001 return resultobj;
8002 fail:
8003 return NULL;
8004 }
8005
8006
8007 static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) {
8008 PyObject *resultobj;
8009 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8010 bool result;
8011 PyObject * obj0 = 0 ;
8012 char *kwnames[] = {
8013 (char *) "self", NULL
8014 };
8015
8016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
8017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8019 {
8020 PyThreadState* __tstate = wxPyBeginAllowThreads();
8021 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
8022
8023 wxPyEndAllowThreads(__tstate);
8024 if (PyErr_Occurred()) SWIG_fail;
8025 }
8026 {
8027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8028 }
8029 return resultobj;
8030 fail:
8031 return NULL;
8032 }
8033
8034
8035 static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj;
8037 wxTextAttr *arg1 = 0 ;
8038 wxTextAttr *arg2 = 0 ;
8039 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
8040 wxTextAttr result;
8041 PyObject * obj0 = 0 ;
8042 PyObject * obj1 = 0 ;
8043 PyObject * obj2 = 0 ;
8044 char *kwnames[] = {
8045 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
8046 };
8047
8048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
8049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8050 SWIG_POINTER_EXCEPTION | 0)) == -1)
8051 SWIG_fail;
8052 if (arg1 == NULL) {
8053 PyErr_SetString(PyExc_TypeError,"null reference");
8054 SWIG_fail;
8055 }
8056 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8057 SWIG_POINTER_EXCEPTION | 0)) == -1)
8058 SWIG_fail;
8059 if (arg2 == NULL) {
8060 PyErr_SetString(PyExc_TypeError,"null reference");
8061 SWIG_fail;
8062 }
8063 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
8064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8065 {
8066 PyThreadState* __tstate = wxPyBeginAllowThreads();
8067 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
8068
8069 wxPyEndAllowThreads(__tstate);
8070 if (PyErr_Occurred()) SWIG_fail;
8071 }
8072 {
8073 wxTextAttr * resultptr;
8074 resultptr = new wxTextAttr((wxTextAttr &) result);
8075 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
8076 }
8077 return resultobj;
8078 fail:
8079 return NULL;
8080 }
8081
8082
8083 static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) {
8084 PyObject *obj;
8085 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8086 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
8087 Py_INCREF(obj);
8088 return Py_BuildValue((char *)"");
8089 }
8090 static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8091 PyObject *resultobj;
8092 wxWindow *arg1 = (wxWindow *) 0 ;
8093 int arg2 = (int) -1 ;
8094 wxString const &arg3_defvalue = wxPyEmptyString ;
8095 wxString *arg3 = (wxString *) &arg3_defvalue ;
8096 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8097 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8098 wxSize const &arg5_defvalue = wxDefaultSize ;
8099 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8100 long arg6 = (long) 0 ;
8101 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8102 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8103 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
8104 wxString *arg8 = (wxString *) &arg8_defvalue ;
8105 wxTextCtrl *result;
8106 bool temp3 = False ;
8107 wxPoint temp4 ;
8108 wxSize temp5 ;
8109 bool temp8 = False ;
8110 PyObject * obj0 = 0 ;
8111 PyObject * obj1 = 0 ;
8112 PyObject * obj2 = 0 ;
8113 PyObject * obj3 = 0 ;
8114 PyObject * obj4 = 0 ;
8115 PyObject * obj5 = 0 ;
8116 PyObject * obj6 = 0 ;
8117 PyObject * obj7 = 0 ;
8118 char *kwnames[] = {
8119 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8120 };
8121
8122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
8123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
8124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8125 if (obj1) {
8126 arg2 = (int)SWIG_As_int(obj1);
8127 if (PyErr_Occurred()) SWIG_fail;
8128 }
8129 if (obj2) {
8130 {
8131 arg3 = wxString_in_helper(obj2);
8132 if (arg3 == NULL) SWIG_fail;
8133 temp3 = True;
8134 }
8135 }
8136 if (obj3) {
8137 {
8138 arg4 = &temp4;
8139 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8140 }
8141 }
8142 if (obj4) {
8143 {
8144 arg5 = &temp5;
8145 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8146 }
8147 }
8148 if (obj5) {
8149 arg6 = (long)SWIG_As_long(obj5);
8150 if (PyErr_Occurred()) SWIG_fail;
8151 }
8152 if (obj6) {
8153 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
8154 SWIG_POINTER_EXCEPTION | 0)) == -1)
8155 SWIG_fail;
8156 if (arg7 == NULL) {
8157 PyErr_SetString(PyExc_TypeError,"null reference");
8158 SWIG_fail;
8159 }
8160 }
8161 if (obj7) {
8162 {
8163 arg8 = wxString_in_helper(obj7);
8164 if (arg8 == NULL) SWIG_fail;
8165 temp8 = True;
8166 }
8167 }
8168 {
8169 if (!wxPyCheckForApp()) SWIG_fail;
8170 PyThreadState* __tstate = wxPyBeginAllowThreads();
8171 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8172
8173 wxPyEndAllowThreads(__tstate);
8174 if (PyErr_Occurred()) SWIG_fail;
8175 }
8176 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8177 {
8178 if (temp3)
8179 delete arg3;
8180 }
8181 {
8182 if (temp8)
8183 delete arg8;
8184 }
8185 return resultobj;
8186 fail:
8187 {
8188 if (temp3)
8189 delete arg3;
8190 }
8191 {
8192 if (temp8)
8193 delete arg8;
8194 }
8195 return NULL;
8196 }
8197
8198
8199 static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8200 PyObject *resultobj;
8201 wxTextCtrl *result;
8202 char *kwnames[] = {
8203 NULL
8204 };
8205
8206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8207 {
8208 if (!wxPyCheckForApp()) SWIG_fail;
8209 PyThreadState* __tstate = wxPyBeginAllowThreads();
8210 result = (wxTextCtrl *)new wxTextCtrl();
8211
8212 wxPyEndAllowThreads(__tstate);
8213 if (PyErr_Occurred()) SWIG_fail;
8214 }
8215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8216 return resultobj;
8217 fail:
8218 return NULL;
8219 }
8220
8221
8222 static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8223 PyObject *resultobj;
8224 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8225 wxWindow *arg2 = (wxWindow *) 0 ;
8226 int arg3 = (int) -1 ;
8227 wxString const &arg4_defvalue = wxPyEmptyString ;
8228 wxString *arg4 = (wxString *) &arg4_defvalue ;
8229 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8230 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8231 wxSize const &arg6_defvalue = wxDefaultSize ;
8232 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8233 long arg7 = (long) 0 ;
8234 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8235 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8236 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8237 wxString *arg9 = (wxString *) &arg9_defvalue ;
8238 bool result;
8239 bool temp4 = False ;
8240 wxPoint temp5 ;
8241 wxSize temp6 ;
8242 bool temp9 = False ;
8243 PyObject * obj0 = 0 ;
8244 PyObject * obj1 = 0 ;
8245 PyObject * obj2 = 0 ;
8246 PyObject * obj3 = 0 ;
8247 PyObject * obj4 = 0 ;
8248 PyObject * obj5 = 0 ;
8249 PyObject * obj6 = 0 ;
8250 PyObject * obj7 = 0 ;
8251 PyObject * obj8 = 0 ;
8252 char *kwnames[] = {
8253 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8254 };
8255
8256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8259 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8261 if (obj2) {
8262 arg3 = (int)SWIG_As_int(obj2);
8263 if (PyErr_Occurred()) SWIG_fail;
8264 }
8265 if (obj3) {
8266 {
8267 arg4 = wxString_in_helper(obj3);
8268 if (arg4 == NULL) SWIG_fail;
8269 temp4 = True;
8270 }
8271 }
8272 if (obj4) {
8273 {
8274 arg5 = &temp5;
8275 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8276 }
8277 }
8278 if (obj5) {
8279 {
8280 arg6 = &temp6;
8281 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8282 }
8283 }
8284 if (obj6) {
8285 arg7 = (long)SWIG_As_long(obj6);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 if (obj7) {
8289 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8290 SWIG_POINTER_EXCEPTION | 0)) == -1)
8291 SWIG_fail;
8292 if (arg8 == NULL) {
8293 PyErr_SetString(PyExc_TypeError,"null reference");
8294 SWIG_fail;
8295 }
8296 }
8297 if (obj8) {
8298 {
8299 arg9 = wxString_in_helper(obj8);
8300 if (arg9 == NULL) SWIG_fail;
8301 temp9 = True;
8302 }
8303 }
8304 {
8305 PyThreadState* __tstate = wxPyBeginAllowThreads();
8306 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8307
8308 wxPyEndAllowThreads(__tstate);
8309 if (PyErr_Occurred()) SWIG_fail;
8310 }
8311 {
8312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8313 }
8314 {
8315 if (temp4)
8316 delete arg4;
8317 }
8318 {
8319 if (temp9)
8320 delete arg9;
8321 }
8322 return resultobj;
8323 fail:
8324 {
8325 if (temp4)
8326 delete arg4;
8327 }
8328 {
8329 if (temp9)
8330 delete arg9;
8331 }
8332 return NULL;
8333 }
8334
8335
8336 static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8337 PyObject *resultobj;
8338 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8339 wxString result;
8340 PyObject * obj0 = 0 ;
8341 char *kwnames[] = {
8342 (char *) "self", NULL
8343 };
8344
8345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8348 {
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 result = ((wxTextCtrl const *)arg1)->GetValue();
8351
8352 wxPyEndAllowThreads(__tstate);
8353 if (PyErr_Occurred()) SWIG_fail;
8354 }
8355 {
8356 #if wxUSE_UNICODE
8357 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8358 #else
8359 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8360 #endif
8361 }
8362 return resultobj;
8363 fail:
8364 return NULL;
8365 }
8366
8367
8368 static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8369 PyObject *resultobj;
8370 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8371 wxString *arg2 = 0 ;
8372 bool temp2 = False ;
8373 PyObject * obj0 = 0 ;
8374 PyObject * obj1 = 0 ;
8375 char *kwnames[] = {
8376 (char *) "self",(char *) "value", NULL
8377 };
8378
8379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8382 {
8383 arg2 = wxString_in_helper(obj1);
8384 if (arg2 == NULL) SWIG_fail;
8385 temp2 = True;
8386 }
8387 {
8388 PyThreadState* __tstate = wxPyBeginAllowThreads();
8389 (arg1)->SetValue((wxString const &)*arg2);
8390
8391 wxPyEndAllowThreads(__tstate);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 Py_INCREF(Py_None); resultobj = Py_None;
8395 {
8396 if (temp2)
8397 delete arg2;
8398 }
8399 return resultobj;
8400 fail:
8401 {
8402 if (temp2)
8403 delete arg2;
8404 }
8405 return NULL;
8406 }
8407
8408
8409 static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
8410 PyObject *resultobj;
8411 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8412 long arg2 ;
8413 long arg3 ;
8414 wxString result;
8415 PyObject * obj0 = 0 ;
8416 PyObject * obj1 = 0 ;
8417 PyObject * obj2 = 0 ;
8418 char *kwnames[] = {
8419 (char *) "self",(char *) "from",(char *) "to", NULL
8420 };
8421
8422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8425 arg2 = (long)SWIG_As_long(obj1);
8426 if (PyErr_Occurred()) SWIG_fail;
8427 arg3 = (long)SWIG_As_long(obj2);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 {
8430 PyThreadState* __tstate = wxPyBeginAllowThreads();
8431 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8432
8433 wxPyEndAllowThreads(__tstate);
8434 if (PyErr_Occurred()) SWIG_fail;
8435 }
8436 {
8437 #if wxUSE_UNICODE
8438 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8439 #else
8440 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8441 #endif
8442 }
8443 return resultobj;
8444 fail:
8445 return NULL;
8446 }
8447
8448
8449 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) {
8450 PyObject *resultobj;
8451 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8452 long arg2 ;
8453 int result;
8454 PyObject * obj0 = 0 ;
8455 PyObject * obj1 = 0 ;
8456 char *kwnames[] = {
8457 (char *) "self",(char *) "lineNo", NULL
8458 };
8459
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8463 arg2 = (long)SWIG_As_long(obj1);
8464 if (PyErr_Occurred()) SWIG_fail;
8465 {
8466 PyThreadState* __tstate = wxPyBeginAllowThreads();
8467 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8468
8469 wxPyEndAllowThreads(__tstate);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 }
8472 resultobj = SWIG_From_int((int)result);
8473 return resultobj;
8474 fail:
8475 return NULL;
8476 }
8477
8478
8479 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) {
8480 PyObject *resultobj;
8481 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8482 long arg2 ;
8483 wxString result;
8484 PyObject * obj0 = 0 ;
8485 PyObject * obj1 = 0 ;
8486 char *kwnames[] = {
8487 (char *) "self",(char *) "lineNo", NULL
8488 };
8489
8490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8493 arg2 = (long)SWIG_As_long(obj1);
8494 if (PyErr_Occurred()) SWIG_fail;
8495 {
8496 PyThreadState* __tstate = wxPyBeginAllowThreads();
8497 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8498
8499 wxPyEndAllowThreads(__tstate);
8500 if (PyErr_Occurred()) SWIG_fail;
8501 }
8502 {
8503 #if wxUSE_UNICODE
8504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8505 #else
8506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8507 #endif
8508 }
8509 return resultobj;
8510 fail:
8511 return NULL;
8512 }
8513
8514
8515 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) {
8516 PyObject *resultobj;
8517 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8518 int result;
8519 PyObject * obj0 = 0 ;
8520 char *kwnames[] = {
8521 (char *) "self", NULL
8522 };
8523
8524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8527 {
8528 PyThreadState* __tstate = wxPyBeginAllowThreads();
8529 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8530
8531 wxPyEndAllowThreads(__tstate);
8532 if (PyErr_Occurred()) SWIG_fail;
8533 }
8534 resultobj = SWIG_From_int((int)result);
8535 return resultobj;
8536 fail:
8537 return NULL;
8538 }
8539
8540
8541 static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) {
8542 PyObject *resultobj;
8543 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8544 bool result;
8545 PyObject * obj0 = 0 ;
8546 char *kwnames[] = {
8547 (char *) "self", NULL
8548 };
8549
8550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8553 {
8554 PyThreadState* __tstate = wxPyBeginAllowThreads();
8555 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8556
8557 wxPyEndAllowThreads(__tstate);
8558 if (PyErr_Occurred()) SWIG_fail;
8559 }
8560 {
8561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8562 }
8563 return resultobj;
8564 fail:
8565 return NULL;
8566 }
8567
8568
8569 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
8570 PyObject *resultobj;
8571 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8572 bool result;
8573 PyObject * obj0 = 0 ;
8574 char *kwnames[] = {
8575 (char *) "self", NULL
8576 };
8577
8578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8581 {
8582 PyThreadState* __tstate = wxPyBeginAllowThreads();
8583 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8584
8585 wxPyEndAllowThreads(__tstate);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 {
8589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8590 }
8591 return resultobj;
8592 fail:
8593 return NULL;
8594 }
8595
8596
8597 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) {
8598 PyObject *resultobj;
8599 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8600 bool result;
8601 PyObject * obj0 = 0 ;
8602 char *kwnames[] = {
8603 (char *) "self", NULL
8604 };
8605
8606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8609 {
8610 PyThreadState* __tstate = wxPyBeginAllowThreads();
8611 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8612
8613 wxPyEndAllowThreads(__tstate);
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 {
8617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8618 }
8619 return resultobj;
8620 fail:
8621 return NULL;
8622 }
8623
8624
8625 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) {
8626 PyObject *resultobj;
8627 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8628 bool result;
8629 PyObject * obj0 = 0 ;
8630 char *kwnames[] = {
8631 (char *) "self", NULL
8632 };
8633
8634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8637 {
8638 PyThreadState* __tstate = wxPyBeginAllowThreads();
8639 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8640
8641 wxPyEndAllowThreads(__tstate);
8642 if (PyErr_Occurred()) SWIG_fail;
8643 }
8644 {
8645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8646 }
8647 return resultobj;
8648 fail:
8649 return NULL;
8650 }
8651
8652
8653 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8654 PyObject *resultobj;
8655 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8656 long *arg2 = (long *) 0 ;
8657 long *arg3 = (long *) 0 ;
8658 long temp2 ;
8659 int res2 = 0 ;
8660 long temp3 ;
8661 int res3 = 0 ;
8662 PyObject * obj0 = 0 ;
8663 char *kwnames[] = {
8664 (char *) "self", NULL
8665 };
8666
8667 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8668 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8672 {
8673 PyThreadState* __tstate = wxPyBeginAllowThreads();
8674 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8675
8676 wxPyEndAllowThreads(__tstate);
8677 if (PyErr_Occurred()) SWIG_fail;
8678 }
8679 Py_INCREF(Py_None); resultobj = Py_None;
8680 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8681 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
8682 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8683 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
8684 return resultobj;
8685 fail:
8686 return NULL;
8687 }
8688
8689
8690 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8691 PyObject *resultobj;
8692 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8693 wxString result;
8694 PyObject * obj0 = 0 ;
8695 char *kwnames[] = {
8696 (char *) "self", NULL
8697 };
8698
8699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8702 {
8703 PyThreadState* __tstate = wxPyBeginAllowThreads();
8704 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8705
8706 wxPyEndAllowThreads(__tstate);
8707 if (PyErr_Occurred()) SWIG_fail;
8708 }
8709 {
8710 #if wxUSE_UNICODE
8711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8712 #else
8713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8714 #endif
8715 }
8716 return resultobj;
8717 fail:
8718 return NULL;
8719 }
8720
8721
8722 static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
8723 PyObject *resultobj;
8724 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8725 PyObject * obj0 = 0 ;
8726 char *kwnames[] = {
8727 (char *) "self", NULL
8728 };
8729
8730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
8735 (arg1)->Clear();
8736
8737 wxPyEndAllowThreads(__tstate);
8738 if (PyErr_Occurred()) SWIG_fail;
8739 }
8740 Py_INCREF(Py_None); resultobj = Py_None;
8741 return resultobj;
8742 fail:
8743 return NULL;
8744 }
8745
8746
8747 static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
8748 PyObject *resultobj;
8749 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8750 long arg2 ;
8751 long arg3 ;
8752 wxString *arg4 = 0 ;
8753 bool temp4 = False ;
8754 PyObject * obj0 = 0 ;
8755 PyObject * obj1 = 0 ;
8756 PyObject * obj2 = 0 ;
8757 PyObject * obj3 = 0 ;
8758 char *kwnames[] = {
8759 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8760 };
8761
8762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8765 arg2 = (long)SWIG_As_long(obj1);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 arg3 = (long)SWIG_As_long(obj2);
8768 if (PyErr_Occurred()) SWIG_fail;
8769 {
8770 arg4 = wxString_in_helper(obj3);
8771 if (arg4 == NULL) SWIG_fail;
8772 temp4 = True;
8773 }
8774 {
8775 PyThreadState* __tstate = wxPyBeginAllowThreads();
8776 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8777
8778 wxPyEndAllowThreads(__tstate);
8779 if (PyErr_Occurred()) SWIG_fail;
8780 }
8781 Py_INCREF(Py_None); resultobj = Py_None;
8782 {
8783 if (temp4)
8784 delete arg4;
8785 }
8786 return resultobj;
8787 fail:
8788 {
8789 if (temp4)
8790 delete arg4;
8791 }
8792 return NULL;
8793 }
8794
8795
8796 static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
8797 PyObject *resultobj;
8798 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8799 long arg2 ;
8800 long arg3 ;
8801 PyObject * obj0 = 0 ;
8802 PyObject * obj1 = 0 ;
8803 PyObject * obj2 = 0 ;
8804 char *kwnames[] = {
8805 (char *) "self",(char *) "from",(char *) "to", NULL
8806 };
8807
8808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8811 arg2 = (long)SWIG_As_long(obj1);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 arg3 = (long)SWIG_As_long(obj2);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 {
8816 PyThreadState* __tstate = wxPyBeginAllowThreads();
8817 (arg1)->Remove(arg2,arg3);
8818
8819 wxPyEndAllowThreads(__tstate);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 Py_INCREF(Py_None); resultobj = Py_None;
8823 return resultobj;
8824 fail:
8825 return NULL;
8826 }
8827
8828
8829 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
8830 PyObject *resultobj;
8831 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8832 wxString *arg2 = 0 ;
8833 bool result;
8834 bool temp2 = False ;
8835 PyObject * obj0 = 0 ;
8836 PyObject * obj1 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self",(char *) "file", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8844 {
8845 arg2 = wxString_in_helper(obj1);
8846 if (arg2 == NULL) SWIG_fail;
8847 temp2 = True;
8848 }
8849 {
8850 PyThreadState* __tstate = wxPyBeginAllowThreads();
8851 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8852
8853 wxPyEndAllowThreads(__tstate);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 }
8856 {
8857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8858 }
8859 {
8860 if (temp2)
8861 delete arg2;
8862 }
8863 return resultobj;
8864 fail:
8865 {
8866 if (temp2)
8867 delete arg2;
8868 }
8869 return NULL;
8870 }
8871
8872
8873 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
8874 PyObject *resultobj;
8875 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8876 wxString const &arg2_defvalue = wxPyEmptyString ;
8877 wxString *arg2 = (wxString *) &arg2_defvalue ;
8878 bool result;
8879 bool temp2 = False ;
8880 PyObject * obj0 = 0 ;
8881 PyObject * obj1 = 0 ;
8882 char *kwnames[] = {
8883 (char *) "self",(char *) "file", NULL
8884 };
8885
8886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8889 if (obj1) {
8890 {
8891 arg2 = wxString_in_helper(obj1);
8892 if (arg2 == NULL) SWIG_fail;
8893 temp2 = True;
8894 }
8895 }
8896 {
8897 PyThreadState* __tstate = wxPyBeginAllowThreads();
8898 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8899
8900 wxPyEndAllowThreads(__tstate);
8901 if (PyErr_Occurred()) SWIG_fail;
8902 }
8903 {
8904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8905 }
8906 {
8907 if (temp2)
8908 delete arg2;
8909 }
8910 return resultobj;
8911 fail:
8912 {
8913 if (temp2)
8914 delete arg2;
8915 }
8916 return NULL;
8917 }
8918
8919
8920 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) {
8921 PyObject *resultobj;
8922 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8923 PyObject * obj0 = 0 ;
8924 char *kwnames[] = {
8925 (char *) "self", NULL
8926 };
8927
8928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8931 {
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 (arg1)->MarkDirty();
8934
8935 wxPyEndAllowThreads(__tstate);
8936 if (PyErr_Occurred()) SWIG_fail;
8937 }
8938 Py_INCREF(Py_None); resultobj = Py_None;
8939 return resultobj;
8940 fail:
8941 return NULL;
8942 }
8943
8944
8945 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) {
8946 PyObject *resultobj;
8947 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8948 PyObject * obj0 = 0 ;
8949 char *kwnames[] = {
8950 (char *) "self", NULL
8951 };
8952
8953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8956 {
8957 PyThreadState* __tstate = wxPyBeginAllowThreads();
8958 (arg1)->DiscardEdits();
8959
8960 wxPyEndAllowThreads(__tstate);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 Py_INCREF(Py_None); resultobj = Py_None;
8964 return resultobj;
8965 fail:
8966 return NULL;
8967 }
8968
8969
8970 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) {
8971 PyObject *resultobj;
8972 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8973 unsigned long arg2 ;
8974 PyObject * obj0 = 0 ;
8975 PyObject * obj1 = 0 ;
8976 char *kwnames[] = {
8977 (char *) "self",(char *) "len", NULL
8978 };
8979
8980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8983 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
8984 if (PyErr_Occurred()) SWIG_fail;
8985 {
8986 PyThreadState* __tstate = wxPyBeginAllowThreads();
8987 (arg1)->SetMaxLength(arg2);
8988
8989 wxPyEndAllowThreads(__tstate);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 }
8992 Py_INCREF(Py_None); resultobj = Py_None;
8993 return resultobj;
8994 fail:
8995 return NULL;
8996 }
8997
8998
8999 static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9002 wxString *arg2 = 0 ;
9003 bool temp2 = False ;
9004 PyObject * obj0 = 0 ;
9005 PyObject * obj1 = 0 ;
9006 char *kwnames[] = {
9007 (char *) "self",(char *) "text", NULL
9008 };
9009
9010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
9011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9013 {
9014 arg2 = wxString_in_helper(obj1);
9015 if (arg2 == NULL) SWIG_fail;
9016 temp2 = True;
9017 }
9018 {
9019 PyThreadState* __tstate = wxPyBeginAllowThreads();
9020 (arg1)->WriteText((wxString const &)*arg2);
9021
9022 wxPyEndAllowThreads(__tstate);
9023 if (PyErr_Occurred()) SWIG_fail;
9024 }
9025 Py_INCREF(Py_None); resultobj = Py_None;
9026 {
9027 if (temp2)
9028 delete arg2;
9029 }
9030 return resultobj;
9031 fail:
9032 {
9033 if (temp2)
9034 delete arg2;
9035 }
9036 return NULL;
9037 }
9038
9039
9040 static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) {
9041 PyObject *resultobj;
9042 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9043 wxString *arg2 = 0 ;
9044 bool temp2 = False ;
9045 PyObject * obj0 = 0 ;
9046 PyObject * obj1 = 0 ;
9047 char *kwnames[] = {
9048 (char *) "self",(char *) "text", NULL
9049 };
9050
9051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
9052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9054 {
9055 arg2 = wxString_in_helper(obj1);
9056 if (arg2 == NULL) SWIG_fail;
9057 temp2 = True;
9058 }
9059 {
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 (arg1)->AppendText((wxString const &)*arg2);
9062
9063 wxPyEndAllowThreads(__tstate);
9064 if (PyErr_Occurred()) SWIG_fail;
9065 }
9066 Py_INCREF(Py_None); resultobj = Py_None;
9067 {
9068 if (temp2)
9069 delete arg2;
9070 }
9071 return resultobj;
9072 fail:
9073 {
9074 if (temp2)
9075 delete arg2;
9076 }
9077 return NULL;
9078 }
9079
9080
9081 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) {
9082 PyObject *resultobj;
9083 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9084 wxKeyEvent *arg2 = 0 ;
9085 bool result;
9086 PyObject * obj0 = 0 ;
9087 PyObject * obj1 = 0 ;
9088 char *kwnames[] = {
9089 (char *) "self",(char *) "event", NULL
9090 };
9091
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
9093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9095 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
9096 SWIG_POINTER_EXCEPTION | 0)) == -1)
9097 SWIG_fail;
9098 if (arg2 == NULL) {
9099 PyErr_SetString(PyExc_TypeError,"null reference");
9100 SWIG_fail;
9101 }
9102 {
9103 PyThreadState* __tstate = wxPyBeginAllowThreads();
9104 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
9105
9106 wxPyEndAllowThreads(__tstate);
9107 if (PyErr_Occurred()) SWIG_fail;
9108 }
9109 {
9110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9111 }
9112 return resultobj;
9113 fail:
9114 return NULL;
9115 }
9116
9117
9118 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9119 PyObject *resultobj;
9120 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9121 long arg2 ;
9122 long arg3 ;
9123 wxTextAttr *arg4 = 0 ;
9124 bool result;
9125 PyObject * obj0 = 0 ;
9126 PyObject * obj1 = 0 ;
9127 PyObject * obj2 = 0 ;
9128 PyObject * obj3 = 0 ;
9129 char *kwnames[] = {
9130 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
9131 };
9132
9133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9136 arg2 = (long)SWIG_As_long(obj1);
9137 if (PyErr_Occurred()) SWIG_fail;
9138 arg3 = (long)SWIG_As_long(obj2);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
9141 SWIG_POINTER_EXCEPTION | 0)) == -1)
9142 SWIG_fail;
9143 if (arg4 == NULL) {
9144 PyErr_SetString(PyExc_TypeError,"null reference");
9145 SWIG_fail;
9146 }
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
9150
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 {
9155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9156 }
9157 return resultobj;
9158 fail:
9159 return NULL;
9160 }
9161
9162
9163 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9164 PyObject *resultobj;
9165 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9166 long arg2 ;
9167 wxTextAttr *arg3 = 0 ;
9168 bool result;
9169 PyObject * obj0 = 0 ;
9170 PyObject * obj1 = 0 ;
9171 PyObject * obj2 = 0 ;
9172 char *kwnames[] = {
9173 (char *) "self",(char *) "position",(char *) "style", NULL
9174 };
9175
9176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9179 arg2 = (long)SWIG_As_long(obj1);
9180 if (PyErr_Occurred()) SWIG_fail;
9181 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9182 SWIG_POINTER_EXCEPTION | 0)) == -1)
9183 SWIG_fail;
9184 if (arg3 == NULL) {
9185 PyErr_SetString(PyExc_TypeError,"null reference");
9186 SWIG_fail;
9187 }
9188 {
9189 PyThreadState* __tstate = wxPyBeginAllowThreads();
9190 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9191
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 {
9196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9197 }
9198 return resultobj;
9199 fail:
9200 return NULL;
9201 }
9202
9203
9204 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9205 PyObject *resultobj;
9206 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9207 wxTextAttr *arg2 = 0 ;
9208 bool result;
9209 PyObject * obj0 = 0 ;
9210 PyObject * obj1 = 0 ;
9211 char *kwnames[] = {
9212 (char *) "self",(char *) "style", NULL
9213 };
9214
9215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9218 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9219 SWIG_POINTER_EXCEPTION | 0)) == -1)
9220 SWIG_fail;
9221 if (arg2 == NULL) {
9222 PyErr_SetString(PyExc_TypeError,"null reference");
9223 SWIG_fail;
9224 }
9225 {
9226 PyThreadState* __tstate = wxPyBeginAllowThreads();
9227 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9228
9229 wxPyEndAllowThreads(__tstate);
9230 if (PyErr_Occurred()) SWIG_fail;
9231 }
9232 {
9233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9234 }
9235 return resultobj;
9236 fail:
9237 return NULL;
9238 }
9239
9240
9241 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9242 PyObject *resultobj;
9243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9244 wxTextAttr *result;
9245 PyObject * obj0 = 0 ;
9246 char *kwnames[] = {
9247 (char *) "self", NULL
9248 };
9249
9250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9253 {
9254 PyThreadState* __tstate = wxPyBeginAllowThreads();
9255 {
9256 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9257 result = (wxTextAttr *) &_result_ref;
9258 }
9259
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) SWIG_fail;
9262 }
9263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9264 return resultobj;
9265 fail:
9266 return NULL;
9267 }
9268
9269
9270 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9271 PyObject *resultobj;
9272 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9273 long arg2 ;
9274 long arg3 ;
9275 long result;
9276 PyObject * obj0 = 0 ;
9277 PyObject * obj1 = 0 ;
9278 PyObject * obj2 = 0 ;
9279 char *kwnames[] = {
9280 (char *) "self",(char *) "x",(char *) "y", NULL
9281 };
9282
9283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9286 arg2 = (long)SWIG_As_long(obj1);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 arg3 = (long)SWIG_As_long(obj2);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 {
9291 PyThreadState* __tstate = wxPyBeginAllowThreads();
9292 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9293
9294 wxPyEndAllowThreads(__tstate);
9295 if (PyErr_Occurred()) SWIG_fail;
9296 }
9297 resultobj = SWIG_From_long((long)result);
9298 return resultobj;
9299 fail:
9300 return NULL;
9301 }
9302
9303
9304 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) {
9305 PyObject *resultobj;
9306 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9307 long arg2 ;
9308 long *arg3 = (long *) 0 ;
9309 long *arg4 = (long *) 0 ;
9310 long temp3 ;
9311 int res3 = 0 ;
9312 long temp4 ;
9313 int res4 = 0 ;
9314 PyObject * obj0 = 0 ;
9315 PyObject * obj1 = 0 ;
9316 char *kwnames[] = {
9317 (char *) "self",(char *) "pos", NULL
9318 };
9319
9320 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9321 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9325 arg2 = (long)SWIG_As_long(obj1);
9326 if (PyErr_Occurred()) SWIG_fail;
9327 {
9328 PyThreadState* __tstate = wxPyBeginAllowThreads();
9329 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9330
9331 wxPyEndAllowThreads(__tstate);
9332 if (PyErr_Occurred()) SWIG_fail;
9333 }
9334 Py_INCREF(Py_None); resultobj = Py_None;
9335 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9336 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9337 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9338 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9339 return resultobj;
9340 fail:
9341 return NULL;
9342 }
9343
9344
9345 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9346 PyObject *resultobj;
9347 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9348 long arg2 ;
9349 PyObject * obj0 = 0 ;
9350 PyObject * obj1 = 0 ;
9351 char *kwnames[] = {
9352 (char *) "self",(char *) "pos", NULL
9353 };
9354
9355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9358 arg2 = (long)SWIG_As_long(obj1);
9359 if (PyErr_Occurred()) SWIG_fail;
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 (arg1)->ShowPosition(arg2);
9363
9364 wxPyEndAllowThreads(__tstate);
9365 if (PyErr_Occurred()) SWIG_fail;
9366 }
9367 Py_INCREF(Py_None); resultobj = Py_None;
9368 return resultobj;
9369 fail:
9370 return NULL;
9371 }
9372
9373
9374 static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
9375 PyObject *resultobj;
9376 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9377 wxPoint *arg2 = 0 ;
9378 long *arg3 = (long *) 0 ;
9379 long *arg4 = (long *) 0 ;
9380 int result;
9381 wxPoint temp2 ;
9382 long temp3 ;
9383 int res3 = 0 ;
9384 long temp4 ;
9385 int res4 = 0 ;
9386 PyObject * obj0 = 0 ;
9387 PyObject * obj1 = 0 ;
9388 char *kwnames[] = {
9389 (char *) "self",(char *) "pt", NULL
9390 };
9391
9392 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9393 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9397 {
9398 arg2 = &temp2;
9399 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9400 }
9401 {
9402 PyThreadState* __tstate = wxPyBeginAllowThreads();
9403 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9404
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) SWIG_fail;
9407 }
9408 resultobj = SWIG_From_int((int)result);
9409 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9410 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9411 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9412 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9413 return resultobj;
9414 fail:
9415 return NULL;
9416 }
9417
9418
9419 static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) {
9420 PyObject *resultobj;
9421 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9422 wxPoint *arg2 = 0 ;
9423 long *arg3 = (long *) 0 ;
9424 int result;
9425 wxPoint temp2 ;
9426 long temp3 ;
9427 int res3 = 0 ;
9428 PyObject * obj0 = 0 ;
9429 PyObject * obj1 = 0 ;
9430 char *kwnames[] = {
9431 (char *) "self",(char *) "pt", NULL
9432 };
9433
9434 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail;
9436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9438 {
9439 arg2 = &temp2;
9440 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9441 }
9442 {
9443 PyThreadState* __tstate = wxPyBeginAllowThreads();
9444 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
9445
9446 wxPyEndAllowThreads(__tstate);
9447 if (PyErr_Occurred()) SWIG_fail;
9448 }
9449 resultobj = SWIG_From_int((int)result);
9450 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9451 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9452 return resultobj;
9453 fail:
9454 return NULL;
9455 }
9456
9457
9458 static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
9459 PyObject *resultobj;
9460 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9461 PyObject * obj0 = 0 ;
9462 char *kwnames[] = {
9463 (char *) "self", NULL
9464 };
9465
9466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 (arg1)->Copy();
9472
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 Py_INCREF(Py_None); resultobj = Py_None;
9477 return resultobj;
9478 fail:
9479 return NULL;
9480 }
9481
9482
9483 static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj;
9485 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9486 PyObject * obj0 = 0 ;
9487 char *kwnames[] = {
9488 (char *) "self", NULL
9489 };
9490
9491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9494 {
9495 PyThreadState* __tstate = wxPyBeginAllowThreads();
9496 (arg1)->Cut();
9497
9498 wxPyEndAllowThreads(__tstate);
9499 if (PyErr_Occurred()) SWIG_fail;
9500 }
9501 Py_INCREF(Py_None); resultobj = Py_None;
9502 return resultobj;
9503 fail:
9504 return NULL;
9505 }
9506
9507
9508 static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
9509 PyObject *resultobj;
9510 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9511 PyObject * obj0 = 0 ;
9512 char *kwnames[] = {
9513 (char *) "self", NULL
9514 };
9515
9516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9519 {
9520 PyThreadState* __tstate = wxPyBeginAllowThreads();
9521 (arg1)->Paste();
9522
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 Py_INCREF(Py_None); resultobj = Py_None;
9527 return resultobj;
9528 fail:
9529 return NULL;
9530 }
9531
9532
9533 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj;
9535 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9536 bool result;
9537 PyObject * obj0 = 0 ;
9538 char *kwnames[] = {
9539 (char *) "self", NULL
9540 };
9541
9542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9545 {
9546 PyThreadState* __tstate = wxPyBeginAllowThreads();
9547 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9548
9549 wxPyEndAllowThreads(__tstate);
9550 if (PyErr_Occurred()) SWIG_fail;
9551 }
9552 {
9553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9554 }
9555 return resultobj;
9556 fail:
9557 return NULL;
9558 }
9559
9560
9561 static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
9562 PyObject *resultobj;
9563 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9564 bool result;
9565 PyObject * obj0 = 0 ;
9566 char *kwnames[] = {
9567 (char *) "self", NULL
9568 };
9569
9570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
9575 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9576
9577 wxPyEndAllowThreads(__tstate);
9578 if (PyErr_Occurred()) SWIG_fail;
9579 }
9580 {
9581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9582 }
9583 return resultobj;
9584 fail:
9585 return NULL;
9586 }
9587
9588
9589 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
9590 PyObject *resultobj;
9591 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9592 bool result;
9593 PyObject * obj0 = 0 ;
9594 char *kwnames[] = {
9595 (char *) "self", NULL
9596 };
9597
9598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9601 {
9602 PyThreadState* __tstate = wxPyBeginAllowThreads();
9603 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9604
9605 wxPyEndAllowThreads(__tstate);
9606 if (PyErr_Occurred()) SWIG_fail;
9607 }
9608 {
9609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9610 }
9611 return resultobj;
9612 fail:
9613 return NULL;
9614 }
9615
9616
9617 static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
9618 PyObject *resultobj;
9619 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9620 PyObject * obj0 = 0 ;
9621 char *kwnames[] = {
9622 (char *) "self", NULL
9623 };
9624
9625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9628 {
9629 PyThreadState* __tstate = wxPyBeginAllowThreads();
9630 (arg1)->Undo();
9631
9632 wxPyEndAllowThreads(__tstate);
9633 if (PyErr_Occurred()) SWIG_fail;
9634 }
9635 Py_INCREF(Py_None); resultobj = Py_None;
9636 return resultobj;
9637 fail:
9638 return NULL;
9639 }
9640
9641
9642 static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
9643 PyObject *resultobj;
9644 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9645 PyObject * obj0 = 0 ;
9646 char *kwnames[] = {
9647 (char *) "self", NULL
9648 };
9649
9650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9653 {
9654 PyThreadState* __tstate = wxPyBeginAllowThreads();
9655 (arg1)->Redo();
9656
9657 wxPyEndAllowThreads(__tstate);
9658 if (PyErr_Occurred()) SWIG_fail;
9659 }
9660 Py_INCREF(Py_None); resultobj = Py_None;
9661 return resultobj;
9662 fail:
9663 return NULL;
9664 }
9665
9666
9667 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj;
9669 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9670 bool result;
9671 PyObject * obj0 = 0 ;
9672 char *kwnames[] = {
9673 (char *) "self", NULL
9674 };
9675
9676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9679 {
9680 PyThreadState* __tstate = wxPyBeginAllowThreads();
9681 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9682
9683 wxPyEndAllowThreads(__tstate);
9684 if (PyErr_Occurred()) SWIG_fail;
9685 }
9686 {
9687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9688 }
9689 return resultobj;
9690 fail:
9691 return NULL;
9692 }
9693
9694
9695 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
9696 PyObject *resultobj;
9697 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9698 bool result;
9699 PyObject * obj0 = 0 ;
9700 char *kwnames[] = {
9701 (char *) "self", NULL
9702 };
9703
9704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9710
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 {
9715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9716 }
9717 return resultobj;
9718 fail:
9719 return NULL;
9720 }
9721
9722
9723 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9724 PyObject *resultobj;
9725 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9726 long arg2 ;
9727 PyObject * obj0 = 0 ;
9728 PyObject * obj1 = 0 ;
9729 char *kwnames[] = {
9730 (char *) "self",(char *) "pos", NULL
9731 };
9732
9733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9736 arg2 = (long)SWIG_As_long(obj1);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 {
9739 PyThreadState* __tstate = wxPyBeginAllowThreads();
9740 (arg1)->SetInsertionPoint(arg2);
9741
9742 wxPyEndAllowThreads(__tstate);
9743 if (PyErr_Occurred()) SWIG_fail;
9744 }
9745 Py_INCREF(Py_None); resultobj = Py_None;
9746 return resultobj;
9747 fail:
9748 return NULL;
9749 }
9750
9751
9752 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
9753 PyObject *resultobj;
9754 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9755 PyObject * obj0 = 0 ;
9756 char *kwnames[] = {
9757 (char *) "self", NULL
9758 };
9759
9760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9763 {
9764 PyThreadState* __tstate = wxPyBeginAllowThreads();
9765 (arg1)->SetInsertionPointEnd();
9766
9767 wxPyEndAllowThreads(__tstate);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 }
9770 Py_INCREF(Py_None); resultobj = Py_None;
9771 return resultobj;
9772 fail:
9773 return NULL;
9774 }
9775
9776
9777 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9778 PyObject *resultobj;
9779 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9780 long result;
9781 PyObject * obj0 = 0 ;
9782 char *kwnames[] = {
9783 (char *) "self", NULL
9784 };
9785
9786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9792
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 resultobj = SWIG_From_long((long)result);
9797 return resultobj;
9798 fail:
9799 return NULL;
9800 }
9801
9802
9803 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9804 PyObject *resultobj;
9805 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9806 long result;
9807 PyObject * obj0 = 0 ;
9808 char *kwnames[] = {
9809 (char *) "self", NULL
9810 };
9811
9812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9815 {
9816 PyThreadState* __tstate = wxPyBeginAllowThreads();
9817 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9818
9819 wxPyEndAllowThreads(__tstate);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 }
9822 resultobj = SWIG_From_long((long)result);
9823 return resultobj;
9824 fail:
9825 return NULL;
9826 }
9827
9828
9829 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
9830 PyObject *resultobj;
9831 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9832 long arg2 ;
9833 long arg3 ;
9834 PyObject * obj0 = 0 ;
9835 PyObject * obj1 = 0 ;
9836 PyObject * obj2 = 0 ;
9837 char *kwnames[] = {
9838 (char *) "self",(char *) "from",(char *) "to", NULL
9839 };
9840
9841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9844 arg2 = (long)SWIG_As_long(obj1);
9845 if (PyErr_Occurred()) SWIG_fail;
9846 arg3 = (long)SWIG_As_long(obj2);
9847 if (PyErr_Occurred()) SWIG_fail;
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 (arg1)->SetSelection(arg2,arg3);
9851
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 Py_INCREF(Py_None); resultobj = Py_None;
9856 return resultobj;
9857 fail:
9858 return NULL;
9859 }
9860
9861
9862 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
9863 PyObject *resultobj;
9864 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9865 PyObject * obj0 = 0 ;
9866 char *kwnames[] = {
9867 (char *) "self", NULL
9868 };
9869
9870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9873 {
9874 PyThreadState* __tstate = wxPyBeginAllowThreads();
9875 (arg1)->SelectAll();
9876
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 Py_INCREF(Py_None); resultobj = Py_None;
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj;
9889 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9890 bool arg2 ;
9891 PyObject * obj0 = 0 ;
9892 PyObject * obj1 = 0 ;
9893 char *kwnames[] = {
9894 (char *) "self",(char *) "editable", NULL
9895 };
9896
9897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9900 arg2 = (bool)SWIG_As_bool(obj1);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 {
9903 PyThreadState* __tstate = wxPyBeginAllowThreads();
9904 (arg1)->SetEditable(arg2);
9905
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) SWIG_fail;
9908 }
9909 Py_INCREF(Py_None); resultobj = Py_None;
9910 return resultobj;
9911 fail:
9912 return NULL;
9913 }
9914
9915
9916 static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) {
9917 PyObject *resultobj;
9918 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9919 bool arg2 = (bool) True ;
9920 bool result;
9921 PyObject * obj0 = 0 ;
9922 PyObject * obj1 = 0 ;
9923 char *kwnames[] = {
9924 (char *) "self",(char *) "show", NULL
9925 };
9926
9927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail;
9928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9930 if (obj1) {
9931 arg2 = (bool)SWIG_As_bool(obj1);
9932 if (PyErr_Occurred()) SWIG_fail;
9933 }
9934 {
9935 PyThreadState* __tstate = wxPyBeginAllowThreads();
9936 result = (bool)(arg1)->ShowNativeCaret(arg2);
9937
9938 wxPyEndAllowThreads(__tstate);
9939 if (PyErr_Occurred()) SWIG_fail;
9940 }
9941 {
9942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9943 }
9944 return resultobj;
9945 fail:
9946 return NULL;
9947 }
9948
9949
9950 static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) {
9951 PyObject *resultobj;
9952 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9953 bool result;
9954 PyObject * obj0 = 0 ;
9955 char *kwnames[] = {
9956 (char *) "self", NULL
9957 };
9958
9959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail;
9960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9962 {
9963 PyThreadState* __tstate = wxPyBeginAllowThreads();
9964 result = (bool)(arg1)->HideNativeCaret();
9965
9966 wxPyEndAllowThreads(__tstate);
9967 if (PyErr_Occurred()) SWIG_fail;
9968 }
9969 {
9970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9971 }
9972 return resultobj;
9973 fail:
9974 return NULL;
9975 }
9976
9977
9978 static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) {
9979 PyObject *resultobj;
9980 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9981 wxString *arg2 = 0 ;
9982 bool temp2 = False ;
9983 PyObject * obj0 = 0 ;
9984 PyObject * obj1 = 0 ;
9985 char *kwnames[] = {
9986 (char *) "self",(char *) "text", NULL
9987 };
9988
9989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9992 {
9993 arg2 = wxString_in_helper(obj1);
9994 if (arg2 == NULL) SWIG_fail;
9995 temp2 = True;
9996 }
9997 {
9998 PyThreadState* __tstate = wxPyBeginAllowThreads();
9999 wxTextCtrl_write(arg1,(wxString const &)*arg2);
10000
10001 wxPyEndAllowThreads(__tstate);
10002 if (PyErr_Occurred()) SWIG_fail;
10003 }
10004 Py_INCREF(Py_None); resultobj = Py_None;
10005 {
10006 if (temp2)
10007 delete arg2;
10008 }
10009 return resultobj;
10010 fail:
10011 {
10012 if (temp2)
10013 delete arg2;
10014 }
10015 return NULL;
10016 }
10017
10018
10019 static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
10020 PyObject *resultobj;
10021 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10022 long arg2 ;
10023 long arg3 ;
10024 wxString result;
10025 PyObject * obj0 = 0 ;
10026 PyObject * obj1 = 0 ;
10027 PyObject * obj2 = 0 ;
10028 char *kwnames[] = {
10029 (char *) "self",(char *) "from",(char *) "to", NULL
10030 };
10031
10032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10035 arg2 = (long)SWIG_As_long(obj1);
10036 if (PyErr_Occurred()) SWIG_fail;
10037 arg3 = (long)SWIG_As_long(obj2);
10038 if (PyErr_Occurred()) SWIG_fail;
10039 {
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 result = wxTextCtrl_GetString(arg1,arg2,arg3);
10042
10043 wxPyEndAllowThreads(__tstate);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 {
10047 #if wxUSE_UNICODE
10048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10049 #else
10050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10051 #endif
10052 }
10053 return resultobj;
10054 fail:
10055 return NULL;
10056 }
10057
10058
10059 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10060 PyObject *resultobj;
10061 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10062 wxVisualAttributes result;
10063 PyObject * obj0 = 0 ;
10064 char *kwnames[] = {
10065 (char *) "variant", NULL
10066 };
10067
10068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10069 if (obj0) {
10070 arg1 = (int)SWIG_As_int(obj0);
10071 if (PyErr_Occurred()) SWIG_fail;
10072 }
10073 {
10074 if (!wxPyCheckForApp()) SWIG_fail;
10075 PyThreadState* __tstate = wxPyBeginAllowThreads();
10076 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
10077
10078 wxPyEndAllowThreads(__tstate);
10079 if (PyErr_Occurred()) SWIG_fail;
10080 }
10081 {
10082 wxVisualAttributes * resultptr;
10083 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10084 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10085 }
10086 return resultobj;
10087 fail:
10088 return NULL;
10089 }
10090
10091
10092 static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) {
10093 PyObject *obj;
10094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10095 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
10096 Py_INCREF(obj);
10097 return Py_BuildValue((char *)"");
10098 }
10099 static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10100 PyObject *resultobj;
10101 int arg1 ;
10102 wxMouseEvent *arg2 = 0 ;
10103 long arg3 ;
10104 long arg4 ;
10105 wxTextUrlEvent *result;
10106 PyObject * obj0 = 0 ;
10107 PyObject * obj1 = 0 ;
10108 PyObject * obj2 = 0 ;
10109 PyObject * obj3 = 0 ;
10110 char *kwnames[] = {
10111 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
10112 };
10113
10114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10115 arg1 = (int)SWIG_As_int(obj0);
10116 if (PyErr_Occurred()) SWIG_fail;
10117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
10118 SWIG_POINTER_EXCEPTION | 0)) == -1)
10119 SWIG_fail;
10120 if (arg2 == NULL) {
10121 PyErr_SetString(PyExc_TypeError,"null reference");
10122 SWIG_fail;
10123 }
10124 arg3 = (long)SWIG_As_long(obj2);
10125 if (PyErr_Occurred()) SWIG_fail;
10126 arg4 = (long)SWIG_As_long(obj3);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 {
10129 PyThreadState* __tstate = wxPyBeginAllowThreads();
10130 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
10131
10132 wxPyEndAllowThreads(__tstate);
10133 if (PyErr_Occurred()) SWIG_fail;
10134 }
10135 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
10136 return resultobj;
10137 fail:
10138 return NULL;
10139 }
10140
10141
10142 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10143 PyObject *resultobj;
10144 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10145 wxMouseEvent *result;
10146 PyObject * obj0 = 0 ;
10147 char *kwnames[] = {
10148 (char *) "self", NULL
10149 };
10150
10151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
10152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10154 {
10155 PyThreadState* __tstate = wxPyBeginAllowThreads();
10156 {
10157 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
10158 result = (wxMouseEvent *) &_result_ref;
10159 }
10160
10161 wxPyEndAllowThreads(__tstate);
10162 if (PyErr_Occurred()) SWIG_fail;
10163 }
10164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
10165 return resultobj;
10166 fail:
10167 return NULL;
10168 }
10169
10170
10171 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) {
10172 PyObject *resultobj;
10173 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10174 long result;
10175 PyObject * obj0 = 0 ;
10176 char *kwnames[] = {
10177 (char *) "self", NULL
10178 };
10179
10180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
10181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10183 {
10184 PyThreadState* __tstate = wxPyBeginAllowThreads();
10185 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
10186
10187 wxPyEndAllowThreads(__tstate);
10188 if (PyErr_Occurred()) SWIG_fail;
10189 }
10190 resultobj = SWIG_From_long((long)result);
10191 return resultobj;
10192 fail:
10193 return NULL;
10194 }
10195
10196
10197 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) {
10198 PyObject *resultobj;
10199 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10200 long result;
10201 PyObject * obj0 = 0 ;
10202 char *kwnames[] = {
10203 (char *) "self", NULL
10204 };
10205
10206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
10207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10209 {
10210 PyThreadState* __tstate = wxPyBeginAllowThreads();
10211 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
10212
10213 wxPyEndAllowThreads(__tstate);
10214 if (PyErr_Occurred()) SWIG_fail;
10215 }
10216 resultobj = SWIG_From_long((long)result);
10217 return resultobj;
10218 fail:
10219 return NULL;
10220 }
10221
10222
10223 static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) {
10224 PyObject *obj;
10225 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10226 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10227 Py_INCREF(obj);
10228 return Py_BuildValue((char *)"");
10229 }
10230 static int _wrap_ScrollBarNameStr_set(PyObject *) {
10231 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10232 return 1;
10233 }
10234
10235
10236 static PyObject *_wrap_ScrollBarNameStr_get() {
10237 PyObject *pyobj;
10238
10239 {
10240 #if wxUSE_UNICODE
10241 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10242 #else
10243 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10244 #endif
10245 }
10246 return pyobj;
10247 }
10248
10249
10250 static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10251 PyObject *resultobj;
10252 wxWindow *arg1 = (wxWindow *) 0 ;
10253 int arg2 = (int) -1 ;
10254 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10255 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10256 wxSize const &arg4_defvalue = wxDefaultSize ;
10257 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10258 long arg5 = (long) wxSB_HORIZONTAL ;
10259 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10260 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10261 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10262 wxString *arg7 = (wxString *) &arg7_defvalue ;
10263 wxScrollBar *result;
10264 wxPoint temp3 ;
10265 wxSize temp4 ;
10266 bool temp7 = False ;
10267 PyObject * obj0 = 0 ;
10268 PyObject * obj1 = 0 ;
10269 PyObject * obj2 = 0 ;
10270 PyObject * obj3 = 0 ;
10271 PyObject * obj4 = 0 ;
10272 PyObject * obj5 = 0 ;
10273 PyObject * obj6 = 0 ;
10274 char *kwnames[] = {
10275 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10276 };
10277
10278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10281 if (obj1) {
10282 arg2 = (int)SWIG_As_int(obj1);
10283 if (PyErr_Occurred()) SWIG_fail;
10284 }
10285 if (obj2) {
10286 {
10287 arg3 = &temp3;
10288 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10289 }
10290 }
10291 if (obj3) {
10292 {
10293 arg4 = &temp4;
10294 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10295 }
10296 }
10297 if (obj4) {
10298 arg5 = (long)SWIG_As_long(obj4);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 if (obj5) {
10302 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10303 SWIG_POINTER_EXCEPTION | 0)) == -1)
10304 SWIG_fail;
10305 if (arg6 == NULL) {
10306 PyErr_SetString(PyExc_TypeError,"null reference");
10307 SWIG_fail;
10308 }
10309 }
10310 if (obj6) {
10311 {
10312 arg7 = wxString_in_helper(obj6);
10313 if (arg7 == NULL) SWIG_fail;
10314 temp7 = True;
10315 }
10316 }
10317 {
10318 if (!wxPyCheckForApp()) SWIG_fail;
10319 PyThreadState* __tstate = wxPyBeginAllowThreads();
10320 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10321
10322 wxPyEndAllowThreads(__tstate);
10323 if (PyErr_Occurred()) SWIG_fail;
10324 }
10325 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10326 {
10327 if (temp7)
10328 delete arg7;
10329 }
10330 return resultobj;
10331 fail:
10332 {
10333 if (temp7)
10334 delete arg7;
10335 }
10336 return NULL;
10337 }
10338
10339
10340 static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10341 PyObject *resultobj;
10342 wxScrollBar *result;
10343 char *kwnames[] = {
10344 NULL
10345 };
10346
10347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10348 {
10349 if (!wxPyCheckForApp()) SWIG_fail;
10350 PyThreadState* __tstate = wxPyBeginAllowThreads();
10351 result = (wxScrollBar *)new wxScrollBar();
10352
10353 wxPyEndAllowThreads(__tstate);
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
10356 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10357 return resultobj;
10358 fail:
10359 return NULL;
10360 }
10361
10362
10363 static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10364 PyObject *resultobj;
10365 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10366 wxWindow *arg2 = (wxWindow *) 0 ;
10367 int arg3 = (int) -1 ;
10368 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10369 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10370 wxSize const &arg5_defvalue = wxDefaultSize ;
10371 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10372 long arg6 = (long) wxSB_HORIZONTAL ;
10373 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10374 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10375 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10376 wxString *arg8 = (wxString *) &arg8_defvalue ;
10377 bool result;
10378 wxPoint temp4 ;
10379 wxSize temp5 ;
10380 bool temp8 = False ;
10381 PyObject * obj0 = 0 ;
10382 PyObject * obj1 = 0 ;
10383 PyObject * obj2 = 0 ;
10384 PyObject * obj3 = 0 ;
10385 PyObject * obj4 = 0 ;
10386 PyObject * obj5 = 0 ;
10387 PyObject * obj6 = 0 ;
10388 PyObject * obj7 = 0 ;
10389 char *kwnames[] = {
10390 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10391 };
10392
10393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10396 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10398 if (obj2) {
10399 arg3 = (int)SWIG_As_int(obj2);
10400 if (PyErr_Occurred()) SWIG_fail;
10401 }
10402 if (obj3) {
10403 {
10404 arg4 = &temp4;
10405 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10406 }
10407 }
10408 if (obj4) {
10409 {
10410 arg5 = &temp5;
10411 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10412 }
10413 }
10414 if (obj5) {
10415 arg6 = (long)SWIG_As_long(obj5);
10416 if (PyErr_Occurred()) SWIG_fail;
10417 }
10418 if (obj6) {
10419 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10420 SWIG_POINTER_EXCEPTION | 0)) == -1)
10421 SWIG_fail;
10422 if (arg7 == NULL) {
10423 PyErr_SetString(PyExc_TypeError,"null reference");
10424 SWIG_fail;
10425 }
10426 }
10427 if (obj7) {
10428 {
10429 arg8 = wxString_in_helper(obj7);
10430 if (arg8 == NULL) SWIG_fail;
10431 temp8 = True;
10432 }
10433 }
10434 {
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10437
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 {
10442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10443 }
10444 {
10445 if (temp8)
10446 delete arg8;
10447 }
10448 return resultobj;
10449 fail:
10450 {
10451 if (temp8)
10452 delete arg8;
10453 }
10454 return NULL;
10455 }
10456
10457
10458 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10459 PyObject *resultobj;
10460 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10461 int result;
10462 PyObject * obj0 = 0 ;
10463 char *kwnames[] = {
10464 (char *) "self", NULL
10465 };
10466
10467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10470 {
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10473
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 resultobj = SWIG_From_int((int)result);
10478 return resultobj;
10479 fail:
10480 return NULL;
10481 }
10482
10483
10484 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) {
10485 PyObject *resultobj;
10486 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10487 int result;
10488 PyObject * obj0 = 0 ;
10489 char *kwnames[] = {
10490 (char *) "self", NULL
10491 };
10492
10493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10496 {
10497 PyThreadState* __tstate = wxPyBeginAllowThreads();
10498 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10499
10500 wxPyEndAllowThreads(__tstate);
10501 if (PyErr_Occurred()) SWIG_fail;
10502 }
10503 resultobj = SWIG_From_int((int)result);
10504 return resultobj;
10505 fail:
10506 return NULL;
10507 }
10508
10509
10510 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
10511 PyObject *resultobj;
10512 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10513 int result;
10514 PyObject * obj0 = 0 ;
10515 char *kwnames[] = {
10516 (char *) "self", NULL
10517 };
10518
10519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10522 {
10523 PyThreadState* __tstate = wxPyBeginAllowThreads();
10524 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10525
10526 wxPyEndAllowThreads(__tstate);
10527 if (PyErr_Occurred()) SWIG_fail;
10528 }
10529 resultobj = SWIG_From_int((int)result);
10530 return resultobj;
10531 fail:
10532 return NULL;
10533 }
10534
10535
10536 static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10537 PyObject *resultobj;
10538 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10539 int result;
10540 PyObject * obj0 = 0 ;
10541 char *kwnames[] = {
10542 (char *) "self", NULL
10543 };
10544
10545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10548 {
10549 PyThreadState* __tstate = wxPyBeginAllowThreads();
10550 result = (int)((wxScrollBar const *)arg1)->GetRange();
10551
10552 wxPyEndAllowThreads(__tstate);
10553 if (PyErr_Occurred()) SWIG_fail;
10554 }
10555 resultobj = SWIG_From_int((int)result);
10556 return resultobj;
10557 fail:
10558 return NULL;
10559 }
10560
10561
10562 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
10563 PyObject *resultobj;
10564 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10565 bool result;
10566 PyObject * obj0 = 0 ;
10567 char *kwnames[] = {
10568 (char *) "self", NULL
10569 };
10570
10571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10574 {
10575 PyThreadState* __tstate = wxPyBeginAllowThreads();
10576 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10577
10578 wxPyEndAllowThreads(__tstate);
10579 if (PyErr_Occurred()) SWIG_fail;
10580 }
10581 {
10582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10583 }
10584 return resultobj;
10585 fail:
10586 return NULL;
10587 }
10588
10589
10590 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10591 PyObject *resultobj;
10592 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10593 int arg2 ;
10594 PyObject * obj0 = 0 ;
10595 PyObject * obj1 = 0 ;
10596 char *kwnames[] = {
10597 (char *) "self",(char *) "viewStart", NULL
10598 };
10599
10600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10603 arg2 = (int)SWIG_As_int(obj1);
10604 if (PyErr_Occurred()) SWIG_fail;
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 (arg1)->SetThumbPosition(arg2);
10608
10609 wxPyEndAllowThreads(__tstate);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 Py_INCREF(Py_None); resultobj = Py_None;
10613 return resultobj;
10614 fail:
10615 return NULL;
10616 }
10617
10618
10619 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj;
10621 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10622 int arg2 ;
10623 int arg3 ;
10624 int arg4 ;
10625 int arg5 ;
10626 bool arg6 = (bool) True ;
10627 PyObject * obj0 = 0 ;
10628 PyObject * obj1 = 0 ;
10629 PyObject * obj2 = 0 ;
10630 PyObject * obj3 = 0 ;
10631 PyObject * obj4 = 0 ;
10632 PyObject * obj5 = 0 ;
10633 char *kwnames[] = {
10634 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10635 };
10636
10637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10640 arg2 = (int)SWIG_As_int(obj1);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 arg3 = (int)SWIG_As_int(obj2);
10643 if (PyErr_Occurred()) SWIG_fail;
10644 arg4 = (int)SWIG_As_int(obj3);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 arg5 = (int)SWIG_As_int(obj4);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 if (obj5) {
10649 arg6 = (bool)SWIG_As_bool(obj5);
10650 if (PyErr_Occurred()) SWIG_fail;
10651 }
10652 {
10653 PyThreadState* __tstate = wxPyBeginAllowThreads();
10654 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10655
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 Py_INCREF(Py_None); resultobj = Py_None;
10660 return resultobj;
10661 fail:
10662 return NULL;
10663 }
10664
10665
10666 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj;
10668 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10669 wxVisualAttributes result;
10670 PyObject * obj0 = 0 ;
10671 char *kwnames[] = {
10672 (char *) "variant", NULL
10673 };
10674
10675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10676 if (obj0) {
10677 arg1 = (int)SWIG_As_int(obj0);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 }
10680 {
10681 if (!wxPyCheckForApp()) SWIG_fail;
10682 PyThreadState* __tstate = wxPyBeginAllowThreads();
10683 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10684
10685 wxPyEndAllowThreads(__tstate);
10686 if (PyErr_Occurred()) SWIG_fail;
10687 }
10688 {
10689 wxVisualAttributes * resultptr;
10690 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10691 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10692 }
10693 return resultobj;
10694 fail:
10695 return NULL;
10696 }
10697
10698
10699 static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) {
10700 PyObject *obj;
10701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10702 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10703 Py_INCREF(obj);
10704 return Py_BuildValue((char *)"");
10705 }
10706 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
10707 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10708 return 1;
10709 }
10710
10711
10712 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10713 PyObject *pyobj;
10714
10715 {
10716 #if wxUSE_UNICODE
10717 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10718 #else
10719 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10720 #endif
10721 }
10722 return pyobj;
10723 }
10724
10725
10726 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
10727 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10728 return 1;
10729 }
10730
10731
10732 static PyObject *_wrap_SpinCtrlNameStr_get() {
10733 PyObject *pyobj;
10734
10735 {
10736 #if wxUSE_UNICODE
10737 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10738 #else
10739 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10740 #endif
10741 }
10742 return pyobj;
10743 }
10744
10745
10746 static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10747 PyObject *resultobj;
10748 wxWindow *arg1 = (wxWindow *) 0 ;
10749 int arg2 = (int) -1 ;
10750 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10751 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10752 wxSize const &arg4_defvalue = wxDefaultSize ;
10753 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10754 long arg5 = (long) wxSP_HORIZONTAL ;
10755 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10756 wxString *arg6 = (wxString *) &arg6_defvalue ;
10757 wxSpinButton *result;
10758 wxPoint temp3 ;
10759 wxSize temp4 ;
10760 bool temp6 = False ;
10761 PyObject * obj0 = 0 ;
10762 PyObject * obj1 = 0 ;
10763 PyObject * obj2 = 0 ;
10764 PyObject * obj3 = 0 ;
10765 PyObject * obj4 = 0 ;
10766 PyObject * obj5 = 0 ;
10767 char *kwnames[] = {
10768 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10769 };
10770
10771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10774 if (obj1) {
10775 arg2 = (int)SWIG_As_int(obj1);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 if (obj2) {
10779 {
10780 arg3 = &temp3;
10781 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10782 }
10783 }
10784 if (obj3) {
10785 {
10786 arg4 = &temp4;
10787 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10788 }
10789 }
10790 if (obj4) {
10791 arg5 = (long)SWIG_As_long(obj4);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 }
10794 if (obj5) {
10795 {
10796 arg6 = wxString_in_helper(obj5);
10797 if (arg6 == NULL) SWIG_fail;
10798 temp6 = True;
10799 }
10800 }
10801 {
10802 if (!wxPyCheckForApp()) SWIG_fail;
10803 PyThreadState* __tstate = wxPyBeginAllowThreads();
10804 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10805
10806 wxPyEndAllowThreads(__tstate);
10807 if (PyErr_Occurred()) SWIG_fail;
10808 }
10809 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10810 {
10811 if (temp6)
10812 delete arg6;
10813 }
10814 return resultobj;
10815 fail:
10816 {
10817 if (temp6)
10818 delete arg6;
10819 }
10820 return NULL;
10821 }
10822
10823
10824 static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10825 PyObject *resultobj;
10826 wxSpinButton *result;
10827 char *kwnames[] = {
10828 NULL
10829 };
10830
10831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10832 {
10833 if (!wxPyCheckForApp()) SWIG_fail;
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 result = (wxSpinButton *)new wxSpinButton();
10836
10837 wxPyEndAllowThreads(__tstate);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 }
10840 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10841 return resultobj;
10842 fail:
10843 return NULL;
10844 }
10845
10846
10847 static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10848 PyObject *resultobj;
10849 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10850 wxWindow *arg2 = (wxWindow *) 0 ;
10851 int arg3 = (int) -1 ;
10852 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10853 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10854 wxSize const &arg5_defvalue = wxDefaultSize ;
10855 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10856 long arg6 = (long) wxSP_HORIZONTAL ;
10857 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10858 wxString *arg7 = (wxString *) &arg7_defvalue ;
10859 bool result;
10860 wxPoint temp4 ;
10861 wxSize temp5 ;
10862 bool temp7 = False ;
10863 PyObject * obj0 = 0 ;
10864 PyObject * obj1 = 0 ;
10865 PyObject * obj2 = 0 ;
10866 PyObject * obj3 = 0 ;
10867 PyObject * obj4 = 0 ;
10868 PyObject * obj5 = 0 ;
10869 PyObject * obj6 = 0 ;
10870 char *kwnames[] = {
10871 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10872 };
10873
10874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10877 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10879 if (obj2) {
10880 arg3 = (int)SWIG_As_int(obj2);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 if (obj3) {
10884 {
10885 arg4 = &temp4;
10886 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10887 }
10888 }
10889 if (obj4) {
10890 {
10891 arg5 = &temp5;
10892 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10893 }
10894 }
10895 if (obj5) {
10896 arg6 = (long)SWIG_As_long(obj5);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 }
10899 if (obj6) {
10900 {
10901 arg7 = wxString_in_helper(obj6);
10902 if (arg7 == NULL) SWIG_fail;
10903 temp7 = True;
10904 }
10905 }
10906 {
10907 PyThreadState* __tstate = wxPyBeginAllowThreads();
10908 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10909
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 {
10914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10915 }
10916 {
10917 if (temp7)
10918 delete arg7;
10919 }
10920 return resultobj;
10921 fail:
10922 {
10923 if (temp7)
10924 delete arg7;
10925 }
10926 return NULL;
10927 }
10928
10929
10930 static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10931 PyObject *resultobj;
10932 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10933 int result;
10934 PyObject * obj0 = 0 ;
10935 char *kwnames[] = {
10936 (char *) "self", NULL
10937 };
10938
10939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10942 {
10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
10944 result = (int)((wxSpinButton const *)arg1)->GetValue();
10945
10946 wxPyEndAllowThreads(__tstate);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 }
10949 resultobj = SWIG_From_int((int)result);
10950 return resultobj;
10951 fail:
10952 return NULL;
10953 }
10954
10955
10956 static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10957 PyObject *resultobj;
10958 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10959 int result;
10960 PyObject * obj0 = 0 ;
10961 char *kwnames[] = {
10962 (char *) "self", NULL
10963 };
10964
10965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10968 {
10969 PyThreadState* __tstate = wxPyBeginAllowThreads();
10970 result = (int)((wxSpinButton const *)arg1)->GetMin();
10971
10972 wxPyEndAllowThreads(__tstate);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 }
10975 resultobj = SWIG_From_int((int)result);
10976 return resultobj;
10977 fail:
10978 return NULL;
10979 }
10980
10981
10982 static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
10983 PyObject *resultobj;
10984 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10985 int result;
10986 PyObject * obj0 = 0 ;
10987 char *kwnames[] = {
10988 (char *) "self", NULL
10989 };
10990
10991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10994 {
10995 PyThreadState* __tstate = wxPyBeginAllowThreads();
10996 result = (int)((wxSpinButton const *)arg1)->GetMax();
10997
10998 wxPyEndAllowThreads(__tstate);
10999 if (PyErr_Occurred()) SWIG_fail;
11000 }
11001 resultobj = SWIG_From_int((int)result);
11002 return resultobj;
11003 fail:
11004 return NULL;
11005 }
11006
11007
11008 static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11009 PyObject *resultobj;
11010 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11011 int arg2 ;
11012 PyObject * obj0 = 0 ;
11013 PyObject * obj1 = 0 ;
11014 char *kwnames[] = {
11015 (char *) "self",(char *) "val", NULL
11016 };
11017
11018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11021 arg2 = (int)SWIG_As_int(obj1);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 (arg1)->SetValue(arg2);
11026
11027 wxPyEndAllowThreads(__tstate);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 Py_INCREF(Py_None); resultobj = Py_None;
11031 return resultobj;
11032 fail:
11033 return NULL;
11034 }
11035
11036
11037 static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11038 PyObject *resultobj;
11039 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11040 int arg2 ;
11041 PyObject * obj0 = 0 ;
11042 PyObject * obj1 = 0 ;
11043 char *kwnames[] = {
11044 (char *) "self",(char *) "minVal", NULL
11045 };
11046
11047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
11048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11050 arg2 = (int)SWIG_As_int(obj1);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 {
11053 PyThreadState* __tstate = wxPyBeginAllowThreads();
11054 (arg1)->SetMin(arg2);
11055
11056 wxPyEndAllowThreads(__tstate);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 }
11059 Py_INCREF(Py_None); resultobj = Py_None;
11060 return resultobj;
11061 fail:
11062 return NULL;
11063 }
11064
11065
11066 static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11067 PyObject *resultobj;
11068 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11069 int arg2 ;
11070 PyObject * obj0 = 0 ;
11071 PyObject * obj1 = 0 ;
11072 char *kwnames[] = {
11073 (char *) "self",(char *) "maxVal", NULL
11074 };
11075
11076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
11077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11079 arg2 = (int)SWIG_As_int(obj1);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 {
11082 PyThreadState* __tstate = wxPyBeginAllowThreads();
11083 (arg1)->SetMax(arg2);
11084
11085 wxPyEndAllowThreads(__tstate);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 Py_INCREF(Py_None); resultobj = Py_None;
11089 return resultobj;
11090 fail:
11091 return NULL;
11092 }
11093
11094
11095 static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11096 PyObject *resultobj;
11097 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11098 int arg2 ;
11099 int arg3 ;
11100 PyObject * obj0 = 0 ;
11101 PyObject * obj1 = 0 ;
11102 PyObject * obj2 = 0 ;
11103 char *kwnames[] = {
11104 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11105 };
11106
11107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11110 arg2 = (int)SWIG_As_int(obj1);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 arg3 = (int)SWIG_As_int(obj2);
11113 if (PyErr_Occurred()) SWIG_fail;
11114 {
11115 PyThreadState* __tstate = wxPyBeginAllowThreads();
11116 (arg1)->SetRange(arg2,arg3);
11117
11118 wxPyEndAllowThreads(__tstate);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 Py_INCREF(Py_None); resultobj = Py_None;
11122 return resultobj;
11123 fail:
11124 return NULL;
11125 }
11126
11127
11128 static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
11129 PyObject *resultobj;
11130 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11131 bool result;
11132 PyObject * obj0 = 0 ;
11133 char *kwnames[] = {
11134 (char *) "self", NULL
11135 };
11136
11137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
11138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11140 {
11141 PyThreadState* __tstate = wxPyBeginAllowThreads();
11142 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
11143
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 {
11148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11149 }
11150 return resultobj;
11151 fail:
11152 return NULL;
11153 }
11154
11155
11156 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11157 PyObject *resultobj;
11158 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11159 wxVisualAttributes result;
11160 PyObject * obj0 = 0 ;
11161 char *kwnames[] = {
11162 (char *) "variant", NULL
11163 };
11164
11165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11166 if (obj0) {
11167 arg1 = (int)SWIG_As_int(obj0);
11168 if (PyErr_Occurred()) SWIG_fail;
11169 }
11170 {
11171 if (!wxPyCheckForApp()) SWIG_fail;
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
11174
11175 wxPyEndAllowThreads(__tstate);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 {
11179 wxVisualAttributes * resultptr;
11180 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11181 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11182 }
11183 return resultobj;
11184 fail:
11185 return NULL;
11186 }
11187
11188
11189 static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) {
11190 PyObject *obj;
11191 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11192 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
11193 Py_INCREF(obj);
11194 return Py_BuildValue((char *)"");
11195 }
11196 static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11197 PyObject *resultobj;
11198 wxWindow *arg1 = (wxWindow *) 0 ;
11199 int arg2 = (int) -1 ;
11200 wxString const &arg3_defvalue = wxPyEmptyString ;
11201 wxString *arg3 = (wxString *) &arg3_defvalue ;
11202 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11203 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11204 wxSize const &arg5_defvalue = wxDefaultSize ;
11205 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11206 long arg6 = (long) wxSP_ARROW_KEYS ;
11207 int arg7 = (int) 0 ;
11208 int arg8 = (int) 100 ;
11209 int arg9 = (int) 0 ;
11210 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
11211 wxString *arg10 = (wxString *) &arg10_defvalue ;
11212 wxSpinCtrl *result;
11213 bool temp3 = False ;
11214 wxPoint temp4 ;
11215 wxSize temp5 ;
11216 bool temp10 = False ;
11217 PyObject * obj0 = 0 ;
11218 PyObject * obj1 = 0 ;
11219 PyObject * obj2 = 0 ;
11220 PyObject * obj3 = 0 ;
11221 PyObject * obj4 = 0 ;
11222 PyObject * obj5 = 0 ;
11223 PyObject * obj6 = 0 ;
11224 PyObject * obj7 = 0 ;
11225 PyObject * obj8 = 0 ;
11226 PyObject * obj9 = 0 ;
11227 char *kwnames[] = {
11228 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11229 };
11230
11231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11234 if (obj1) {
11235 arg2 = (int)SWIG_As_int(obj1);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 if (obj2) {
11239 {
11240 arg3 = wxString_in_helper(obj2);
11241 if (arg3 == NULL) SWIG_fail;
11242 temp3 = True;
11243 }
11244 }
11245 if (obj3) {
11246 {
11247 arg4 = &temp4;
11248 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11249 }
11250 }
11251 if (obj4) {
11252 {
11253 arg5 = &temp5;
11254 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11255 }
11256 }
11257 if (obj5) {
11258 arg6 = (long)SWIG_As_long(obj5);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 }
11261 if (obj6) {
11262 arg7 = (int)SWIG_As_int(obj6);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 }
11265 if (obj7) {
11266 arg8 = (int)SWIG_As_int(obj7);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 if (obj8) {
11270 arg9 = (int)SWIG_As_int(obj8);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 }
11273 if (obj9) {
11274 {
11275 arg10 = wxString_in_helper(obj9);
11276 if (arg10 == NULL) SWIG_fail;
11277 temp10 = True;
11278 }
11279 }
11280 {
11281 if (!wxPyCheckForApp()) SWIG_fail;
11282 PyThreadState* __tstate = wxPyBeginAllowThreads();
11283 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11284
11285 wxPyEndAllowThreads(__tstate);
11286 if (PyErr_Occurred()) SWIG_fail;
11287 }
11288 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11289 {
11290 if (temp3)
11291 delete arg3;
11292 }
11293 {
11294 if (temp10)
11295 delete arg10;
11296 }
11297 return resultobj;
11298 fail:
11299 {
11300 if (temp3)
11301 delete arg3;
11302 }
11303 {
11304 if (temp10)
11305 delete arg10;
11306 }
11307 return NULL;
11308 }
11309
11310
11311 static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11312 PyObject *resultobj;
11313 wxSpinCtrl *result;
11314 char *kwnames[] = {
11315 NULL
11316 };
11317
11318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11319 {
11320 if (!wxPyCheckForApp()) SWIG_fail;
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 result = (wxSpinCtrl *)new wxSpinCtrl();
11323
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11328 return resultobj;
11329 fail:
11330 return NULL;
11331 }
11332
11333
11334 static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11335 PyObject *resultobj;
11336 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11337 wxWindow *arg2 = (wxWindow *) 0 ;
11338 int arg3 = (int) -1 ;
11339 wxString const &arg4_defvalue = wxPyEmptyString ;
11340 wxString *arg4 = (wxString *) &arg4_defvalue ;
11341 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11342 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11343 wxSize const &arg6_defvalue = wxDefaultSize ;
11344 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11345 long arg7 = (long) wxSP_ARROW_KEYS ;
11346 int arg8 = (int) 0 ;
11347 int arg9 = (int) 100 ;
11348 int arg10 = (int) 0 ;
11349 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11350 wxString *arg11 = (wxString *) &arg11_defvalue ;
11351 bool result;
11352 bool temp4 = False ;
11353 wxPoint temp5 ;
11354 wxSize temp6 ;
11355 bool temp11 = False ;
11356 PyObject * obj0 = 0 ;
11357 PyObject * obj1 = 0 ;
11358 PyObject * obj2 = 0 ;
11359 PyObject * obj3 = 0 ;
11360 PyObject * obj4 = 0 ;
11361 PyObject * obj5 = 0 ;
11362 PyObject * obj6 = 0 ;
11363 PyObject * obj7 = 0 ;
11364 PyObject * obj8 = 0 ;
11365 PyObject * obj9 = 0 ;
11366 PyObject * obj10 = 0 ;
11367 char *kwnames[] = {
11368 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11369 };
11370
11371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11376 if (obj2) {
11377 arg3 = (int)SWIG_As_int(obj2);
11378 if (PyErr_Occurred()) SWIG_fail;
11379 }
11380 if (obj3) {
11381 {
11382 arg4 = wxString_in_helper(obj3);
11383 if (arg4 == NULL) SWIG_fail;
11384 temp4 = True;
11385 }
11386 }
11387 if (obj4) {
11388 {
11389 arg5 = &temp5;
11390 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11391 }
11392 }
11393 if (obj5) {
11394 {
11395 arg6 = &temp6;
11396 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11397 }
11398 }
11399 if (obj6) {
11400 arg7 = (long)SWIG_As_long(obj6);
11401 if (PyErr_Occurred()) SWIG_fail;
11402 }
11403 if (obj7) {
11404 arg8 = (int)SWIG_As_int(obj7);
11405 if (PyErr_Occurred()) SWIG_fail;
11406 }
11407 if (obj8) {
11408 arg9 = (int)SWIG_As_int(obj8);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 if (obj9) {
11412 arg10 = (int)SWIG_As_int(obj9);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 if (obj10) {
11416 {
11417 arg11 = wxString_in_helper(obj10);
11418 if (arg11 == NULL) SWIG_fail;
11419 temp11 = True;
11420 }
11421 }
11422 {
11423 PyThreadState* __tstate = wxPyBeginAllowThreads();
11424 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11425
11426 wxPyEndAllowThreads(__tstate);
11427 if (PyErr_Occurred()) SWIG_fail;
11428 }
11429 {
11430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11431 }
11432 {
11433 if (temp4)
11434 delete arg4;
11435 }
11436 {
11437 if (temp11)
11438 delete arg11;
11439 }
11440 return resultobj;
11441 fail:
11442 {
11443 if (temp4)
11444 delete arg4;
11445 }
11446 {
11447 if (temp11)
11448 delete arg11;
11449 }
11450 return NULL;
11451 }
11452
11453
11454 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11455 PyObject *resultobj;
11456 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11457 int result;
11458 PyObject * obj0 = 0 ;
11459 char *kwnames[] = {
11460 (char *) "self", NULL
11461 };
11462
11463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11466 {
11467 PyThreadState* __tstate = wxPyBeginAllowThreads();
11468 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11469
11470 wxPyEndAllowThreads(__tstate);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 }
11473 resultobj = SWIG_From_int((int)result);
11474 return resultobj;
11475 fail:
11476 return NULL;
11477 }
11478
11479
11480 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11481 PyObject *resultobj;
11482 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11483 int arg2 ;
11484 PyObject * obj0 = 0 ;
11485 PyObject * obj1 = 0 ;
11486 char *kwnames[] = {
11487 (char *) "self",(char *) "value", NULL
11488 };
11489
11490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11493 arg2 = (int)SWIG_As_int(obj1);
11494 if (PyErr_Occurred()) SWIG_fail;
11495 {
11496 PyThreadState* __tstate = wxPyBeginAllowThreads();
11497 (arg1)->SetValue(arg2);
11498
11499 wxPyEndAllowThreads(__tstate);
11500 if (PyErr_Occurred()) SWIG_fail;
11501 }
11502 Py_INCREF(Py_None); resultobj = Py_None;
11503 return resultobj;
11504 fail:
11505 return NULL;
11506 }
11507
11508
11509 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) {
11510 PyObject *resultobj;
11511 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11512 wxString *arg2 = 0 ;
11513 bool temp2 = False ;
11514 PyObject * obj0 = 0 ;
11515 PyObject * obj1 = 0 ;
11516 char *kwnames[] = {
11517 (char *) "self",(char *) "text", NULL
11518 };
11519
11520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11523 {
11524 arg2 = wxString_in_helper(obj1);
11525 if (arg2 == NULL) SWIG_fail;
11526 temp2 = True;
11527 }
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 (arg1)->SetValue((wxString const &)*arg2);
11531
11532 wxPyEndAllowThreads(__tstate);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 Py_INCREF(Py_None); resultobj = Py_None;
11536 {
11537 if (temp2)
11538 delete arg2;
11539 }
11540 return resultobj;
11541 fail:
11542 {
11543 if (temp2)
11544 delete arg2;
11545 }
11546 return NULL;
11547 }
11548
11549
11550 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11551 PyObject *resultobj;
11552 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11553 int arg2 ;
11554 int arg3 ;
11555 PyObject * obj0 = 0 ;
11556 PyObject * obj1 = 0 ;
11557 PyObject * obj2 = 0 ;
11558 char *kwnames[] = {
11559 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11560 };
11561
11562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11565 arg2 = (int)SWIG_As_int(obj1);
11566 if (PyErr_Occurred()) SWIG_fail;
11567 arg3 = (int)SWIG_As_int(obj2);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 {
11570 PyThreadState* __tstate = wxPyBeginAllowThreads();
11571 (arg1)->SetRange(arg2,arg3);
11572
11573 wxPyEndAllowThreads(__tstate);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 Py_INCREF(Py_None); resultobj = Py_None;
11577 return resultobj;
11578 fail:
11579 return NULL;
11580 }
11581
11582
11583 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11584 PyObject *resultobj;
11585 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11586 int result;
11587 PyObject * obj0 = 0 ;
11588 char *kwnames[] = {
11589 (char *) "self", NULL
11590 };
11591
11592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11595 {
11596 PyThreadState* __tstate = wxPyBeginAllowThreads();
11597 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11598
11599 wxPyEndAllowThreads(__tstate);
11600 if (PyErr_Occurred()) SWIG_fail;
11601 }
11602 resultobj = SWIG_From_int((int)result);
11603 return resultobj;
11604 fail:
11605 return NULL;
11606 }
11607
11608
11609 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11610 PyObject *resultobj;
11611 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11612 int result;
11613 PyObject * obj0 = 0 ;
11614 char *kwnames[] = {
11615 (char *) "self", NULL
11616 };
11617
11618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11621 {
11622 PyThreadState* __tstate = wxPyBeginAllowThreads();
11623 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11624
11625 wxPyEndAllowThreads(__tstate);
11626 if (PyErr_Occurred()) SWIG_fail;
11627 }
11628 resultobj = SWIG_From_int((int)result);
11629 return resultobj;
11630 fail:
11631 return NULL;
11632 }
11633
11634
11635 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11636 PyObject *resultobj;
11637 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11638 long arg2 ;
11639 long arg3 ;
11640 PyObject * obj0 = 0 ;
11641 PyObject * obj1 = 0 ;
11642 PyObject * obj2 = 0 ;
11643 char *kwnames[] = {
11644 (char *) "self",(char *) "from",(char *) "to", NULL
11645 };
11646
11647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11650 arg2 = (long)SWIG_As_long(obj1);
11651 if (PyErr_Occurred()) SWIG_fail;
11652 arg3 = (long)SWIG_As_long(obj2);
11653 if (PyErr_Occurred()) SWIG_fail;
11654 {
11655 PyThreadState* __tstate = wxPyBeginAllowThreads();
11656 (arg1)->SetSelection(arg2,arg3);
11657
11658 wxPyEndAllowThreads(__tstate);
11659 if (PyErr_Occurred()) SWIG_fail;
11660 }
11661 Py_INCREF(Py_None); resultobj = Py_None;
11662 return resultobj;
11663 fail:
11664 return NULL;
11665 }
11666
11667
11668 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11669 PyObject *resultobj;
11670 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11671 wxVisualAttributes result;
11672 PyObject * obj0 = 0 ;
11673 char *kwnames[] = {
11674 (char *) "variant", NULL
11675 };
11676
11677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11678 if (obj0) {
11679 arg1 = (int)SWIG_As_int(obj0);
11680 if (PyErr_Occurred()) SWIG_fail;
11681 }
11682 {
11683 if (!wxPyCheckForApp()) SWIG_fail;
11684 PyThreadState* __tstate = wxPyBeginAllowThreads();
11685 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11686
11687 wxPyEndAllowThreads(__tstate);
11688 if (PyErr_Occurred()) SWIG_fail;
11689 }
11690 {
11691 wxVisualAttributes * resultptr;
11692 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11693 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11694 }
11695 return resultobj;
11696 fail:
11697 return NULL;
11698 }
11699
11700
11701 static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) {
11702 PyObject *obj;
11703 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11704 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11705 Py_INCREF(obj);
11706 return Py_BuildValue((char *)"");
11707 }
11708 static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11709 PyObject *resultobj;
11710 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11711 int arg2 = (int) 0 ;
11712 wxSpinEvent *result;
11713 PyObject * obj0 = 0 ;
11714 PyObject * obj1 = 0 ;
11715 char *kwnames[] = {
11716 (char *) "commandType",(char *) "winid", NULL
11717 };
11718
11719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11720 if (obj0) {
11721 arg1 = (wxEventType)SWIG_As_int(obj0);
11722 if (PyErr_Occurred()) SWIG_fail;
11723 }
11724 if (obj1) {
11725 arg2 = (int)SWIG_As_int(obj1);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 {
11729 PyThreadState* __tstate = wxPyBeginAllowThreads();
11730 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11731
11732 wxPyEndAllowThreads(__tstate);
11733 if (PyErr_Occurred()) SWIG_fail;
11734 }
11735 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11736 return resultobj;
11737 fail:
11738 return NULL;
11739 }
11740
11741
11742 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11743 PyObject *resultobj;
11744 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11745 int result;
11746 PyObject * obj0 = 0 ;
11747 char *kwnames[] = {
11748 (char *) "self", NULL
11749 };
11750
11751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11757
11758 wxPyEndAllowThreads(__tstate);
11759 if (PyErr_Occurred()) SWIG_fail;
11760 }
11761 resultobj = SWIG_From_int((int)result);
11762 return resultobj;
11763 fail:
11764 return NULL;
11765 }
11766
11767
11768 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11769 PyObject *resultobj;
11770 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11771 int arg2 ;
11772 PyObject * obj0 = 0 ;
11773 PyObject * obj1 = 0 ;
11774 char *kwnames[] = {
11775 (char *) "self",(char *) "pos", NULL
11776 };
11777
11778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11781 arg2 = (int)SWIG_As_int(obj1);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 {
11784 PyThreadState* __tstate = wxPyBeginAllowThreads();
11785 (arg1)->SetPosition(arg2);
11786
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 Py_INCREF(Py_None); resultobj = Py_None;
11791 return resultobj;
11792 fail:
11793 return NULL;
11794 }
11795
11796
11797 static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) {
11798 PyObject *obj;
11799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11800 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11801 Py_INCREF(obj);
11802 return Py_BuildValue((char *)"");
11803 }
11804 static int _wrap_RadioBoxNameStr_set(PyObject *) {
11805 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11806 return 1;
11807 }
11808
11809
11810 static PyObject *_wrap_RadioBoxNameStr_get() {
11811 PyObject *pyobj;
11812
11813 {
11814 #if wxUSE_UNICODE
11815 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11816 #else
11817 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11818 #endif
11819 }
11820 return pyobj;
11821 }
11822
11823
11824 static int _wrap_RadioButtonNameStr_set(PyObject *) {
11825 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11826 return 1;
11827 }
11828
11829
11830 static PyObject *_wrap_RadioButtonNameStr_get() {
11831 PyObject *pyobj;
11832
11833 {
11834 #if wxUSE_UNICODE
11835 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11836 #else
11837 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11838 #endif
11839 }
11840 return pyobj;
11841 }
11842
11843
11844 static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11845 PyObject *resultobj;
11846 wxWindow *arg1 = (wxWindow *) 0 ;
11847 int arg2 = (int) -1 ;
11848 wxString const &arg3_defvalue = wxPyEmptyString ;
11849 wxString *arg3 = (wxString *) &arg3_defvalue ;
11850 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11851 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11852 wxSize const &arg5_defvalue = wxDefaultSize ;
11853 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11854 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11855 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11856 int arg7 = (int) 0 ;
11857 long arg8 = (long) wxRA_HORIZONTAL ;
11858 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11859 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11860 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11861 wxString *arg10 = (wxString *) &arg10_defvalue ;
11862 wxRadioBox *result;
11863 bool temp3 = False ;
11864 wxPoint temp4 ;
11865 wxSize temp5 ;
11866 bool temp6 = False ;
11867 bool temp10 = False ;
11868 PyObject * obj0 = 0 ;
11869 PyObject * obj1 = 0 ;
11870 PyObject * obj2 = 0 ;
11871 PyObject * obj3 = 0 ;
11872 PyObject * obj4 = 0 ;
11873 PyObject * obj5 = 0 ;
11874 PyObject * obj6 = 0 ;
11875 PyObject * obj7 = 0 ;
11876 PyObject * obj8 = 0 ;
11877 PyObject * obj9 = 0 ;
11878 char *kwnames[] = {
11879 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11880 };
11881
11882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11885 if (obj1) {
11886 arg2 = (int)SWIG_As_int(obj1);
11887 if (PyErr_Occurred()) SWIG_fail;
11888 }
11889 if (obj2) {
11890 {
11891 arg3 = wxString_in_helper(obj2);
11892 if (arg3 == NULL) SWIG_fail;
11893 temp3 = True;
11894 }
11895 }
11896 if (obj3) {
11897 {
11898 arg4 = &temp4;
11899 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11900 }
11901 }
11902 if (obj4) {
11903 {
11904 arg5 = &temp5;
11905 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11906 }
11907 }
11908 if (obj5) {
11909 {
11910 if (! PySequence_Check(obj5)) {
11911 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11912 SWIG_fail;
11913 }
11914 arg6 = new wxArrayString;
11915 temp6 = True;
11916 int i, len=PySequence_Length(obj5);
11917 for (i=0; i<len; i++) {
11918 PyObject* item = PySequence_GetItem(obj5, i);
11919 #if wxUSE_UNICODE
11920 PyObject* str = PyObject_Unicode(item);
11921 #else
11922 PyObject* str = PyObject_Str(item);
11923 #endif
11924 if (PyErr_Occurred()) SWIG_fail;
11925 arg6->Add(Py2wxString(str));
11926 Py_DECREF(item);
11927 Py_DECREF(str);
11928 }
11929 }
11930 }
11931 if (obj6) {
11932 arg7 = (int)SWIG_As_int(obj6);
11933 if (PyErr_Occurred()) SWIG_fail;
11934 }
11935 if (obj7) {
11936 arg8 = (long)SWIG_As_long(obj7);
11937 if (PyErr_Occurred()) SWIG_fail;
11938 }
11939 if (obj8) {
11940 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11941 SWIG_POINTER_EXCEPTION | 0)) == -1)
11942 SWIG_fail;
11943 if (arg9 == NULL) {
11944 PyErr_SetString(PyExc_TypeError,"null reference");
11945 SWIG_fail;
11946 }
11947 }
11948 if (obj9) {
11949 {
11950 arg10 = wxString_in_helper(obj9);
11951 if (arg10 == NULL) SWIG_fail;
11952 temp10 = True;
11953 }
11954 }
11955 {
11956 if (!wxPyCheckForApp()) SWIG_fail;
11957 PyThreadState* __tstate = wxPyBeginAllowThreads();
11958 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);
11959
11960 wxPyEndAllowThreads(__tstate);
11961 if (PyErr_Occurred()) SWIG_fail;
11962 }
11963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11964 {
11965 if (temp3)
11966 delete arg3;
11967 }
11968 {
11969 if (temp6) delete arg6;
11970 }
11971 {
11972 if (temp10)
11973 delete arg10;
11974 }
11975 return resultobj;
11976 fail:
11977 {
11978 if (temp3)
11979 delete arg3;
11980 }
11981 {
11982 if (temp6) delete arg6;
11983 }
11984 {
11985 if (temp10)
11986 delete arg10;
11987 }
11988 return NULL;
11989 }
11990
11991
11992 static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11993 PyObject *resultobj;
11994 wxRadioBox *result;
11995 char *kwnames[] = {
11996 NULL
11997 };
11998
11999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
12000 {
12001 if (!wxPyCheckForApp()) SWIG_fail;
12002 PyThreadState* __tstate = wxPyBeginAllowThreads();
12003 result = (wxRadioBox *)new wxRadioBox();
12004
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
12009 return resultobj;
12010 fail:
12011 return NULL;
12012 }
12013
12014
12015 static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12016 PyObject *resultobj;
12017 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12018 wxWindow *arg2 = (wxWindow *) 0 ;
12019 int arg3 = (int) -1 ;
12020 wxString const &arg4_defvalue = wxPyEmptyString ;
12021 wxString *arg4 = (wxString *) &arg4_defvalue ;
12022 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12023 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12024 wxSize const &arg6_defvalue = wxDefaultSize ;
12025 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12026 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
12027 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
12028 int arg8 = (int) 0 ;
12029 long arg9 = (long) wxRA_HORIZONTAL ;
12030 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12031 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12032 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
12033 wxString *arg11 = (wxString *) &arg11_defvalue ;
12034 bool result;
12035 bool temp4 = False ;
12036 wxPoint temp5 ;
12037 wxSize temp6 ;
12038 bool temp7 = False ;
12039 bool temp11 = False ;
12040 PyObject * obj0 = 0 ;
12041 PyObject * obj1 = 0 ;
12042 PyObject * obj2 = 0 ;
12043 PyObject * obj3 = 0 ;
12044 PyObject * obj4 = 0 ;
12045 PyObject * obj5 = 0 ;
12046 PyObject * obj6 = 0 ;
12047 PyObject * obj7 = 0 ;
12048 PyObject * obj8 = 0 ;
12049 PyObject * obj9 = 0 ;
12050 PyObject * obj10 = 0 ;
12051 char *kwnames[] = {
12052 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
12053 };
12054
12055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12060 if (obj2) {
12061 arg3 = (int)SWIG_As_int(obj2);
12062 if (PyErr_Occurred()) SWIG_fail;
12063 }
12064 if (obj3) {
12065 {
12066 arg4 = wxString_in_helper(obj3);
12067 if (arg4 == NULL) SWIG_fail;
12068 temp4 = True;
12069 }
12070 }
12071 if (obj4) {
12072 {
12073 arg5 = &temp5;
12074 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12075 }
12076 }
12077 if (obj5) {
12078 {
12079 arg6 = &temp6;
12080 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12081 }
12082 }
12083 if (obj6) {
12084 {
12085 if (! PySequence_Check(obj6)) {
12086 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12087 SWIG_fail;
12088 }
12089 arg7 = new wxArrayString;
12090 temp7 = True;
12091 int i, len=PySequence_Length(obj6);
12092 for (i=0; i<len; i++) {
12093 PyObject* item = PySequence_GetItem(obj6, i);
12094 #if wxUSE_UNICODE
12095 PyObject* str = PyObject_Unicode(item);
12096 #else
12097 PyObject* str = PyObject_Str(item);
12098 #endif
12099 if (PyErr_Occurred()) SWIG_fail;
12100 arg7->Add(Py2wxString(str));
12101 Py_DECREF(item);
12102 Py_DECREF(str);
12103 }
12104 }
12105 }
12106 if (obj7) {
12107 arg8 = (int)SWIG_As_int(obj7);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 if (obj8) {
12111 arg9 = (long)SWIG_As_long(obj8);
12112 if (PyErr_Occurred()) SWIG_fail;
12113 }
12114 if (obj9) {
12115 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12116 SWIG_POINTER_EXCEPTION | 0)) == -1)
12117 SWIG_fail;
12118 if (arg10 == NULL) {
12119 PyErr_SetString(PyExc_TypeError,"null reference");
12120 SWIG_fail;
12121 }
12122 }
12123 if (obj10) {
12124 {
12125 arg11 = wxString_in_helper(obj10);
12126 if (arg11 == NULL) SWIG_fail;
12127 temp11 = True;
12128 }
12129 }
12130 {
12131 PyThreadState* __tstate = wxPyBeginAllowThreads();
12132 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);
12133
12134 wxPyEndAllowThreads(__tstate);
12135 if (PyErr_Occurred()) SWIG_fail;
12136 }
12137 {
12138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12139 }
12140 {
12141 if (temp4)
12142 delete arg4;
12143 }
12144 {
12145 if (temp7) delete arg7;
12146 }
12147 {
12148 if (temp11)
12149 delete arg11;
12150 }
12151 return resultobj;
12152 fail:
12153 {
12154 if (temp4)
12155 delete arg4;
12156 }
12157 {
12158 if (temp7) delete arg7;
12159 }
12160 {
12161 if (temp11)
12162 delete arg11;
12163 }
12164 return NULL;
12165 }
12166
12167
12168 static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12169 PyObject *resultobj;
12170 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12171 int arg2 ;
12172 PyObject * obj0 = 0 ;
12173 PyObject * obj1 = 0 ;
12174 char *kwnames[] = {
12175 (char *) "self",(char *) "n", NULL
12176 };
12177
12178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
12179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12181 arg2 = (int)SWIG_As_int(obj1);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 (arg1)->SetSelection(arg2);
12186
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 Py_INCREF(Py_None); resultobj = Py_None;
12191 return resultobj;
12192 fail:
12193 return NULL;
12194 }
12195
12196
12197 static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12198 PyObject *resultobj;
12199 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12200 int result;
12201 PyObject * obj0 = 0 ;
12202 char *kwnames[] = {
12203 (char *) "self", NULL
12204 };
12205
12206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
12207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 result = (int)((wxRadioBox const *)arg1)->GetSelection();
12212
12213 wxPyEndAllowThreads(__tstate);
12214 if (PyErr_Occurred()) SWIG_fail;
12215 }
12216 resultobj = SWIG_From_int((int)result);
12217 return resultobj;
12218 fail:
12219 return NULL;
12220 }
12221
12222
12223 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12224 PyObject *resultobj;
12225 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12226 wxString result;
12227 PyObject * obj0 = 0 ;
12228 char *kwnames[] = {
12229 (char *) "self", NULL
12230 };
12231
12232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12235 {
12236 PyThreadState* __tstate = wxPyBeginAllowThreads();
12237 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12238
12239 wxPyEndAllowThreads(__tstate);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 {
12243 #if wxUSE_UNICODE
12244 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12245 #else
12246 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12247 #endif
12248 }
12249 return resultobj;
12250 fail:
12251 return NULL;
12252 }
12253
12254
12255 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12256 PyObject *resultobj;
12257 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12258 wxString *arg2 = 0 ;
12259 bool result;
12260 bool temp2 = False ;
12261 PyObject * obj0 = 0 ;
12262 PyObject * obj1 = 0 ;
12263 char *kwnames[] = {
12264 (char *) "self",(char *) "s", NULL
12265 };
12266
12267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12270 {
12271 arg2 = wxString_in_helper(obj1);
12272 if (arg2 == NULL) SWIG_fail;
12273 temp2 = True;
12274 }
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12278
12279 wxPyEndAllowThreads(__tstate);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 {
12283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12284 }
12285 {
12286 if (temp2)
12287 delete arg2;
12288 }
12289 return resultobj;
12290 fail:
12291 {
12292 if (temp2)
12293 delete arg2;
12294 }
12295 return NULL;
12296 }
12297
12298
12299 static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
12300 PyObject *resultobj;
12301 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12302 int result;
12303 PyObject * obj0 = 0 ;
12304 char *kwnames[] = {
12305 (char *) "self", NULL
12306 };
12307
12308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12311 {
12312 PyThreadState* __tstate = wxPyBeginAllowThreads();
12313 result = (int)((wxRadioBox const *)arg1)->GetCount();
12314
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) SWIG_fail;
12317 }
12318 resultobj = SWIG_From_int((int)result);
12319 return resultobj;
12320 fail:
12321 return NULL;
12322 }
12323
12324
12325 static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
12326 PyObject *resultobj;
12327 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12328 wxString *arg2 = 0 ;
12329 int result;
12330 bool temp2 = False ;
12331 PyObject * obj0 = 0 ;
12332 PyObject * obj1 = 0 ;
12333 char *kwnames[] = {
12334 (char *) "self",(char *) "s", NULL
12335 };
12336
12337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12340 {
12341 arg2 = wxString_in_helper(obj1);
12342 if (arg2 == NULL) SWIG_fail;
12343 temp2 = True;
12344 }
12345 {
12346 PyThreadState* __tstate = wxPyBeginAllowThreads();
12347 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12348
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 resultobj = SWIG_From_int((int)result);
12353 {
12354 if (temp2)
12355 delete arg2;
12356 }
12357 return resultobj;
12358 fail:
12359 {
12360 if (temp2)
12361 delete arg2;
12362 }
12363 return NULL;
12364 }
12365
12366
12367 static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12368 PyObject *resultobj;
12369 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12370 int arg2 ;
12371 wxString result;
12372 PyObject * obj0 = 0 ;
12373 PyObject * obj1 = 0 ;
12374 char *kwnames[] = {
12375 (char *) "self",(char *) "n", NULL
12376 };
12377
12378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12381 arg2 = (int)SWIG_As_int(obj1);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 {
12384 PyThreadState* __tstate = wxPyBeginAllowThreads();
12385 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12386
12387 wxPyEndAllowThreads(__tstate);
12388 if (PyErr_Occurred()) SWIG_fail;
12389 }
12390 {
12391 #if wxUSE_UNICODE
12392 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12393 #else
12394 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12395 #endif
12396 }
12397 return resultobj;
12398 fail:
12399 return NULL;
12400 }
12401
12402
12403 static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
12404 PyObject *resultobj;
12405 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12406 int arg2 ;
12407 wxString *arg3 = 0 ;
12408 bool temp3 = False ;
12409 PyObject * obj0 = 0 ;
12410 PyObject * obj1 = 0 ;
12411 PyObject * obj2 = 0 ;
12412 char *kwnames[] = {
12413 (char *) "self",(char *) "n",(char *) "label", NULL
12414 };
12415
12416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12419 arg2 = (int)SWIG_As_int(obj1);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 {
12422 arg3 = wxString_in_helper(obj2);
12423 if (arg3 == NULL) SWIG_fail;
12424 temp3 = True;
12425 }
12426 {
12427 PyThreadState* __tstate = wxPyBeginAllowThreads();
12428 (arg1)->SetString(arg2,(wxString const &)*arg3);
12429
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 Py_INCREF(Py_None); resultobj = Py_None;
12434 {
12435 if (temp3)
12436 delete arg3;
12437 }
12438 return resultobj;
12439 fail:
12440 {
12441 if (temp3)
12442 delete arg3;
12443 }
12444 return NULL;
12445 }
12446
12447
12448 static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) {
12449 PyObject *resultobj;
12450 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12451 int arg2 ;
12452 bool arg3 = (bool) True ;
12453 PyObject * obj0 = 0 ;
12454 PyObject * obj1 = 0 ;
12455 PyObject * obj2 = 0 ;
12456 char *kwnames[] = {
12457 (char *) "self",(char *) "n",(char *) "enable", NULL
12458 };
12459
12460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12463 arg2 = (int)SWIG_As_int(obj1);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 if (obj2) {
12466 arg3 = (bool)SWIG_As_bool(obj2);
12467 if (PyErr_Occurred()) SWIG_fail;
12468 }
12469 {
12470 PyThreadState* __tstate = wxPyBeginAllowThreads();
12471 (arg1)->Enable(arg2,arg3);
12472
12473 wxPyEndAllowThreads(__tstate);
12474 if (PyErr_Occurred()) SWIG_fail;
12475 }
12476 Py_INCREF(Py_None); resultobj = Py_None;
12477 return resultobj;
12478 fail:
12479 return NULL;
12480 }
12481
12482
12483 static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) {
12484 PyObject *resultobj;
12485 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12486 int arg2 ;
12487 bool arg3 = (bool) True ;
12488 PyObject * obj0 = 0 ;
12489 PyObject * obj1 = 0 ;
12490 PyObject * obj2 = 0 ;
12491 char *kwnames[] = {
12492 (char *) "self",(char *) "n",(char *) "show", NULL
12493 };
12494
12495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12498 arg2 = (int)SWIG_As_int(obj1);
12499 if (PyErr_Occurred()) SWIG_fail;
12500 if (obj2) {
12501 arg3 = (bool)SWIG_As_bool(obj2);
12502 if (PyErr_Occurred()) SWIG_fail;
12503 }
12504 {
12505 PyThreadState* __tstate = wxPyBeginAllowThreads();
12506 (arg1)->Show(arg2,arg3);
12507
12508 wxPyEndAllowThreads(__tstate);
12509 if (PyErr_Occurred()) SWIG_fail;
12510 }
12511 Py_INCREF(Py_None); resultobj = Py_None;
12512 return resultobj;
12513 fail:
12514 return NULL;
12515 }
12516
12517
12518 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
12519 PyObject *resultobj;
12520 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12521 int result;
12522 PyObject * obj0 = 0 ;
12523 char *kwnames[] = {
12524 (char *) "self", NULL
12525 };
12526
12527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
12532 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12533
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 resultobj = SWIG_From_int((int)result);
12538 return resultobj;
12539 fail:
12540 return NULL;
12541 }
12542
12543
12544 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
12545 PyObject *resultobj;
12546 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12547 int result;
12548 PyObject * obj0 = 0 ;
12549 char *kwnames[] = {
12550 (char *) "self", NULL
12551 };
12552
12553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12556 {
12557 PyThreadState* __tstate = wxPyBeginAllowThreads();
12558 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12559
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = SWIG_From_int((int)result);
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj;
12572 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12573 int arg2 ;
12574 int arg3 ;
12575 long arg4 ;
12576 int result;
12577 PyObject * obj0 = 0 ;
12578 PyObject * obj1 = 0 ;
12579 PyObject * obj2 = 0 ;
12580 PyObject * obj3 = 0 ;
12581 char *kwnames[] = {
12582 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12583 };
12584
12585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12588 arg2 = (int)SWIG_As_int(obj1);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 arg3 = (int)SWIG_As_int(obj2);
12591 if (PyErr_Occurred()) SWIG_fail;
12592 arg4 = (long)SWIG_As_long(obj3);
12593 if (PyErr_Occurred()) SWIG_fail;
12594 {
12595 PyThreadState* __tstate = wxPyBeginAllowThreads();
12596 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12597
12598 wxPyEndAllowThreads(__tstate);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 }
12601 resultobj = SWIG_From_int((int)result);
12602 return resultobj;
12603 fail:
12604 return NULL;
12605 }
12606
12607
12608 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12609 PyObject *resultobj;
12610 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12611 wxVisualAttributes result;
12612 PyObject * obj0 = 0 ;
12613 char *kwnames[] = {
12614 (char *) "variant", NULL
12615 };
12616
12617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12618 if (obj0) {
12619 arg1 = (int)SWIG_As_int(obj0);
12620 if (PyErr_Occurred()) SWIG_fail;
12621 }
12622 {
12623 if (!wxPyCheckForApp()) SWIG_fail;
12624 PyThreadState* __tstate = wxPyBeginAllowThreads();
12625 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12626
12627 wxPyEndAllowThreads(__tstate);
12628 if (PyErr_Occurred()) SWIG_fail;
12629 }
12630 {
12631 wxVisualAttributes * resultptr;
12632 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12633 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12634 }
12635 return resultobj;
12636 fail:
12637 return NULL;
12638 }
12639
12640
12641 static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) {
12642 PyObject *obj;
12643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12644 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12645 Py_INCREF(obj);
12646 return Py_BuildValue((char *)"");
12647 }
12648 static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12649 PyObject *resultobj;
12650 wxWindow *arg1 = (wxWindow *) 0 ;
12651 int arg2 = (int) -1 ;
12652 wxString const &arg3_defvalue = wxPyEmptyString ;
12653 wxString *arg3 = (wxString *) &arg3_defvalue ;
12654 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12655 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12656 wxSize const &arg5_defvalue = wxDefaultSize ;
12657 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12658 long arg6 = (long) 0 ;
12659 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12660 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12661 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12662 wxString *arg8 = (wxString *) &arg8_defvalue ;
12663 wxRadioButton *result;
12664 bool temp3 = False ;
12665 wxPoint temp4 ;
12666 wxSize temp5 ;
12667 bool temp8 = False ;
12668 PyObject * obj0 = 0 ;
12669 PyObject * obj1 = 0 ;
12670 PyObject * obj2 = 0 ;
12671 PyObject * obj3 = 0 ;
12672 PyObject * obj4 = 0 ;
12673 PyObject * obj5 = 0 ;
12674 PyObject * obj6 = 0 ;
12675 PyObject * obj7 = 0 ;
12676 char *kwnames[] = {
12677 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12678 };
12679
12680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12683 if (obj1) {
12684 arg2 = (int)SWIG_As_int(obj1);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 if (obj2) {
12688 {
12689 arg3 = wxString_in_helper(obj2);
12690 if (arg3 == NULL) SWIG_fail;
12691 temp3 = True;
12692 }
12693 }
12694 if (obj3) {
12695 {
12696 arg4 = &temp4;
12697 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12698 }
12699 }
12700 if (obj4) {
12701 {
12702 arg5 = &temp5;
12703 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12704 }
12705 }
12706 if (obj5) {
12707 arg6 = (long)SWIG_As_long(obj5);
12708 if (PyErr_Occurred()) SWIG_fail;
12709 }
12710 if (obj6) {
12711 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12712 SWIG_POINTER_EXCEPTION | 0)) == -1)
12713 SWIG_fail;
12714 if (arg7 == NULL) {
12715 PyErr_SetString(PyExc_TypeError,"null reference");
12716 SWIG_fail;
12717 }
12718 }
12719 if (obj7) {
12720 {
12721 arg8 = wxString_in_helper(obj7);
12722 if (arg8 == NULL) SWIG_fail;
12723 temp8 = True;
12724 }
12725 }
12726 {
12727 if (!wxPyCheckForApp()) SWIG_fail;
12728 PyThreadState* __tstate = wxPyBeginAllowThreads();
12729 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12730
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12735 {
12736 if (temp3)
12737 delete arg3;
12738 }
12739 {
12740 if (temp8)
12741 delete arg8;
12742 }
12743 return resultobj;
12744 fail:
12745 {
12746 if (temp3)
12747 delete arg3;
12748 }
12749 {
12750 if (temp8)
12751 delete arg8;
12752 }
12753 return NULL;
12754 }
12755
12756
12757 static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12758 PyObject *resultobj;
12759 wxRadioButton *result;
12760 char *kwnames[] = {
12761 NULL
12762 };
12763
12764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12765 {
12766 if (!wxPyCheckForApp()) SWIG_fail;
12767 PyThreadState* __tstate = wxPyBeginAllowThreads();
12768 result = (wxRadioButton *)new wxRadioButton();
12769
12770 wxPyEndAllowThreads(__tstate);
12771 if (PyErr_Occurred()) SWIG_fail;
12772 }
12773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12774 return resultobj;
12775 fail:
12776 return NULL;
12777 }
12778
12779
12780 static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12781 PyObject *resultobj;
12782 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12783 wxWindow *arg2 = (wxWindow *) 0 ;
12784 int arg3 = (int) -1 ;
12785 wxString const &arg4_defvalue = wxPyEmptyString ;
12786 wxString *arg4 = (wxString *) &arg4_defvalue ;
12787 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12788 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12789 wxSize const &arg6_defvalue = wxDefaultSize ;
12790 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12791 long arg7 = (long) 0 ;
12792 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12793 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12794 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12795 wxString *arg9 = (wxString *) &arg9_defvalue ;
12796 bool result;
12797 bool temp4 = False ;
12798 wxPoint temp5 ;
12799 wxSize temp6 ;
12800 bool temp9 = False ;
12801 PyObject * obj0 = 0 ;
12802 PyObject * obj1 = 0 ;
12803 PyObject * obj2 = 0 ;
12804 PyObject * obj3 = 0 ;
12805 PyObject * obj4 = 0 ;
12806 PyObject * obj5 = 0 ;
12807 PyObject * obj6 = 0 ;
12808 PyObject * obj7 = 0 ;
12809 PyObject * obj8 = 0 ;
12810 char *kwnames[] = {
12811 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12812 };
12813
12814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12817 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12819 if (obj2) {
12820 arg3 = (int)SWIG_As_int(obj2);
12821 if (PyErr_Occurred()) SWIG_fail;
12822 }
12823 if (obj3) {
12824 {
12825 arg4 = wxString_in_helper(obj3);
12826 if (arg4 == NULL) SWIG_fail;
12827 temp4 = True;
12828 }
12829 }
12830 if (obj4) {
12831 {
12832 arg5 = &temp5;
12833 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12834 }
12835 }
12836 if (obj5) {
12837 {
12838 arg6 = &temp6;
12839 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12840 }
12841 }
12842 if (obj6) {
12843 arg7 = (long)SWIG_As_long(obj6);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 if (obj7) {
12847 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12848 SWIG_POINTER_EXCEPTION | 0)) == -1)
12849 SWIG_fail;
12850 if (arg8 == NULL) {
12851 PyErr_SetString(PyExc_TypeError,"null reference");
12852 SWIG_fail;
12853 }
12854 }
12855 if (obj8) {
12856 {
12857 arg9 = wxString_in_helper(obj8);
12858 if (arg9 == NULL) SWIG_fail;
12859 temp9 = True;
12860 }
12861 }
12862 {
12863 PyThreadState* __tstate = wxPyBeginAllowThreads();
12864 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12865
12866 wxPyEndAllowThreads(__tstate);
12867 if (PyErr_Occurred()) SWIG_fail;
12868 }
12869 {
12870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12871 }
12872 {
12873 if (temp4)
12874 delete arg4;
12875 }
12876 {
12877 if (temp9)
12878 delete arg9;
12879 }
12880 return resultobj;
12881 fail:
12882 {
12883 if (temp4)
12884 delete arg4;
12885 }
12886 {
12887 if (temp9)
12888 delete arg9;
12889 }
12890 return NULL;
12891 }
12892
12893
12894 static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12895 PyObject *resultobj;
12896 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12897 bool result;
12898 PyObject * obj0 = 0 ;
12899 char *kwnames[] = {
12900 (char *) "self", NULL
12901 };
12902
12903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12906 {
12907 PyThreadState* __tstate = wxPyBeginAllowThreads();
12908 result = (bool)(arg1)->GetValue();
12909
12910 wxPyEndAllowThreads(__tstate);
12911 if (PyErr_Occurred()) SWIG_fail;
12912 }
12913 {
12914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12915 }
12916 return resultobj;
12917 fail:
12918 return NULL;
12919 }
12920
12921
12922 static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12923 PyObject *resultobj;
12924 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12925 bool arg2 ;
12926 PyObject * obj0 = 0 ;
12927 PyObject * obj1 = 0 ;
12928 char *kwnames[] = {
12929 (char *) "self",(char *) "value", NULL
12930 };
12931
12932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12935 arg2 = (bool)SWIG_As_bool(obj1);
12936 if (PyErr_Occurred()) SWIG_fail;
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 (arg1)->SetValue(arg2);
12940
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 Py_INCREF(Py_None); resultobj = Py_None;
12945 return resultobj;
12946 fail:
12947 return NULL;
12948 }
12949
12950
12951 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12952 PyObject *resultobj;
12953 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12954 wxVisualAttributes result;
12955 PyObject * obj0 = 0 ;
12956 char *kwnames[] = {
12957 (char *) "variant", NULL
12958 };
12959
12960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12961 if (obj0) {
12962 arg1 = (int)SWIG_As_int(obj0);
12963 if (PyErr_Occurred()) SWIG_fail;
12964 }
12965 {
12966 if (!wxPyCheckForApp()) SWIG_fail;
12967 PyThreadState* __tstate = wxPyBeginAllowThreads();
12968 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12969
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 {
12974 wxVisualAttributes * resultptr;
12975 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12976 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12977 }
12978 return resultobj;
12979 fail:
12980 return NULL;
12981 }
12982
12983
12984 static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) {
12985 PyObject *obj;
12986 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12987 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12988 Py_INCREF(obj);
12989 return Py_BuildValue((char *)"");
12990 }
12991 static int _wrap_SliderNameStr_set(PyObject *) {
12992 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12993 return 1;
12994 }
12995
12996
12997 static PyObject *_wrap_SliderNameStr_get() {
12998 PyObject *pyobj;
12999
13000 {
13001 #if wxUSE_UNICODE
13002 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13003 #else
13004 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13005 #endif
13006 }
13007 return pyobj;
13008 }
13009
13010
13011 static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) {
13012 PyObject *resultobj;
13013 wxWindow *arg1 = (wxWindow *) 0 ;
13014 int arg2 = (int) -1 ;
13015 int arg3 = (int) 0 ;
13016 int arg4 = (int) 0 ;
13017 int arg5 = (int) 100 ;
13018 wxPoint const &arg6_defvalue = wxDefaultPosition ;
13019 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
13020 wxSize const &arg7_defvalue = wxDefaultSize ;
13021 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
13022 long arg8 = (long) wxSL_HORIZONTAL ;
13023 wxValidator const &arg9_defvalue = wxDefaultValidator ;
13024 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
13025 wxString const &arg10_defvalue = wxPySliderNameStr ;
13026 wxString *arg10 = (wxString *) &arg10_defvalue ;
13027 wxSlider *result;
13028 wxPoint temp6 ;
13029 wxSize temp7 ;
13030 bool temp10 = False ;
13031 PyObject * obj0 = 0 ;
13032 PyObject * obj1 = 0 ;
13033 PyObject * obj2 = 0 ;
13034 PyObject * obj3 = 0 ;
13035 PyObject * obj4 = 0 ;
13036 PyObject * obj5 = 0 ;
13037 PyObject * obj6 = 0 ;
13038 PyObject * obj7 = 0 ;
13039 PyObject * obj8 = 0 ;
13040 PyObject * obj9 = 0 ;
13041 char *kwnames[] = {
13042 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13043 };
13044
13045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
13046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13048 if (obj1) {
13049 arg2 = (int)SWIG_As_int(obj1);
13050 if (PyErr_Occurred()) SWIG_fail;
13051 }
13052 if (obj2) {
13053 arg3 = (int)SWIG_As_int(obj2);
13054 if (PyErr_Occurred()) SWIG_fail;
13055 }
13056 if (obj3) {
13057 arg4 = (int)SWIG_As_int(obj3);
13058 if (PyErr_Occurred()) SWIG_fail;
13059 }
13060 if (obj4) {
13061 arg5 = (int)SWIG_As_int(obj4);
13062 if (PyErr_Occurred()) SWIG_fail;
13063 }
13064 if (obj5) {
13065 {
13066 arg6 = &temp6;
13067 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
13068 }
13069 }
13070 if (obj6) {
13071 {
13072 arg7 = &temp7;
13073 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
13074 }
13075 }
13076 if (obj7) {
13077 arg8 = (long)SWIG_As_long(obj7);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 if (obj8) {
13081 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
13082 SWIG_POINTER_EXCEPTION | 0)) == -1)
13083 SWIG_fail;
13084 if (arg9 == NULL) {
13085 PyErr_SetString(PyExc_TypeError,"null reference");
13086 SWIG_fail;
13087 }
13088 }
13089 if (obj9) {
13090 {
13091 arg10 = wxString_in_helper(obj9);
13092 if (arg10 == NULL) SWIG_fail;
13093 temp10 = True;
13094 }
13095 }
13096 {
13097 if (!wxPyCheckForApp()) SWIG_fail;
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
13100
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13105 {
13106 if (temp10)
13107 delete arg10;
13108 }
13109 return resultobj;
13110 fail:
13111 {
13112 if (temp10)
13113 delete arg10;
13114 }
13115 return NULL;
13116 }
13117
13118
13119 static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) {
13120 PyObject *resultobj;
13121 wxSlider *result;
13122 char *kwnames[] = {
13123 NULL
13124 };
13125
13126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
13127 {
13128 if (!wxPyCheckForApp()) SWIG_fail;
13129 PyThreadState* __tstate = wxPyBeginAllowThreads();
13130 result = (wxSlider *)new wxSlider();
13131
13132 wxPyEndAllowThreads(__tstate);
13133 if (PyErr_Occurred()) SWIG_fail;
13134 }
13135 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13136 return resultobj;
13137 fail:
13138 return NULL;
13139 }
13140
13141
13142 static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13143 PyObject *resultobj;
13144 wxSlider *arg1 = (wxSlider *) 0 ;
13145 wxWindow *arg2 = (wxWindow *) 0 ;
13146 int arg3 = (int) -1 ;
13147 int arg4 = (int) 0 ;
13148 int arg5 = (int) 0 ;
13149 int arg6 = (int) 100 ;
13150 wxPoint const &arg7_defvalue = wxDefaultPosition ;
13151 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
13152 wxSize const &arg8_defvalue = wxDefaultSize ;
13153 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
13154 long arg9 = (long) wxSL_HORIZONTAL ;
13155 wxValidator const &arg10_defvalue = wxDefaultValidator ;
13156 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
13157 wxString const &arg11_defvalue = wxPySliderNameStr ;
13158 wxString *arg11 = (wxString *) &arg11_defvalue ;
13159 bool result;
13160 wxPoint temp7 ;
13161 wxSize temp8 ;
13162 bool temp11 = False ;
13163 PyObject * obj0 = 0 ;
13164 PyObject * obj1 = 0 ;
13165 PyObject * obj2 = 0 ;
13166 PyObject * obj3 = 0 ;
13167 PyObject * obj4 = 0 ;
13168 PyObject * obj5 = 0 ;
13169 PyObject * obj6 = 0 ;
13170 PyObject * obj7 = 0 ;
13171 PyObject * obj8 = 0 ;
13172 PyObject * obj9 = 0 ;
13173 PyObject * obj10 = 0 ;
13174 char *kwnames[] = {
13175 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13176 };
13177
13178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
13179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13181 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13183 if (obj2) {
13184 arg3 = (int)SWIG_As_int(obj2);
13185 if (PyErr_Occurred()) SWIG_fail;
13186 }
13187 if (obj3) {
13188 arg4 = (int)SWIG_As_int(obj3);
13189 if (PyErr_Occurred()) SWIG_fail;
13190 }
13191 if (obj4) {
13192 arg5 = (int)SWIG_As_int(obj4);
13193 if (PyErr_Occurred()) SWIG_fail;
13194 }
13195 if (obj5) {
13196 arg6 = (int)SWIG_As_int(obj5);
13197 if (PyErr_Occurred()) SWIG_fail;
13198 }
13199 if (obj6) {
13200 {
13201 arg7 = &temp7;
13202 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
13203 }
13204 }
13205 if (obj7) {
13206 {
13207 arg8 = &temp8;
13208 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
13209 }
13210 }
13211 if (obj8) {
13212 arg9 = (long)SWIG_As_long(obj8);
13213 if (PyErr_Occurred()) SWIG_fail;
13214 }
13215 if (obj9) {
13216 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
13217 SWIG_POINTER_EXCEPTION | 0)) == -1)
13218 SWIG_fail;
13219 if (arg10 == NULL) {
13220 PyErr_SetString(PyExc_TypeError,"null reference");
13221 SWIG_fail;
13222 }
13223 }
13224 if (obj10) {
13225 {
13226 arg11 = wxString_in_helper(obj10);
13227 if (arg11 == NULL) SWIG_fail;
13228 temp11 = True;
13229 }
13230 }
13231 {
13232 PyThreadState* __tstate = wxPyBeginAllowThreads();
13233 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
13234
13235 wxPyEndAllowThreads(__tstate);
13236 if (PyErr_Occurred()) SWIG_fail;
13237 }
13238 {
13239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13240 }
13241 {
13242 if (temp11)
13243 delete arg11;
13244 }
13245 return resultobj;
13246 fail:
13247 {
13248 if (temp11)
13249 delete arg11;
13250 }
13251 return NULL;
13252 }
13253
13254
13255 static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj;
13257 wxSlider *arg1 = (wxSlider *) 0 ;
13258 int result;
13259 PyObject * obj0 = 0 ;
13260 char *kwnames[] = {
13261 (char *) "self", NULL
13262 };
13263
13264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13267 {
13268 PyThreadState* __tstate = wxPyBeginAllowThreads();
13269 result = (int)((wxSlider const *)arg1)->GetValue();
13270
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 resultobj = SWIG_From_int((int)result);
13275 return resultobj;
13276 fail:
13277 return NULL;
13278 }
13279
13280
13281 static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13282 PyObject *resultobj;
13283 wxSlider *arg1 = (wxSlider *) 0 ;
13284 int arg2 ;
13285 PyObject * obj0 = 0 ;
13286 PyObject * obj1 = 0 ;
13287 char *kwnames[] = {
13288 (char *) "self",(char *) "value", NULL
13289 };
13290
13291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13294 arg2 = (int)SWIG_As_int(obj1);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 {
13297 PyThreadState* __tstate = wxPyBeginAllowThreads();
13298 (arg1)->SetValue(arg2);
13299
13300 wxPyEndAllowThreads(__tstate);
13301 if (PyErr_Occurred()) SWIG_fail;
13302 }
13303 Py_INCREF(Py_None); resultobj = Py_None;
13304 return resultobj;
13305 fail:
13306 return NULL;
13307 }
13308
13309
13310 static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
13311 PyObject *resultobj;
13312 wxSlider *arg1 = (wxSlider *) 0 ;
13313 int arg2 ;
13314 int arg3 ;
13315 PyObject * obj0 = 0 ;
13316 PyObject * obj1 = 0 ;
13317 PyObject * obj2 = 0 ;
13318 char *kwnames[] = {
13319 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13320 };
13321
13322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13325 arg2 = (int)SWIG_As_int(obj1);
13326 if (PyErr_Occurred()) SWIG_fail;
13327 arg3 = (int)SWIG_As_int(obj2);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 {
13330 PyThreadState* __tstate = wxPyBeginAllowThreads();
13331 (arg1)->SetRange(arg2,arg3);
13332
13333 wxPyEndAllowThreads(__tstate);
13334 if (PyErr_Occurred()) SWIG_fail;
13335 }
13336 Py_INCREF(Py_None); resultobj = Py_None;
13337 return resultobj;
13338 fail:
13339 return NULL;
13340 }
13341
13342
13343 static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13344 PyObject *resultobj;
13345 wxSlider *arg1 = (wxSlider *) 0 ;
13346 int result;
13347 PyObject * obj0 = 0 ;
13348 char *kwnames[] = {
13349 (char *) "self", NULL
13350 };
13351
13352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13355 {
13356 PyThreadState* __tstate = wxPyBeginAllowThreads();
13357 result = (int)((wxSlider const *)arg1)->GetMin();
13358
13359 wxPyEndAllowThreads(__tstate);
13360 if (PyErr_Occurred()) SWIG_fail;
13361 }
13362 resultobj = SWIG_From_int((int)result);
13363 return resultobj;
13364 fail:
13365 return NULL;
13366 }
13367
13368
13369 static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13370 PyObject *resultobj;
13371 wxSlider *arg1 = (wxSlider *) 0 ;
13372 int result;
13373 PyObject * obj0 = 0 ;
13374 char *kwnames[] = {
13375 (char *) "self", NULL
13376 };
13377
13378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13381 {
13382 PyThreadState* __tstate = wxPyBeginAllowThreads();
13383 result = (int)((wxSlider const *)arg1)->GetMax();
13384
13385 wxPyEndAllowThreads(__tstate);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 resultobj = SWIG_From_int((int)result);
13389 return resultobj;
13390 fail:
13391 return NULL;
13392 }
13393
13394
13395 static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13396 PyObject *resultobj;
13397 wxSlider *arg1 = (wxSlider *) 0 ;
13398 int arg2 ;
13399 PyObject * obj0 = 0 ;
13400 PyObject * obj1 = 0 ;
13401 char *kwnames[] = {
13402 (char *) "self",(char *) "minValue", NULL
13403 };
13404
13405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13408 arg2 = (int)SWIG_As_int(obj1);
13409 if (PyErr_Occurred()) SWIG_fail;
13410 {
13411 PyThreadState* __tstate = wxPyBeginAllowThreads();
13412 (arg1)->SetMin(arg2);
13413
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 Py_INCREF(Py_None); resultobj = Py_None;
13418 return resultobj;
13419 fail:
13420 return NULL;
13421 }
13422
13423
13424 static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13425 PyObject *resultobj;
13426 wxSlider *arg1 = (wxSlider *) 0 ;
13427 int arg2 ;
13428 PyObject * obj0 = 0 ;
13429 PyObject * obj1 = 0 ;
13430 char *kwnames[] = {
13431 (char *) "self",(char *) "maxValue", NULL
13432 };
13433
13434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13437 arg2 = (int)SWIG_As_int(obj1);
13438 if (PyErr_Occurred()) SWIG_fail;
13439 {
13440 PyThreadState* __tstate = wxPyBeginAllowThreads();
13441 (arg1)->SetMax(arg2);
13442
13443 wxPyEndAllowThreads(__tstate);
13444 if (PyErr_Occurred()) SWIG_fail;
13445 }
13446 Py_INCREF(Py_None); resultobj = Py_None;
13447 return resultobj;
13448 fail:
13449 return NULL;
13450 }
13451
13452
13453 static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13454 PyObject *resultobj;
13455 wxSlider *arg1 = (wxSlider *) 0 ;
13456 int arg2 ;
13457 PyObject * obj0 = 0 ;
13458 PyObject * obj1 = 0 ;
13459 char *kwnames[] = {
13460 (char *) "self",(char *) "lineSize", NULL
13461 };
13462
13463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13466 arg2 = (int)SWIG_As_int(obj1);
13467 if (PyErr_Occurred()) SWIG_fail;
13468 {
13469 PyThreadState* __tstate = wxPyBeginAllowThreads();
13470 (arg1)->SetLineSize(arg2);
13471
13472 wxPyEndAllowThreads(__tstate);
13473 if (PyErr_Occurred()) SWIG_fail;
13474 }
13475 Py_INCREF(Py_None); resultobj = Py_None;
13476 return resultobj;
13477 fail:
13478 return NULL;
13479 }
13480
13481
13482 static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13483 PyObject *resultobj;
13484 wxSlider *arg1 = (wxSlider *) 0 ;
13485 int arg2 ;
13486 PyObject * obj0 = 0 ;
13487 PyObject * obj1 = 0 ;
13488 char *kwnames[] = {
13489 (char *) "self",(char *) "pageSize", NULL
13490 };
13491
13492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13495 arg2 = (int)SWIG_As_int(obj1);
13496 if (PyErr_Occurred()) SWIG_fail;
13497 {
13498 PyThreadState* __tstate = wxPyBeginAllowThreads();
13499 (arg1)->SetPageSize(arg2);
13500
13501 wxPyEndAllowThreads(__tstate);
13502 if (PyErr_Occurred()) SWIG_fail;
13503 }
13504 Py_INCREF(Py_None); resultobj = Py_None;
13505 return resultobj;
13506 fail:
13507 return NULL;
13508 }
13509
13510
13511 static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13512 PyObject *resultobj;
13513 wxSlider *arg1 = (wxSlider *) 0 ;
13514 int result;
13515 PyObject * obj0 = 0 ;
13516 char *kwnames[] = {
13517 (char *) "self", NULL
13518 };
13519
13520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13523 {
13524 PyThreadState* __tstate = wxPyBeginAllowThreads();
13525 result = (int)((wxSlider const *)arg1)->GetLineSize();
13526
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
13530 resultobj = SWIG_From_int((int)result);
13531 return resultobj;
13532 fail:
13533 return NULL;
13534 }
13535
13536
13537 static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13538 PyObject *resultobj;
13539 wxSlider *arg1 = (wxSlider *) 0 ;
13540 int result;
13541 PyObject * obj0 = 0 ;
13542 char *kwnames[] = {
13543 (char *) "self", NULL
13544 };
13545
13546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13549 {
13550 PyThreadState* __tstate = wxPyBeginAllowThreads();
13551 result = (int)((wxSlider const *)arg1)->GetPageSize();
13552
13553 wxPyEndAllowThreads(__tstate);
13554 if (PyErr_Occurred()) SWIG_fail;
13555 }
13556 resultobj = SWIG_From_int((int)result);
13557 return resultobj;
13558 fail:
13559 return NULL;
13560 }
13561
13562
13563 static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13564 PyObject *resultobj;
13565 wxSlider *arg1 = (wxSlider *) 0 ;
13566 int arg2 ;
13567 PyObject * obj0 = 0 ;
13568 PyObject * obj1 = 0 ;
13569 char *kwnames[] = {
13570 (char *) "self",(char *) "lenPixels", NULL
13571 };
13572
13573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13576 arg2 = (int)SWIG_As_int(obj1);
13577 if (PyErr_Occurred()) SWIG_fail;
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 (arg1)->SetThumbLength(arg2);
13581
13582 wxPyEndAllowThreads(__tstate);
13583 if (PyErr_Occurred()) SWIG_fail;
13584 }
13585 Py_INCREF(Py_None); resultobj = Py_None;
13586 return resultobj;
13587 fail:
13588 return NULL;
13589 }
13590
13591
13592 static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj;
13594 wxSlider *arg1 = (wxSlider *) 0 ;
13595 int result;
13596 PyObject * obj0 = 0 ;
13597 char *kwnames[] = {
13598 (char *) "self", NULL
13599 };
13600
13601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13607
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
13611 resultobj = SWIG_From_int((int)result);
13612 return resultobj;
13613 fail:
13614 return NULL;
13615 }
13616
13617
13618 static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13619 PyObject *resultobj;
13620 wxSlider *arg1 = (wxSlider *) 0 ;
13621 int arg2 ;
13622 int arg3 = (int) 1 ;
13623 PyObject * obj0 = 0 ;
13624 PyObject * obj1 = 0 ;
13625 PyObject * obj2 = 0 ;
13626 char *kwnames[] = {
13627 (char *) "self",(char *) "n",(char *) "pos", NULL
13628 };
13629
13630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13633 arg2 = (int)SWIG_As_int(obj1);
13634 if (PyErr_Occurred()) SWIG_fail;
13635 if (obj2) {
13636 arg3 = (int)SWIG_As_int(obj2);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 }
13639 {
13640 PyThreadState* __tstate = wxPyBeginAllowThreads();
13641 (arg1)->SetTickFreq(arg2,arg3);
13642
13643 wxPyEndAllowThreads(__tstate);
13644 if (PyErr_Occurred()) SWIG_fail;
13645 }
13646 Py_INCREF(Py_None); resultobj = Py_None;
13647 return resultobj;
13648 fail:
13649 return NULL;
13650 }
13651
13652
13653 static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13654 PyObject *resultobj;
13655 wxSlider *arg1 = (wxSlider *) 0 ;
13656 int result;
13657 PyObject * obj0 = 0 ;
13658 char *kwnames[] = {
13659 (char *) "self", NULL
13660 };
13661
13662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13665 {
13666 PyThreadState* __tstate = wxPyBeginAllowThreads();
13667 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13668
13669 wxPyEndAllowThreads(__tstate);
13670 if (PyErr_Occurred()) SWIG_fail;
13671 }
13672 resultobj = SWIG_From_int((int)result);
13673 return resultobj;
13674 fail:
13675 return NULL;
13676 }
13677
13678
13679 static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) {
13680 PyObject *resultobj;
13681 wxSlider *arg1 = (wxSlider *) 0 ;
13682 PyObject * obj0 = 0 ;
13683 char *kwnames[] = {
13684 (char *) "self", NULL
13685 };
13686
13687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13690 {
13691 PyThreadState* __tstate = wxPyBeginAllowThreads();
13692 (arg1)->ClearTicks();
13693
13694 wxPyEndAllowThreads(__tstate);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 Py_INCREF(Py_None); resultobj = Py_None;
13698 return resultobj;
13699 fail:
13700 return NULL;
13701 }
13702
13703
13704 static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) {
13705 PyObject *resultobj;
13706 wxSlider *arg1 = (wxSlider *) 0 ;
13707 int arg2 ;
13708 PyObject * obj0 = 0 ;
13709 PyObject * obj1 = 0 ;
13710 char *kwnames[] = {
13711 (char *) "self",(char *) "tickPos", NULL
13712 };
13713
13714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13717 arg2 = (int)SWIG_As_int(obj1);
13718 if (PyErr_Occurred()) SWIG_fail;
13719 {
13720 PyThreadState* __tstate = wxPyBeginAllowThreads();
13721 (arg1)->SetTick(arg2);
13722
13723 wxPyEndAllowThreads(__tstate);
13724 if (PyErr_Occurred()) SWIG_fail;
13725 }
13726 Py_INCREF(Py_None); resultobj = Py_None;
13727 return resultobj;
13728 fail:
13729 return NULL;
13730 }
13731
13732
13733 static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) {
13734 PyObject *resultobj;
13735 wxSlider *arg1 = (wxSlider *) 0 ;
13736 PyObject * obj0 = 0 ;
13737 char *kwnames[] = {
13738 (char *) "self", NULL
13739 };
13740
13741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13744 {
13745 PyThreadState* __tstate = wxPyBeginAllowThreads();
13746 (arg1)->ClearSel();
13747
13748 wxPyEndAllowThreads(__tstate);
13749 if (PyErr_Occurred()) SWIG_fail;
13750 }
13751 Py_INCREF(Py_None); resultobj = Py_None;
13752 return resultobj;
13753 fail:
13754 return NULL;
13755 }
13756
13757
13758 static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) {
13759 PyObject *resultobj;
13760 wxSlider *arg1 = (wxSlider *) 0 ;
13761 int result;
13762 PyObject * obj0 = 0 ;
13763 char *kwnames[] = {
13764 (char *) "self", NULL
13765 };
13766
13767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13770 {
13771 PyThreadState* __tstate = wxPyBeginAllowThreads();
13772 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13773
13774 wxPyEndAllowThreads(__tstate);
13775 if (PyErr_Occurred()) SWIG_fail;
13776 }
13777 resultobj = SWIG_From_int((int)result);
13778 return resultobj;
13779 fail:
13780 return NULL;
13781 }
13782
13783
13784 static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) {
13785 PyObject *resultobj;
13786 wxSlider *arg1 = (wxSlider *) 0 ;
13787 int result;
13788 PyObject * obj0 = 0 ;
13789 char *kwnames[] = {
13790 (char *) "self", NULL
13791 };
13792
13793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13796 {
13797 PyThreadState* __tstate = wxPyBeginAllowThreads();
13798 result = (int)((wxSlider const *)arg1)->GetSelStart();
13799
13800 wxPyEndAllowThreads(__tstate);
13801 if (PyErr_Occurred()) SWIG_fail;
13802 }
13803 resultobj = SWIG_From_int((int)result);
13804 return resultobj;
13805 fail:
13806 return NULL;
13807 }
13808
13809
13810 static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13811 PyObject *resultobj;
13812 wxSlider *arg1 = (wxSlider *) 0 ;
13813 int arg2 ;
13814 int arg3 ;
13815 PyObject * obj0 = 0 ;
13816 PyObject * obj1 = 0 ;
13817 PyObject * obj2 = 0 ;
13818 char *kwnames[] = {
13819 (char *) "self",(char *) "min",(char *) "max", NULL
13820 };
13821
13822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13825 arg2 = (int)SWIG_As_int(obj1);
13826 if (PyErr_Occurred()) SWIG_fail;
13827 arg3 = (int)SWIG_As_int(obj2);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 {
13830 PyThreadState* __tstate = wxPyBeginAllowThreads();
13831 (arg1)->SetSelection(arg2,arg3);
13832
13833 wxPyEndAllowThreads(__tstate);
13834 if (PyErr_Occurred()) SWIG_fail;
13835 }
13836 Py_INCREF(Py_None); resultobj = Py_None;
13837 return resultobj;
13838 fail:
13839 return NULL;
13840 }
13841
13842
13843 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
13844 PyObject *resultobj;
13845 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13846 wxVisualAttributes result;
13847 PyObject * obj0 = 0 ;
13848 char *kwnames[] = {
13849 (char *) "variant", NULL
13850 };
13851
13852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13853 if (obj0) {
13854 arg1 = (int)SWIG_As_int(obj0);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 {
13858 if (!wxPyCheckForApp()) SWIG_fail;
13859 PyThreadState* __tstate = wxPyBeginAllowThreads();
13860 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13861
13862 wxPyEndAllowThreads(__tstate);
13863 if (PyErr_Occurred()) SWIG_fail;
13864 }
13865 {
13866 wxVisualAttributes * resultptr;
13867 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13868 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13869 }
13870 return resultobj;
13871 fail:
13872 return NULL;
13873 }
13874
13875
13876 static PyObject * Slider_swigregister(PyObject *, PyObject *args) {
13877 PyObject *obj;
13878 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13879 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13880 Py_INCREF(obj);
13881 return Py_BuildValue((char *)"");
13882 }
13883 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
13884 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13885 return 1;
13886 }
13887
13888
13889 static PyObject *_wrap_ToggleButtonNameStr_get() {
13890 PyObject *pyobj;
13891
13892 {
13893 #if wxUSE_UNICODE
13894 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13895 #else
13896 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13897 #endif
13898 }
13899 return pyobj;
13900 }
13901
13902
13903 static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
13904 PyObject *resultobj;
13905 wxWindow *arg1 = (wxWindow *) 0 ;
13906 int arg2 = (int) -1 ;
13907 wxString const &arg3_defvalue = wxPyEmptyString ;
13908 wxString *arg3 = (wxString *) &arg3_defvalue ;
13909 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13910 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13911 wxSize const &arg5_defvalue = wxDefaultSize ;
13912 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13913 long arg6 = (long) 0 ;
13914 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13915 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13916 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13917 wxString *arg8 = (wxString *) &arg8_defvalue ;
13918 wxToggleButton *result;
13919 bool temp3 = False ;
13920 wxPoint temp4 ;
13921 wxSize temp5 ;
13922 bool temp8 = False ;
13923 PyObject * obj0 = 0 ;
13924 PyObject * obj1 = 0 ;
13925 PyObject * obj2 = 0 ;
13926 PyObject * obj3 = 0 ;
13927 PyObject * obj4 = 0 ;
13928 PyObject * obj5 = 0 ;
13929 PyObject * obj6 = 0 ;
13930 PyObject * obj7 = 0 ;
13931 char *kwnames[] = {
13932 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13933 };
13934
13935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13938 if (obj1) {
13939 arg2 = (int)SWIG_As_int(obj1);
13940 if (PyErr_Occurred()) SWIG_fail;
13941 }
13942 if (obj2) {
13943 {
13944 arg3 = wxString_in_helper(obj2);
13945 if (arg3 == NULL) SWIG_fail;
13946 temp3 = True;
13947 }
13948 }
13949 if (obj3) {
13950 {
13951 arg4 = &temp4;
13952 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13953 }
13954 }
13955 if (obj4) {
13956 {
13957 arg5 = &temp5;
13958 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13959 }
13960 }
13961 if (obj5) {
13962 arg6 = (long)SWIG_As_long(obj5);
13963 if (PyErr_Occurred()) SWIG_fail;
13964 }
13965 if (obj6) {
13966 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13967 SWIG_POINTER_EXCEPTION | 0)) == -1)
13968 SWIG_fail;
13969 if (arg7 == NULL) {
13970 PyErr_SetString(PyExc_TypeError,"null reference");
13971 SWIG_fail;
13972 }
13973 }
13974 if (obj7) {
13975 {
13976 arg8 = wxString_in_helper(obj7);
13977 if (arg8 == NULL) SWIG_fail;
13978 temp8 = True;
13979 }
13980 }
13981 {
13982 if (!wxPyCheckForApp()) SWIG_fail;
13983 PyThreadState* __tstate = wxPyBeginAllowThreads();
13984 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13985
13986 wxPyEndAllowThreads(__tstate);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13990 {
13991 if (temp3)
13992 delete arg3;
13993 }
13994 {
13995 if (temp8)
13996 delete arg8;
13997 }
13998 return resultobj;
13999 fail:
14000 {
14001 if (temp3)
14002 delete arg3;
14003 }
14004 {
14005 if (temp8)
14006 delete arg8;
14007 }
14008 return NULL;
14009 }
14010
14011
14012 static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
14013 PyObject *resultobj;
14014 wxToggleButton *result;
14015 char *kwnames[] = {
14016 NULL
14017 };
14018
14019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
14020 {
14021 if (!wxPyCheckForApp()) SWIG_fail;
14022 PyThreadState* __tstate = wxPyBeginAllowThreads();
14023 result = (wxToggleButton *)new wxToggleButton();
14024
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
14029 return resultobj;
14030 fail:
14031 return NULL;
14032 }
14033
14034
14035 static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14036 PyObject *resultobj;
14037 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14038 wxWindow *arg2 = (wxWindow *) 0 ;
14039 int arg3 = (int) -1 ;
14040 wxString const &arg4_defvalue = wxPyEmptyString ;
14041 wxString *arg4 = (wxString *) &arg4_defvalue ;
14042 wxPoint const &arg5_defvalue = wxDefaultPosition ;
14043 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
14044 wxSize const &arg6_defvalue = wxDefaultSize ;
14045 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
14046 long arg7 = (long) 0 ;
14047 wxValidator const &arg8_defvalue = wxDefaultValidator ;
14048 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
14049 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
14050 wxString *arg9 = (wxString *) &arg9_defvalue ;
14051 bool result;
14052 bool temp4 = False ;
14053 wxPoint temp5 ;
14054 wxSize temp6 ;
14055 bool temp9 = False ;
14056 PyObject * obj0 = 0 ;
14057 PyObject * obj1 = 0 ;
14058 PyObject * obj2 = 0 ;
14059 PyObject * obj3 = 0 ;
14060 PyObject * obj4 = 0 ;
14061 PyObject * obj5 = 0 ;
14062 PyObject * obj6 = 0 ;
14063 PyObject * obj7 = 0 ;
14064 PyObject * obj8 = 0 ;
14065 char *kwnames[] = {
14066 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14067 };
14068
14069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
14070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14072 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14074 if (obj2) {
14075 arg3 = (int)SWIG_As_int(obj2);
14076 if (PyErr_Occurred()) SWIG_fail;
14077 }
14078 if (obj3) {
14079 {
14080 arg4 = wxString_in_helper(obj3);
14081 if (arg4 == NULL) SWIG_fail;
14082 temp4 = True;
14083 }
14084 }
14085 if (obj4) {
14086 {
14087 arg5 = &temp5;
14088 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14089 }
14090 }
14091 if (obj5) {
14092 {
14093 arg6 = &temp6;
14094 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
14095 }
14096 }
14097 if (obj6) {
14098 arg7 = (long)SWIG_As_long(obj6);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 if (obj7) {
14102 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
14103 SWIG_POINTER_EXCEPTION | 0)) == -1)
14104 SWIG_fail;
14105 if (arg8 == NULL) {
14106 PyErr_SetString(PyExc_TypeError,"null reference");
14107 SWIG_fail;
14108 }
14109 }
14110 if (obj8) {
14111 {
14112 arg9 = wxString_in_helper(obj8);
14113 if (arg9 == NULL) SWIG_fail;
14114 temp9 = True;
14115 }
14116 }
14117 {
14118 PyThreadState* __tstate = wxPyBeginAllowThreads();
14119 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
14120
14121 wxPyEndAllowThreads(__tstate);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 }
14124 {
14125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14126 }
14127 {
14128 if (temp4)
14129 delete arg4;
14130 }
14131 {
14132 if (temp9)
14133 delete arg9;
14134 }
14135 return resultobj;
14136 fail:
14137 {
14138 if (temp4)
14139 delete arg4;
14140 }
14141 {
14142 if (temp9)
14143 delete arg9;
14144 }
14145 return NULL;
14146 }
14147
14148
14149 static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14150 PyObject *resultobj;
14151 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14152 bool arg2 ;
14153 PyObject * obj0 = 0 ;
14154 PyObject * obj1 = 0 ;
14155 char *kwnames[] = {
14156 (char *) "self",(char *) "value", NULL
14157 };
14158
14159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
14160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14162 arg2 = (bool)SWIG_As_bool(obj1);
14163 if (PyErr_Occurred()) SWIG_fail;
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 (arg1)->SetValue(arg2);
14167
14168 wxPyEndAllowThreads(__tstate);
14169 if (PyErr_Occurred()) SWIG_fail;
14170 }
14171 Py_INCREF(Py_None); resultobj = Py_None;
14172 return resultobj;
14173 fail:
14174 return NULL;
14175 }
14176
14177
14178 static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14179 PyObject *resultobj;
14180 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14181 bool result;
14182 PyObject * obj0 = 0 ;
14183 char *kwnames[] = {
14184 (char *) "self", NULL
14185 };
14186
14187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
14188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14190 {
14191 PyThreadState* __tstate = wxPyBeginAllowThreads();
14192 result = (bool)((wxToggleButton const *)arg1)->GetValue();
14193
14194 wxPyEndAllowThreads(__tstate);
14195 if (PyErr_Occurred()) SWIG_fail;
14196 }
14197 {
14198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14199 }
14200 return resultobj;
14201 fail:
14202 return NULL;
14203 }
14204
14205
14206 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14207 PyObject *resultobj;
14208 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14209 wxString *arg2 = 0 ;
14210 bool temp2 = False ;
14211 PyObject * obj0 = 0 ;
14212 PyObject * obj1 = 0 ;
14213 char *kwnames[] = {
14214 (char *) "self",(char *) "label", NULL
14215 };
14216
14217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
14218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14220 {
14221 arg2 = wxString_in_helper(obj1);
14222 if (arg2 == NULL) SWIG_fail;
14223 temp2 = True;
14224 }
14225 {
14226 PyThreadState* __tstate = wxPyBeginAllowThreads();
14227 (arg1)->SetLabel((wxString const &)*arg2);
14228
14229 wxPyEndAllowThreads(__tstate);
14230 if (PyErr_Occurred()) SWIG_fail;
14231 }
14232 Py_INCREF(Py_None); resultobj = Py_None;
14233 {
14234 if (temp2)
14235 delete arg2;
14236 }
14237 return resultobj;
14238 fail:
14239 {
14240 if (temp2)
14241 delete arg2;
14242 }
14243 return NULL;
14244 }
14245
14246
14247 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14248 PyObject *resultobj;
14249 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14250 wxVisualAttributes result;
14251 PyObject * obj0 = 0 ;
14252 char *kwnames[] = {
14253 (char *) "variant", NULL
14254 };
14255
14256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14257 if (obj0) {
14258 arg1 = (int)SWIG_As_int(obj0);
14259 if (PyErr_Occurred()) SWIG_fail;
14260 }
14261 {
14262 if (!wxPyCheckForApp()) SWIG_fail;
14263 PyThreadState* __tstate = wxPyBeginAllowThreads();
14264 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
14265
14266 wxPyEndAllowThreads(__tstate);
14267 if (PyErr_Occurred()) SWIG_fail;
14268 }
14269 {
14270 wxVisualAttributes * resultptr;
14271 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14272 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14273 }
14274 return resultobj;
14275 fail:
14276 return NULL;
14277 }
14278
14279
14280 static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
14281 PyObject *obj;
14282 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14283 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14284 Py_INCREF(obj);
14285 return Py_BuildValue((char *)"");
14286 }
14287 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
14288 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14289 return 1;
14290 }
14291
14292
14293 static PyObject *_wrap_NOTEBOOK_NAME_get() {
14294 PyObject *pyobj;
14295
14296 {
14297 #if wxUSE_UNICODE
14298 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14299 #else
14300 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14301 #endif
14302 }
14303 return pyobj;
14304 }
14305
14306
14307 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) {
14308 PyObject *resultobj;
14309 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14310 size_t result;
14311 PyObject * obj0 = 0 ;
14312 char *kwnames[] = {
14313 (char *) "self", NULL
14314 };
14315
14316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
14317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
14322
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
14327 return resultobj;
14328 fail:
14329 return NULL;
14330 }
14331
14332
14333 static PyObject *_wrap_BookCtrl_GetPage(PyObject *, PyObject *args, PyObject *kwargs) {
14334 PyObject *resultobj;
14335 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14336 size_t arg2 ;
14337 wxWindow *result;
14338 PyObject * obj0 = 0 ;
14339 PyObject * obj1 = 0 ;
14340 char *kwnames[] = {
14341 (char *) "self",(char *) "n", NULL
14342 };
14343
14344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
14345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14347 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 {
14350 PyThreadState* __tstate = wxPyBeginAllowThreads();
14351 result = (wxWindow *)(arg1)->GetPage(arg2);
14352
14353 wxPyEndAllowThreads(__tstate);
14354 if (PyErr_Occurred()) SWIG_fail;
14355 }
14356 {
14357 resultobj = wxPyMake_wxObject(result, 0);
14358 }
14359 return resultobj;
14360 fail:
14361 return NULL;
14362 }
14363
14364
14365 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14366 PyObject *resultobj;
14367 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14368 int result;
14369 PyObject * obj0 = 0 ;
14370 char *kwnames[] = {
14371 (char *) "self", NULL
14372 };
14373
14374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14380
14381 wxPyEndAllowThreads(__tstate);
14382 if (PyErr_Occurred()) SWIG_fail;
14383 }
14384 resultobj = SWIG_From_int((int)result);
14385 return resultobj;
14386 fail:
14387 return NULL;
14388 }
14389
14390
14391 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14392 PyObject *resultobj;
14393 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14394 size_t arg2 ;
14395 wxString *arg3 = 0 ;
14396 bool result;
14397 bool temp3 = False ;
14398 PyObject * obj0 = 0 ;
14399 PyObject * obj1 = 0 ;
14400 PyObject * obj2 = 0 ;
14401 char *kwnames[] = {
14402 (char *) "self",(char *) "n",(char *) "strText", NULL
14403 };
14404
14405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14408 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 {
14411 arg3 = wxString_in_helper(obj2);
14412 if (arg3 == NULL) SWIG_fail;
14413 temp3 = True;
14414 }
14415 {
14416 PyThreadState* __tstate = wxPyBeginAllowThreads();
14417 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14418
14419 wxPyEndAllowThreads(__tstate);
14420 if (PyErr_Occurred()) SWIG_fail;
14421 }
14422 {
14423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14424 }
14425 {
14426 if (temp3)
14427 delete arg3;
14428 }
14429 return resultobj;
14430 fail:
14431 {
14432 if (temp3)
14433 delete arg3;
14434 }
14435 return NULL;
14436 }
14437
14438
14439 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14440 PyObject *resultobj;
14441 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14442 size_t arg2 ;
14443 wxString result;
14444 PyObject * obj0 = 0 ;
14445 PyObject * obj1 = 0 ;
14446 char *kwnames[] = {
14447 (char *) "self",(char *) "n", NULL
14448 };
14449
14450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14453 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14454 if (PyErr_Occurred()) SWIG_fail;
14455 {
14456 PyThreadState* __tstate = wxPyBeginAllowThreads();
14457 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14458
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 {
14463 #if wxUSE_UNICODE
14464 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14465 #else
14466 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14467 #endif
14468 }
14469 return resultobj;
14470 fail:
14471 return NULL;
14472 }
14473
14474
14475 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14476 PyObject *resultobj;
14477 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14478 wxImageList *arg2 = (wxImageList *) 0 ;
14479 PyObject * obj0 = 0 ;
14480 PyObject * obj1 = 0 ;
14481 char *kwnames[] = {
14482 (char *) "self",(char *) "imageList", NULL
14483 };
14484
14485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14488 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14490 {
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
14492 (arg1)->SetImageList(arg2);
14493
14494 wxPyEndAllowThreads(__tstate);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 Py_INCREF(Py_None); resultobj = Py_None;
14498 return resultobj;
14499 fail:
14500 return NULL;
14501 }
14502
14503
14504 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14505 PyObject *resultobj;
14506 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14507 wxImageList *arg2 = (wxImageList *) 0 ;
14508 PyObject * obj0 = 0 ;
14509 PyObject * obj1 = 0 ;
14510 char *kwnames[] = {
14511 (char *) "self",(char *) "imageList", NULL
14512 };
14513
14514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14517 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14518 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14519 {
14520 PyThreadState* __tstate = wxPyBeginAllowThreads();
14521 (arg1)->AssignImageList(arg2);
14522
14523 wxPyEndAllowThreads(__tstate);
14524 if (PyErr_Occurred()) SWIG_fail;
14525 }
14526 Py_INCREF(Py_None); resultobj = Py_None;
14527 return resultobj;
14528 fail:
14529 return NULL;
14530 }
14531
14532
14533 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14534 PyObject *resultobj;
14535 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14536 wxImageList *result;
14537 PyObject * obj0 = 0 ;
14538 char *kwnames[] = {
14539 (char *) "self", NULL
14540 };
14541
14542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14545 {
14546 PyThreadState* __tstate = wxPyBeginAllowThreads();
14547 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14548
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 {
14553 resultobj = wxPyMake_wxObject(result, 0);
14554 }
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj;
14563 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14564 size_t arg2 ;
14565 int result;
14566 PyObject * obj0 = 0 ;
14567 PyObject * obj1 = 0 ;
14568 char *kwnames[] = {
14569 (char *) "self",(char *) "n", NULL
14570 };
14571
14572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14575 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14576 if (PyErr_Occurred()) SWIG_fail;
14577 {
14578 PyThreadState* __tstate = wxPyBeginAllowThreads();
14579 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14580
14581 wxPyEndAllowThreads(__tstate);
14582 if (PyErr_Occurred()) SWIG_fail;
14583 }
14584 resultobj = SWIG_From_int((int)result);
14585 return resultobj;
14586 fail:
14587 return NULL;
14588 }
14589
14590
14591 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14592 PyObject *resultobj;
14593 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14594 size_t arg2 ;
14595 int arg3 ;
14596 bool result;
14597 PyObject * obj0 = 0 ;
14598 PyObject * obj1 = 0 ;
14599 PyObject * obj2 = 0 ;
14600 char *kwnames[] = {
14601 (char *) "self",(char *) "n",(char *) "imageId", NULL
14602 };
14603
14604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14607 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 arg3 = (int)SWIG_As_int(obj2);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 {
14612 PyThreadState* __tstate = wxPyBeginAllowThreads();
14613 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14614
14615 wxPyEndAllowThreads(__tstate);
14616 if (PyErr_Occurred()) SWIG_fail;
14617 }
14618 {
14619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14620 }
14621 return resultobj;
14622 fail:
14623 return NULL;
14624 }
14625
14626
14627 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
14628 PyObject *resultobj;
14629 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14630 wxSize *arg2 = 0 ;
14631 wxSize temp2 ;
14632 PyObject * obj0 = 0 ;
14633 PyObject * obj1 = 0 ;
14634 char *kwnames[] = {
14635 (char *) "self",(char *) "size", NULL
14636 };
14637
14638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14641 {
14642 arg2 = &temp2;
14643 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14644 }
14645 {
14646 PyThreadState* __tstate = wxPyBeginAllowThreads();
14647 (arg1)->SetPageSize((wxSize const &)*arg2);
14648
14649 wxPyEndAllowThreads(__tstate);
14650 if (PyErr_Occurred()) SWIG_fail;
14651 }
14652 Py_INCREF(Py_None); resultobj = Py_None;
14653 return resultobj;
14654 fail:
14655 return NULL;
14656 }
14657
14658
14659 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
14660 PyObject *resultobj;
14661 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14662 wxSize *arg2 = 0 ;
14663 wxSize result;
14664 wxSize temp2 ;
14665 PyObject * obj0 = 0 ;
14666 PyObject * obj1 = 0 ;
14667 char *kwnames[] = {
14668 (char *) "self",(char *) "sizePage", NULL
14669 };
14670
14671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14674 {
14675 arg2 = &temp2;
14676 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14677 }
14678 {
14679 PyThreadState* __tstate = wxPyBeginAllowThreads();
14680 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14681
14682 wxPyEndAllowThreads(__tstate);
14683 if (PyErr_Occurred()) SWIG_fail;
14684 }
14685 {
14686 wxSize * resultptr;
14687 resultptr = new wxSize((wxSize &) result);
14688 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14689 }
14690 return resultobj;
14691 fail:
14692 return NULL;
14693 }
14694
14695
14696 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) {
14697 PyObject *resultobj;
14698 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14699 size_t arg2 ;
14700 bool result;
14701 PyObject * obj0 = 0 ;
14702 PyObject * obj1 = 0 ;
14703 char *kwnames[] = {
14704 (char *) "self",(char *) "n", NULL
14705 };
14706
14707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14710 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14711 if (PyErr_Occurred()) SWIG_fail;
14712 {
14713 PyThreadState* __tstate = wxPyBeginAllowThreads();
14714 result = (bool)(arg1)->DeletePage(arg2);
14715
14716 wxPyEndAllowThreads(__tstate);
14717 if (PyErr_Occurred()) SWIG_fail;
14718 }
14719 {
14720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14721 }
14722 return resultobj;
14723 fail:
14724 return NULL;
14725 }
14726
14727
14728 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) {
14729 PyObject *resultobj;
14730 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14731 size_t arg2 ;
14732 bool result;
14733 PyObject * obj0 = 0 ;
14734 PyObject * obj1 = 0 ;
14735 char *kwnames[] = {
14736 (char *) "self",(char *) "n", NULL
14737 };
14738
14739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14742 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 result = (bool)(arg1)->RemovePage(arg2);
14747
14748 wxPyEndAllowThreads(__tstate);
14749 if (PyErr_Occurred()) SWIG_fail;
14750 }
14751 {
14752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14753 }
14754 return resultobj;
14755 fail:
14756 return NULL;
14757 }
14758
14759
14760 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
14761 PyObject *resultobj;
14762 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14763 bool result;
14764 PyObject * obj0 = 0 ;
14765 char *kwnames[] = {
14766 (char *) "self", NULL
14767 };
14768
14769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = (bool)(arg1)->DeleteAllPages();
14775
14776 wxPyEndAllowThreads(__tstate);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 }
14779 {
14780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14781 }
14782 return resultobj;
14783 fail:
14784 return NULL;
14785 }
14786
14787
14788 static PyObject *_wrap_BookCtrl_AddPage(PyObject *, PyObject *args, PyObject *kwargs) {
14789 PyObject *resultobj;
14790 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14791 wxWindow *arg2 = (wxWindow *) 0 ;
14792 wxString *arg3 = 0 ;
14793 bool arg4 = (bool) False ;
14794 int arg5 = (int) -1 ;
14795 bool result;
14796 bool temp3 = False ;
14797 PyObject * obj0 = 0 ;
14798 PyObject * obj1 = 0 ;
14799 PyObject * obj2 = 0 ;
14800 PyObject * obj3 = 0 ;
14801 PyObject * obj4 = 0 ;
14802 char *kwnames[] = {
14803 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14804 };
14805
14806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14809 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14811 {
14812 arg3 = wxString_in_helper(obj2);
14813 if (arg3 == NULL) SWIG_fail;
14814 temp3 = True;
14815 }
14816 if (obj3) {
14817 arg4 = (bool)SWIG_As_bool(obj3);
14818 if (PyErr_Occurred()) SWIG_fail;
14819 }
14820 if (obj4) {
14821 arg5 = (int)SWIG_As_int(obj4);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 {
14825 PyThreadState* __tstate = wxPyBeginAllowThreads();
14826 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14827
14828 wxPyEndAllowThreads(__tstate);
14829 if (PyErr_Occurred()) SWIG_fail;
14830 }
14831 {
14832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14833 }
14834 {
14835 if (temp3)
14836 delete arg3;
14837 }
14838 return resultobj;
14839 fail:
14840 {
14841 if (temp3)
14842 delete arg3;
14843 }
14844 return NULL;
14845 }
14846
14847
14848 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) {
14849 PyObject *resultobj;
14850 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14851 size_t arg2 ;
14852 wxWindow *arg3 = (wxWindow *) 0 ;
14853 wxString *arg4 = 0 ;
14854 bool arg5 = (bool) False ;
14855 int arg6 = (int) -1 ;
14856 bool result;
14857 bool temp4 = False ;
14858 PyObject * obj0 = 0 ;
14859 PyObject * obj1 = 0 ;
14860 PyObject * obj2 = 0 ;
14861 PyObject * obj3 = 0 ;
14862 PyObject * obj4 = 0 ;
14863 PyObject * obj5 = 0 ;
14864 char *kwnames[] = {
14865 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14866 };
14867
14868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14871 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14872 if (PyErr_Occurred()) SWIG_fail;
14873 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14875 {
14876 arg4 = wxString_in_helper(obj3);
14877 if (arg4 == NULL) SWIG_fail;
14878 temp4 = True;
14879 }
14880 if (obj4) {
14881 arg5 = (bool)SWIG_As_bool(obj4);
14882 if (PyErr_Occurred()) SWIG_fail;
14883 }
14884 if (obj5) {
14885 arg6 = (int)SWIG_As_int(obj5);
14886 if (PyErr_Occurred()) SWIG_fail;
14887 }
14888 {
14889 PyThreadState* __tstate = wxPyBeginAllowThreads();
14890 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14891
14892 wxPyEndAllowThreads(__tstate);
14893 if (PyErr_Occurred()) SWIG_fail;
14894 }
14895 {
14896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14897 }
14898 {
14899 if (temp4)
14900 delete arg4;
14901 }
14902 return resultobj;
14903 fail:
14904 {
14905 if (temp4)
14906 delete arg4;
14907 }
14908 return NULL;
14909 }
14910
14911
14912 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14913 PyObject *resultobj;
14914 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14915 size_t arg2 ;
14916 int result;
14917 PyObject * obj0 = 0 ;
14918 PyObject * obj1 = 0 ;
14919 char *kwnames[] = {
14920 (char *) "self",(char *) "n", NULL
14921 };
14922
14923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14926 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14927 if (PyErr_Occurred()) SWIG_fail;
14928 {
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
14930 result = (int)(arg1)->SetSelection(arg2);
14931
14932 wxPyEndAllowThreads(__tstate);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
14935 resultobj = SWIG_From_int((int)result);
14936 return resultobj;
14937 fail:
14938 return NULL;
14939 }
14940
14941
14942 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14943 PyObject *resultobj;
14944 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14945 bool arg2 = (bool) True ;
14946 PyObject * obj0 = 0 ;
14947 PyObject * obj1 = 0 ;
14948 char *kwnames[] = {
14949 (char *) "self",(char *) "forward", NULL
14950 };
14951
14952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14955 if (obj1) {
14956 arg2 = (bool)SWIG_As_bool(obj1);
14957 if (PyErr_Occurred()) SWIG_fail;
14958 }
14959 {
14960 PyThreadState* __tstate = wxPyBeginAllowThreads();
14961 (arg1)->AdvanceSelection(arg2);
14962
14963 wxPyEndAllowThreads(__tstate);
14964 if (PyErr_Occurred()) SWIG_fail;
14965 }
14966 Py_INCREF(Py_None); resultobj = Py_None;
14967 return resultobj;
14968 fail:
14969 return NULL;
14970 }
14971
14972
14973 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14974 PyObject *resultobj;
14975 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14976 wxVisualAttributes result;
14977 PyObject * obj0 = 0 ;
14978 char *kwnames[] = {
14979 (char *) "variant", NULL
14980 };
14981
14982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14983 if (obj0) {
14984 arg1 = (int)SWIG_As_int(obj0);
14985 if (PyErr_Occurred()) SWIG_fail;
14986 }
14987 {
14988 if (!wxPyCheckForApp()) SWIG_fail;
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14991
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 {
14996 wxVisualAttributes * resultptr;
14997 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14998 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14999 }
15000 return resultobj;
15001 fail:
15002 return NULL;
15003 }
15004
15005
15006 static PyObject * BookCtrl_swigregister(PyObject *, PyObject *args) {
15007 PyObject *obj;
15008 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15009 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
15010 Py_INCREF(obj);
15011 return Py_BuildValue((char *)"");
15012 }
15013 static PyObject *_wrap_new_BookCtrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15014 PyObject *resultobj;
15015 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15016 int arg2 = (int) 0 ;
15017 int arg3 = (int) -1 ;
15018 int arg4 = (int) -1 ;
15019 wxBookCtrlEvent *result;
15020 PyObject * obj0 = 0 ;
15021 PyObject * obj1 = 0 ;
15022 PyObject * obj2 = 0 ;
15023 PyObject * obj3 = 0 ;
15024 char *kwnames[] = {
15025 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15026 };
15027
15028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15029 if (obj0) {
15030 arg1 = (wxEventType)SWIG_As_int(obj0);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 if (obj1) {
15034 arg2 = (int)SWIG_As_int(obj1);
15035 if (PyErr_Occurred()) SWIG_fail;
15036 }
15037 if (obj2) {
15038 arg3 = (int)SWIG_As_int(obj2);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 }
15041 if (obj3) {
15042 arg4 = (int)SWIG_As_int(obj3);
15043 if (PyErr_Occurred()) SWIG_fail;
15044 }
15045 {
15046 PyThreadState* __tstate = wxPyBeginAllowThreads();
15047 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
15048
15049 wxPyEndAllowThreads(__tstate);
15050 if (PyErr_Occurred()) SWIG_fail;
15051 }
15052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
15053 return resultobj;
15054 fail:
15055 return NULL;
15056 }
15057
15058
15059 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15060 PyObject *resultobj;
15061 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15062 int result;
15063 PyObject * obj0 = 0 ;
15064 char *kwnames[] = {
15065 (char *) "self", NULL
15066 };
15067
15068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
15069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15071 {
15072 PyThreadState* __tstate = wxPyBeginAllowThreads();
15073 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
15074
15075 wxPyEndAllowThreads(__tstate);
15076 if (PyErr_Occurred()) SWIG_fail;
15077 }
15078 resultobj = SWIG_From_int((int)result);
15079 return resultobj;
15080 fail:
15081 return NULL;
15082 }
15083
15084
15085 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15086 PyObject *resultobj;
15087 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15088 int arg2 ;
15089 PyObject * obj0 = 0 ;
15090 PyObject * obj1 = 0 ;
15091 char *kwnames[] = {
15092 (char *) "self",(char *) "nSel", NULL
15093 };
15094
15095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15098 arg2 = (int)SWIG_As_int(obj1);
15099 if (PyErr_Occurred()) SWIG_fail;
15100 {
15101 PyThreadState* __tstate = wxPyBeginAllowThreads();
15102 (arg1)->SetSelection(arg2);
15103
15104 wxPyEndAllowThreads(__tstate);
15105 if (PyErr_Occurred()) SWIG_fail;
15106 }
15107 Py_INCREF(Py_None); resultobj = Py_None;
15108 return resultobj;
15109 fail:
15110 return NULL;
15111 }
15112
15113
15114 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15115 PyObject *resultobj;
15116 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15117 int result;
15118 PyObject * obj0 = 0 ;
15119 char *kwnames[] = {
15120 (char *) "self", NULL
15121 };
15122
15123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
15124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15126 {
15127 PyThreadState* __tstate = wxPyBeginAllowThreads();
15128 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
15129
15130 wxPyEndAllowThreads(__tstate);
15131 if (PyErr_Occurred()) SWIG_fail;
15132 }
15133 resultobj = SWIG_From_int((int)result);
15134 return resultobj;
15135 fail:
15136 return NULL;
15137 }
15138
15139
15140 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15141 PyObject *resultobj;
15142 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15143 int arg2 ;
15144 PyObject * obj0 = 0 ;
15145 PyObject * obj1 = 0 ;
15146 char *kwnames[] = {
15147 (char *) "self",(char *) "nOldSel", NULL
15148 };
15149
15150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
15151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15153 arg2 = (int)SWIG_As_int(obj1);
15154 if (PyErr_Occurred()) SWIG_fail;
15155 {
15156 PyThreadState* __tstate = wxPyBeginAllowThreads();
15157 (arg1)->SetOldSelection(arg2);
15158
15159 wxPyEndAllowThreads(__tstate);
15160 if (PyErr_Occurred()) SWIG_fail;
15161 }
15162 Py_INCREF(Py_None); resultobj = Py_None;
15163 return resultobj;
15164 fail:
15165 return NULL;
15166 }
15167
15168
15169 static PyObject * BookCtrlEvent_swigregister(PyObject *, PyObject *args) {
15170 PyObject *obj;
15171 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15172 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
15173 Py_INCREF(obj);
15174 return Py_BuildValue((char *)"");
15175 }
15176 static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) {
15177 PyObject *resultobj;
15178 wxWindow *arg1 = (wxWindow *) 0 ;
15179 int arg2 = (int) -1 ;
15180 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15181 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15182 wxSize const &arg4_defvalue = wxDefaultSize ;
15183 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15184 long arg5 = (long) 0 ;
15185 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
15186 wxString *arg6 = (wxString *) &arg6_defvalue ;
15187 wxNotebook *result;
15188 wxPoint temp3 ;
15189 wxSize temp4 ;
15190 bool temp6 = False ;
15191 PyObject * obj0 = 0 ;
15192 PyObject * obj1 = 0 ;
15193 PyObject * obj2 = 0 ;
15194 PyObject * obj3 = 0 ;
15195 PyObject * obj4 = 0 ;
15196 PyObject * obj5 = 0 ;
15197 char *kwnames[] = {
15198 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15199 };
15200
15201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15204 if (obj1) {
15205 arg2 = (int)SWIG_As_int(obj1);
15206 if (PyErr_Occurred()) SWIG_fail;
15207 }
15208 if (obj2) {
15209 {
15210 arg3 = &temp3;
15211 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15212 }
15213 }
15214 if (obj3) {
15215 {
15216 arg4 = &temp4;
15217 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15218 }
15219 }
15220 if (obj4) {
15221 arg5 = (long)SWIG_As_long(obj4);
15222 if (PyErr_Occurred()) SWIG_fail;
15223 }
15224 if (obj5) {
15225 {
15226 arg6 = wxString_in_helper(obj5);
15227 if (arg6 == NULL) SWIG_fail;
15228 temp6 = True;
15229 }
15230 }
15231 {
15232 if (!wxPyCheckForApp()) SWIG_fail;
15233 PyThreadState* __tstate = wxPyBeginAllowThreads();
15234 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15235
15236 wxPyEndAllowThreads(__tstate);
15237 if (PyErr_Occurred()) SWIG_fail;
15238 }
15239 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15240 {
15241 if (temp6)
15242 delete arg6;
15243 }
15244 return resultobj;
15245 fail:
15246 {
15247 if (temp6)
15248 delete arg6;
15249 }
15250 return NULL;
15251 }
15252
15253
15254 static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
15255 PyObject *resultobj;
15256 wxNotebook *result;
15257 char *kwnames[] = {
15258 NULL
15259 };
15260
15261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
15262 {
15263 if (!wxPyCheckForApp()) SWIG_fail;
15264 PyThreadState* __tstate = wxPyBeginAllowThreads();
15265 result = (wxNotebook *)new wxNotebook();
15266
15267 wxPyEndAllowThreads(__tstate);
15268 if (PyErr_Occurred()) SWIG_fail;
15269 }
15270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15271 return resultobj;
15272 fail:
15273 return NULL;
15274 }
15275
15276
15277 static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15278 PyObject *resultobj;
15279 wxNotebook *arg1 = (wxNotebook *) 0 ;
15280 wxWindow *arg2 = (wxWindow *) 0 ;
15281 int arg3 = (int) -1 ;
15282 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15283 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15284 wxSize const &arg5_defvalue = wxDefaultSize ;
15285 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15286 long arg6 = (long) 0 ;
15287 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15288 wxString *arg7 = (wxString *) &arg7_defvalue ;
15289 bool result;
15290 wxPoint temp4 ;
15291 wxSize temp5 ;
15292 bool temp7 = False ;
15293 PyObject * obj0 = 0 ;
15294 PyObject * obj1 = 0 ;
15295 PyObject * obj2 = 0 ;
15296 PyObject * obj3 = 0 ;
15297 PyObject * obj4 = 0 ;
15298 PyObject * obj5 = 0 ;
15299 PyObject * obj6 = 0 ;
15300 char *kwnames[] = {
15301 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15302 };
15303
15304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15309 if (obj2) {
15310 arg3 = (int)SWIG_As_int(obj2);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 if (obj3) {
15314 {
15315 arg4 = &temp4;
15316 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15317 }
15318 }
15319 if (obj4) {
15320 {
15321 arg5 = &temp5;
15322 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15323 }
15324 }
15325 if (obj5) {
15326 arg6 = (long)SWIG_As_long(obj5);
15327 if (PyErr_Occurred()) SWIG_fail;
15328 }
15329 if (obj6) {
15330 {
15331 arg7 = wxString_in_helper(obj6);
15332 if (arg7 == NULL) SWIG_fail;
15333 temp7 = True;
15334 }
15335 }
15336 {
15337 PyThreadState* __tstate = wxPyBeginAllowThreads();
15338 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15339
15340 wxPyEndAllowThreads(__tstate);
15341 if (PyErr_Occurred()) SWIG_fail;
15342 }
15343 {
15344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15345 }
15346 {
15347 if (temp7)
15348 delete arg7;
15349 }
15350 return resultobj;
15351 fail:
15352 {
15353 if (temp7)
15354 delete arg7;
15355 }
15356 return NULL;
15357 }
15358
15359
15360 static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
15361 PyObject *resultobj;
15362 wxNotebook *arg1 = (wxNotebook *) 0 ;
15363 int result;
15364 PyObject * obj0 = 0 ;
15365 char *kwnames[] = {
15366 (char *) "self", NULL
15367 };
15368
15369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15375
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 resultobj = SWIG_From_int((int)result);
15380 return resultobj;
15381 fail:
15382 return NULL;
15383 }
15384
15385
15386 static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) {
15387 PyObject *resultobj;
15388 wxNotebook *arg1 = (wxNotebook *) 0 ;
15389 wxSize *arg2 = 0 ;
15390 wxSize temp2 ;
15391 PyObject * obj0 = 0 ;
15392 PyObject * obj1 = 0 ;
15393 char *kwnames[] = {
15394 (char *) "self",(char *) "padding", NULL
15395 };
15396
15397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15400 {
15401 arg2 = &temp2;
15402 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15403 }
15404 {
15405 PyThreadState* __tstate = wxPyBeginAllowThreads();
15406 (arg1)->SetPadding((wxSize const &)*arg2);
15407
15408 wxPyEndAllowThreads(__tstate);
15409 if (PyErr_Occurred()) SWIG_fail;
15410 }
15411 Py_INCREF(Py_None); resultobj = Py_None;
15412 return resultobj;
15413 fail:
15414 return NULL;
15415 }
15416
15417
15418 static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) {
15419 PyObject *resultobj;
15420 wxNotebook *arg1 = (wxNotebook *) 0 ;
15421 wxSize *arg2 = 0 ;
15422 wxSize temp2 ;
15423 PyObject * obj0 = 0 ;
15424 PyObject * obj1 = 0 ;
15425 char *kwnames[] = {
15426 (char *) "self",(char *) "sz", NULL
15427 };
15428
15429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15432 {
15433 arg2 = &temp2;
15434 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15435 }
15436 {
15437 PyThreadState* __tstate = wxPyBeginAllowThreads();
15438 (arg1)->SetTabSize((wxSize const &)*arg2);
15439
15440 wxPyEndAllowThreads(__tstate);
15441 if (PyErr_Occurred()) SWIG_fail;
15442 }
15443 Py_INCREF(Py_None); resultobj = Py_None;
15444 return resultobj;
15445 fail:
15446 return NULL;
15447 }
15448
15449
15450 static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
15451 PyObject *resultobj;
15452 wxNotebook *arg1 = (wxNotebook *) 0 ;
15453 wxPoint *arg2 = 0 ;
15454 long *arg3 = (long *) 0 ;
15455 int result;
15456 wxPoint temp2 ;
15457 long temp3 ;
15458 int res3 = 0 ;
15459 PyObject * obj0 = 0 ;
15460 PyObject * obj1 = 0 ;
15461 char *kwnames[] = {
15462 (char *) "self",(char *) "pt", NULL
15463 };
15464
15465 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15469 {
15470 arg2 = &temp2;
15471 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15472 }
15473 {
15474 PyThreadState* __tstate = wxPyBeginAllowThreads();
15475 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15476
15477 wxPyEndAllowThreads(__tstate);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
15480 resultobj = SWIG_From_int((int)result);
15481 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15482 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
15483 return resultobj;
15484 fail:
15485 return NULL;
15486 }
15487
15488
15489 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
15490 PyObject *resultobj;
15491 wxNotebook *arg1 = (wxNotebook *) 0 ;
15492 wxSize *arg2 = 0 ;
15493 wxSize result;
15494 wxSize temp2 ;
15495 PyObject * obj0 = 0 ;
15496 PyObject * obj1 = 0 ;
15497 char *kwnames[] = {
15498 (char *) "self",(char *) "sizePage", NULL
15499 };
15500
15501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15504 {
15505 arg2 = &temp2;
15506 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15507 }
15508 {
15509 PyThreadState* __tstate = wxPyBeginAllowThreads();
15510 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15511
15512 wxPyEndAllowThreads(__tstate);
15513 if (PyErr_Occurred()) SWIG_fail;
15514 }
15515 {
15516 wxSize * resultptr;
15517 resultptr = new wxSize((wxSize &) result);
15518 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15519 }
15520 return resultobj;
15521 fail:
15522 return NULL;
15523 }
15524
15525
15526 static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
15527 PyObject *resultobj;
15528 wxNotebook *arg1 = (wxNotebook *) 0 ;
15529 wxWindow *arg2 = (wxWindow *) 0 ;
15530 wxColour *arg3 = 0 ;
15531 wxColour temp3 ;
15532 PyObject * obj0 = 0 ;
15533 PyObject * obj1 = 0 ;
15534 PyObject * obj2 = 0 ;
15535 char *kwnames[] = {
15536 (char *) "self",(char *) "window",(char *) "colour", NULL
15537 };
15538
15539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
15540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15542 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15544 {
15545 arg3 = &temp3;
15546 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15547 }
15548 {
15549 PyThreadState* __tstate = wxPyBeginAllowThreads();
15550 (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3);
15551
15552 wxPyEndAllowThreads(__tstate);
15553 if (PyErr_Occurred()) SWIG_fail;
15554 }
15555 Py_INCREF(Py_None); resultobj = Py_None;
15556 return resultobj;
15557 fail:
15558 return NULL;
15559 }
15560
15561
15562 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15563 PyObject *resultobj;
15564 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15565 wxVisualAttributes result;
15566 PyObject * obj0 = 0 ;
15567 char *kwnames[] = {
15568 (char *) "variant", NULL
15569 };
15570
15571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15572 if (obj0) {
15573 arg1 = (int)SWIG_As_int(obj0);
15574 if (PyErr_Occurred()) SWIG_fail;
15575 }
15576 {
15577 if (!wxPyCheckForApp()) SWIG_fail;
15578 PyThreadState* __tstate = wxPyBeginAllowThreads();
15579 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15580
15581 wxPyEndAllowThreads(__tstate);
15582 if (PyErr_Occurred()) SWIG_fail;
15583 }
15584 {
15585 wxVisualAttributes * resultptr;
15586 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15587 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15588 }
15589 return resultobj;
15590 fail:
15591 return NULL;
15592 }
15593
15594
15595 static PyObject * Notebook_swigregister(PyObject *, PyObject *args) {
15596 PyObject *obj;
15597 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15598 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15599 Py_INCREF(obj);
15600 return Py_BuildValue((char *)"");
15601 }
15602 static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15603 PyObject *resultobj;
15604 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15605 int arg2 = (int) 0 ;
15606 int arg3 = (int) -1 ;
15607 int arg4 = (int) -1 ;
15608 wxNotebookEvent *result;
15609 PyObject * obj0 = 0 ;
15610 PyObject * obj1 = 0 ;
15611 PyObject * obj2 = 0 ;
15612 PyObject * obj3 = 0 ;
15613 char *kwnames[] = {
15614 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15615 };
15616
15617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15618 if (obj0) {
15619 arg1 = (wxEventType)SWIG_As_int(obj0);
15620 if (PyErr_Occurred()) SWIG_fail;
15621 }
15622 if (obj1) {
15623 arg2 = (int)SWIG_As_int(obj1);
15624 if (PyErr_Occurred()) SWIG_fail;
15625 }
15626 if (obj2) {
15627 arg3 = (int)SWIG_As_int(obj2);
15628 if (PyErr_Occurred()) SWIG_fail;
15629 }
15630 if (obj3) {
15631 arg4 = (int)SWIG_As_int(obj3);
15632 if (PyErr_Occurred()) SWIG_fail;
15633 }
15634 {
15635 PyThreadState* __tstate = wxPyBeginAllowThreads();
15636 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15637
15638 wxPyEndAllowThreads(__tstate);
15639 if (PyErr_Occurred()) SWIG_fail;
15640 }
15641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15642 return resultobj;
15643 fail:
15644 return NULL;
15645 }
15646
15647
15648 static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) {
15649 PyObject *obj;
15650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15651 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15652 Py_INCREF(obj);
15653 return Py_BuildValue((char *)"");
15654 }
15655 static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) {
15656 PyObject *resultobj;
15657 wxWindow *arg1 = (wxWindow *) 0 ;
15658 int arg2 = (int) -1 ;
15659 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15660 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15661 wxSize const &arg4_defvalue = wxDefaultSize ;
15662 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15663 long arg5 = (long) 0 ;
15664 wxString const &arg6_defvalue = wxPyEmptyString ;
15665 wxString *arg6 = (wxString *) &arg6_defvalue ;
15666 wxListbook *result;
15667 wxPoint temp3 ;
15668 wxSize temp4 ;
15669 bool temp6 = False ;
15670 PyObject * obj0 = 0 ;
15671 PyObject * obj1 = 0 ;
15672 PyObject * obj2 = 0 ;
15673 PyObject * obj3 = 0 ;
15674 PyObject * obj4 = 0 ;
15675 PyObject * obj5 = 0 ;
15676 char *kwnames[] = {
15677 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15678 };
15679
15680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15683 if (obj1) {
15684 arg2 = (int)SWIG_As_int(obj1);
15685 if (PyErr_Occurred()) SWIG_fail;
15686 }
15687 if (obj2) {
15688 {
15689 arg3 = &temp3;
15690 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15691 }
15692 }
15693 if (obj3) {
15694 {
15695 arg4 = &temp4;
15696 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15697 }
15698 }
15699 if (obj4) {
15700 arg5 = (long)SWIG_As_long(obj4);
15701 if (PyErr_Occurred()) SWIG_fail;
15702 }
15703 if (obj5) {
15704 {
15705 arg6 = wxString_in_helper(obj5);
15706 if (arg6 == NULL) SWIG_fail;
15707 temp6 = True;
15708 }
15709 }
15710 {
15711 if (!wxPyCheckForApp()) SWIG_fail;
15712 PyThreadState* __tstate = wxPyBeginAllowThreads();
15713 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15714
15715 wxPyEndAllowThreads(__tstate);
15716 if (PyErr_Occurred()) SWIG_fail;
15717 }
15718 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15719 {
15720 if (temp6)
15721 delete arg6;
15722 }
15723 return resultobj;
15724 fail:
15725 {
15726 if (temp6)
15727 delete arg6;
15728 }
15729 return NULL;
15730 }
15731
15732
15733 static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) {
15734 PyObject *resultobj;
15735 wxListbook *result;
15736 char *kwnames[] = {
15737 NULL
15738 };
15739
15740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15741 {
15742 if (!wxPyCheckForApp()) SWIG_fail;
15743 PyThreadState* __tstate = wxPyBeginAllowThreads();
15744 result = (wxListbook *)new wxListbook();
15745
15746 wxPyEndAllowThreads(__tstate);
15747 if (PyErr_Occurred()) SWIG_fail;
15748 }
15749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15750 return resultobj;
15751 fail:
15752 return NULL;
15753 }
15754
15755
15756 static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15757 PyObject *resultobj;
15758 wxListbook *arg1 = (wxListbook *) 0 ;
15759 wxWindow *arg2 = (wxWindow *) 0 ;
15760 int arg3 = (int) -1 ;
15761 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15762 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15763 wxSize const &arg5_defvalue = wxDefaultSize ;
15764 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15765 long arg6 = (long) 0 ;
15766 wxString const &arg7_defvalue = wxPyEmptyString ;
15767 wxString *arg7 = (wxString *) &arg7_defvalue ;
15768 bool result;
15769 wxPoint temp4 ;
15770 wxSize temp5 ;
15771 bool temp7 = False ;
15772 PyObject * obj0 = 0 ;
15773 PyObject * obj1 = 0 ;
15774 PyObject * obj2 = 0 ;
15775 PyObject * obj3 = 0 ;
15776 PyObject * obj4 = 0 ;
15777 PyObject * obj5 = 0 ;
15778 PyObject * obj6 = 0 ;
15779 char *kwnames[] = {
15780 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15781 };
15782
15783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15786 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15788 if (obj2) {
15789 arg3 = (int)SWIG_As_int(obj2);
15790 if (PyErr_Occurred()) SWIG_fail;
15791 }
15792 if (obj3) {
15793 {
15794 arg4 = &temp4;
15795 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15796 }
15797 }
15798 if (obj4) {
15799 {
15800 arg5 = &temp5;
15801 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15802 }
15803 }
15804 if (obj5) {
15805 arg6 = (long)SWIG_As_long(obj5);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 if (obj6) {
15809 {
15810 arg7 = wxString_in_helper(obj6);
15811 if (arg7 == NULL) SWIG_fail;
15812 temp7 = True;
15813 }
15814 }
15815 {
15816 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15818
15819 wxPyEndAllowThreads(__tstate);
15820 if (PyErr_Occurred()) SWIG_fail;
15821 }
15822 {
15823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15824 }
15825 {
15826 if (temp7)
15827 delete arg7;
15828 }
15829 return resultobj;
15830 fail:
15831 {
15832 if (temp7)
15833 delete arg7;
15834 }
15835 return NULL;
15836 }
15837
15838
15839 static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
15840 PyObject *resultobj;
15841 wxListbook *arg1 = (wxListbook *) 0 ;
15842 bool result;
15843 PyObject * obj0 = 0 ;
15844 char *kwnames[] = {
15845 (char *) "self", NULL
15846 };
15847
15848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = (bool)((wxListbook const *)arg1)->IsVertical();
15854
15855 wxPyEndAllowThreads(__tstate);
15856 if (PyErr_Occurred()) SWIG_fail;
15857 }
15858 {
15859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15860 }
15861 return resultobj;
15862 fail:
15863 return NULL;
15864 }
15865
15866
15867 static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) {
15868 PyObject *resultobj;
15869 wxListbook *arg1 = (wxListbook *) 0 ;
15870 wxListView *result;
15871 PyObject * obj0 = 0 ;
15872 char *kwnames[] = {
15873 (char *) "self", NULL
15874 };
15875
15876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail;
15877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15879 {
15880 PyThreadState* __tstate = wxPyBeginAllowThreads();
15881 result = (wxListView *)(arg1)->GetListView();
15882
15883 wxPyEndAllowThreads(__tstate);
15884 if (PyErr_Occurred()) SWIG_fail;
15885 }
15886 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0);
15887 return resultobj;
15888 fail:
15889 return NULL;
15890 }
15891
15892
15893 static PyObject * Listbook_swigregister(PyObject *, PyObject *args) {
15894 PyObject *obj;
15895 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15896 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15897 Py_INCREF(obj);
15898 return Py_BuildValue((char *)"");
15899 }
15900 static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15901 PyObject *resultobj;
15902 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15903 int arg2 = (int) 0 ;
15904 int arg3 = (int) -1 ;
15905 int arg4 = (int) -1 ;
15906 wxListbookEvent *result;
15907 PyObject * obj0 = 0 ;
15908 PyObject * obj1 = 0 ;
15909 PyObject * obj2 = 0 ;
15910 PyObject * obj3 = 0 ;
15911 char *kwnames[] = {
15912 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15913 };
15914
15915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15916 if (obj0) {
15917 arg1 = (wxEventType)SWIG_As_int(obj0);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 if (obj1) {
15921 arg2 = (int)SWIG_As_int(obj1);
15922 if (PyErr_Occurred()) SWIG_fail;
15923 }
15924 if (obj2) {
15925 arg3 = (int)SWIG_As_int(obj2);
15926 if (PyErr_Occurred()) SWIG_fail;
15927 }
15928 if (obj3) {
15929 arg4 = (int)SWIG_As_int(obj3);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 {
15933 PyThreadState* __tstate = wxPyBeginAllowThreads();
15934 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15935
15936 wxPyEndAllowThreads(__tstate);
15937 if (PyErr_Occurred()) SWIG_fail;
15938 }
15939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15940 return resultobj;
15941 fail:
15942 return NULL;
15943 }
15944
15945
15946 static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) {
15947 PyObject *obj;
15948 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15949 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15950 Py_INCREF(obj);
15951 return Py_BuildValue((char *)"");
15952 }
15953 static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) {
15954 PyObject *resultobj;
15955 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15956 wxBookCtrlSizer *result;
15957 PyObject * obj0 = 0 ;
15958 char *kwnames[] = {
15959 (char *) "nb", NULL
15960 };
15961
15962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15965 {
15966 PyThreadState* __tstate = wxPyBeginAllowThreads();
15967 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15968
15969 wxPyEndAllowThreads(__tstate);
15970 if (PyErr_Occurred()) SWIG_fail;
15971 }
15972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15973 return resultobj;
15974 fail:
15975 return NULL;
15976 }
15977
15978
15979 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
15980 PyObject *resultobj;
15981 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15982 PyObject * obj0 = 0 ;
15983 char *kwnames[] = {
15984 (char *) "self", NULL
15985 };
15986
15987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15990 {
15991 PyThreadState* __tstate = wxPyBeginAllowThreads();
15992 (arg1)->RecalcSizes();
15993
15994 wxPyEndAllowThreads(__tstate);
15995 if (PyErr_Occurred()) SWIG_fail;
15996 }
15997 Py_INCREF(Py_None); resultobj = Py_None;
15998 return resultobj;
15999 fail:
16000 return NULL;
16001 }
16002
16003
16004 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16005 PyObject *resultobj;
16006 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16007 wxSize result;
16008 PyObject * obj0 = 0 ;
16009 char *kwnames[] = {
16010 (char *) "self", NULL
16011 };
16012
16013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
16014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16016 {
16017 PyThreadState* __tstate = wxPyBeginAllowThreads();
16018 result = (arg1)->CalcMin();
16019
16020 wxPyEndAllowThreads(__tstate);
16021 if (PyErr_Occurred()) SWIG_fail;
16022 }
16023 {
16024 wxSize * resultptr;
16025 resultptr = new wxSize((wxSize &) result);
16026 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16027 }
16028 return resultobj;
16029 fail:
16030 return NULL;
16031 }
16032
16033
16034 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16035 PyObject *resultobj;
16036 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16037 wxBookCtrl *result;
16038 PyObject * obj0 = 0 ;
16039 char *kwnames[] = {
16040 (char *) "self", NULL
16041 };
16042
16043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
16044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16046 {
16047 PyThreadState* __tstate = wxPyBeginAllowThreads();
16048 result = (wxBookCtrl *)(arg1)->GetControl();
16049
16050 wxPyEndAllowThreads(__tstate);
16051 if (PyErr_Occurred()) SWIG_fail;
16052 }
16053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
16054 return resultobj;
16055 fail:
16056 return NULL;
16057 }
16058
16059
16060 static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) {
16061 PyObject *obj;
16062 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16063 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
16064 Py_INCREF(obj);
16065 return Py_BuildValue((char *)"");
16066 }
16067 static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16068 PyObject *resultobj;
16069 wxNotebook *arg1 = (wxNotebook *) 0 ;
16070 wxNotebookSizer *result;
16071 PyObject * obj0 = 0 ;
16072 char *kwnames[] = {
16073 (char *) "nb", NULL
16074 };
16075
16076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
16077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
16078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16079 {
16080 PyThreadState* __tstate = wxPyBeginAllowThreads();
16081 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
16082
16083 wxPyEndAllowThreads(__tstate);
16084 if (PyErr_Occurred()) SWIG_fail;
16085 }
16086 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
16087 return resultobj;
16088 fail:
16089 return NULL;
16090 }
16091
16092
16093 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16094 PyObject *resultobj;
16095 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16096 PyObject * obj0 = 0 ;
16097 char *kwnames[] = {
16098 (char *) "self", NULL
16099 };
16100
16101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16104 {
16105 PyThreadState* __tstate = wxPyBeginAllowThreads();
16106 (arg1)->RecalcSizes();
16107
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 Py_INCREF(Py_None); resultobj = Py_None;
16112 return resultobj;
16113 fail:
16114 return NULL;
16115 }
16116
16117
16118 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16119 PyObject *resultobj;
16120 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16121 wxSize result;
16122 PyObject * obj0 = 0 ;
16123 char *kwnames[] = {
16124 (char *) "self", NULL
16125 };
16126
16127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
16128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16130 {
16131 PyThreadState* __tstate = wxPyBeginAllowThreads();
16132 result = (arg1)->CalcMin();
16133
16134 wxPyEndAllowThreads(__tstate);
16135 if (PyErr_Occurred()) SWIG_fail;
16136 }
16137 {
16138 wxSize * resultptr;
16139 resultptr = new wxSize((wxSize &) result);
16140 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16141 }
16142 return resultobj;
16143 fail:
16144 return NULL;
16145 }
16146
16147
16148 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
16149 PyObject *resultobj;
16150 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16151 wxNotebook *result;
16152 PyObject * obj0 = 0 ;
16153 char *kwnames[] = {
16154 (char *) "self", NULL
16155 };
16156
16157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
16158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 result = (wxNotebook *)(arg1)->GetNotebook();
16163
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 {
16168 resultobj = wxPyMake_wxObject(result, 0);
16169 }
16170 return resultobj;
16171 fail:
16172 return NULL;
16173 }
16174
16175
16176 static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) {
16177 PyObject *obj;
16178 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16179 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
16180 Py_INCREF(obj);
16181 return Py_BuildValue((char *)"");
16182 }
16183 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
16184 PyObject *resultobj;
16185 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16186 int result;
16187 PyObject * obj0 = 0 ;
16188 char *kwnames[] = {
16189 (char *) "self", NULL
16190 };
16191
16192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
16193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16195 {
16196 PyThreadState* __tstate = wxPyBeginAllowThreads();
16197 result = (int)(arg1)->GetId();
16198
16199 wxPyEndAllowThreads(__tstate);
16200 if (PyErr_Occurred()) SWIG_fail;
16201 }
16202 resultobj = SWIG_From_int((int)result);
16203 return resultobj;
16204 fail:
16205 return NULL;
16206 }
16207
16208
16209 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16210 PyObject *resultobj;
16211 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16212 wxControl *result;
16213 PyObject * obj0 = 0 ;
16214 char *kwnames[] = {
16215 (char *) "self", NULL
16216 };
16217
16218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
16219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16221 {
16222 PyThreadState* __tstate = wxPyBeginAllowThreads();
16223 result = (wxControl *)(arg1)->GetControl();
16224
16225 wxPyEndAllowThreads(__tstate);
16226 if (PyErr_Occurred()) SWIG_fail;
16227 }
16228 {
16229 resultobj = wxPyMake_wxObject(result, 0);
16230 }
16231 return resultobj;
16232 fail:
16233 return NULL;
16234 }
16235
16236
16237 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
16238 PyObject *resultobj;
16239 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16240 wxToolBarBase *result;
16241 PyObject * obj0 = 0 ;
16242 char *kwnames[] = {
16243 (char *) "self", NULL
16244 };
16245
16246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
16247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16249 {
16250 PyThreadState* __tstate = wxPyBeginAllowThreads();
16251 result = (wxToolBarBase *)(arg1)->GetToolBar();
16252
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 {
16257 resultobj = wxPyMake_wxObject(result, 0);
16258 }
16259 return resultobj;
16260 fail:
16261 return NULL;
16262 }
16263
16264
16265 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
16266 PyObject *resultobj;
16267 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16268 int result;
16269 PyObject * obj0 = 0 ;
16270 char *kwnames[] = {
16271 (char *) "self", NULL
16272 };
16273
16274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
16275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16277 {
16278 PyThreadState* __tstate = wxPyBeginAllowThreads();
16279 result = (int)(arg1)->IsButton();
16280
16281 wxPyEndAllowThreads(__tstate);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 }
16284 resultobj = SWIG_From_int((int)result);
16285 return resultobj;
16286 fail:
16287 return NULL;
16288 }
16289
16290
16291 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) {
16292 PyObject *resultobj;
16293 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16294 int result;
16295 PyObject * obj0 = 0 ;
16296 char *kwnames[] = {
16297 (char *) "self", NULL
16298 };
16299
16300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
16301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16303 {
16304 PyThreadState* __tstate = wxPyBeginAllowThreads();
16305 result = (int)(arg1)->IsControl();
16306
16307 wxPyEndAllowThreads(__tstate);
16308 if (PyErr_Occurred()) SWIG_fail;
16309 }
16310 resultobj = SWIG_From_int((int)result);
16311 return resultobj;
16312 fail:
16313 return NULL;
16314 }
16315
16316
16317 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16318 PyObject *resultobj;
16319 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16320 int result;
16321 PyObject * obj0 = 0 ;
16322 char *kwnames[] = {
16323 (char *) "self", NULL
16324 };
16325
16326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16329 {
16330 PyThreadState* __tstate = wxPyBeginAllowThreads();
16331 result = (int)(arg1)->IsSeparator();
16332
16333 wxPyEndAllowThreads(__tstate);
16334 if (PyErr_Occurred()) SWIG_fail;
16335 }
16336 resultobj = SWIG_From_int((int)result);
16337 return resultobj;
16338 fail:
16339 return NULL;
16340 }
16341
16342
16343 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16344 PyObject *resultobj;
16345 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16346 int result;
16347 PyObject * obj0 = 0 ;
16348 char *kwnames[] = {
16349 (char *) "self", NULL
16350 };
16351
16352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16355 {
16356 PyThreadState* __tstate = wxPyBeginAllowThreads();
16357 result = (int)(arg1)->GetStyle();
16358
16359 wxPyEndAllowThreads(__tstate);
16360 if (PyErr_Occurred()) SWIG_fail;
16361 }
16362 resultobj = SWIG_From_int((int)result);
16363 return resultobj;
16364 fail:
16365 return NULL;
16366 }
16367
16368
16369 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
16370 PyObject *resultobj;
16371 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16372 int result;
16373 PyObject * obj0 = 0 ;
16374 char *kwnames[] = {
16375 (char *) "self", NULL
16376 };
16377
16378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
16383 result = (int)(arg1)->GetKind();
16384
16385 wxPyEndAllowThreads(__tstate);
16386 if (PyErr_Occurred()) SWIG_fail;
16387 }
16388 resultobj = SWIG_From_int((int)result);
16389 return resultobj;
16390 fail:
16391 return NULL;
16392 }
16393
16394
16395 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
16396 PyObject *resultobj;
16397 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16398 bool result;
16399 PyObject * obj0 = 0 ;
16400 char *kwnames[] = {
16401 (char *) "self", NULL
16402 };
16403
16404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16407 {
16408 PyThreadState* __tstate = wxPyBeginAllowThreads();
16409 result = (bool)(arg1)->IsEnabled();
16410
16411 wxPyEndAllowThreads(__tstate);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 {
16415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16416 }
16417 return resultobj;
16418 fail:
16419 return NULL;
16420 }
16421
16422
16423 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16424 PyObject *resultobj;
16425 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16426 bool result;
16427 PyObject * obj0 = 0 ;
16428 char *kwnames[] = {
16429 (char *) "self", NULL
16430 };
16431
16432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16435 {
16436 PyThreadState* __tstate = wxPyBeginAllowThreads();
16437 result = (bool)(arg1)->IsToggled();
16438
16439 wxPyEndAllowThreads(__tstate);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 }
16442 {
16443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16444 }
16445 return resultobj;
16446 fail:
16447 return NULL;
16448 }
16449
16450
16451 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16452 PyObject *resultobj;
16453 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16454 bool result;
16455 PyObject * obj0 = 0 ;
16456 char *kwnames[] = {
16457 (char *) "self", NULL
16458 };
16459
16460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16463 {
16464 PyThreadState* __tstate = wxPyBeginAllowThreads();
16465 result = (bool)(arg1)->CanBeToggled();
16466
16467 wxPyEndAllowThreads(__tstate);
16468 if (PyErr_Occurred()) SWIG_fail;
16469 }
16470 {
16471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16472 }
16473 return resultobj;
16474 fail:
16475 return NULL;
16476 }
16477
16478
16479 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16480 PyObject *resultobj;
16481 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16482 wxBitmap *result;
16483 PyObject * obj0 = 0 ;
16484 char *kwnames[] = {
16485 (char *) "self", NULL
16486 };
16487
16488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16491 {
16492 PyThreadState* __tstate = wxPyBeginAllowThreads();
16493 {
16494 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16495 result = (wxBitmap *) &_result_ref;
16496 }
16497
16498 wxPyEndAllowThreads(__tstate);
16499 if (PyErr_Occurred()) SWIG_fail;
16500 }
16501 {
16502 wxBitmap* resultptr = new wxBitmap(*result);
16503 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16504 }
16505 return resultobj;
16506 fail:
16507 return NULL;
16508 }
16509
16510
16511 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16512 PyObject *resultobj;
16513 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16514 wxBitmap *result;
16515 PyObject * obj0 = 0 ;
16516 char *kwnames[] = {
16517 (char *) "self", NULL
16518 };
16519
16520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16523 {
16524 PyThreadState* __tstate = wxPyBeginAllowThreads();
16525 {
16526 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16527 result = (wxBitmap *) &_result_ref;
16528 }
16529
16530 wxPyEndAllowThreads(__tstate);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 }
16533 {
16534 wxBitmap* resultptr = new wxBitmap(*result);
16535 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16536 }
16537 return resultobj;
16538 fail:
16539 return NULL;
16540 }
16541
16542
16543 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16544 PyObject *resultobj;
16545 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16546 wxBitmap result;
16547 PyObject * obj0 = 0 ;
16548 char *kwnames[] = {
16549 (char *) "self", NULL
16550 };
16551
16552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16555 {
16556 PyThreadState* __tstate = wxPyBeginAllowThreads();
16557 result = (arg1)->GetBitmap();
16558
16559 wxPyEndAllowThreads(__tstate);
16560 if (PyErr_Occurred()) SWIG_fail;
16561 }
16562 {
16563 wxBitmap * resultptr;
16564 resultptr = new wxBitmap((wxBitmap &) result);
16565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16566 }
16567 return resultobj;
16568 fail:
16569 return NULL;
16570 }
16571
16572
16573 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16574 PyObject *resultobj;
16575 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16576 wxString result;
16577 PyObject * obj0 = 0 ;
16578 char *kwnames[] = {
16579 (char *) "self", NULL
16580 };
16581
16582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16585 {
16586 PyThreadState* __tstate = wxPyBeginAllowThreads();
16587 result = (arg1)->GetLabel();
16588
16589 wxPyEndAllowThreads(__tstate);
16590 if (PyErr_Occurred()) SWIG_fail;
16591 }
16592 {
16593 #if wxUSE_UNICODE
16594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16595 #else
16596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16597 #endif
16598 }
16599 return resultobj;
16600 fail:
16601 return NULL;
16602 }
16603
16604
16605 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16606 PyObject *resultobj;
16607 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16608 wxString result;
16609 PyObject * obj0 = 0 ;
16610 char *kwnames[] = {
16611 (char *) "self", NULL
16612 };
16613
16614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16617 {
16618 PyThreadState* __tstate = wxPyBeginAllowThreads();
16619 result = (arg1)->GetShortHelp();
16620
16621 wxPyEndAllowThreads(__tstate);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
16624 {
16625 #if wxUSE_UNICODE
16626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16627 #else
16628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16629 #endif
16630 }
16631 return resultobj;
16632 fail:
16633 return NULL;
16634 }
16635
16636
16637 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16638 PyObject *resultobj;
16639 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16640 wxString result;
16641 PyObject * obj0 = 0 ;
16642 char *kwnames[] = {
16643 (char *) "self", NULL
16644 };
16645
16646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16649 {
16650 PyThreadState* __tstate = wxPyBeginAllowThreads();
16651 result = (arg1)->GetLongHelp();
16652
16653 wxPyEndAllowThreads(__tstate);
16654 if (PyErr_Occurred()) SWIG_fail;
16655 }
16656 {
16657 #if wxUSE_UNICODE
16658 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16659 #else
16660 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16661 #endif
16662 }
16663 return resultobj;
16664 fail:
16665 return NULL;
16666 }
16667
16668
16669 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
16670 PyObject *resultobj;
16671 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16672 bool arg2 ;
16673 bool result;
16674 PyObject * obj0 = 0 ;
16675 PyObject * obj1 = 0 ;
16676 char *kwnames[] = {
16677 (char *) "self",(char *) "enable", NULL
16678 };
16679
16680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16683 arg2 = (bool)SWIG_As_bool(obj1);
16684 if (PyErr_Occurred()) SWIG_fail;
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 result = (bool)(arg1)->Enable(arg2);
16688
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 {
16693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16694 }
16695 return resultobj;
16696 fail:
16697 return NULL;
16698 }
16699
16700
16701 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
16702 PyObject *resultobj;
16703 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16704 PyObject * obj0 = 0 ;
16705 char *kwnames[] = {
16706 (char *) "self", NULL
16707 };
16708
16709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16712 {
16713 PyThreadState* __tstate = wxPyBeginAllowThreads();
16714 (arg1)->Toggle();
16715
16716 wxPyEndAllowThreads(__tstate);
16717 if (PyErr_Occurred()) SWIG_fail;
16718 }
16719 Py_INCREF(Py_None); resultobj = Py_None;
16720 return resultobj;
16721 fail:
16722 return NULL;
16723 }
16724
16725
16726 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
16727 PyObject *resultobj;
16728 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16729 bool arg2 ;
16730 bool result;
16731 PyObject * obj0 = 0 ;
16732 PyObject * obj1 = 0 ;
16733 char *kwnames[] = {
16734 (char *) "self",(char *) "toggle", NULL
16735 };
16736
16737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16740 arg2 = (bool)SWIG_As_bool(obj1);
16741 if (PyErr_Occurred()) SWIG_fail;
16742 {
16743 PyThreadState* __tstate = wxPyBeginAllowThreads();
16744 result = (bool)(arg1)->SetToggle(arg2);
16745
16746 wxPyEndAllowThreads(__tstate);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 }
16749 {
16750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16751 }
16752 return resultobj;
16753 fail:
16754 return NULL;
16755 }
16756
16757
16758 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16759 PyObject *resultobj;
16760 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16761 wxString *arg2 = 0 ;
16762 bool result;
16763 bool temp2 = False ;
16764 PyObject * obj0 = 0 ;
16765 PyObject * obj1 = 0 ;
16766 char *kwnames[] = {
16767 (char *) "self",(char *) "help", NULL
16768 };
16769
16770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16773 {
16774 arg2 = wxString_in_helper(obj1);
16775 if (arg2 == NULL) SWIG_fail;
16776 temp2 = True;
16777 }
16778 {
16779 PyThreadState* __tstate = wxPyBeginAllowThreads();
16780 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
16781
16782 wxPyEndAllowThreads(__tstate);
16783 if (PyErr_Occurred()) SWIG_fail;
16784 }
16785 {
16786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16787 }
16788 {
16789 if (temp2)
16790 delete arg2;
16791 }
16792 return resultobj;
16793 fail:
16794 {
16795 if (temp2)
16796 delete arg2;
16797 }
16798 return NULL;
16799 }
16800
16801
16802 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16803 PyObject *resultobj;
16804 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16805 wxString *arg2 = 0 ;
16806 bool result;
16807 bool temp2 = False ;
16808 PyObject * obj0 = 0 ;
16809 PyObject * obj1 = 0 ;
16810 char *kwnames[] = {
16811 (char *) "self",(char *) "help", NULL
16812 };
16813
16814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16817 {
16818 arg2 = wxString_in_helper(obj1);
16819 if (arg2 == NULL) SWIG_fail;
16820 temp2 = True;
16821 }
16822 {
16823 PyThreadState* __tstate = wxPyBeginAllowThreads();
16824 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16825
16826 wxPyEndAllowThreads(__tstate);
16827 if (PyErr_Occurred()) SWIG_fail;
16828 }
16829 {
16830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16831 }
16832 {
16833 if (temp2)
16834 delete arg2;
16835 }
16836 return resultobj;
16837 fail:
16838 {
16839 if (temp2)
16840 delete arg2;
16841 }
16842 return NULL;
16843 }
16844
16845
16846 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16847 PyObject *resultobj;
16848 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16849 wxBitmap *arg2 = 0 ;
16850 PyObject * obj0 = 0 ;
16851 PyObject * obj1 = 0 ;
16852 char *kwnames[] = {
16853 (char *) "self",(char *) "bmp", NULL
16854 };
16855
16856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16859 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16860 SWIG_POINTER_EXCEPTION | 0)) == -1)
16861 SWIG_fail;
16862 if (arg2 == NULL) {
16863 PyErr_SetString(PyExc_TypeError,"null reference");
16864 SWIG_fail;
16865 }
16866 {
16867 PyThreadState* __tstate = wxPyBeginAllowThreads();
16868 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16869
16870 wxPyEndAllowThreads(__tstate);
16871 if (PyErr_Occurred()) SWIG_fail;
16872 }
16873 Py_INCREF(Py_None); resultobj = Py_None;
16874 return resultobj;
16875 fail:
16876 return NULL;
16877 }
16878
16879
16880 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16881 PyObject *resultobj;
16882 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16883 wxBitmap *arg2 = 0 ;
16884 PyObject * obj0 = 0 ;
16885 PyObject * obj1 = 0 ;
16886 char *kwnames[] = {
16887 (char *) "self",(char *) "bmp", NULL
16888 };
16889
16890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16893 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16894 SWIG_POINTER_EXCEPTION | 0)) == -1)
16895 SWIG_fail;
16896 if (arg2 == NULL) {
16897 PyErr_SetString(PyExc_TypeError,"null reference");
16898 SWIG_fail;
16899 }
16900 {
16901 PyThreadState* __tstate = wxPyBeginAllowThreads();
16902 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16903
16904 wxPyEndAllowThreads(__tstate);
16905 if (PyErr_Occurred()) SWIG_fail;
16906 }
16907 Py_INCREF(Py_None); resultobj = Py_None;
16908 return resultobj;
16909 fail:
16910 return NULL;
16911 }
16912
16913
16914 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16915 PyObject *resultobj;
16916 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16917 wxString *arg2 = 0 ;
16918 bool temp2 = False ;
16919 PyObject * obj0 = 0 ;
16920 PyObject * obj1 = 0 ;
16921 char *kwnames[] = {
16922 (char *) "self",(char *) "label", NULL
16923 };
16924
16925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16928 {
16929 arg2 = wxString_in_helper(obj1);
16930 if (arg2 == NULL) SWIG_fail;
16931 temp2 = True;
16932 }
16933 {
16934 PyThreadState* __tstate = wxPyBeginAllowThreads();
16935 (arg1)->SetLabel((wxString const &)*arg2);
16936
16937 wxPyEndAllowThreads(__tstate);
16938 if (PyErr_Occurred()) SWIG_fail;
16939 }
16940 Py_INCREF(Py_None); resultobj = Py_None;
16941 {
16942 if (temp2)
16943 delete arg2;
16944 }
16945 return resultobj;
16946 fail:
16947 {
16948 if (temp2)
16949 delete arg2;
16950 }
16951 return NULL;
16952 }
16953
16954
16955 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
16956 PyObject *resultobj;
16957 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16958 PyObject * obj0 = 0 ;
16959 char *kwnames[] = {
16960 (char *) "self", NULL
16961 };
16962
16963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16966 {
16967 PyThreadState* __tstate = wxPyBeginAllowThreads();
16968 (arg1)->Detach();
16969
16970 wxPyEndAllowThreads(__tstate);
16971 if (PyErr_Occurred()) SWIG_fail;
16972 }
16973 Py_INCREF(Py_None); resultobj = Py_None;
16974 return resultobj;
16975 fail:
16976 return NULL;
16977 }
16978
16979
16980 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
16981 PyObject *resultobj;
16982 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16983 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16984 PyObject * obj0 = 0 ;
16985 PyObject * obj1 = 0 ;
16986 char *kwnames[] = {
16987 (char *) "self",(char *) "tbar", NULL
16988 };
16989
16990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16993 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16995 {
16996 PyThreadState* __tstate = wxPyBeginAllowThreads();
16997 (arg1)->Attach(arg2);
16998
16999 wxPyEndAllowThreads(__tstate);
17000 if (PyErr_Occurred()) SWIG_fail;
17001 }
17002 Py_INCREF(Py_None); resultobj = Py_None;
17003 return resultobj;
17004 fail:
17005 return NULL;
17006 }
17007
17008
17009 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17010 PyObject *resultobj;
17011 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17012 PyObject *result;
17013 PyObject * obj0 = 0 ;
17014 char *kwnames[] = {
17015 (char *) "self", NULL
17016 };
17017
17018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
17019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17021 {
17022 PyThreadState* __tstate = wxPyBeginAllowThreads();
17023 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
17024
17025 wxPyEndAllowThreads(__tstate);
17026 if (PyErr_Occurred()) SWIG_fail;
17027 }
17028 resultobj = result;
17029 return resultobj;
17030 fail:
17031 return NULL;
17032 }
17033
17034
17035 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17036 PyObject *resultobj;
17037 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17038 PyObject *arg2 = (PyObject *) 0 ;
17039 PyObject * obj0 = 0 ;
17040 PyObject * obj1 = 0 ;
17041 char *kwnames[] = {
17042 (char *) "self",(char *) "clientData", NULL
17043 };
17044
17045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
17046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17048 arg2 = obj1;
17049 {
17050 PyThreadState* __tstate = wxPyBeginAllowThreads();
17051 wxToolBarToolBase_SetClientData(arg1,arg2);
17052
17053 wxPyEndAllowThreads(__tstate);
17054 if (PyErr_Occurred()) SWIG_fail;
17055 }
17056 Py_INCREF(Py_None); resultobj = Py_None;
17057 return resultobj;
17058 fail:
17059 return NULL;
17060 }
17061
17062
17063 static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) {
17064 PyObject *obj;
17065 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17066 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
17067 Py_INCREF(obj);
17068 return Py_BuildValue((char *)"");
17069 }
17070 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) {
17071 PyObject *resultobj;
17072 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17073 int arg2 ;
17074 wxString *arg3 = 0 ;
17075 wxBitmap *arg4 = 0 ;
17076 wxBitmap const &arg5_defvalue = wxNullBitmap ;
17077 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
17078 int arg6 = (int) wxITEM_NORMAL ;
17079 wxString const &arg7_defvalue = wxPyEmptyString ;
17080 wxString *arg7 = (wxString *) &arg7_defvalue ;
17081 wxString const &arg8_defvalue = wxPyEmptyString ;
17082 wxString *arg8 = (wxString *) &arg8_defvalue ;
17083 PyObject *arg9 = (PyObject *) NULL ;
17084 wxToolBarToolBase *result;
17085 bool temp3 = False ;
17086 bool temp7 = False ;
17087 bool temp8 = False ;
17088 PyObject * obj0 = 0 ;
17089 PyObject * obj1 = 0 ;
17090 PyObject * obj2 = 0 ;
17091 PyObject * obj3 = 0 ;
17092 PyObject * obj4 = 0 ;
17093 PyObject * obj5 = 0 ;
17094 PyObject * obj6 = 0 ;
17095 PyObject * obj7 = 0 ;
17096 PyObject * obj8 = 0 ;
17097 char *kwnames[] = {
17098 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17099 };
17100
17101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
17102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17104 arg2 = (int)SWIG_As_int(obj1);
17105 if (PyErr_Occurred()) SWIG_fail;
17106 {
17107 arg3 = wxString_in_helper(obj2);
17108 if (arg3 == NULL) SWIG_fail;
17109 temp3 = True;
17110 }
17111 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17112 SWIG_POINTER_EXCEPTION | 0)) == -1)
17113 SWIG_fail;
17114 if (arg4 == NULL) {
17115 PyErr_SetString(PyExc_TypeError,"null reference");
17116 SWIG_fail;
17117 }
17118 if (obj4) {
17119 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17120 SWIG_POINTER_EXCEPTION | 0)) == -1)
17121 SWIG_fail;
17122 if (arg5 == NULL) {
17123 PyErr_SetString(PyExc_TypeError,"null reference");
17124 SWIG_fail;
17125 }
17126 }
17127 if (obj5) {
17128 arg6 = (int)SWIG_As_int(obj5);
17129 if (PyErr_Occurred()) SWIG_fail;
17130 }
17131 if (obj6) {
17132 {
17133 arg7 = wxString_in_helper(obj6);
17134 if (arg7 == NULL) SWIG_fail;
17135 temp7 = True;
17136 }
17137 }
17138 if (obj7) {
17139 {
17140 arg8 = wxString_in_helper(obj7);
17141 if (arg8 == NULL) SWIG_fail;
17142 temp8 = True;
17143 }
17144 }
17145 if (obj8) {
17146 arg9 = obj8;
17147 }
17148 {
17149 PyThreadState* __tstate = wxPyBeginAllowThreads();
17150 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
17151
17152 wxPyEndAllowThreads(__tstate);
17153 if (PyErr_Occurred()) SWIG_fail;
17154 }
17155 {
17156 resultobj = wxPyMake_wxObject(result, 0);
17157 }
17158 {
17159 if (temp3)
17160 delete arg3;
17161 }
17162 {
17163 if (temp7)
17164 delete arg7;
17165 }
17166 {
17167 if (temp8)
17168 delete arg8;
17169 }
17170 return resultobj;
17171 fail:
17172 {
17173 if (temp3)
17174 delete arg3;
17175 }
17176 {
17177 if (temp7)
17178 delete arg7;
17179 }
17180 {
17181 if (temp8)
17182 delete arg8;
17183 }
17184 return NULL;
17185 }
17186
17187
17188 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) {
17189 PyObject *resultobj;
17190 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17191 size_t arg2 ;
17192 int arg3 ;
17193 wxString *arg4 = 0 ;
17194 wxBitmap *arg5 = 0 ;
17195 wxBitmap const &arg6_defvalue = wxNullBitmap ;
17196 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
17197 int arg7 = (int) wxITEM_NORMAL ;
17198 wxString const &arg8_defvalue = wxPyEmptyString ;
17199 wxString *arg8 = (wxString *) &arg8_defvalue ;
17200 wxString const &arg9_defvalue = wxPyEmptyString ;
17201 wxString *arg9 = (wxString *) &arg9_defvalue ;
17202 PyObject *arg10 = (PyObject *) NULL ;
17203 wxToolBarToolBase *result;
17204 bool temp4 = False ;
17205 bool temp8 = False ;
17206 bool temp9 = False ;
17207 PyObject * obj0 = 0 ;
17208 PyObject * obj1 = 0 ;
17209 PyObject * obj2 = 0 ;
17210 PyObject * obj3 = 0 ;
17211 PyObject * obj4 = 0 ;
17212 PyObject * obj5 = 0 ;
17213 PyObject * obj6 = 0 ;
17214 PyObject * obj7 = 0 ;
17215 PyObject * obj8 = 0 ;
17216 PyObject * obj9 = 0 ;
17217 char *kwnames[] = {
17218 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17219 };
17220
17221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
17222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17224 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17225 if (PyErr_Occurred()) SWIG_fail;
17226 arg3 = (int)SWIG_As_int(obj2);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 {
17229 arg4 = wxString_in_helper(obj3);
17230 if (arg4 == NULL) SWIG_fail;
17231 temp4 = True;
17232 }
17233 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17234 SWIG_POINTER_EXCEPTION | 0)) == -1)
17235 SWIG_fail;
17236 if (arg5 == NULL) {
17237 PyErr_SetString(PyExc_TypeError,"null reference");
17238 SWIG_fail;
17239 }
17240 if (obj5) {
17241 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
17242 SWIG_POINTER_EXCEPTION | 0)) == -1)
17243 SWIG_fail;
17244 if (arg6 == NULL) {
17245 PyErr_SetString(PyExc_TypeError,"null reference");
17246 SWIG_fail;
17247 }
17248 }
17249 if (obj6) {
17250 arg7 = (int)SWIG_As_int(obj6);
17251 if (PyErr_Occurred()) SWIG_fail;
17252 }
17253 if (obj7) {
17254 {
17255 arg8 = wxString_in_helper(obj7);
17256 if (arg8 == NULL) SWIG_fail;
17257 temp8 = True;
17258 }
17259 }
17260 if (obj8) {
17261 {
17262 arg9 = wxString_in_helper(obj8);
17263 if (arg9 == NULL) SWIG_fail;
17264 temp9 = True;
17265 }
17266 }
17267 if (obj9) {
17268 arg10 = obj9;
17269 }
17270 {
17271 PyThreadState* __tstate = wxPyBeginAllowThreads();
17272 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);
17273
17274 wxPyEndAllowThreads(__tstate);
17275 if (PyErr_Occurred()) SWIG_fail;
17276 }
17277 {
17278 resultobj = wxPyMake_wxObject(result, 0);
17279 }
17280 {
17281 if (temp4)
17282 delete arg4;
17283 }
17284 {
17285 if (temp8)
17286 delete arg8;
17287 }
17288 {
17289 if (temp9)
17290 delete arg9;
17291 }
17292 return resultobj;
17293 fail:
17294 {
17295 if (temp4)
17296 delete arg4;
17297 }
17298 {
17299 if (temp8)
17300 delete arg8;
17301 }
17302 {
17303 if (temp9)
17304 delete arg9;
17305 }
17306 return NULL;
17307 }
17308
17309
17310 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17311 PyObject *resultobj;
17312 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17313 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17314 wxToolBarToolBase *result;
17315 PyObject * obj0 = 0 ;
17316 PyObject * obj1 = 0 ;
17317 char *kwnames[] = {
17318 (char *) "self",(char *) "tool", NULL
17319 };
17320
17321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17324 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17326 {
17327 PyThreadState* __tstate = wxPyBeginAllowThreads();
17328 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17329
17330 wxPyEndAllowThreads(__tstate);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 }
17333 {
17334 resultobj = wxPyMake_wxObject(result, 0);
17335 }
17336 return resultobj;
17337 fail:
17338 return NULL;
17339 }
17340
17341
17342 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17343 PyObject *resultobj;
17344 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17345 size_t arg2 ;
17346 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17347 wxToolBarToolBase *result;
17348 PyObject * obj0 = 0 ;
17349 PyObject * obj1 = 0 ;
17350 PyObject * obj2 = 0 ;
17351 char *kwnames[] = {
17352 (char *) "self",(char *) "pos",(char *) "tool", NULL
17353 };
17354
17355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17358 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17359 if (PyErr_Occurred()) SWIG_fail;
17360 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17362 {
17363 PyThreadState* __tstate = wxPyBeginAllowThreads();
17364 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17365
17366 wxPyEndAllowThreads(__tstate);
17367 if (PyErr_Occurred()) SWIG_fail;
17368 }
17369 {
17370 resultobj = wxPyMake_wxObject(result, 0);
17371 }
17372 return resultobj;
17373 fail:
17374 return NULL;
17375 }
17376
17377
17378 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) {
17379 PyObject *resultobj;
17380 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17381 wxControl *arg2 = (wxControl *) 0 ;
17382 wxToolBarToolBase *result;
17383 PyObject * obj0 = 0 ;
17384 PyObject * obj1 = 0 ;
17385 char *kwnames[] = {
17386 (char *) "self",(char *) "control", NULL
17387 };
17388
17389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17392 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17394 {
17395 PyThreadState* __tstate = wxPyBeginAllowThreads();
17396 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17397
17398 wxPyEndAllowThreads(__tstate);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 }
17401 {
17402 resultobj = wxPyMake_wxObject(result, 0);
17403 }
17404 return resultobj;
17405 fail:
17406 return NULL;
17407 }
17408
17409
17410 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) {
17411 PyObject *resultobj;
17412 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17413 size_t arg2 ;
17414 wxControl *arg3 = (wxControl *) 0 ;
17415 wxToolBarToolBase *result;
17416 PyObject * obj0 = 0 ;
17417 PyObject * obj1 = 0 ;
17418 PyObject * obj2 = 0 ;
17419 char *kwnames[] = {
17420 (char *) "self",(char *) "pos",(char *) "control", NULL
17421 };
17422
17423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17426 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17427 if (PyErr_Occurred()) SWIG_fail;
17428 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17430 {
17431 PyThreadState* __tstate = wxPyBeginAllowThreads();
17432 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17433
17434 wxPyEndAllowThreads(__tstate);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 }
17437 {
17438 resultobj = wxPyMake_wxObject(result, 0);
17439 }
17440 return resultobj;
17441 fail:
17442 return NULL;
17443 }
17444
17445
17446 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) {
17447 PyObject *resultobj;
17448 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17449 int arg2 ;
17450 wxControl *result;
17451 PyObject * obj0 = 0 ;
17452 PyObject * obj1 = 0 ;
17453 char *kwnames[] = {
17454 (char *) "self",(char *) "id", NULL
17455 };
17456
17457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17460 arg2 = (int)SWIG_As_int(obj1);
17461 if (PyErr_Occurred()) SWIG_fail;
17462 {
17463 PyThreadState* __tstate = wxPyBeginAllowThreads();
17464 result = (wxControl *)(arg1)->FindControl(arg2);
17465
17466 wxPyEndAllowThreads(__tstate);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 {
17470 resultobj = wxPyMake_wxObject(result, 0);
17471 }
17472 return resultobj;
17473 fail:
17474 return NULL;
17475 }
17476
17477
17478 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17479 PyObject *resultobj;
17480 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17481 wxToolBarToolBase *result;
17482 PyObject * obj0 = 0 ;
17483 char *kwnames[] = {
17484 (char *) "self", NULL
17485 };
17486
17487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17490 {
17491 PyThreadState* __tstate = wxPyBeginAllowThreads();
17492 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17493
17494 wxPyEndAllowThreads(__tstate);
17495 if (PyErr_Occurred()) SWIG_fail;
17496 }
17497 {
17498 resultobj = wxPyMake_wxObject(result, 0);
17499 }
17500 return resultobj;
17501 fail:
17502 return NULL;
17503 }
17504
17505
17506 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17507 PyObject *resultobj;
17508 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17509 size_t arg2 ;
17510 wxToolBarToolBase *result;
17511 PyObject * obj0 = 0 ;
17512 PyObject * obj1 = 0 ;
17513 char *kwnames[] = {
17514 (char *) "self",(char *) "pos", NULL
17515 };
17516
17517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17520 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17521 if (PyErr_Occurred()) SWIG_fail;
17522 {
17523 PyThreadState* __tstate = wxPyBeginAllowThreads();
17524 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17525
17526 wxPyEndAllowThreads(__tstate);
17527 if (PyErr_Occurred()) SWIG_fail;
17528 }
17529 {
17530 resultobj = wxPyMake_wxObject(result, 0);
17531 }
17532 return resultobj;
17533 fail:
17534 return NULL;
17535 }
17536
17537
17538 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) {
17539 PyObject *resultobj;
17540 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17541 int arg2 ;
17542 wxToolBarToolBase *result;
17543 PyObject * obj0 = 0 ;
17544 PyObject * obj1 = 0 ;
17545 char *kwnames[] = {
17546 (char *) "self",(char *) "id", NULL
17547 };
17548
17549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17552 arg2 = (int)SWIG_As_int(obj1);
17553 if (PyErr_Occurred()) SWIG_fail;
17554 {
17555 PyThreadState* __tstate = wxPyBeginAllowThreads();
17556 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17557
17558 wxPyEndAllowThreads(__tstate);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 }
17561 {
17562 resultobj = wxPyMake_wxObject(result, 0);
17563 }
17564 return resultobj;
17565 fail:
17566 return NULL;
17567 }
17568
17569
17570 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) {
17571 PyObject *resultobj;
17572 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17573 size_t arg2 ;
17574 bool result;
17575 PyObject * obj0 = 0 ;
17576 PyObject * obj1 = 0 ;
17577 char *kwnames[] = {
17578 (char *) "self",(char *) "pos", NULL
17579 };
17580
17581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17584 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17585 if (PyErr_Occurred()) SWIG_fail;
17586 {
17587 PyThreadState* __tstate = wxPyBeginAllowThreads();
17588 result = (bool)(arg1)->DeleteToolByPos(arg2);
17589
17590 wxPyEndAllowThreads(__tstate);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
17593 {
17594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17595 }
17596 return resultobj;
17597 fail:
17598 return NULL;
17599 }
17600
17601
17602 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) {
17603 PyObject *resultobj;
17604 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17605 int arg2 ;
17606 bool result;
17607 PyObject * obj0 = 0 ;
17608 PyObject * obj1 = 0 ;
17609 char *kwnames[] = {
17610 (char *) "self",(char *) "id", NULL
17611 };
17612
17613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17616 arg2 = (int)SWIG_As_int(obj1);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 {
17619 PyThreadState* __tstate = wxPyBeginAllowThreads();
17620 result = (bool)(arg1)->DeleteTool(arg2);
17621
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 {
17626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17627 }
17628 return resultobj;
17629 fail:
17630 return NULL;
17631 }
17632
17633
17634 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) {
17635 PyObject *resultobj;
17636 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17637 PyObject * obj0 = 0 ;
17638 char *kwnames[] = {
17639 (char *) "self", NULL
17640 };
17641
17642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17645 {
17646 PyThreadState* __tstate = wxPyBeginAllowThreads();
17647 (arg1)->ClearTools();
17648
17649 wxPyEndAllowThreads(__tstate);
17650 if (PyErr_Occurred()) SWIG_fail;
17651 }
17652 Py_INCREF(Py_None); resultobj = Py_None;
17653 return resultobj;
17654 fail:
17655 return NULL;
17656 }
17657
17658
17659 static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
17660 PyObject *resultobj;
17661 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17662 bool result;
17663 PyObject * obj0 = 0 ;
17664 char *kwnames[] = {
17665 (char *) "self", NULL
17666 };
17667
17668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17671 {
17672 PyThreadState* __tstate = wxPyBeginAllowThreads();
17673 result = (bool)(arg1)->Realize();
17674
17675 wxPyEndAllowThreads(__tstate);
17676 if (PyErr_Occurred()) SWIG_fail;
17677 }
17678 {
17679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17680 }
17681 return resultobj;
17682 fail:
17683 return NULL;
17684 }
17685
17686
17687 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) {
17688 PyObject *resultobj;
17689 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17690 int arg2 ;
17691 bool arg3 ;
17692 PyObject * obj0 = 0 ;
17693 PyObject * obj1 = 0 ;
17694 PyObject * obj2 = 0 ;
17695 char *kwnames[] = {
17696 (char *) "self",(char *) "id",(char *) "enable", NULL
17697 };
17698
17699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17702 arg2 = (int)SWIG_As_int(obj1);
17703 if (PyErr_Occurred()) SWIG_fail;
17704 arg3 = (bool)SWIG_As_bool(obj2);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 {
17707 PyThreadState* __tstate = wxPyBeginAllowThreads();
17708 (arg1)->EnableTool(arg2,arg3);
17709
17710 wxPyEndAllowThreads(__tstate);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 }
17713 Py_INCREF(Py_None); resultobj = Py_None;
17714 return resultobj;
17715 fail:
17716 return NULL;
17717 }
17718
17719
17720 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) {
17721 PyObject *resultobj;
17722 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17723 int arg2 ;
17724 bool arg3 ;
17725 PyObject * obj0 = 0 ;
17726 PyObject * obj1 = 0 ;
17727 PyObject * obj2 = 0 ;
17728 char *kwnames[] = {
17729 (char *) "self",(char *) "id",(char *) "toggle", NULL
17730 };
17731
17732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17735 arg2 = (int)SWIG_As_int(obj1);
17736 if (PyErr_Occurred()) SWIG_fail;
17737 arg3 = (bool)SWIG_As_bool(obj2);
17738 if (PyErr_Occurred()) SWIG_fail;
17739 {
17740 PyThreadState* __tstate = wxPyBeginAllowThreads();
17741 (arg1)->ToggleTool(arg2,arg3);
17742
17743 wxPyEndAllowThreads(__tstate);
17744 if (PyErr_Occurred()) SWIG_fail;
17745 }
17746 Py_INCREF(Py_None); resultobj = Py_None;
17747 return resultobj;
17748 fail:
17749 return NULL;
17750 }
17751
17752
17753 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
17754 PyObject *resultobj;
17755 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17756 int arg2 ;
17757 bool arg3 ;
17758 PyObject * obj0 = 0 ;
17759 PyObject * obj1 = 0 ;
17760 PyObject * obj2 = 0 ;
17761 char *kwnames[] = {
17762 (char *) "self",(char *) "id",(char *) "toggle", NULL
17763 };
17764
17765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17768 arg2 = (int)SWIG_As_int(obj1);
17769 if (PyErr_Occurred()) SWIG_fail;
17770 arg3 = (bool)SWIG_As_bool(obj2);
17771 if (PyErr_Occurred()) SWIG_fail;
17772 {
17773 PyThreadState* __tstate = wxPyBeginAllowThreads();
17774 (arg1)->SetToggle(arg2,arg3);
17775
17776 wxPyEndAllowThreads(__tstate);
17777 if (PyErr_Occurred()) SWIG_fail;
17778 }
17779 Py_INCREF(Py_None); resultobj = Py_None;
17780 return resultobj;
17781 fail:
17782 return NULL;
17783 }
17784
17785
17786 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17787 PyObject *resultobj;
17788 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17789 int arg2 ;
17790 PyObject *result;
17791 PyObject * obj0 = 0 ;
17792 PyObject * obj1 = 0 ;
17793 char *kwnames[] = {
17794 (char *) "self",(char *) "id", NULL
17795 };
17796
17797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17800 arg2 = (int)SWIG_As_int(obj1);
17801 if (PyErr_Occurred()) SWIG_fail;
17802 {
17803 PyThreadState* __tstate = wxPyBeginAllowThreads();
17804 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17805
17806 wxPyEndAllowThreads(__tstate);
17807 if (PyErr_Occurred()) SWIG_fail;
17808 }
17809 resultobj = result;
17810 return resultobj;
17811 fail:
17812 return NULL;
17813 }
17814
17815
17816 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17817 PyObject *resultobj;
17818 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17819 int arg2 ;
17820 PyObject *arg3 = (PyObject *) 0 ;
17821 PyObject * obj0 = 0 ;
17822 PyObject * obj1 = 0 ;
17823 PyObject * obj2 = 0 ;
17824 char *kwnames[] = {
17825 (char *) "self",(char *) "id",(char *) "clientData", NULL
17826 };
17827
17828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17831 arg2 = (int)SWIG_As_int(obj1);
17832 if (PyErr_Occurred()) SWIG_fail;
17833 arg3 = obj2;
17834 {
17835 PyThreadState* __tstate = wxPyBeginAllowThreads();
17836 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17837
17838 wxPyEndAllowThreads(__tstate);
17839 if (PyErr_Occurred()) SWIG_fail;
17840 }
17841 Py_INCREF(Py_None); resultobj = Py_None;
17842 return resultobj;
17843 fail:
17844 return NULL;
17845 }
17846
17847
17848 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) {
17849 PyObject *resultobj;
17850 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17851 int arg2 ;
17852 int result;
17853 PyObject * obj0 = 0 ;
17854 PyObject * obj1 = 0 ;
17855 char *kwnames[] = {
17856 (char *) "self",(char *) "id", NULL
17857 };
17858
17859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17862 arg2 = (int)SWIG_As_int(obj1);
17863 if (PyErr_Occurred()) SWIG_fail;
17864 {
17865 PyThreadState* __tstate = wxPyBeginAllowThreads();
17866 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17867
17868 wxPyEndAllowThreads(__tstate);
17869 if (PyErr_Occurred()) SWIG_fail;
17870 }
17871 resultobj = SWIG_From_int((int)result);
17872 return resultobj;
17873 fail:
17874 return NULL;
17875 }
17876
17877
17878 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) {
17879 PyObject *resultobj;
17880 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17881 int arg2 ;
17882 bool result;
17883 PyObject * obj0 = 0 ;
17884 PyObject * obj1 = 0 ;
17885 char *kwnames[] = {
17886 (char *) "self",(char *) "id", NULL
17887 };
17888
17889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17892 arg2 = (int)SWIG_As_int(obj1);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 result = (bool)(arg1)->GetToolState(arg2);
17897
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 {
17902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17903 }
17904 return resultobj;
17905 fail:
17906 return NULL;
17907 }
17908
17909
17910 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
17911 PyObject *resultobj;
17912 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17913 int arg2 ;
17914 bool result;
17915 PyObject * obj0 = 0 ;
17916 PyObject * obj1 = 0 ;
17917 char *kwnames[] = {
17918 (char *) "self",(char *) "id", NULL
17919 };
17920
17921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17924 arg2 = (int)SWIG_As_int(obj1);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 {
17927 PyThreadState* __tstate = wxPyBeginAllowThreads();
17928 result = (bool)(arg1)->GetToolEnabled(arg2);
17929
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 {
17934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17935 }
17936 return resultobj;
17937 fail:
17938 return NULL;
17939 }
17940
17941
17942 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17943 PyObject *resultobj;
17944 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17945 int arg2 ;
17946 wxString *arg3 = 0 ;
17947 bool temp3 = False ;
17948 PyObject * obj0 = 0 ;
17949 PyObject * obj1 = 0 ;
17950 PyObject * obj2 = 0 ;
17951 char *kwnames[] = {
17952 (char *) "self",(char *) "id",(char *) "helpString", NULL
17953 };
17954
17955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17958 arg2 = (int)SWIG_As_int(obj1);
17959 if (PyErr_Occurred()) SWIG_fail;
17960 {
17961 arg3 = wxString_in_helper(obj2);
17962 if (arg3 == NULL) SWIG_fail;
17963 temp3 = True;
17964 }
17965 {
17966 PyThreadState* __tstate = wxPyBeginAllowThreads();
17967 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17968
17969 wxPyEndAllowThreads(__tstate);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 }
17972 Py_INCREF(Py_None); resultobj = Py_None;
17973 {
17974 if (temp3)
17975 delete arg3;
17976 }
17977 return resultobj;
17978 fail:
17979 {
17980 if (temp3)
17981 delete arg3;
17982 }
17983 return NULL;
17984 }
17985
17986
17987 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17988 PyObject *resultobj;
17989 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17990 int arg2 ;
17991 wxString result;
17992 PyObject * obj0 = 0 ;
17993 PyObject * obj1 = 0 ;
17994 char *kwnames[] = {
17995 (char *) "self",(char *) "id", NULL
17996 };
17997
17998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18001 arg2 = (int)SWIG_As_int(obj1);
18002 if (PyErr_Occurred()) SWIG_fail;
18003 {
18004 PyThreadState* __tstate = wxPyBeginAllowThreads();
18005 result = (arg1)->GetToolShortHelp(arg2);
18006
18007 wxPyEndAllowThreads(__tstate);
18008 if (PyErr_Occurred()) SWIG_fail;
18009 }
18010 {
18011 #if wxUSE_UNICODE
18012 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18013 #else
18014 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18015 #endif
18016 }
18017 return resultobj;
18018 fail:
18019 return NULL;
18020 }
18021
18022
18023 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18024 PyObject *resultobj;
18025 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18026 int arg2 ;
18027 wxString *arg3 = 0 ;
18028 bool temp3 = False ;
18029 PyObject * obj0 = 0 ;
18030 PyObject * obj1 = 0 ;
18031 PyObject * obj2 = 0 ;
18032 char *kwnames[] = {
18033 (char *) "self",(char *) "id",(char *) "helpString", NULL
18034 };
18035
18036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18039 arg2 = (int)SWIG_As_int(obj1);
18040 if (PyErr_Occurred()) SWIG_fail;
18041 {
18042 arg3 = wxString_in_helper(obj2);
18043 if (arg3 == NULL) SWIG_fail;
18044 temp3 = True;
18045 }
18046 {
18047 PyThreadState* __tstate = wxPyBeginAllowThreads();
18048 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
18049
18050 wxPyEndAllowThreads(__tstate);
18051 if (PyErr_Occurred()) SWIG_fail;
18052 }
18053 Py_INCREF(Py_None); resultobj = Py_None;
18054 {
18055 if (temp3)
18056 delete arg3;
18057 }
18058 return resultobj;
18059 fail:
18060 {
18061 if (temp3)
18062 delete arg3;
18063 }
18064 return NULL;
18065 }
18066
18067
18068 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18069 PyObject *resultobj;
18070 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18071 int arg2 ;
18072 wxString result;
18073 PyObject * obj0 = 0 ;
18074 PyObject * obj1 = 0 ;
18075 char *kwnames[] = {
18076 (char *) "self",(char *) "id", NULL
18077 };
18078
18079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
18080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18082 arg2 = (int)SWIG_As_int(obj1);
18083 if (PyErr_Occurred()) SWIG_fail;
18084 {
18085 PyThreadState* __tstate = wxPyBeginAllowThreads();
18086 result = (arg1)->GetToolLongHelp(arg2);
18087
18088 wxPyEndAllowThreads(__tstate);
18089 if (PyErr_Occurred()) SWIG_fail;
18090 }
18091 {
18092 #if wxUSE_UNICODE
18093 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18094 #else
18095 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18096 #endif
18097 }
18098 return resultobj;
18099 fail:
18100 return NULL;
18101 }
18102
18103
18104 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) {
18105 PyObject *resultobj;
18106 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18107 int arg2 ;
18108 int arg3 ;
18109 PyObject * obj0 = 0 ;
18110 PyObject * obj1 = 0 ;
18111 PyObject * obj2 = 0 ;
18112 char *kwnames[] = {
18113 (char *) "self",(char *) "x",(char *) "y", NULL
18114 };
18115
18116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
18117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18119 arg2 = (int)SWIG_As_int(obj1);
18120 if (PyErr_Occurred()) SWIG_fail;
18121 arg3 = (int)SWIG_As_int(obj2);
18122 if (PyErr_Occurred()) SWIG_fail;
18123 {
18124 PyThreadState* __tstate = wxPyBeginAllowThreads();
18125 (arg1)->SetMargins(arg2,arg3);
18126
18127 wxPyEndAllowThreads(__tstate);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 }
18130 Py_INCREF(Py_None); resultobj = Py_None;
18131 return resultobj;
18132 fail:
18133 return NULL;
18134 }
18135
18136
18137 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18138 PyObject *resultobj;
18139 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18140 wxSize *arg2 = 0 ;
18141 wxSize temp2 ;
18142 PyObject * obj0 = 0 ;
18143 PyObject * obj1 = 0 ;
18144 char *kwnames[] = {
18145 (char *) "self",(char *) "size", NULL
18146 };
18147
18148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
18149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18151 {
18152 arg2 = &temp2;
18153 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18154 }
18155 {
18156 PyThreadState* __tstate = wxPyBeginAllowThreads();
18157 (arg1)->SetMargins((wxSize const &)*arg2);
18158
18159 wxPyEndAllowThreads(__tstate);
18160 if (PyErr_Occurred()) SWIG_fail;
18161 }
18162 Py_INCREF(Py_None); resultobj = Py_None;
18163 return resultobj;
18164 fail:
18165 return NULL;
18166 }
18167
18168
18169 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18170 PyObject *resultobj;
18171 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18172 int arg2 ;
18173 PyObject * obj0 = 0 ;
18174 PyObject * obj1 = 0 ;
18175 char *kwnames[] = {
18176 (char *) "self",(char *) "packing", NULL
18177 };
18178
18179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
18180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18182 arg2 = (int)SWIG_As_int(obj1);
18183 if (PyErr_Occurred()) SWIG_fail;
18184 {
18185 PyThreadState* __tstate = wxPyBeginAllowThreads();
18186 (arg1)->SetToolPacking(arg2);
18187
18188 wxPyEndAllowThreads(__tstate);
18189 if (PyErr_Occurred()) SWIG_fail;
18190 }
18191 Py_INCREF(Py_None); resultobj = Py_None;
18192 return resultobj;
18193 fail:
18194 return NULL;
18195 }
18196
18197
18198 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18199 PyObject *resultobj;
18200 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18201 int arg2 ;
18202 PyObject * obj0 = 0 ;
18203 PyObject * obj1 = 0 ;
18204 char *kwnames[] = {
18205 (char *) "self",(char *) "separation", NULL
18206 };
18207
18208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
18209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18211 arg2 = (int)SWIG_As_int(obj1);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 {
18214 PyThreadState* __tstate = wxPyBeginAllowThreads();
18215 (arg1)->SetToolSeparation(arg2);
18216
18217 wxPyEndAllowThreads(__tstate);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 Py_INCREF(Py_None); resultobj = Py_None;
18221 return resultobj;
18222 fail:
18223 return NULL;
18224 }
18225
18226
18227 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18228 PyObject *resultobj;
18229 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18230 wxSize result;
18231 PyObject * obj0 = 0 ;
18232 char *kwnames[] = {
18233 (char *) "self", NULL
18234 };
18235
18236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
18237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18239 {
18240 PyThreadState* __tstate = wxPyBeginAllowThreads();
18241 result = (arg1)->GetToolMargins();
18242
18243 wxPyEndAllowThreads(__tstate);
18244 if (PyErr_Occurred()) SWIG_fail;
18245 }
18246 {
18247 wxSize * resultptr;
18248 resultptr = new wxSize((wxSize &) result);
18249 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18250 }
18251 return resultobj;
18252 fail:
18253 return NULL;
18254 }
18255
18256
18257 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18258 PyObject *resultobj;
18259 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18260 wxSize result;
18261 PyObject * obj0 = 0 ;
18262 char *kwnames[] = {
18263 (char *) "self", NULL
18264 };
18265
18266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
18267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18269 {
18270 PyThreadState* __tstate = wxPyBeginAllowThreads();
18271 result = (arg1)->GetMargins();
18272
18273 wxPyEndAllowThreads(__tstate);
18274 if (PyErr_Occurred()) SWIG_fail;
18275 }
18276 {
18277 wxSize * resultptr;
18278 resultptr = new wxSize((wxSize &) result);
18279 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18280 }
18281 return resultobj;
18282 fail:
18283 return NULL;
18284 }
18285
18286
18287 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18288 PyObject *resultobj;
18289 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18290 int result;
18291 PyObject * obj0 = 0 ;
18292 char *kwnames[] = {
18293 (char *) "self", NULL
18294 };
18295
18296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
18297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 result = (int)(arg1)->GetToolPacking();
18302
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 resultobj = SWIG_From_int((int)result);
18307 return resultobj;
18308 fail:
18309 return NULL;
18310 }
18311
18312
18313 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18314 PyObject *resultobj;
18315 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18316 int result;
18317 PyObject * obj0 = 0 ;
18318 char *kwnames[] = {
18319 (char *) "self", NULL
18320 };
18321
18322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18325 {
18326 PyThreadState* __tstate = wxPyBeginAllowThreads();
18327 result = (int)(arg1)->GetToolSeparation();
18328
18329 wxPyEndAllowThreads(__tstate);
18330 if (PyErr_Occurred()) SWIG_fail;
18331 }
18332 resultobj = SWIG_From_int((int)result);
18333 return resultobj;
18334 fail:
18335 return NULL;
18336 }
18337
18338
18339 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
18340 PyObject *resultobj;
18341 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18342 int arg2 ;
18343 PyObject * obj0 = 0 ;
18344 PyObject * obj1 = 0 ;
18345 char *kwnames[] = {
18346 (char *) "self",(char *) "nRows", NULL
18347 };
18348
18349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18352 arg2 = (int)SWIG_As_int(obj1);
18353 if (PyErr_Occurred()) SWIG_fail;
18354 {
18355 PyThreadState* __tstate = wxPyBeginAllowThreads();
18356 (arg1)->SetRows(arg2);
18357
18358 wxPyEndAllowThreads(__tstate);
18359 if (PyErr_Occurred()) SWIG_fail;
18360 }
18361 Py_INCREF(Py_None); resultobj = Py_None;
18362 return resultobj;
18363 fail:
18364 return NULL;
18365 }
18366
18367
18368 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) {
18369 PyObject *resultobj;
18370 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18371 int arg2 ;
18372 int arg3 ;
18373 PyObject * obj0 = 0 ;
18374 PyObject * obj1 = 0 ;
18375 PyObject * obj2 = 0 ;
18376 char *kwnames[] = {
18377 (char *) "self",(char *) "rows",(char *) "cols", NULL
18378 };
18379
18380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18383 arg2 = (int)SWIG_As_int(obj1);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 arg3 = (int)SWIG_As_int(obj2);
18386 if (PyErr_Occurred()) SWIG_fail;
18387 {
18388 PyThreadState* __tstate = wxPyBeginAllowThreads();
18389 (arg1)->SetMaxRowsCols(arg2,arg3);
18390
18391 wxPyEndAllowThreads(__tstate);
18392 if (PyErr_Occurred()) SWIG_fail;
18393 }
18394 Py_INCREF(Py_None); resultobj = Py_None;
18395 return resultobj;
18396 fail:
18397 return NULL;
18398 }
18399
18400
18401 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) {
18402 PyObject *resultobj;
18403 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18404 int result;
18405 PyObject * obj0 = 0 ;
18406 char *kwnames[] = {
18407 (char *) "self", NULL
18408 };
18409
18410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18413 {
18414 PyThreadState* __tstate = wxPyBeginAllowThreads();
18415 result = (int)(arg1)->GetMaxRows();
18416
18417 wxPyEndAllowThreads(__tstate);
18418 if (PyErr_Occurred()) SWIG_fail;
18419 }
18420 resultobj = SWIG_From_int((int)result);
18421 return resultobj;
18422 fail:
18423 return NULL;
18424 }
18425
18426
18427 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) {
18428 PyObject *resultobj;
18429 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18430 int result;
18431 PyObject * obj0 = 0 ;
18432 char *kwnames[] = {
18433 (char *) "self", NULL
18434 };
18435
18436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18439 {
18440 PyThreadState* __tstate = wxPyBeginAllowThreads();
18441 result = (int)(arg1)->GetMaxCols();
18442
18443 wxPyEndAllowThreads(__tstate);
18444 if (PyErr_Occurred()) SWIG_fail;
18445 }
18446 resultobj = SWIG_From_int((int)result);
18447 return resultobj;
18448 fail:
18449 return NULL;
18450 }
18451
18452
18453 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18454 PyObject *resultobj;
18455 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18456 wxSize *arg2 = 0 ;
18457 wxSize temp2 ;
18458 PyObject * obj0 = 0 ;
18459 PyObject * obj1 = 0 ;
18460 char *kwnames[] = {
18461 (char *) "self",(char *) "size", NULL
18462 };
18463
18464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18467 {
18468 arg2 = &temp2;
18469 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18470 }
18471 {
18472 PyThreadState* __tstate = wxPyBeginAllowThreads();
18473 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18474
18475 wxPyEndAllowThreads(__tstate);
18476 if (PyErr_Occurred()) SWIG_fail;
18477 }
18478 Py_INCREF(Py_None); resultobj = Py_None;
18479 return resultobj;
18480 fail:
18481 return NULL;
18482 }
18483
18484
18485 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18486 PyObject *resultobj;
18487 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18488 wxSize result;
18489 PyObject * obj0 = 0 ;
18490 char *kwnames[] = {
18491 (char *) "self", NULL
18492 };
18493
18494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18497 {
18498 PyThreadState* __tstate = wxPyBeginAllowThreads();
18499 result = (arg1)->GetToolBitmapSize();
18500
18501 wxPyEndAllowThreads(__tstate);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 {
18505 wxSize * resultptr;
18506 resultptr = new wxSize((wxSize &) result);
18507 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18508 }
18509 return resultobj;
18510 fail:
18511 return NULL;
18512 }
18513
18514
18515 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) {
18516 PyObject *resultobj;
18517 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18518 wxSize result;
18519 PyObject * obj0 = 0 ;
18520 char *kwnames[] = {
18521 (char *) "self", NULL
18522 };
18523
18524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 result = (arg1)->GetToolSize();
18530
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 {
18535 wxSize * resultptr;
18536 resultptr = new wxSize((wxSize &) result);
18537 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18538 }
18539 return resultobj;
18540 fail:
18541 return NULL;
18542 }
18543
18544
18545 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18546 PyObject *resultobj;
18547 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18548 int arg2 ;
18549 int arg3 ;
18550 wxToolBarToolBase *result;
18551 PyObject * obj0 = 0 ;
18552 PyObject * obj1 = 0 ;
18553 PyObject * obj2 = 0 ;
18554 char *kwnames[] = {
18555 (char *) "self",(char *) "x",(char *) "y", NULL
18556 };
18557
18558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18561 arg2 = (int)SWIG_As_int(obj1);
18562 if (PyErr_Occurred()) SWIG_fail;
18563 arg3 = (int)SWIG_As_int(obj2);
18564 if (PyErr_Occurred()) SWIG_fail;
18565 {
18566 PyThreadState* __tstate = wxPyBeginAllowThreads();
18567 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18568
18569 wxPyEndAllowThreads(__tstate);
18570 if (PyErr_Occurred()) SWIG_fail;
18571 }
18572 {
18573 resultobj = wxPyMake_wxObject(result, 0);
18574 }
18575 return resultobj;
18576 fail:
18577 return NULL;
18578 }
18579
18580
18581 static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) {
18582 PyObject *resultobj;
18583 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18584 int arg2 ;
18585 wxToolBarToolBase *result;
18586 PyObject * obj0 = 0 ;
18587 PyObject * obj1 = 0 ;
18588 char *kwnames[] = {
18589 (char *) "self",(char *) "toolid", NULL
18590 };
18591
18592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18595 arg2 = (int)SWIG_As_int(obj1);
18596 if (PyErr_Occurred()) SWIG_fail;
18597 {
18598 PyThreadState* __tstate = wxPyBeginAllowThreads();
18599 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18600
18601 wxPyEndAllowThreads(__tstate);
18602 if (PyErr_Occurred()) SWIG_fail;
18603 }
18604 {
18605 resultobj = wxPyMake_wxObject(result, 0);
18606 }
18607 return resultobj;
18608 fail:
18609 return NULL;
18610 }
18611
18612
18613 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
18614 PyObject *resultobj;
18615 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18616 bool result;
18617 PyObject * obj0 = 0 ;
18618 char *kwnames[] = {
18619 (char *) "self", NULL
18620 };
18621
18622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18625 {
18626 PyThreadState* __tstate = wxPyBeginAllowThreads();
18627 result = (bool)(arg1)->IsVertical();
18628
18629 wxPyEndAllowThreads(__tstate);
18630 if (PyErr_Occurred()) SWIG_fail;
18631 }
18632 {
18633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18634 }
18635 return resultobj;
18636 fail:
18637 return NULL;
18638 }
18639
18640
18641 static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) {
18642 PyObject *obj;
18643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18644 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18645 Py_INCREF(obj);
18646 return Py_BuildValue((char *)"");
18647 }
18648 static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18649 PyObject *resultobj;
18650 wxWindow *arg1 = (wxWindow *) 0 ;
18651 int arg2 = (int) -1 ;
18652 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18653 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18654 wxSize const &arg4_defvalue = wxDefaultSize ;
18655 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18656 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18657 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18658 wxString *arg6 = (wxString *) &arg6_defvalue ;
18659 wxToolBar *result;
18660 wxPoint temp3 ;
18661 wxSize temp4 ;
18662 bool temp6 = False ;
18663 PyObject * obj0 = 0 ;
18664 PyObject * obj1 = 0 ;
18665 PyObject * obj2 = 0 ;
18666 PyObject * obj3 = 0 ;
18667 PyObject * obj4 = 0 ;
18668 PyObject * obj5 = 0 ;
18669 char *kwnames[] = {
18670 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18671 };
18672
18673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18676 if (obj1) {
18677 arg2 = (int)SWIG_As_int(obj1);
18678 if (PyErr_Occurred()) SWIG_fail;
18679 }
18680 if (obj2) {
18681 {
18682 arg3 = &temp3;
18683 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18684 }
18685 }
18686 if (obj3) {
18687 {
18688 arg4 = &temp4;
18689 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18690 }
18691 }
18692 if (obj4) {
18693 arg5 = (long)SWIG_As_long(obj4);
18694 if (PyErr_Occurred()) SWIG_fail;
18695 }
18696 if (obj5) {
18697 {
18698 arg6 = wxString_in_helper(obj5);
18699 if (arg6 == NULL) SWIG_fail;
18700 temp6 = True;
18701 }
18702 }
18703 {
18704 if (!wxPyCheckForApp()) SWIG_fail;
18705 PyThreadState* __tstate = wxPyBeginAllowThreads();
18706 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18707
18708 wxPyEndAllowThreads(__tstate);
18709 if (PyErr_Occurred()) SWIG_fail;
18710 }
18711 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
18712 {
18713 if (temp6)
18714 delete arg6;
18715 }
18716 return resultobj;
18717 fail:
18718 {
18719 if (temp6)
18720 delete arg6;
18721 }
18722 return NULL;
18723 }
18724
18725
18726 static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18727 PyObject *resultobj;
18728 wxToolBar *result;
18729 char *kwnames[] = {
18730 NULL
18731 };
18732
18733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18734 {
18735 if (!wxPyCheckForApp()) SWIG_fail;
18736 PyThreadState* __tstate = wxPyBeginAllowThreads();
18737 result = (wxToolBar *)new wxToolBar();
18738
18739 wxPyEndAllowThreads(__tstate);
18740 if (PyErr_Occurred()) SWIG_fail;
18741 }
18742 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
18743 return resultobj;
18744 fail:
18745 return NULL;
18746 }
18747
18748
18749 static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
18750 PyObject *resultobj;
18751 wxToolBar *arg1 = (wxToolBar *) 0 ;
18752 wxWindow *arg2 = (wxWindow *) 0 ;
18753 int arg3 = (int) -1 ;
18754 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18755 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18756 wxSize const &arg5_defvalue = wxDefaultSize ;
18757 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18758 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18759 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18760 wxString *arg7 = (wxString *) &arg7_defvalue ;
18761 bool result;
18762 wxPoint temp4 ;
18763 wxSize temp5 ;
18764 bool temp7 = False ;
18765 PyObject * obj0 = 0 ;
18766 PyObject * obj1 = 0 ;
18767 PyObject * obj2 = 0 ;
18768 PyObject * obj3 = 0 ;
18769 PyObject * obj4 = 0 ;
18770 PyObject * obj5 = 0 ;
18771 PyObject * obj6 = 0 ;
18772 char *kwnames[] = {
18773 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18774 };
18775
18776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18779 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18781 if (obj2) {
18782 arg3 = (int)SWIG_As_int(obj2);
18783 if (PyErr_Occurred()) SWIG_fail;
18784 }
18785 if (obj3) {
18786 {
18787 arg4 = &temp4;
18788 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18789 }
18790 }
18791 if (obj4) {
18792 {
18793 arg5 = &temp5;
18794 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18795 }
18796 }
18797 if (obj5) {
18798 arg6 = (long)SWIG_As_long(obj5);
18799 if (PyErr_Occurred()) SWIG_fail;
18800 }
18801 if (obj6) {
18802 {
18803 arg7 = wxString_in_helper(obj6);
18804 if (arg7 == NULL) SWIG_fail;
18805 temp7 = True;
18806 }
18807 }
18808 {
18809 PyThreadState* __tstate = wxPyBeginAllowThreads();
18810 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18811
18812 wxPyEndAllowThreads(__tstate);
18813 if (PyErr_Occurred()) SWIG_fail;
18814 }
18815 {
18816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18817 }
18818 {
18819 if (temp7)
18820 delete arg7;
18821 }
18822 return resultobj;
18823 fail:
18824 {
18825 if (temp7)
18826 delete arg7;
18827 }
18828 return NULL;
18829 }
18830
18831
18832 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18833 PyObject *resultobj;
18834 wxToolBar *arg1 = (wxToolBar *) 0 ;
18835 int arg2 ;
18836 int arg3 ;
18837 wxToolBarToolBase *result;
18838 PyObject * obj0 = 0 ;
18839 PyObject * obj1 = 0 ;
18840 PyObject * obj2 = 0 ;
18841 char *kwnames[] = {
18842 (char *) "self",(char *) "x",(char *) "y", NULL
18843 };
18844
18845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18848 arg2 = (int)SWIG_As_int(obj1);
18849 if (PyErr_Occurred()) SWIG_fail;
18850 arg3 = (int)SWIG_As_int(obj2);
18851 if (PyErr_Occurred()) SWIG_fail;
18852 {
18853 PyThreadState* __tstate = wxPyBeginAllowThreads();
18854 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18855
18856 wxPyEndAllowThreads(__tstate);
18857 if (PyErr_Occurred()) SWIG_fail;
18858 }
18859 {
18860 resultobj = wxPyMake_wxObject(result, 0);
18861 }
18862 return resultobj;
18863 fail:
18864 return NULL;
18865 }
18866
18867
18868 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
18869 PyObject *resultobj;
18870 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18871 wxVisualAttributes result;
18872 PyObject * obj0 = 0 ;
18873 char *kwnames[] = {
18874 (char *) "variant", NULL
18875 };
18876
18877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18878 if (obj0) {
18879 arg1 = (int)SWIG_As_int(obj0);
18880 if (PyErr_Occurred()) SWIG_fail;
18881 }
18882 {
18883 if (!wxPyCheckForApp()) SWIG_fail;
18884 PyThreadState* __tstate = wxPyBeginAllowThreads();
18885 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18886
18887 wxPyEndAllowThreads(__tstate);
18888 if (PyErr_Occurred()) SWIG_fail;
18889 }
18890 {
18891 wxVisualAttributes * resultptr;
18892 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18893 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18894 }
18895 return resultobj;
18896 fail:
18897 return NULL;
18898 }
18899
18900
18901 static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) {
18902 PyObject *obj;
18903 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18904 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18905 Py_INCREF(obj);
18906 return Py_BuildValue((char *)"");
18907 }
18908 static int _wrap_ListCtrlNameStr_set(PyObject *) {
18909 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18910 return 1;
18911 }
18912
18913
18914 static PyObject *_wrap_ListCtrlNameStr_get() {
18915 PyObject *pyobj;
18916
18917 {
18918 #if wxUSE_UNICODE
18919 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18920 #else
18921 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18922 #endif
18923 }
18924 return pyobj;
18925 }
18926
18927
18928 static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) {
18929 PyObject *resultobj;
18930 wxColour const &arg1_defvalue = wxNullColour ;
18931 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18932 wxColour const &arg2_defvalue = wxNullColour ;
18933 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18934 wxFont const &arg3_defvalue = wxNullFont ;
18935 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18936 wxListItemAttr *result;
18937 wxColour temp1 ;
18938 wxColour temp2 ;
18939 PyObject * obj0 = 0 ;
18940 PyObject * obj1 = 0 ;
18941 PyObject * obj2 = 0 ;
18942 char *kwnames[] = {
18943 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18944 };
18945
18946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18947 if (obj0) {
18948 {
18949 arg1 = &temp1;
18950 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18951 }
18952 }
18953 if (obj1) {
18954 {
18955 arg2 = &temp2;
18956 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18957 }
18958 }
18959 if (obj2) {
18960 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18961 SWIG_POINTER_EXCEPTION | 0)) == -1)
18962 SWIG_fail;
18963 if (arg3 == NULL) {
18964 PyErr_SetString(PyExc_TypeError,"null reference");
18965 SWIG_fail;
18966 }
18967 }
18968 {
18969 PyThreadState* __tstate = wxPyBeginAllowThreads();
18970 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18971
18972 wxPyEndAllowThreads(__tstate);
18973 if (PyErr_Occurred()) SWIG_fail;
18974 }
18975 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18976 return resultobj;
18977 fail:
18978 return NULL;
18979 }
18980
18981
18982 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
18983 PyObject *resultobj;
18984 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18985 wxColour *arg2 = 0 ;
18986 wxColour temp2 ;
18987 PyObject * obj0 = 0 ;
18988 PyObject * obj1 = 0 ;
18989 char *kwnames[] = {
18990 (char *) "self",(char *) "colText", NULL
18991 };
18992
18993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18996 {
18997 arg2 = &temp2;
18998 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18999 }
19000 {
19001 PyThreadState* __tstate = wxPyBeginAllowThreads();
19002 (arg1)->SetTextColour((wxColour const &)*arg2);
19003
19004 wxPyEndAllowThreads(__tstate);
19005 if (PyErr_Occurred()) SWIG_fail;
19006 }
19007 Py_INCREF(Py_None); resultobj = Py_None;
19008 return resultobj;
19009 fail:
19010 return NULL;
19011 }
19012
19013
19014 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19015 PyObject *resultobj;
19016 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19017 wxColour *arg2 = 0 ;
19018 wxColour temp2 ;
19019 PyObject * obj0 = 0 ;
19020 PyObject * obj1 = 0 ;
19021 char *kwnames[] = {
19022 (char *) "self",(char *) "colBack", NULL
19023 };
19024
19025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19028 {
19029 arg2 = &temp2;
19030 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19031 }
19032 {
19033 PyThreadState* __tstate = wxPyBeginAllowThreads();
19034 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19035
19036 wxPyEndAllowThreads(__tstate);
19037 if (PyErr_Occurred()) SWIG_fail;
19038 }
19039 Py_INCREF(Py_None); resultobj = Py_None;
19040 return resultobj;
19041 fail:
19042 return NULL;
19043 }
19044
19045
19046 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19047 PyObject *resultobj;
19048 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19049 wxFont *arg2 = 0 ;
19050 PyObject * obj0 = 0 ;
19051 PyObject * obj1 = 0 ;
19052 char *kwnames[] = {
19053 (char *) "self",(char *) "font", NULL
19054 };
19055
19056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
19057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19059 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19060 SWIG_POINTER_EXCEPTION | 0)) == -1)
19061 SWIG_fail;
19062 if (arg2 == NULL) {
19063 PyErr_SetString(PyExc_TypeError,"null reference");
19064 SWIG_fail;
19065 }
19066 {
19067 PyThreadState* __tstate = wxPyBeginAllowThreads();
19068 (arg1)->SetFont((wxFont const &)*arg2);
19069
19070 wxPyEndAllowThreads(__tstate);
19071 if (PyErr_Occurred()) SWIG_fail;
19072 }
19073 Py_INCREF(Py_None); resultobj = Py_None;
19074 return resultobj;
19075 fail:
19076 return NULL;
19077 }
19078
19079
19080 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19081 PyObject *resultobj;
19082 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19083 bool result;
19084 PyObject * obj0 = 0 ;
19085 char *kwnames[] = {
19086 (char *) "self", NULL
19087 };
19088
19089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
19090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19092 {
19093 PyThreadState* __tstate = wxPyBeginAllowThreads();
19094 result = (bool)(arg1)->HasTextColour();
19095
19096 wxPyEndAllowThreads(__tstate);
19097 if (PyErr_Occurred()) SWIG_fail;
19098 }
19099 {
19100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19101 }
19102 return resultobj;
19103 fail:
19104 return NULL;
19105 }
19106
19107
19108 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19109 PyObject *resultobj;
19110 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19111 bool result;
19112 PyObject * obj0 = 0 ;
19113 char *kwnames[] = {
19114 (char *) "self", NULL
19115 };
19116
19117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
19118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19120 {
19121 PyThreadState* __tstate = wxPyBeginAllowThreads();
19122 result = (bool)(arg1)->HasBackgroundColour();
19123
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 {
19128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19129 }
19130 return resultobj;
19131 fail:
19132 return NULL;
19133 }
19134
19135
19136 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
19137 PyObject *resultobj;
19138 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19139 bool result;
19140 PyObject * obj0 = 0 ;
19141 char *kwnames[] = {
19142 (char *) "self", NULL
19143 };
19144
19145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
19146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19148 {
19149 PyThreadState* __tstate = wxPyBeginAllowThreads();
19150 result = (bool)(arg1)->HasFont();
19151
19152 wxPyEndAllowThreads(__tstate);
19153 if (PyErr_Occurred()) SWIG_fail;
19154 }
19155 {
19156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19157 }
19158 return resultobj;
19159 fail:
19160 return NULL;
19161 }
19162
19163
19164 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19165 PyObject *resultobj;
19166 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19167 wxColour result;
19168 PyObject * obj0 = 0 ;
19169 char *kwnames[] = {
19170 (char *) "self", NULL
19171 };
19172
19173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
19174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19176 {
19177 PyThreadState* __tstate = wxPyBeginAllowThreads();
19178 result = (arg1)->GetTextColour();
19179
19180 wxPyEndAllowThreads(__tstate);
19181 if (PyErr_Occurred()) SWIG_fail;
19182 }
19183 {
19184 wxColour * resultptr;
19185 resultptr = new wxColour((wxColour &) result);
19186 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19187 }
19188 return resultobj;
19189 fail:
19190 return NULL;
19191 }
19192
19193
19194 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19195 PyObject *resultobj;
19196 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19197 wxColour result;
19198 PyObject * obj0 = 0 ;
19199 char *kwnames[] = {
19200 (char *) "self", NULL
19201 };
19202
19203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
19204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19206 {
19207 PyThreadState* __tstate = wxPyBeginAllowThreads();
19208 result = (arg1)->GetBackgroundColour();
19209
19210 wxPyEndAllowThreads(__tstate);
19211 if (PyErr_Occurred()) SWIG_fail;
19212 }
19213 {
19214 wxColour * resultptr;
19215 resultptr = new wxColour((wxColour &) result);
19216 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19217 }
19218 return resultobj;
19219 fail:
19220 return NULL;
19221 }
19222
19223
19224 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19225 PyObject *resultobj;
19226 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19227 wxFont result;
19228 PyObject * obj0 = 0 ;
19229 char *kwnames[] = {
19230 (char *) "self", NULL
19231 };
19232
19233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
19234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19236 {
19237 PyThreadState* __tstate = wxPyBeginAllowThreads();
19238 result = (arg1)->GetFont();
19239
19240 wxPyEndAllowThreads(__tstate);
19241 if (PyErr_Occurred()) SWIG_fail;
19242 }
19243 {
19244 wxFont * resultptr;
19245 resultptr = new wxFont((wxFont &) result);
19246 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19247 }
19248 return resultobj;
19249 fail:
19250 return NULL;
19251 }
19252
19253
19254 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
19255 PyObject *resultobj;
19256 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19257 PyObject * obj0 = 0 ;
19258 char *kwnames[] = {
19259 (char *) "self", NULL
19260 };
19261
19262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
19263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19265 {
19266 PyThreadState* __tstate = wxPyBeginAllowThreads();
19267 wxListItemAttr_Destroy(arg1);
19268
19269 wxPyEndAllowThreads(__tstate);
19270 if (PyErr_Occurred()) SWIG_fail;
19271 }
19272 Py_INCREF(Py_None); resultobj = Py_None;
19273 return resultobj;
19274 fail:
19275 return NULL;
19276 }
19277
19278
19279 static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) {
19280 PyObject *obj;
19281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19282 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
19283 Py_INCREF(obj);
19284 return Py_BuildValue((char *)"");
19285 }
19286 static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19287 PyObject *resultobj;
19288 wxListItem *result;
19289 char *kwnames[] = {
19290 NULL
19291 };
19292
19293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
19294 {
19295 PyThreadState* __tstate = wxPyBeginAllowThreads();
19296 result = (wxListItem *)new wxListItem();
19297
19298 wxPyEndAllowThreads(__tstate);
19299 if (PyErr_Occurred()) SWIG_fail;
19300 }
19301 {
19302 resultobj = wxPyMake_wxObject(result, 1);
19303 }
19304 return resultobj;
19305 fail:
19306 return NULL;
19307 }
19308
19309
19310 static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19311 PyObject *resultobj;
19312 wxListItem *arg1 = (wxListItem *) 0 ;
19313 PyObject * obj0 = 0 ;
19314 char *kwnames[] = {
19315 (char *) "self", NULL
19316 };
19317
19318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19321 {
19322 PyThreadState* __tstate = wxPyBeginAllowThreads();
19323 delete arg1;
19324
19325 wxPyEndAllowThreads(__tstate);
19326 if (PyErr_Occurred()) SWIG_fail;
19327 }
19328 Py_INCREF(Py_None); resultobj = Py_None;
19329 return resultobj;
19330 fail:
19331 return NULL;
19332 }
19333
19334
19335 static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
19336 PyObject *resultobj;
19337 wxListItem *arg1 = (wxListItem *) 0 ;
19338 PyObject * obj0 = 0 ;
19339 char *kwnames[] = {
19340 (char *) "self", NULL
19341 };
19342
19343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19346 {
19347 PyThreadState* __tstate = wxPyBeginAllowThreads();
19348 (arg1)->Clear();
19349
19350 wxPyEndAllowThreads(__tstate);
19351 if (PyErr_Occurred()) SWIG_fail;
19352 }
19353 Py_INCREF(Py_None); resultobj = Py_None;
19354 return resultobj;
19355 fail:
19356 return NULL;
19357 }
19358
19359
19360 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19361 PyObject *resultobj;
19362 wxListItem *arg1 = (wxListItem *) 0 ;
19363 PyObject * obj0 = 0 ;
19364 char *kwnames[] = {
19365 (char *) "self", NULL
19366 };
19367
19368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19371 {
19372 PyThreadState* __tstate = wxPyBeginAllowThreads();
19373 (arg1)->ClearAttributes();
19374
19375 wxPyEndAllowThreads(__tstate);
19376 if (PyErr_Occurred()) SWIG_fail;
19377 }
19378 Py_INCREF(Py_None); resultobj = Py_None;
19379 return resultobj;
19380 fail:
19381 return NULL;
19382 }
19383
19384
19385 static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19386 PyObject *resultobj;
19387 wxListItem *arg1 = (wxListItem *) 0 ;
19388 long arg2 ;
19389 PyObject * obj0 = 0 ;
19390 PyObject * obj1 = 0 ;
19391 char *kwnames[] = {
19392 (char *) "self",(char *) "mask", NULL
19393 };
19394
19395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
19396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19398 arg2 = (long)SWIG_As_long(obj1);
19399 if (PyErr_Occurred()) SWIG_fail;
19400 {
19401 PyThreadState* __tstate = wxPyBeginAllowThreads();
19402 (arg1)->SetMask(arg2);
19403
19404 wxPyEndAllowThreads(__tstate);
19405 if (PyErr_Occurred()) SWIG_fail;
19406 }
19407 Py_INCREF(Py_None); resultobj = Py_None;
19408 return resultobj;
19409 fail:
19410 return NULL;
19411 }
19412
19413
19414 static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
19415 PyObject *resultobj;
19416 wxListItem *arg1 = (wxListItem *) 0 ;
19417 long arg2 ;
19418 PyObject * obj0 = 0 ;
19419 PyObject * obj1 = 0 ;
19420 char *kwnames[] = {
19421 (char *) "self",(char *) "id", NULL
19422 };
19423
19424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
19425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19427 arg2 = (long)SWIG_As_long(obj1);
19428 if (PyErr_Occurred()) SWIG_fail;
19429 {
19430 PyThreadState* __tstate = wxPyBeginAllowThreads();
19431 (arg1)->SetId(arg2);
19432
19433 wxPyEndAllowThreads(__tstate);
19434 if (PyErr_Occurred()) SWIG_fail;
19435 }
19436 Py_INCREF(Py_None); resultobj = Py_None;
19437 return resultobj;
19438 fail:
19439 return NULL;
19440 }
19441
19442
19443 static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19444 PyObject *resultobj;
19445 wxListItem *arg1 = (wxListItem *) 0 ;
19446 int arg2 ;
19447 PyObject * obj0 = 0 ;
19448 PyObject * obj1 = 0 ;
19449 char *kwnames[] = {
19450 (char *) "self",(char *) "col", NULL
19451 };
19452
19453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19456 arg2 = (int)SWIG_As_int(obj1);
19457 if (PyErr_Occurred()) SWIG_fail;
19458 {
19459 PyThreadState* __tstate = wxPyBeginAllowThreads();
19460 (arg1)->SetColumn(arg2);
19461
19462 wxPyEndAllowThreads(__tstate);
19463 if (PyErr_Occurred()) SWIG_fail;
19464 }
19465 Py_INCREF(Py_None); resultobj = Py_None;
19466 return resultobj;
19467 fail:
19468 return NULL;
19469 }
19470
19471
19472 static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
19473 PyObject *resultobj;
19474 wxListItem *arg1 = (wxListItem *) 0 ;
19475 long arg2 ;
19476 PyObject * obj0 = 0 ;
19477 PyObject * obj1 = 0 ;
19478 char *kwnames[] = {
19479 (char *) "self",(char *) "state", NULL
19480 };
19481
19482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19485 arg2 = (long)SWIG_As_long(obj1);
19486 if (PyErr_Occurred()) SWIG_fail;
19487 {
19488 PyThreadState* __tstate = wxPyBeginAllowThreads();
19489 (arg1)->SetState(arg2);
19490
19491 wxPyEndAllowThreads(__tstate);
19492 if (PyErr_Occurred()) SWIG_fail;
19493 }
19494 Py_INCREF(Py_None); resultobj = Py_None;
19495 return resultobj;
19496 fail:
19497 return NULL;
19498 }
19499
19500
19501 static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) {
19502 PyObject *resultobj;
19503 wxListItem *arg1 = (wxListItem *) 0 ;
19504 long arg2 ;
19505 PyObject * obj0 = 0 ;
19506 PyObject * obj1 = 0 ;
19507 char *kwnames[] = {
19508 (char *) "self",(char *) "stateMask", NULL
19509 };
19510
19511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19514 arg2 = (long)SWIG_As_long(obj1);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 {
19517 PyThreadState* __tstate = wxPyBeginAllowThreads();
19518 (arg1)->SetStateMask(arg2);
19519
19520 wxPyEndAllowThreads(__tstate);
19521 if (PyErr_Occurred()) SWIG_fail;
19522 }
19523 Py_INCREF(Py_None); resultobj = Py_None;
19524 return resultobj;
19525 fail:
19526 return NULL;
19527 }
19528
19529
19530 static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
19531 PyObject *resultobj;
19532 wxListItem *arg1 = (wxListItem *) 0 ;
19533 wxString *arg2 = 0 ;
19534 bool temp2 = False ;
19535 PyObject * obj0 = 0 ;
19536 PyObject * obj1 = 0 ;
19537 char *kwnames[] = {
19538 (char *) "self",(char *) "text", NULL
19539 };
19540
19541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19544 {
19545 arg2 = wxString_in_helper(obj1);
19546 if (arg2 == NULL) SWIG_fail;
19547 temp2 = True;
19548 }
19549 {
19550 PyThreadState* __tstate = wxPyBeginAllowThreads();
19551 (arg1)->SetText((wxString const &)*arg2);
19552
19553 wxPyEndAllowThreads(__tstate);
19554 if (PyErr_Occurred()) SWIG_fail;
19555 }
19556 Py_INCREF(Py_None); resultobj = Py_None;
19557 {
19558 if (temp2)
19559 delete arg2;
19560 }
19561 return resultobj;
19562 fail:
19563 {
19564 if (temp2)
19565 delete arg2;
19566 }
19567 return NULL;
19568 }
19569
19570
19571 static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19572 PyObject *resultobj;
19573 wxListItem *arg1 = (wxListItem *) 0 ;
19574 int arg2 ;
19575 PyObject * obj0 = 0 ;
19576 PyObject * obj1 = 0 ;
19577 char *kwnames[] = {
19578 (char *) "self",(char *) "image", NULL
19579 };
19580
19581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19584 arg2 = (int)SWIG_As_int(obj1);
19585 if (PyErr_Occurred()) SWIG_fail;
19586 {
19587 PyThreadState* __tstate = wxPyBeginAllowThreads();
19588 (arg1)->SetImage(arg2);
19589
19590 wxPyEndAllowThreads(__tstate);
19591 if (PyErr_Occurred()) SWIG_fail;
19592 }
19593 Py_INCREF(Py_None); resultobj = Py_None;
19594 return resultobj;
19595 fail:
19596 return NULL;
19597 }
19598
19599
19600 static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
19601 PyObject *resultobj;
19602 wxListItem *arg1 = (wxListItem *) 0 ;
19603 long arg2 ;
19604 PyObject * obj0 = 0 ;
19605 PyObject * obj1 = 0 ;
19606 char *kwnames[] = {
19607 (char *) "self",(char *) "data", NULL
19608 };
19609
19610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19613 arg2 = (long)SWIG_As_long(obj1);
19614 if (PyErr_Occurred()) SWIG_fail;
19615 {
19616 PyThreadState* __tstate = wxPyBeginAllowThreads();
19617 (arg1)->SetData(arg2);
19618
19619 wxPyEndAllowThreads(__tstate);
19620 if (PyErr_Occurred()) SWIG_fail;
19621 }
19622 Py_INCREF(Py_None); resultobj = Py_None;
19623 return resultobj;
19624 fail:
19625 return NULL;
19626 }
19627
19628
19629 static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19630 PyObject *resultobj;
19631 wxListItem *arg1 = (wxListItem *) 0 ;
19632 int arg2 ;
19633 PyObject * obj0 = 0 ;
19634 PyObject * obj1 = 0 ;
19635 char *kwnames[] = {
19636 (char *) "self",(char *) "width", NULL
19637 };
19638
19639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19642 arg2 = (int)SWIG_As_int(obj1);
19643 if (PyErr_Occurred()) SWIG_fail;
19644 {
19645 PyThreadState* __tstate = wxPyBeginAllowThreads();
19646 (arg1)->SetWidth(arg2);
19647
19648 wxPyEndAllowThreads(__tstate);
19649 if (PyErr_Occurred()) SWIG_fail;
19650 }
19651 Py_INCREF(Py_None); resultobj = Py_None;
19652 return resultobj;
19653 fail:
19654 return NULL;
19655 }
19656
19657
19658 static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
19659 PyObject *resultobj;
19660 wxListItem *arg1 = (wxListItem *) 0 ;
19661 int arg2 ;
19662 PyObject * obj0 = 0 ;
19663 PyObject * obj1 = 0 ;
19664 char *kwnames[] = {
19665 (char *) "self",(char *) "align", NULL
19666 };
19667
19668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19671 arg2 = (int)SWIG_As_int(obj1);
19672 if (PyErr_Occurred()) SWIG_fail;
19673 {
19674 PyThreadState* __tstate = wxPyBeginAllowThreads();
19675 (arg1)->SetAlign((wxListColumnFormat )arg2);
19676
19677 wxPyEndAllowThreads(__tstate);
19678 if (PyErr_Occurred()) SWIG_fail;
19679 }
19680 Py_INCREF(Py_None); resultobj = Py_None;
19681 return resultobj;
19682 fail:
19683 return NULL;
19684 }
19685
19686
19687 static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19688 PyObject *resultobj;
19689 wxListItem *arg1 = (wxListItem *) 0 ;
19690 wxColour *arg2 = 0 ;
19691 wxColour temp2 ;
19692 PyObject * obj0 = 0 ;
19693 PyObject * obj1 = 0 ;
19694 char *kwnames[] = {
19695 (char *) "self",(char *) "colText", NULL
19696 };
19697
19698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19701 {
19702 arg2 = &temp2;
19703 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19704 }
19705 {
19706 PyThreadState* __tstate = wxPyBeginAllowThreads();
19707 (arg1)->SetTextColour((wxColour const &)*arg2);
19708
19709 wxPyEndAllowThreads(__tstate);
19710 if (PyErr_Occurred()) SWIG_fail;
19711 }
19712 Py_INCREF(Py_None); resultobj = Py_None;
19713 return resultobj;
19714 fail:
19715 return NULL;
19716 }
19717
19718
19719 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19720 PyObject *resultobj;
19721 wxListItem *arg1 = (wxListItem *) 0 ;
19722 wxColour *arg2 = 0 ;
19723 wxColour temp2 ;
19724 PyObject * obj0 = 0 ;
19725 PyObject * obj1 = 0 ;
19726 char *kwnames[] = {
19727 (char *) "self",(char *) "colBack", NULL
19728 };
19729
19730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19733 {
19734 arg2 = &temp2;
19735 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19736 }
19737 {
19738 PyThreadState* __tstate = wxPyBeginAllowThreads();
19739 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19740
19741 wxPyEndAllowThreads(__tstate);
19742 if (PyErr_Occurred()) SWIG_fail;
19743 }
19744 Py_INCREF(Py_None); resultobj = Py_None;
19745 return resultobj;
19746 fail:
19747 return NULL;
19748 }
19749
19750
19751 static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19752 PyObject *resultobj;
19753 wxListItem *arg1 = (wxListItem *) 0 ;
19754 wxFont *arg2 = 0 ;
19755 PyObject * obj0 = 0 ;
19756 PyObject * obj1 = 0 ;
19757 char *kwnames[] = {
19758 (char *) "self",(char *) "font", NULL
19759 };
19760
19761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19764 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19765 SWIG_POINTER_EXCEPTION | 0)) == -1)
19766 SWIG_fail;
19767 if (arg2 == NULL) {
19768 PyErr_SetString(PyExc_TypeError,"null reference");
19769 SWIG_fail;
19770 }
19771 {
19772 PyThreadState* __tstate = wxPyBeginAllowThreads();
19773 (arg1)->SetFont((wxFont const &)*arg2);
19774
19775 wxPyEndAllowThreads(__tstate);
19776 if (PyErr_Occurred()) SWIG_fail;
19777 }
19778 Py_INCREF(Py_None); resultobj = Py_None;
19779 return resultobj;
19780 fail:
19781 return NULL;
19782 }
19783
19784
19785 static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19786 PyObject *resultobj;
19787 wxListItem *arg1 = (wxListItem *) 0 ;
19788 long result;
19789 PyObject * obj0 = 0 ;
19790 char *kwnames[] = {
19791 (char *) "self", NULL
19792 };
19793
19794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19797 {
19798 PyThreadState* __tstate = wxPyBeginAllowThreads();
19799 result = (long)(arg1)->GetMask();
19800
19801 wxPyEndAllowThreads(__tstate);
19802 if (PyErr_Occurred()) SWIG_fail;
19803 }
19804 resultobj = SWIG_From_long((long)result);
19805 return resultobj;
19806 fail:
19807 return NULL;
19808 }
19809
19810
19811 static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
19812 PyObject *resultobj;
19813 wxListItem *arg1 = (wxListItem *) 0 ;
19814 long result;
19815 PyObject * obj0 = 0 ;
19816 char *kwnames[] = {
19817 (char *) "self", NULL
19818 };
19819
19820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19823 {
19824 PyThreadState* __tstate = wxPyBeginAllowThreads();
19825 result = (long)(arg1)->GetId();
19826
19827 wxPyEndAllowThreads(__tstate);
19828 if (PyErr_Occurred()) SWIG_fail;
19829 }
19830 resultobj = SWIG_From_long((long)result);
19831 return resultobj;
19832 fail:
19833 return NULL;
19834 }
19835
19836
19837 static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19838 PyObject *resultobj;
19839 wxListItem *arg1 = (wxListItem *) 0 ;
19840 int result;
19841 PyObject * obj0 = 0 ;
19842 char *kwnames[] = {
19843 (char *) "self", NULL
19844 };
19845
19846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19849 {
19850 PyThreadState* __tstate = wxPyBeginAllowThreads();
19851 result = (int)(arg1)->GetColumn();
19852
19853 wxPyEndAllowThreads(__tstate);
19854 if (PyErr_Occurred()) SWIG_fail;
19855 }
19856 resultobj = SWIG_From_int((int)result);
19857 return resultobj;
19858 fail:
19859 return NULL;
19860 }
19861
19862
19863 static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
19864 PyObject *resultobj;
19865 wxListItem *arg1 = (wxListItem *) 0 ;
19866 long result;
19867 PyObject * obj0 = 0 ;
19868 char *kwnames[] = {
19869 (char *) "self", NULL
19870 };
19871
19872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19875 {
19876 PyThreadState* __tstate = wxPyBeginAllowThreads();
19877 result = (long)(arg1)->GetState();
19878
19879 wxPyEndAllowThreads(__tstate);
19880 if (PyErr_Occurred()) SWIG_fail;
19881 }
19882 resultobj = SWIG_From_long((long)result);
19883 return resultobj;
19884 fail:
19885 return NULL;
19886 }
19887
19888
19889 static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
19890 PyObject *resultobj;
19891 wxListItem *arg1 = (wxListItem *) 0 ;
19892 wxString *result;
19893 PyObject * obj0 = 0 ;
19894 char *kwnames[] = {
19895 (char *) "self", NULL
19896 };
19897
19898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19901 {
19902 PyThreadState* __tstate = wxPyBeginAllowThreads();
19903 {
19904 wxString const &_result_ref = (arg1)->GetText();
19905 result = (wxString *) &_result_ref;
19906 }
19907
19908 wxPyEndAllowThreads(__tstate);
19909 if (PyErr_Occurred()) SWIG_fail;
19910 }
19911 {
19912 #if wxUSE_UNICODE
19913 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19914 #else
19915 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19916 #endif
19917 }
19918 return resultobj;
19919 fail:
19920 return NULL;
19921 }
19922
19923
19924 static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19925 PyObject *resultobj;
19926 wxListItem *arg1 = (wxListItem *) 0 ;
19927 int result;
19928 PyObject * obj0 = 0 ;
19929 char *kwnames[] = {
19930 (char *) "self", NULL
19931 };
19932
19933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19936 {
19937 PyThreadState* __tstate = wxPyBeginAllowThreads();
19938 result = (int)(arg1)->GetImage();
19939
19940 wxPyEndAllowThreads(__tstate);
19941 if (PyErr_Occurred()) SWIG_fail;
19942 }
19943 resultobj = SWIG_From_int((int)result);
19944 return resultobj;
19945 fail:
19946 return NULL;
19947 }
19948
19949
19950 static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
19951 PyObject *resultobj;
19952 wxListItem *arg1 = (wxListItem *) 0 ;
19953 long result;
19954 PyObject * obj0 = 0 ;
19955 char *kwnames[] = {
19956 (char *) "self", NULL
19957 };
19958
19959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19962 {
19963 PyThreadState* __tstate = wxPyBeginAllowThreads();
19964 result = (long)(arg1)->GetData();
19965
19966 wxPyEndAllowThreads(__tstate);
19967 if (PyErr_Occurred()) SWIG_fail;
19968 }
19969 resultobj = SWIG_From_long((long)result);
19970 return resultobj;
19971 fail:
19972 return NULL;
19973 }
19974
19975
19976 static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19977 PyObject *resultobj;
19978 wxListItem *arg1 = (wxListItem *) 0 ;
19979 int result;
19980 PyObject * obj0 = 0 ;
19981 char *kwnames[] = {
19982 (char *) "self", NULL
19983 };
19984
19985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19988 {
19989 PyThreadState* __tstate = wxPyBeginAllowThreads();
19990 result = (int)(arg1)->GetWidth();
19991
19992 wxPyEndAllowThreads(__tstate);
19993 if (PyErr_Occurred()) SWIG_fail;
19994 }
19995 resultobj = SWIG_From_int((int)result);
19996 return resultobj;
19997 fail:
19998 return NULL;
19999 }
20000
20001
20002 static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
20003 PyObject *resultobj;
20004 wxListItem *arg1 = (wxListItem *) 0 ;
20005 int result;
20006 PyObject * obj0 = 0 ;
20007 char *kwnames[] = {
20008 (char *) "self", NULL
20009 };
20010
20011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
20012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20014 {
20015 PyThreadState* __tstate = wxPyBeginAllowThreads();
20016 result = (int)(arg1)->GetAlign();
20017
20018 wxPyEndAllowThreads(__tstate);
20019 if (PyErr_Occurred()) SWIG_fail;
20020 }
20021 resultobj = SWIG_From_int((int)result);
20022 return resultobj;
20023 fail:
20024 return NULL;
20025 }
20026
20027
20028 static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20029 PyObject *resultobj;
20030 wxListItem *arg1 = (wxListItem *) 0 ;
20031 wxListItemAttr *result;
20032 PyObject * obj0 = 0 ;
20033 char *kwnames[] = {
20034 (char *) "self", NULL
20035 };
20036
20037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
20038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20040 {
20041 PyThreadState* __tstate = wxPyBeginAllowThreads();
20042 result = (wxListItemAttr *)(arg1)->GetAttributes();
20043
20044 wxPyEndAllowThreads(__tstate);
20045 if (PyErr_Occurred()) SWIG_fail;
20046 }
20047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
20048 return resultobj;
20049 fail:
20050 return NULL;
20051 }
20052
20053
20054 static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20055 PyObject *resultobj;
20056 wxListItem *arg1 = (wxListItem *) 0 ;
20057 bool result;
20058 PyObject * obj0 = 0 ;
20059 char *kwnames[] = {
20060 (char *) "self", NULL
20061 };
20062
20063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
20064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20066 {
20067 PyThreadState* __tstate = wxPyBeginAllowThreads();
20068 result = (bool)(arg1)->HasAttributes();
20069
20070 wxPyEndAllowThreads(__tstate);
20071 if (PyErr_Occurred()) SWIG_fail;
20072 }
20073 {
20074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20075 }
20076 return resultobj;
20077 fail:
20078 return NULL;
20079 }
20080
20081
20082 static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
20083 PyObject *resultobj;
20084 wxListItem *arg1 = (wxListItem *) 0 ;
20085 wxColour result;
20086 PyObject * obj0 = 0 ;
20087 char *kwnames[] = {
20088 (char *) "self", NULL
20089 };
20090
20091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
20092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20094 {
20095 PyThreadState* __tstate = wxPyBeginAllowThreads();
20096 result = ((wxListItem const *)arg1)->GetTextColour();
20097
20098 wxPyEndAllowThreads(__tstate);
20099 if (PyErr_Occurred()) SWIG_fail;
20100 }
20101 {
20102 wxColour * resultptr;
20103 resultptr = new wxColour((wxColour &) result);
20104 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20105 }
20106 return resultobj;
20107 fail:
20108 return NULL;
20109 }
20110
20111
20112 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20113 PyObject *resultobj;
20114 wxListItem *arg1 = (wxListItem *) 0 ;
20115 wxColour result;
20116 PyObject * obj0 = 0 ;
20117 char *kwnames[] = {
20118 (char *) "self", NULL
20119 };
20120
20121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
20122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20124 {
20125 PyThreadState* __tstate = wxPyBeginAllowThreads();
20126 result = ((wxListItem const *)arg1)->GetBackgroundColour();
20127
20128 wxPyEndAllowThreads(__tstate);
20129 if (PyErr_Occurred()) SWIG_fail;
20130 }
20131 {
20132 wxColour * resultptr;
20133 resultptr = new wxColour((wxColour &) result);
20134 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20135 }
20136 return resultobj;
20137 fail:
20138 return NULL;
20139 }
20140
20141
20142 static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20143 PyObject *resultobj;
20144 wxListItem *arg1 = (wxListItem *) 0 ;
20145 wxFont result;
20146 PyObject * obj0 = 0 ;
20147 char *kwnames[] = {
20148 (char *) "self", NULL
20149 };
20150
20151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
20152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20154 {
20155 PyThreadState* __tstate = wxPyBeginAllowThreads();
20156 result = ((wxListItem const *)arg1)->GetFont();
20157
20158 wxPyEndAllowThreads(__tstate);
20159 if (PyErr_Occurred()) SWIG_fail;
20160 }
20161 {
20162 wxFont * resultptr;
20163 resultptr = new wxFont((wxFont &) result);
20164 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
20165 }
20166 return resultobj;
20167 fail:
20168 return NULL;
20169 }
20170
20171
20172 static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20173 PyObject *resultobj;
20174 wxListItem *arg1 = (wxListItem *) 0 ;
20175 long arg2 ;
20176 PyObject * obj0 = 0 ;
20177 PyObject * obj1 = 0 ;
20178 char *kwnames[] = {
20179 (char *) "self",(char *) "m_mask", NULL
20180 };
20181
20182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
20183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20185 arg2 = (long)SWIG_As_long(obj1);
20186 if (PyErr_Occurred()) SWIG_fail;
20187 if (arg1) (arg1)->m_mask = arg2;
20188
20189 Py_INCREF(Py_None); resultobj = Py_None;
20190 return resultobj;
20191 fail:
20192 return NULL;
20193 }
20194
20195
20196 static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20197 PyObject *resultobj;
20198 wxListItem *arg1 = (wxListItem *) 0 ;
20199 long result;
20200 PyObject * obj0 = 0 ;
20201 char *kwnames[] = {
20202 (char *) "self", NULL
20203 };
20204
20205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
20206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20208 result = (long) ((arg1)->m_mask);
20209
20210 resultobj = SWIG_From_long((long)result);
20211 return resultobj;
20212 fail:
20213 return NULL;
20214 }
20215
20216
20217 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) {
20218 PyObject *resultobj;
20219 wxListItem *arg1 = (wxListItem *) 0 ;
20220 long arg2 ;
20221 PyObject * obj0 = 0 ;
20222 PyObject * obj1 = 0 ;
20223 char *kwnames[] = {
20224 (char *) "self",(char *) "m_itemId", NULL
20225 };
20226
20227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
20228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20230 arg2 = (long)SWIG_As_long(obj1);
20231 if (PyErr_Occurred()) SWIG_fail;
20232 if (arg1) (arg1)->m_itemId = arg2;
20233
20234 Py_INCREF(Py_None); resultobj = Py_None;
20235 return resultobj;
20236 fail:
20237 return NULL;
20238 }
20239
20240
20241 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) {
20242 PyObject *resultobj;
20243 wxListItem *arg1 = (wxListItem *) 0 ;
20244 long result;
20245 PyObject * obj0 = 0 ;
20246 char *kwnames[] = {
20247 (char *) "self", NULL
20248 };
20249
20250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
20251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20253 result = (long) ((arg1)->m_itemId);
20254
20255 resultobj = SWIG_From_long((long)result);
20256 return resultobj;
20257 fail:
20258 return NULL;
20259 }
20260
20261
20262 static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20263 PyObject *resultobj;
20264 wxListItem *arg1 = (wxListItem *) 0 ;
20265 int arg2 ;
20266 PyObject * obj0 = 0 ;
20267 PyObject * obj1 = 0 ;
20268 char *kwnames[] = {
20269 (char *) "self",(char *) "m_col", NULL
20270 };
20271
20272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20275 arg2 = (int)SWIG_As_int(obj1);
20276 if (PyErr_Occurred()) SWIG_fail;
20277 if (arg1) (arg1)->m_col = arg2;
20278
20279 Py_INCREF(Py_None); resultobj = Py_None;
20280 return resultobj;
20281 fail:
20282 return NULL;
20283 }
20284
20285
20286 static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20287 PyObject *resultobj;
20288 wxListItem *arg1 = (wxListItem *) 0 ;
20289 int result;
20290 PyObject * obj0 = 0 ;
20291 char *kwnames[] = {
20292 (char *) "self", NULL
20293 };
20294
20295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
20296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20298 result = (int) ((arg1)->m_col);
20299
20300 resultobj = SWIG_From_int((int)result);
20301 return resultobj;
20302 fail:
20303 return NULL;
20304 }
20305
20306
20307 static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) {
20308 PyObject *resultobj;
20309 wxListItem *arg1 = (wxListItem *) 0 ;
20310 long arg2 ;
20311 PyObject * obj0 = 0 ;
20312 PyObject * obj1 = 0 ;
20313 char *kwnames[] = {
20314 (char *) "self",(char *) "m_state", NULL
20315 };
20316
20317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20320 arg2 = (long)SWIG_As_long(obj1);
20321 if (PyErr_Occurred()) SWIG_fail;
20322 if (arg1) (arg1)->m_state = arg2;
20323
20324 Py_INCREF(Py_None); resultobj = Py_None;
20325 return resultobj;
20326 fail:
20327 return NULL;
20328 }
20329
20330
20331 static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) {
20332 PyObject *resultobj;
20333 wxListItem *arg1 = (wxListItem *) 0 ;
20334 long result;
20335 PyObject * obj0 = 0 ;
20336 char *kwnames[] = {
20337 (char *) "self", NULL
20338 };
20339
20340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20343 result = (long) ((arg1)->m_state);
20344
20345 resultobj = SWIG_From_long((long)result);
20346 return resultobj;
20347 fail:
20348 return NULL;
20349 }
20350
20351
20352 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20353 PyObject *resultobj;
20354 wxListItem *arg1 = (wxListItem *) 0 ;
20355 long arg2 ;
20356 PyObject * obj0 = 0 ;
20357 PyObject * obj1 = 0 ;
20358 char *kwnames[] = {
20359 (char *) "self",(char *) "m_stateMask", NULL
20360 };
20361
20362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20365 arg2 = (long)SWIG_As_long(obj1);
20366 if (PyErr_Occurred()) SWIG_fail;
20367 if (arg1) (arg1)->m_stateMask = arg2;
20368
20369 Py_INCREF(Py_None); resultobj = Py_None;
20370 return resultobj;
20371 fail:
20372 return NULL;
20373 }
20374
20375
20376 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20377 PyObject *resultobj;
20378 wxListItem *arg1 = (wxListItem *) 0 ;
20379 long result;
20380 PyObject * obj0 = 0 ;
20381 char *kwnames[] = {
20382 (char *) "self", NULL
20383 };
20384
20385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20388 result = (long) ((arg1)->m_stateMask);
20389
20390 resultobj = SWIG_From_long((long)result);
20391 return resultobj;
20392 fail:
20393 return NULL;
20394 }
20395
20396
20397 static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) {
20398 PyObject *resultobj;
20399 wxListItem *arg1 = (wxListItem *) 0 ;
20400 wxString *arg2 = (wxString *) 0 ;
20401 bool temp2 = False ;
20402 PyObject * obj0 = 0 ;
20403 PyObject * obj1 = 0 ;
20404 char *kwnames[] = {
20405 (char *) "self",(char *) "m_text", NULL
20406 };
20407
20408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20411 {
20412 arg2 = wxString_in_helper(obj1);
20413 if (arg2 == NULL) SWIG_fail;
20414 temp2 = True;
20415 }
20416 if (arg1) (arg1)->m_text = *arg2;
20417
20418 Py_INCREF(Py_None); resultobj = Py_None;
20419 {
20420 if (temp2)
20421 delete arg2;
20422 }
20423 return resultobj;
20424 fail:
20425 {
20426 if (temp2)
20427 delete arg2;
20428 }
20429 return NULL;
20430 }
20431
20432
20433 static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) {
20434 PyObject *resultobj;
20435 wxListItem *arg1 = (wxListItem *) 0 ;
20436 wxString *result;
20437 PyObject * obj0 = 0 ;
20438 char *kwnames[] = {
20439 (char *) "self", NULL
20440 };
20441
20442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20445 result = (wxString *)& ((arg1)->m_text);
20446
20447 {
20448 #if wxUSE_UNICODE
20449 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20450 #else
20451 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20452 #endif
20453 }
20454 return resultobj;
20455 fail:
20456 return NULL;
20457 }
20458
20459
20460 static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) {
20461 PyObject *resultobj;
20462 wxListItem *arg1 = (wxListItem *) 0 ;
20463 int arg2 ;
20464 PyObject * obj0 = 0 ;
20465 PyObject * obj1 = 0 ;
20466 char *kwnames[] = {
20467 (char *) "self",(char *) "m_image", NULL
20468 };
20469
20470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20473 arg2 = (int)SWIG_As_int(obj1);
20474 if (PyErr_Occurred()) SWIG_fail;
20475 if (arg1) (arg1)->m_image = arg2;
20476
20477 Py_INCREF(Py_None); resultobj = Py_None;
20478 return resultobj;
20479 fail:
20480 return NULL;
20481 }
20482
20483
20484 static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) {
20485 PyObject *resultobj;
20486 wxListItem *arg1 = (wxListItem *) 0 ;
20487 int result;
20488 PyObject * obj0 = 0 ;
20489 char *kwnames[] = {
20490 (char *) "self", NULL
20491 };
20492
20493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20496 result = (int) ((arg1)->m_image);
20497
20498 resultobj = SWIG_From_int((int)result);
20499 return resultobj;
20500 fail:
20501 return NULL;
20502 }
20503
20504
20505 static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) {
20506 PyObject *resultobj;
20507 wxListItem *arg1 = (wxListItem *) 0 ;
20508 long arg2 ;
20509 PyObject * obj0 = 0 ;
20510 PyObject * obj1 = 0 ;
20511 char *kwnames[] = {
20512 (char *) "self",(char *) "m_data", NULL
20513 };
20514
20515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20518 arg2 = (long)SWIG_As_long(obj1);
20519 if (PyErr_Occurred()) SWIG_fail;
20520 if (arg1) (arg1)->m_data = arg2;
20521
20522 Py_INCREF(Py_None); resultobj = Py_None;
20523 return resultobj;
20524 fail:
20525 return NULL;
20526 }
20527
20528
20529 static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) {
20530 PyObject *resultobj;
20531 wxListItem *arg1 = (wxListItem *) 0 ;
20532 long result;
20533 PyObject * obj0 = 0 ;
20534 char *kwnames[] = {
20535 (char *) "self", NULL
20536 };
20537
20538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20541 result = (long) ((arg1)->m_data);
20542
20543 resultobj = SWIG_From_long((long)result);
20544 return resultobj;
20545 fail:
20546 return NULL;
20547 }
20548
20549
20550 static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) {
20551 PyObject *resultobj;
20552 wxListItem *arg1 = (wxListItem *) 0 ;
20553 int arg2 ;
20554 PyObject * obj0 = 0 ;
20555 PyObject * obj1 = 0 ;
20556 char *kwnames[] = {
20557 (char *) "self",(char *) "m_format", NULL
20558 };
20559
20560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20563 arg2 = (int)SWIG_As_int(obj1);
20564 if (PyErr_Occurred()) SWIG_fail;
20565 if (arg1) (arg1)->m_format = arg2;
20566
20567 Py_INCREF(Py_None); resultobj = Py_None;
20568 return resultobj;
20569 fail:
20570 return NULL;
20571 }
20572
20573
20574 static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) {
20575 PyObject *resultobj;
20576 wxListItem *arg1 = (wxListItem *) 0 ;
20577 int result;
20578 PyObject * obj0 = 0 ;
20579 char *kwnames[] = {
20580 (char *) "self", NULL
20581 };
20582
20583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20586 result = (int) ((arg1)->m_format);
20587
20588 resultobj = SWIG_From_int((int)result);
20589 return resultobj;
20590 fail:
20591 return NULL;
20592 }
20593
20594
20595 static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
20596 PyObject *resultobj;
20597 wxListItem *arg1 = (wxListItem *) 0 ;
20598 int arg2 ;
20599 PyObject * obj0 = 0 ;
20600 PyObject * obj1 = 0 ;
20601 char *kwnames[] = {
20602 (char *) "self",(char *) "m_width", NULL
20603 };
20604
20605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20608 arg2 = (int)SWIG_As_int(obj1);
20609 if (PyErr_Occurred()) SWIG_fail;
20610 if (arg1) (arg1)->m_width = arg2;
20611
20612 Py_INCREF(Py_None); resultobj = Py_None;
20613 return resultobj;
20614 fail:
20615 return NULL;
20616 }
20617
20618
20619 static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
20620 PyObject *resultobj;
20621 wxListItem *arg1 = (wxListItem *) 0 ;
20622 int result;
20623 PyObject * obj0 = 0 ;
20624 char *kwnames[] = {
20625 (char *) "self", NULL
20626 };
20627
20628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20631 result = (int) ((arg1)->m_width);
20632
20633 resultobj = SWIG_From_int((int)result);
20634 return resultobj;
20635 fail:
20636 return NULL;
20637 }
20638
20639
20640 static PyObject * ListItem_swigregister(PyObject *, PyObject *args) {
20641 PyObject *obj;
20642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20643 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20644 Py_INCREF(obj);
20645 return Py_BuildValue((char *)"");
20646 }
20647 static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20648 PyObject *resultobj;
20649 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20650 int arg2 = (int) 0 ;
20651 wxListEvent *result;
20652 PyObject * obj0 = 0 ;
20653 PyObject * obj1 = 0 ;
20654 char *kwnames[] = {
20655 (char *) "commandType",(char *) "id", NULL
20656 };
20657
20658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20659 if (obj0) {
20660 arg1 = (wxEventType)SWIG_As_int(obj0);
20661 if (PyErr_Occurred()) SWIG_fail;
20662 }
20663 if (obj1) {
20664 arg2 = (int)SWIG_As_int(obj1);
20665 if (PyErr_Occurred()) SWIG_fail;
20666 }
20667 {
20668 PyThreadState* __tstate = wxPyBeginAllowThreads();
20669 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20670
20671 wxPyEndAllowThreads(__tstate);
20672 if (PyErr_Occurred()) SWIG_fail;
20673 }
20674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20675 return resultobj;
20676 fail:
20677 return NULL;
20678 }
20679
20680
20681 static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) {
20682 PyObject *resultobj;
20683 wxListEvent *arg1 = (wxListEvent *) 0 ;
20684 int arg2 ;
20685 PyObject * obj0 = 0 ;
20686 PyObject * obj1 = 0 ;
20687 char *kwnames[] = {
20688 (char *) "self",(char *) "m_code", NULL
20689 };
20690
20691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20694 arg2 = (int)SWIG_As_int(obj1);
20695 if (PyErr_Occurred()) SWIG_fail;
20696 if (arg1) (arg1)->m_code = arg2;
20697
20698 Py_INCREF(Py_None); resultobj = Py_None;
20699 return resultobj;
20700 fail:
20701 return NULL;
20702 }
20703
20704
20705 static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) {
20706 PyObject *resultobj;
20707 wxListEvent *arg1 = (wxListEvent *) 0 ;
20708 int result;
20709 PyObject * obj0 = 0 ;
20710 char *kwnames[] = {
20711 (char *) "self", NULL
20712 };
20713
20714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20717 result = (int) ((arg1)->m_code);
20718
20719 resultobj = SWIG_From_int((int)result);
20720 return resultobj;
20721 fail:
20722 return NULL;
20723 }
20724
20725
20726 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
20727 PyObject *resultobj;
20728 wxListEvent *arg1 = (wxListEvent *) 0 ;
20729 long arg2 ;
20730 PyObject * obj0 = 0 ;
20731 PyObject * obj1 = 0 ;
20732 char *kwnames[] = {
20733 (char *) "self",(char *) "m_oldItemIndex", NULL
20734 };
20735
20736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20739 arg2 = (long)SWIG_As_long(obj1);
20740 if (PyErr_Occurred()) SWIG_fail;
20741 if (arg1) (arg1)->m_oldItemIndex = arg2;
20742
20743 Py_INCREF(Py_None); resultobj = Py_None;
20744 return resultobj;
20745 fail:
20746 return NULL;
20747 }
20748
20749
20750 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
20751 PyObject *resultobj;
20752 wxListEvent *arg1 = (wxListEvent *) 0 ;
20753 long result;
20754 PyObject * obj0 = 0 ;
20755 char *kwnames[] = {
20756 (char *) "self", NULL
20757 };
20758
20759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20762 result = (long) ((arg1)->m_oldItemIndex);
20763
20764 resultobj = SWIG_From_long((long)result);
20765 return resultobj;
20766 fail:
20767 return NULL;
20768 }
20769
20770
20771 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
20772 PyObject *resultobj;
20773 wxListEvent *arg1 = (wxListEvent *) 0 ;
20774 long arg2 ;
20775 PyObject * obj0 = 0 ;
20776 PyObject * obj1 = 0 ;
20777 char *kwnames[] = {
20778 (char *) "self",(char *) "m_itemIndex", NULL
20779 };
20780
20781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20784 arg2 = (long)SWIG_As_long(obj1);
20785 if (PyErr_Occurred()) SWIG_fail;
20786 if (arg1) (arg1)->m_itemIndex = arg2;
20787
20788 Py_INCREF(Py_None); resultobj = Py_None;
20789 return resultobj;
20790 fail:
20791 return NULL;
20792 }
20793
20794
20795 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
20796 PyObject *resultobj;
20797 wxListEvent *arg1 = (wxListEvent *) 0 ;
20798 long result;
20799 PyObject * obj0 = 0 ;
20800 char *kwnames[] = {
20801 (char *) "self", NULL
20802 };
20803
20804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20807 result = (long) ((arg1)->m_itemIndex);
20808
20809 resultobj = SWIG_From_long((long)result);
20810 return resultobj;
20811 fail:
20812 return NULL;
20813 }
20814
20815
20816 static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20817 PyObject *resultobj;
20818 wxListEvent *arg1 = (wxListEvent *) 0 ;
20819 int arg2 ;
20820 PyObject * obj0 = 0 ;
20821 PyObject * obj1 = 0 ;
20822 char *kwnames[] = {
20823 (char *) "self",(char *) "m_col", NULL
20824 };
20825
20826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20829 arg2 = (int)SWIG_As_int(obj1);
20830 if (PyErr_Occurred()) SWIG_fail;
20831 if (arg1) (arg1)->m_col = arg2;
20832
20833 Py_INCREF(Py_None); resultobj = Py_None;
20834 return resultobj;
20835 fail:
20836 return NULL;
20837 }
20838
20839
20840 static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20841 PyObject *resultobj;
20842 wxListEvent *arg1 = (wxListEvent *) 0 ;
20843 int result;
20844 PyObject * obj0 = 0 ;
20845 char *kwnames[] = {
20846 (char *) "self", NULL
20847 };
20848
20849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20852 result = (int) ((arg1)->m_col);
20853
20854 resultobj = SWIG_From_int((int)result);
20855 return resultobj;
20856 fail:
20857 return NULL;
20858 }
20859
20860
20861 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) {
20862 PyObject *resultobj;
20863 wxListEvent *arg1 = (wxListEvent *) 0 ;
20864 wxPoint *arg2 = (wxPoint *) 0 ;
20865 PyObject * obj0 = 0 ;
20866 PyObject * obj1 = 0 ;
20867 char *kwnames[] = {
20868 (char *) "self",(char *) "m_pointDrag", NULL
20869 };
20870
20871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20874 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20876 if (arg1) (arg1)->m_pointDrag = *arg2;
20877
20878 Py_INCREF(Py_None); resultobj = Py_None;
20879 return resultobj;
20880 fail:
20881 return NULL;
20882 }
20883
20884
20885 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) {
20886 PyObject *resultobj;
20887 wxListEvent *arg1 = (wxListEvent *) 0 ;
20888 wxPoint *result;
20889 PyObject * obj0 = 0 ;
20890 char *kwnames[] = {
20891 (char *) "self", NULL
20892 };
20893
20894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20897 result = (wxPoint *)& ((arg1)->m_pointDrag);
20898
20899 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20900 return resultobj;
20901 fail:
20902 return NULL;
20903 }
20904
20905
20906 static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) {
20907 PyObject *resultobj;
20908 wxListEvent *arg1 = (wxListEvent *) 0 ;
20909 wxListItem *result;
20910 PyObject * obj0 = 0 ;
20911 char *kwnames[] = {
20912 (char *) "self", NULL
20913 };
20914
20915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20918 result = (wxListItem *)& ((arg1)->m_item);
20919
20920 {
20921 resultobj = wxPyMake_wxObject(result, 0);
20922 }
20923 return resultobj;
20924 fail:
20925 return NULL;
20926 }
20927
20928
20929 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
20930 PyObject *resultobj;
20931 wxListEvent *arg1 = (wxListEvent *) 0 ;
20932 int result;
20933 PyObject * obj0 = 0 ;
20934 char *kwnames[] = {
20935 (char *) "self", NULL
20936 };
20937
20938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20941 {
20942 PyThreadState* __tstate = wxPyBeginAllowThreads();
20943 result = (int)(arg1)->GetKeyCode();
20944
20945 wxPyEndAllowThreads(__tstate);
20946 if (PyErr_Occurred()) SWIG_fail;
20947 }
20948 resultobj = SWIG_From_int((int)result);
20949 return resultobj;
20950 fail:
20951 return NULL;
20952 }
20953
20954
20955 static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
20956 PyObject *resultobj;
20957 wxListEvent *arg1 = (wxListEvent *) 0 ;
20958 long result;
20959 PyObject * obj0 = 0 ;
20960 char *kwnames[] = {
20961 (char *) "self", NULL
20962 };
20963
20964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20967 {
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 result = (long)(arg1)->GetIndex();
20970
20971 wxPyEndAllowThreads(__tstate);
20972 if (PyErr_Occurred()) SWIG_fail;
20973 }
20974 resultobj = SWIG_From_long((long)result);
20975 return resultobj;
20976 fail:
20977 return NULL;
20978 }
20979
20980
20981 static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20982 PyObject *resultobj;
20983 wxListEvent *arg1 = (wxListEvent *) 0 ;
20984 int result;
20985 PyObject * obj0 = 0 ;
20986 char *kwnames[] = {
20987 (char *) "self", NULL
20988 };
20989
20990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20993 {
20994 PyThreadState* __tstate = wxPyBeginAllowThreads();
20995 result = (int)(arg1)->GetColumn();
20996
20997 wxPyEndAllowThreads(__tstate);
20998 if (PyErr_Occurred()) SWIG_fail;
20999 }
21000 resultobj = SWIG_From_int((int)result);
21001 return resultobj;
21002 fail:
21003 return NULL;
21004 }
21005
21006
21007 static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
21008 PyObject *resultobj;
21009 wxListEvent *arg1 = (wxListEvent *) 0 ;
21010 wxPoint result;
21011 PyObject * obj0 = 0 ;
21012 char *kwnames[] = {
21013 (char *) "self", NULL
21014 };
21015
21016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
21017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21019 {
21020 PyThreadState* __tstate = wxPyBeginAllowThreads();
21021 result = (arg1)->GetPoint();
21022
21023 wxPyEndAllowThreads(__tstate);
21024 if (PyErr_Occurred()) SWIG_fail;
21025 }
21026 {
21027 wxPoint * resultptr;
21028 resultptr = new wxPoint((wxPoint &) result);
21029 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21030 }
21031 return resultobj;
21032 fail:
21033 return NULL;
21034 }
21035
21036
21037 static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
21038 PyObject *resultobj;
21039 wxListEvent *arg1 = (wxListEvent *) 0 ;
21040 wxString *result;
21041 PyObject * obj0 = 0 ;
21042 char *kwnames[] = {
21043 (char *) "self", NULL
21044 };
21045
21046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
21047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21049 {
21050 PyThreadState* __tstate = wxPyBeginAllowThreads();
21051 {
21052 wxString const &_result_ref = (arg1)->GetLabel();
21053 result = (wxString *) &_result_ref;
21054 }
21055
21056 wxPyEndAllowThreads(__tstate);
21057 if (PyErr_Occurred()) SWIG_fail;
21058 }
21059 {
21060 #if wxUSE_UNICODE
21061 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21062 #else
21063 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21064 #endif
21065 }
21066 return resultobj;
21067 fail:
21068 return NULL;
21069 }
21070
21071
21072 static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
21073 PyObject *resultobj;
21074 wxListEvent *arg1 = (wxListEvent *) 0 ;
21075 wxString *result;
21076 PyObject * obj0 = 0 ;
21077 char *kwnames[] = {
21078 (char *) "self", NULL
21079 };
21080
21081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
21082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21084 {
21085 PyThreadState* __tstate = wxPyBeginAllowThreads();
21086 {
21087 wxString const &_result_ref = (arg1)->GetText();
21088 result = (wxString *) &_result_ref;
21089 }
21090
21091 wxPyEndAllowThreads(__tstate);
21092 if (PyErr_Occurred()) SWIG_fail;
21093 }
21094 {
21095 #if wxUSE_UNICODE
21096 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21097 #else
21098 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21099 #endif
21100 }
21101 return resultobj;
21102 fail:
21103 return NULL;
21104 }
21105
21106
21107 static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
21108 PyObject *resultobj;
21109 wxListEvent *arg1 = (wxListEvent *) 0 ;
21110 int result;
21111 PyObject * obj0 = 0 ;
21112 char *kwnames[] = {
21113 (char *) "self", NULL
21114 };
21115
21116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
21117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21119 {
21120 PyThreadState* __tstate = wxPyBeginAllowThreads();
21121 result = (int)(arg1)->GetImage();
21122
21123 wxPyEndAllowThreads(__tstate);
21124 if (PyErr_Occurred()) SWIG_fail;
21125 }
21126 resultobj = SWIG_From_int((int)result);
21127 return resultobj;
21128 fail:
21129 return NULL;
21130 }
21131
21132
21133 static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
21134 PyObject *resultobj;
21135 wxListEvent *arg1 = (wxListEvent *) 0 ;
21136 long result;
21137 PyObject * obj0 = 0 ;
21138 char *kwnames[] = {
21139 (char *) "self", NULL
21140 };
21141
21142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
21143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21145 {
21146 PyThreadState* __tstate = wxPyBeginAllowThreads();
21147 result = (long)(arg1)->GetData();
21148
21149 wxPyEndAllowThreads(__tstate);
21150 if (PyErr_Occurred()) SWIG_fail;
21151 }
21152 resultobj = SWIG_From_long((long)result);
21153 return resultobj;
21154 fail:
21155 return NULL;
21156 }
21157
21158
21159 static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
21160 PyObject *resultobj;
21161 wxListEvent *arg1 = (wxListEvent *) 0 ;
21162 long result;
21163 PyObject * obj0 = 0 ;
21164 char *kwnames[] = {
21165 (char *) "self", NULL
21166 };
21167
21168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
21169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21171 {
21172 PyThreadState* __tstate = wxPyBeginAllowThreads();
21173 result = (long)(arg1)->GetMask();
21174
21175 wxPyEndAllowThreads(__tstate);
21176 if (PyErr_Occurred()) SWIG_fail;
21177 }
21178 resultobj = SWIG_From_long((long)result);
21179 return resultobj;
21180 fail:
21181 return NULL;
21182 }
21183
21184
21185 static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21186 PyObject *resultobj;
21187 wxListEvent *arg1 = (wxListEvent *) 0 ;
21188 wxListItem *result;
21189 PyObject * obj0 = 0 ;
21190 char *kwnames[] = {
21191 (char *) "self", NULL
21192 };
21193
21194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
21195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21197 {
21198 PyThreadState* __tstate = wxPyBeginAllowThreads();
21199 {
21200 wxListItem const &_result_ref = (arg1)->GetItem();
21201 result = (wxListItem *) &_result_ref;
21202 }
21203
21204 wxPyEndAllowThreads(__tstate);
21205 if (PyErr_Occurred()) SWIG_fail;
21206 }
21207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
21208 return resultobj;
21209 fail:
21210 return NULL;
21211 }
21212
21213
21214 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) {
21215 PyObject *resultobj;
21216 wxListEvent *arg1 = (wxListEvent *) 0 ;
21217 long result;
21218 PyObject * obj0 = 0 ;
21219 char *kwnames[] = {
21220 (char *) "self", NULL
21221 };
21222
21223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
21224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21226 {
21227 PyThreadState* __tstate = wxPyBeginAllowThreads();
21228 result = (long)(arg1)->GetCacheFrom();
21229
21230 wxPyEndAllowThreads(__tstate);
21231 if (PyErr_Occurred()) SWIG_fail;
21232 }
21233 resultobj = SWIG_From_long((long)result);
21234 return resultobj;
21235 fail:
21236 return NULL;
21237 }
21238
21239
21240 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) {
21241 PyObject *resultobj;
21242 wxListEvent *arg1 = (wxListEvent *) 0 ;
21243 long result;
21244 PyObject * obj0 = 0 ;
21245 char *kwnames[] = {
21246 (char *) "self", NULL
21247 };
21248
21249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
21250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21252 {
21253 PyThreadState* __tstate = wxPyBeginAllowThreads();
21254 result = (long)(arg1)->GetCacheTo();
21255
21256 wxPyEndAllowThreads(__tstate);
21257 if (PyErr_Occurred()) SWIG_fail;
21258 }
21259 resultobj = SWIG_From_long((long)result);
21260 return resultobj;
21261 fail:
21262 return NULL;
21263 }
21264
21265
21266 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
21267 PyObject *resultobj;
21268 wxListEvent *arg1 = (wxListEvent *) 0 ;
21269 bool result;
21270 PyObject * obj0 = 0 ;
21271 char *kwnames[] = {
21272 (char *) "self", NULL
21273 };
21274
21275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
21276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21278 {
21279 PyThreadState* __tstate = wxPyBeginAllowThreads();
21280 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
21281
21282 wxPyEndAllowThreads(__tstate);
21283 if (PyErr_Occurred()) SWIG_fail;
21284 }
21285 {
21286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21287 }
21288 return resultobj;
21289 fail:
21290 return NULL;
21291 }
21292
21293
21294 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
21295 PyObject *resultobj;
21296 wxListEvent *arg1 = (wxListEvent *) 0 ;
21297 bool arg2 ;
21298 PyObject * obj0 = 0 ;
21299 PyObject * obj1 = 0 ;
21300 char *kwnames[] = {
21301 (char *) "self",(char *) "editCancelled", NULL
21302 };
21303
21304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
21305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21307 arg2 = (bool)SWIG_As_bool(obj1);
21308 if (PyErr_Occurred()) SWIG_fail;
21309 {
21310 PyThreadState* __tstate = wxPyBeginAllowThreads();
21311 (arg1)->SetEditCanceled(arg2);
21312
21313 wxPyEndAllowThreads(__tstate);
21314 if (PyErr_Occurred()) SWIG_fail;
21315 }
21316 Py_INCREF(Py_None); resultobj = Py_None;
21317 return resultobj;
21318 fail:
21319 return NULL;
21320 }
21321
21322
21323 static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) {
21324 PyObject *obj;
21325 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21326 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21327 Py_INCREF(obj);
21328 return Py_BuildValue((char *)"");
21329 }
21330 static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21331 PyObject *resultobj;
21332 wxWindow *arg1 = (wxWindow *) 0 ;
21333 int arg2 = (int) -1 ;
21334 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21335 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21336 wxSize const &arg4_defvalue = wxDefaultSize ;
21337 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21338 long arg5 = (long) wxLC_ICON ;
21339 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21340 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21341 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21342 wxString *arg7 = (wxString *) &arg7_defvalue ;
21343 wxPyListCtrl *result;
21344 wxPoint temp3 ;
21345 wxSize temp4 ;
21346 bool temp7 = False ;
21347 PyObject * obj0 = 0 ;
21348 PyObject * obj1 = 0 ;
21349 PyObject * obj2 = 0 ;
21350 PyObject * obj3 = 0 ;
21351 PyObject * obj4 = 0 ;
21352 PyObject * obj5 = 0 ;
21353 PyObject * obj6 = 0 ;
21354 char *kwnames[] = {
21355 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21356 };
21357
21358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21361 if (obj1) {
21362 arg2 = (int)SWIG_As_int(obj1);
21363 if (PyErr_Occurred()) SWIG_fail;
21364 }
21365 if (obj2) {
21366 {
21367 arg3 = &temp3;
21368 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21369 }
21370 }
21371 if (obj3) {
21372 {
21373 arg4 = &temp4;
21374 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21375 }
21376 }
21377 if (obj4) {
21378 arg5 = (long)SWIG_As_long(obj4);
21379 if (PyErr_Occurred()) SWIG_fail;
21380 }
21381 if (obj5) {
21382 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21383 SWIG_POINTER_EXCEPTION | 0)) == -1)
21384 SWIG_fail;
21385 if (arg6 == NULL) {
21386 PyErr_SetString(PyExc_TypeError,"null reference");
21387 SWIG_fail;
21388 }
21389 }
21390 if (obj6) {
21391 {
21392 arg7 = wxString_in_helper(obj6);
21393 if (arg7 == NULL) SWIG_fail;
21394 temp7 = True;
21395 }
21396 }
21397 {
21398 if (!wxPyCheckForApp()) SWIG_fail;
21399 PyThreadState* __tstate = wxPyBeginAllowThreads();
21400 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21401
21402 wxPyEndAllowThreads(__tstate);
21403 if (PyErr_Occurred()) SWIG_fail;
21404 }
21405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21406 {
21407 if (temp7)
21408 delete arg7;
21409 }
21410 return resultobj;
21411 fail:
21412 {
21413 if (temp7)
21414 delete arg7;
21415 }
21416 return NULL;
21417 }
21418
21419
21420 static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21421 PyObject *resultobj;
21422 wxPyListCtrl *result;
21423 char *kwnames[] = {
21424 NULL
21425 };
21426
21427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21428 {
21429 if (!wxPyCheckForApp()) SWIG_fail;
21430 PyThreadState* __tstate = wxPyBeginAllowThreads();
21431 result = (wxPyListCtrl *)new wxPyListCtrl();
21432
21433 wxPyEndAllowThreads(__tstate);
21434 if (PyErr_Occurred()) SWIG_fail;
21435 }
21436 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21437 return resultobj;
21438 fail:
21439 return NULL;
21440 }
21441
21442
21443 static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
21444 PyObject *resultobj;
21445 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21446 wxWindow *arg2 = (wxWindow *) 0 ;
21447 int arg3 = (int) -1 ;
21448 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21449 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21450 wxSize const &arg5_defvalue = wxDefaultSize ;
21451 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21452 long arg6 = (long) wxLC_ICON ;
21453 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21454 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21455 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21456 wxString *arg8 = (wxString *) &arg8_defvalue ;
21457 bool result;
21458 wxPoint temp4 ;
21459 wxSize temp5 ;
21460 bool temp8 = False ;
21461 PyObject * obj0 = 0 ;
21462 PyObject * obj1 = 0 ;
21463 PyObject * obj2 = 0 ;
21464 PyObject * obj3 = 0 ;
21465 PyObject * obj4 = 0 ;
21466 PyObject * obj5 = 0 ;
21467 PyObject * obj6 = 0 ;
21468 PyObject * obj7 = 0 ;
21469 char *kwnames[] = {
21470 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21471 };
21472
21473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21476 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21478 if (obj2) {
21479 arg3 = (int)SWIG_As_int(obj2);
21480 if (PyErr_Occurred()) SWIG_fail;
21481 }
21482 if (obj3) {
21483 {
21484 arg4 = &temp4;
21485 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21486 }
21487 }
21488 if (obj4) {
21489 {
21490 arg5 = &temp5;
21491 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21492 }
21493 }
21494 if (obj5) {
21495 arg6 = (long)SWIG_As_long(obj5);
21496 if (PyErr_Occurred()) SWIG_fail;
21497 }
21498 if (obj6) {
21499 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21500 SWIG_POINTER_EXCEPTION | 0)) == -1)
21501 SWIG_fail;
21502 if (arg7 == NULL) {
21503 PyErr_SetString(PyExc_TypeError,"null reference");
21504 SWIG_fail;
21505 }
21506 }
21507 if (obj7) {
21508 {
21509 arg8 = wxString_in_helper(obj7);
21510 if (arg8 == NULL) SWIG_fail;
21511 temp8 = True;
21512 }
21513 }
21514 {
21515 PyThreadState* __tstate = wxPyBeginAllowThreads();
21516 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21517
21518 wxPyEndAllowThreads(__tstate);
21519 if (PyErr_Occurred()) SWIG_fail;
21520 }
21521 {
21522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21523 }
21524 {
21525 if (temp8)
21526 delete arg8;
21527 }
21528 return resultobj;
21529 fail:
21530 {
21531 if (temp8)
21532 delete arg8;
21533 }
21534 return NULL;
21535 }
21536
21537
21538 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
21539 PyObject *resultobj;
21540 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21541 PyObject *arg2 = (PyObject *) 0 ;
21542 PyObject *arg3 = (PyObject *) 0 ;
21543 PyObject * obj0 = 0 ;
21544 PyObject * obj1 = 0 ;
21545 PyObject * obj2 = 0 ;
21546 char *kwnames[] = {
21547 (char *) "self",(char *) "self",(char *) "_class", NULL
21548 };
21549
21550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21553 arg2 = obj1;
21554 arg3 = obj2;
21555 {
21556 PyThreadState* __tstate = wxPyBeginAllowThreads();
21557 (arg1)->_setCallbackInfo(arg2,arg3);
21558
21559 wxPyEndAllowThreads(__tstate);
21560 if (PyErr_Occurred()) SWIG_fail;
21561 }
21562 Py_INCREF(Py_None); resultobj = Py_None;
21563 return resultobj;
21564 fail:
21565 return NULL;
21566 }
21567
21568
21569 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21570 PyObject *resultobj;
21571 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21572 wxColour *arg2 = 0 ;
21573 bool result;
21574 wxColour temp2 ;
21575 PyObject * obj0 = 0 ;
21576 PyObject * obj1 = 0 ;
21577 char *kwnames[] = {
21578 (char *) "self",(char *) "col", NULL
21579 };
21580
21581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21584 {
21585 arg2 = &temp2;
21586 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21587 }
21588 {
21589 PyThreadState* __tstate = wxPyBeginAllowThreads();
21590 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21591
21592 wxPyEndAllowThreads(__tstate);
21593 if (PyErr_Occurred()) SWIG_fail;
21594 }
21595 {
21596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21597 }
21598 return resultobj;
21599 fail:
21600 return NULL;
21601 }
21602
21603
21604 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21605 PyObject *resultobj;
21606 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21607 wxColour *arg2 = 0 ;
21608 bool result;
21609 wxColour temp2 ;
21610 PyObject * obj0 = 0 ;
21611 PyObject * obj1 = 0 ;
21612 char *kwnames[] = {
21613 (char *) "self",(char *) "col", NULL
21614 };
21615
21616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21619 {
21620 arg2 = &temp2;
21621 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21622 }
21623 {
21624 PyThreadState* __tstate = wxPyBeginAllowThreads();
21625 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21626
21627 wxPyEndAllowThreads(__tstate);
21628 if (PyErr_Occurred()) SWIG_fail;
21629 }
21630 {
21631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21632 }
21633 return resultobj;
21634 fail:
21635 return NULL;
21636 }
21637
21638
21639 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21640 PyObject *resultobj;
21641 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21642 int arg2 ;
21643 wxListItem *result;
21644 PyObject * obj0 = 0 ;
21645 PyObject * obj1 = 0 ;
21646 char *kwnames[] = {
21647 (char *) "self",(char *) "col", NULL
21648 };
21649
21650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21653 arg2 = (int)SWIG_As_int(obj1);
21654 if (PyErr_Occurred()) SWIG_fail;
21655 {
21656 PyThreadState* __tstate = wxPyBeginAllowThreads();
21657 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21658
21659 wxPyEndAllowThreads(__tstate);
21660 if (PyErr_Occurred()) SWIG_fail;
21661 }
21662 {
21663 resultobj = wxPyMake_wxObject(result, 0);
21664 }
21665 return resultobj;
21666 fail:
21667 return NULL;
21668 }
21669
21670
21671 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21672 PyObject *resultobj;
21673 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21674 int arg2 ;
21675 wxListItem *arg3 = 0 ;
21676 bool result;
21677 PyObject * obj0 = 0 ;
21678 PyObject * obj1 = 0 ;
21679 PyObject * obj2 = 0 ;
21680 char *kwnames[] = {
21681 (char *) "self",(char *) "col",(char *) "item", NULL
21682 };
21683
21684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21687 arg2 = (int)SWIG_As_int(obj1);
21688 if (PyErr_Occurred()) SWIG_fail;
21689 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21690 SWIG_POINTER_EXCEPTION | 0)) == -1)
21691 SWIG_fail;
21692 if (arg3 == NULL) {
21693 PyErr_SetString(PyExc_TypeError,"null reference");
21694 SWIG_fail;
21695 }
21696 {
21697 PyThreadState* __tstate = wxPyBeginAllowThreads();
21698 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21699
21700 wxPyEndAllowThreads(__tstate);
21701 if (PyErr_Occurred()) SWIG_fail;
21702 }
21703 {
21704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21705 }
21706 return resultobj;
21707 fail:
21708 return NULL;
21709 }
21710
21711
21712 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
21713 PyObject *resultobj;
21714 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21715 int arg2 ;
21716 int result;
21717 PyObject * obj0 = 0 ;
21718 PyObject * obj1 = 0 ;
21719 char *kwnames[] = {
21720 (char *) "self",(char *) "col", NULL
21721 };
21722
21723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21726 arg2 = (int)SWIG_As_int(obj1);
21727 if (PyErr_Occurred()) SWIG_fail;
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21731
21732 wxPyEndAllowThreads(__tstate);
21733 if (PyErr_Occurred()) SWIG_fail;
21734 }
21735 resultobj = SWIG_From_int((int)result);
21736 return resultobj;
21737 fail:
21738 return NULL;
21739 }
21740
21741
21742 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
21743 PyObject *resultobj;
21744 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21745 int arg2 ;
21746 int arg3 ;
21747 bool result;
21748 PyObject * obj0 = 0 ;
21749 PyObject * obj1 = 0 ;
21750 PyObject * obj2 = 0 ;
21751 char *kwnames[] = {
21752 (char *) "self",(char *) "col",(char *) "width", NULL
21753 };
21754
21755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21758 arg2 = (int)SWIG_As_int(obj1);
21759 if (PyErr_Occurred()) SWIG_fail;
21760 arg3 = (int)SWIG_As_int(obj2);
21761 if (PyErr_Occurred()) SWIG_fail;
21762 {
21763 PyThreadState* __tstate = wxPyBeginAllowThreads();
21764 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21765
21766 wxPyEndAllowThreads(__tstate);
21767 if (PyErr_Occurred()) SWIG_fail;
21768 }
21769 {
21770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21771 }
21772 return resultobj;
21773 fail:
21774 return NULL;
21775 }
21776
21777
21778 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) {
21779 PyObject *resultobj;
21780 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21781 int result;
21782 PyObject * obj0 = 0 ;
21783 char *kwnames[] = {
21784 (char *) "self", NULL
21785 };
21786
21787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21790 {
21791 PyThreadState* __tstate = wxPyBeginAllowThreads();
21792 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21793
21794 wxPyEndAllowThreads(__tstate);
21795 if (PyErr_Occurred()) SWIG_fail;
21796 }
21797 resultobj = SWIG_From_int((int)result);
21798 return resultobj;
21799 fail:
21800 return NULL;
21801 }
21802
21803
21804 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) {
21805 PyObject *resultobj;
21806 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21807 wxRect result;
21808 PyObject * obj0 = 0 ;
21809 char *kwnames[] = {
21810 (char *) "self", NULL
21811 };
21812
21813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21816 {
21817 PyThreadState* __tstate = wxPyBeginAllowThreads();
21818 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21819
21820 wxPyEndAllowThreads(__tstate);
21821 if (PyErr_Occurred()) SWIG_fail;
21822 }
21823 {
21824 wxRect * resultptr;
21825 resultptr = new wxRect((wxRect &) result);
21826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21827 }
21828 return resultobj;
21829 fail:
21830 return NULL;
21831 }
21832
21833
21834 static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
21835 PyObject *resultobj;
21836 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21837 wxTextCtrl *result;
21838 PyObject * obj0 = 0 ;
21839 char *kwnames[] = {
21840 (char *) "self", NULL
21841 };
21842
21843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail;
21844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21846 {
21847 PyThreadState* __tstate = wxPyBeginAllowThreads();
21848 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
21849
21850 wxPyEndAllowThreads(__tstate);
21851 if (PyErr_Occurred()) SWIG_fail;
21852 }
21853 {
21854 resultobj = wxPyMake_wxObject(result, 0);
21855 }
21856 return resultobj;
21857 fail:
21858 return NULL;
21859 }
21860
21861
21862 static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21863 PyObject *resultobj;
21864 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21865 long arg2 ;
21866 int arg3 = (int) 0 ;
21867 wxListItem *result;
21868 PyObject * obj0 = 0 ;
21869 PyObject * obj1 = 0 ;
21870 PyObject * obj2 = 0 ;
21871 char *kwnames[] = {
21872 (char *) "self",(char *) "itemId",(char *) "col", NULL
21873 };
21874
21875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21878 arg2 = (long)SWIG_As_long(obj1);
21879 if (PyErr_Occurred()) SWIG_fail;
21880 if (obj2) {
21881 arg3 = (int)SWIG_As_int(obj2);
21882 if (PyErr_Occurred()) SWIG_fail;
21883 }
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21887
21888 wxPyEndAllowThreads(__tstate);
21889 if (PyErr_Occurred()) SWIG_fail;
21890 }
21891 {
21892 resultobj = wxPyMake_wxObject(result, 0);
21893 }
21894 return resultobj;
21895 fail:
21896 return NULL;
21897 }
21898
21899
21900 static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21901 PyObject *resultobj;
21902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21903 wxListItem *arg2 = 0 ;
21904 bool result;
21905 PyObject * obj0 = 0 ;
21906 PyObject * obj1 = 0 ;
21907 char *kwnames[] = {
21908 (char *) "self",(char *) "info", NULL
21909 };
21910
21911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21914 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21915 SWIG_POINTER_EXCEPTION | 0)) == -1)
21916 SWIG_fail;
21917 if (arg2 == NULL) {
21918 PyErr_SetString(PyExc_TypeError,"null reference");
21919 SWIG_fail;
21920 }
21921 {
21922 PyThreadState* __tstate = wxPyBeginAllowThreads();
21923 result = (bool)(arg1)->SetItem(*arg2);
21924
21925 wxPyEndAllowThreads(__tstate);
21926 if (PyErr_Occurred()) SWIG_fail;
21927 }
21928 {
21929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21930 }
21931 return resultobj;
21932 fail:
21933 return NULL;
21934 }
21935
21936
21937 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
21938 PyObject *resultobj;
21939 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21940 long arg2 ;
21941 int arg3 ;
21942 wxString *arg4 = 0 ;
21943 int arg5 = (int) -1 ;
21944 long result;
21945 bool temp4 = False ;
21946 PyObject * obj0 = 0 ;
21947 PyObject * obj1 = 0 ;
21948 PyObject * obj2 = 0 ;
21949 PyObject * obj3 = 0 ;
21950 PyObject * obj4 = 0 ;
21951 char *kwnames[] = {
21952 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21953 };
21954
21955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21958 arg2 = (long)SWIG_As_long(obj1);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 arg3 = (int)SWIG_As_int(obj2);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 {
21963 arg4 = wxString_in_helper(obj3);
21964 if (arg4 == NULL) SWIG_fail;
21965 temp4 = True;
21966 }
21967 if (obj4) {
21968 arg5 = (int)SWIG_As_int(obj4);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 }
21971 {
21972 PyThreadState* __tstate = wxPyBeginAllowThreads();
21973 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21974
21975 wxPyEndAllowThreads(__tstate);
21976 if (PyErr_Occurred()) SWIG_fail;
21977 }
21978 resultobj = SWIG_From_long((long)result);
21979 {
21980 if (temp4)
21981 delete arg4;
21982 }
21983 return resultobj;
21984 fail:
21985 {
21986 if (temp4)
21987 delete arg4;
21988 }
21989 return NULL;
21990 }
21991
21992
21993 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
21994 PyObject *resultobj;
21995 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21996 long arg2 ;
21997 long arg3 ;
21998 int result;
21999 PyObject * obj0 = 0 ;
22000 PyObject * obj1 = 0 ;
22001 PyObject * obj2 = 0 ;
22002 char *kwnames[] = {
22003 (char *) "self",(char *) "item",(char *) "stateMask", NULL
22004 };
22005
22006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
22007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22009 arg2 = (long)SWIG_As_long(obj1);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 arg3 = (long)SWIG_As_long(obj2);
22012 if (PyErr_Occurred()) SWIG_fail;
22013 {
22014 PyThreadState* __tstate = wxPyBeginAllowThreads();
22015 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
22016
22017 wxPyEndAllowThreads(__tstate);
22018 if (PyErr_Occurred()) SWIG_fail;
22019 }
22020 resultobj = SWIG_From_int((int)result);
22021 return resultobj;
22022 fail:
22023 return NULL;
22024 }
22025
22026
22027 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22028 PyObject *resultobj;
22029 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22030 long arg2 ;
22031 long arg3 ;
22032 long arg4 ;
22033 bool result;
22034 PyObject * obj0 = 0 ;
22035 PyObject * obj1 = 0 ;
22036 PyObject * obj2 = 0 ;
22037 PyObject * obj3 = 0 ;
22038 char *kwnames[] = {
22039 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
22040 };
22041
22042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22045 arg2 = (long)SWIG_As_long(obj1);
22046 if (PyErr_Occurred()) SWIG_fail;
22047 arg3 = (long)SWIG_As_long(obj2);
22048 if (PyErr_Occurred()) SWIG_fail;
22049 arg4 = (long)SWIG_As_long(obj3);
22050 if (PyErr_Occurred()) SWIG_fail;
22051 {
22052 PyThreadState* __tstate = wxPyBeginAllowThreads();
22053 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
22054
22055 wxPyEndAllowThreads(__tstate);
22056 if (PyErr_Occurred()) SWIG_fail;
22057 }
22058 {
22059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22060 }
22061 return resultobj;
22062 fail:
22063 return NULL;
22064 }
22065
22066
22067 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
22068 PyObject *resultobj;
22069 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22070 long arg2 ;
22071 int arg3 ;
22072 int arg4 ;
22073 bool result;
22074 PyObject * obj0 = 0 ;
22075 PyObject * obj1 = 0 ;
22076 PyObject * obj2 = 0 ;
22077 PyObject * obj3 = 0 ;
22078 char *kwnames[] = {
22079 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
22080 };
22081
22082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22085 arg2 = (long)SWIG_As_long(obj1);
22086 if (PyErr_Occurred()) SWIG_fail;
22087 arg3 = (int)SWIG_As_int(obj2);
22088 if (PyErr_Occurred()) SWIG_fail;
22089 arg4 = (int)SWIG_As_int(obj3);
22090 if (PyErr_Occurred()) SWIG_fail;
22091 {
22092 PyThreadState* __tstate = wxPyBeginAllowThreads();
22093 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
22094
22095 wxPyEndAllowThreads(__tstate);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 }
22098 {
22099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22100 }
22101 return resultobj;
22102 fail:
22103 return NULL;
22104 }
22105
22106
22107 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22108 PyObject *resultobj;
22109 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22110 long arg2 ;
22111 wxString result;
22112 PyObject * obj0 = 0 ;
22113 PyObject * obj1 = 0 ;
22114 char *kwnames[] = {
22115 (char *) "self",(char *) "item", NULL
22116 };
22117
22118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
22119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22121 arg2 = (long)SWIG_As_long(obj1);
22122 if (PyErr_Occurred()) SWIG_fail;
22123 {
22124 PyThreadState* __tstate = wxPyBeginAllowThreads();
22125 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
22126
22127 wxPyEndAllowThreads(__tstate);
22128 if (PyErr_Occurred()) SWIG_fail;
22129 }
22130 {
22131 #if wxUSE_UNICODE
22132 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22133 #else
22134 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22135 #endif
22136 }
22137 return resultobj;
22138 fail:
22139 return NULL;
22140 }
22141
22142
22143 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22144 PyObject *resultobj;
22145 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22146 long arg2 ;
22147 wxString *arg3 = 0 ;
22148 bool temp3 = False ;
22149 PyObject * obj0 = 0 ;
22150 PyObject * obj1 = 0 ;
22151 PyObject * obj2 = 0 ;
22152 char *kwnames[] = {
22153 (char *) "self",(char *) "item",(char *) "str", NULL
22154 };
22155
22156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
22157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22159 arg2 = (long)SWIG_As_long(obj1);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 {
22162 arg3 = wxString_in_helper(obj2);
22163 if (arg3 == NULL) SWIG_fail;
22164 temp3 = True;
22165 }
22166 {
22167 PyThreadState* __tstate = wxPyBeginAllowThreads();
22168 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
22169
22170 wxPyEndAllowThreads(__tstate);
22171 if (PyErr_Occurred()) SWIG_fail;
22172 }
22173 Py_INCREF(Py_None); resultobj = Py_None;
22174 {
22175 if (temp3)
22176 delete arg3;
22177 }
22178 return resultobj;
22179 fail:
22180 {
22181 if (temp3)
22182 delete arg3;
22183 }
22184 return NULL;
22185 }
22186
22187
22188 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22189 PyObject *resultobj;
22190 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22191 long arg2 ;
22192 long result;
22193 PyObject * obj0 = 0 ;
22194 PyObject * obj1 = 0 ;
22195 char *kwnames[] = {
22196 (char *) "self",(char *) "item", NULL
22197 };
22198
22199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
22200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22202 arg2 = (long)SWIG_As_long(obj1);
22203 if (PyErr_Occurred()) SWIG_fail;
22204 {
22205 PyThreadState* __tstate = wxPyBeginAllowThreads();
22206 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
22207
22208 wxPyEndAllowThreads(__tstate);
22209 if (PyErr_Occurred()) SWIG_fail;
22210 }
22211 resultobj = SWIG_From_long((long)result);
22212 return resultobj;
22213 fail:
22214 return NULL;
22215 }
22216
22217
22218 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22219 PyObject *resultobj;
22220 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22221 long arg2 ;
22222 long arg3 ;
22223 bool result;
22224 PyObject * obj0 = 0 ;
22225 PyObject * obj1 = 0 ;
22226 PyObject * obj2 = 0 ;
22227 char *kwnames[] = {
22228 (char *) "self",(char *) "item",(char *) "data", NULL
22229 };
22230
22231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22234 arg2 = (long)SWIG_As_long(obj1);
22235 if (PyErr_Occurred()) SWIG_fail;
22236 arg3 = (long)SWIG_As_long(obj2);
22237 if (PyErr_Occurred()) SWIG_fail;
22238 {
22239 PyThreadState* __tstate = wxPyBeginAllowThreads();
22240 result = (bool)(arg1)->SetItemData(arg2,arg3);
22241
22242 wxPyEndAllowThreads(__tstate);
22243 if (PyErr_Occurred()) SWIG_fail;
22244 }
22245 {
22246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22247 }
22248 return resultobj;
22249 fail:
22250 return NULL;
22251 }
22252
22253
22254 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22255 PyObject *resultobj;
22256 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22257 long arg2 ;
22258 wxPoint result;
22259 PyObject * obj0 = 0 ;
22260 PyObject * obj1 = 0 ;
22261 char *kwnames[] = {
22262 (char *) "self",(char *) "item", NULL
22263 };
22264
22265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
22266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22268 arg2 = (long)SWIG_As_long(obj1);
22269 if (PyErr_Occurred()) SWIG_fail;
22270 {
22271 PyThreadState* __tstate = wxPyBeginAllowThreads();
22272 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
22273
22274 wxPyEndAllowThreads(__tstate);
22275 if (PyErr_Occurred()) SWIG_fail;
22276 }
22277 {
22278 wxPoint * resultptr;
22279 resultptr = new wxPoint((wxPoint &) result);
22280 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22281 }
22282 return resultobj;
22283 fail:
22284 return NULL;
22285 }
22286
22287
22288 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) {
22289 PyObject *resultobj;
22290 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22291 long arg2 ;
22292 int arg3 = (int) wxLIST_RECT_BOUNDS ;
22293 wxRect result;
22294 PyObject * obj0 = 0 ;
22295 PyObject * obj1 = 0 ;
22296 PyObject * obj2 = 0 ;
22297 char *kwnames[] = {
22298 (char *) "self",(char *) "item",(char *) "code", NULL
22299 };
22300
22301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22304 arg2 = (long)SWIG_As_long(obj1);
22305 if (PyErr_Occurred()) SWIG_fail;
22306 if (obj2) {
22307 arg3 = (int)SWIG_As_int(obj2);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 }
22310 {
22311 PyThreadState* __tstate = wxPyBeginAllowThreads();
22312 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22313
22314 wxPyEndAllowThreads(__tstate);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
22317 {
22318 wxRect * resultptr;
22319 resultptr = new wxRect((wxRect &) result);
22320 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22321 }
22322 return resultobj;
22323 fail:
22324 return NULL;
22325 }
22326
22327
22328 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22329 PyObject *resultobj;
22330 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22331 long arg2 ;
22332 wxPoint *arg3 = 0 ;
22333 bool result;
22334 wxPoint temp3 ;
22335 PyObject * obj0 = 0 ;
22336 PyObject * obj1 = 0 ;
22337 PyObject * obj2 = 0 ;
22338 char *kwnames[] = {
22339 (char *) "self",(char *) "item",(char *) "pos", NULL
22340 };
22341
22342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22345 arg2 = (long)SWIG_As_long(obj1);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 {
22348 arg3 = &temp3;
22349 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22350 }
22351 {
22352 PyThreadState* __tstate = wxPyBeginAllowThreads();
22353 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22354
22355 wxPyEndAllowThreads(__tstate);
22356 if (PyErr_Occurred()) SWIG_fail;
22357 }
22358 {
22359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22360 }
22361 return resultobj;
22362 fail:
22363 return NULL;
22364 }
22365
22366
22367 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22368 PyObject *resultobj;
22369 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22370 int result;
22371 PyObject * obj0 = 0 ;
22372 char *kwnames[] = {
22373 (char *) "self", NULL
22374 };
22375
22376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22379 {
22380 PyThreadState* __tstate = wxPyBeginAllowThreads();
22381 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22382
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 resultobj = SWIG_From_int((int)result);
22387 return resultobj;
22388 fail:
22389 return NULL;
22390 }
22391
22392
22393 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
22394 PyObject *resultobj;
22395 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22396 int result;
22397 PyObject * obj0 = 0 ;
22398 char *kwnames[] = {
22399 (char *) "self", NULL
22400 };
22401
22402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22405 {
22406 PyThreadState* __tstate = wxPyBeginAllowThreads();
22407 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22408
22409 wxPyEndAllowThreads(__tstate);
22410 if (PyErr_Occurred()) SWIG_fail;
22411 }
22412 resultobj = SWIG_From_int((int)result);
22413 return resultobj;
22414 fail:
22415 return NULL;
22416 }
22417
22418
22419 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22420 PyObject *resultobj;
22421 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22422 wxSize result;
22423 PyObject * obj0 = 0 ;
22424 char *kwnames[] = {
22425 (char *) "self", NULL
22426 };
22427
22428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22431 {
22432 PyThreadState* __tstate = wxPyBeginAllowThreads();
22433 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22434
22435 wxPyEndAllowThreads(__tstate);
22436 if (PyErr_Occurred()) SWIG_fail;
22437 }
22438 {
22439 wxSize * resultptr;
22440 resultptr = new wxSize((wxSize &) result);
22441 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22442 }
22443 return resultobj;
22444 fail:
22445 return NULL;
22446 }
22447
22448
22449 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22450 PyObject *resultobj;
22451 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22452 int result;
22453 PyObject * obj0 = 0 ;
22454 char *kwnames[] = {
22455 (char *) "self", NULL
22456 };
22457
22458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22461 {
22462 PyThreadState* __tstate = wxPyBeginAllowThreads();
22463 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22464
22465 wxPyEndAllowThreads(__tstate);
22466 if (PyErr_Occurred()) SWIG_fail;
22467 }
22468 resultobj = SWIG_From_int((int)result);
22469 return resultobj;
22470 fail:
22471 return NULL;
22472 }
22473
22474
22475 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22476 PyObject *resultobj;
22477 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22478 wxColour result;
22479 PyObject * obj0 = 0 ;
22480 char *kwnames[] = {
22481 (char *) "self", NULL
22482 };
22483
22484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22487 {
22488 PyThreadState* __tstate = wxPyBeginAllowThreads();
22489 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22490
22491 wxPyEndAllowThreads(__tstate);
22492 if (PyErr_Occurred()) SWIG_fail;
22493 }
22494 {
22495 wxColour * resultptr;
22496 resultptr = new wxColour((wxColour &) result);
22497 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22498 }
22499 return resultobj;
22500 fail:
22501 return NULL;
22502 }
22503
22504
22505 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22506 PyObject *resultobj;
22507 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22508 wxColour *arg2 = 0 ;
22509 wxColour temp2 ;
22510 PyObject * obj0 = 0 ;
22511 PyObject * obj1 = 0 ;
22512 char *kwnames[] = {
22513 (char *) "self",(char *) "col", NULL
22514 };
22515
22516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22519 {
22520 arg2 = &temp2;
22521 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22522 }
22523 {
22524 PyThreadState* __tstate = wxPyBeginAllowThreads();
22525 (arg1)->SetTextColour((wxColour const &)*arg2);
22526
22527 wxPyEndAllowThreads(__tstate);
22528 if (PyErr_Occurred()) SWIG_fail;
22529 }
22530 Py_INCREF(Py_None); resultobj = Py_None;
22531 return resultobj;
22532 fail:
22533 return NULL;
22534 }
22535
22536
22537 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) {
22538 PyObject *resultobj;
22539 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22540 long result;
22541 PyObject * obj0 = 0 ;
22542 char *kwnames[] = {
22543 (char *) "self", NULL
22544 };
22545
22546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22549 {
22550 PyThreadState* __tstate = wxPyBeginAllowThreads();
22551 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22552
22553 wxPyEndAllowThreads(__tstate);
22554 if (PyErr_Occurred()) SWIG_fail;
22555 }
22556 resultobj = SWIG_From_long((long)result);
22557 return resultobj;
22558 fail:
22559 return NULL;
22560 }
22561
22562
22563 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) {
22564 PyObject *resultobj;
22565 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22566 long arg2 ;
22567 bool arg3 = (bool) True ;
22568 PyObject * obj0 = 0 ;
22569 PyObject * obj1 = 0 ;
22570 PyObject * obj2 = 0 ;
22571 char *kwnames[] = {
22572 (char *) "self",(char *) "style",(char *) "add", NULL
22573 };
22574
22575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22578 arg2 = (long)SWIG_As_long(obj1);
22579 if (PyErr_Occurred()) SWIG_fail;
22580 if (obj2) {
22581 arg3 = (bool)SWIG_As_bool(obj2);
22582 if (PyErr_Occurred()) SWIG_fail;
22583 }
22584 {
22585 PyThreadState* __tstate = wxPyBeginAllowThreads();
22586 (arg1)->SetSingleStyle(arg2,arg3);
22587
22588 wxPyEndAllowThreads(__tstate);
22589 if (PyErr_Occurred()) SWIG_fail;
22590 }
22591 Py_INCREF(Py_None); resultobj = Py_None;
22592 return resultobj;
22593 fail:
22594 return NULL;
22595 }
22596
22597
22598 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
22599 PyObject *resultobj;
22600 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22601 long arg2 ;
22602 PyObject * obj0 = 0 ;
22603 PyObject * obj1 = 0 ;
22604 char *kwnames[] = {
22605 (char *) "self",(char *) "style", NULL
22606 };
22607
22608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22611 arg2 = (long)SWIG_As_long(obj1);
22612 if (PyErr_Occurred()) SWIG_fail;
22613 {
22614 PyThreadState* __tstate = wxPyBeginAllowThreads();
22615 (arg1)->SetWindowStyleFlag(arg2);
22616
22617 wxPyEndAllowThreads(__tstate);
22618 if (PyErr_Occurred()) SWIG_fail;
22619 }
22620 Py_INCREF(Py_None); resultobj = Py_None;
22621 return resultobj;
22622 fail:
22623 return NULL;
22624 }
22625
22626
22627 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
22628 PyObject *resultobj;
22629 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22630 long arg2 ;
22631 int arg3 = (int) wxLIST_NEXT_ALL ;
22632 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22633 long result;
22634 PyObject * obj0 = 0 ;
22635 PyObject * obj1 = 0 ;
22636 PyObject * obj2 = 0 ;
22637 PyObject * obj3 = 0 ;
22638 char *kwnames[] = {
22639 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22640 };
22641
22642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22645 arg2 = (long)SWIG_As_long(obj1);
22646 if (PyErr_Occurred()) SWIG_fail;
22647 if (obj2) {
22648 arg3 = (int)SWIG_As_int(obj2);
22649 if (PyErr_Occurred()) SWIG_fail;
22650 }
22651 if (obj3) {
22652 arg4 = (int)SWIG_As_int(obj3);
22653 if (PyErr_Occurred()) SWIG_fail;
22654 }
22655 {
22656 PyThreadState* __tstate = wxPyBeginAllowThreads();
22657 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22658
22659 wxPyEndAllowThreads(__tstate);
22660 if (PyErr_Occurred()) SWIG_fail;
22661 }
22662 resultobj = SWIG_From_long((long)result);
22663 return resultobj;
22664 fail:
22665 return NULL;
22666 }
22667
22668
22669 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22670 PyObject *resultobj;
22671 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22672 int arg2 ;
22673 wxImageList *result;
22674 PyObject * obj0 = 0 ;
22675 PyObject * obj1 = 0 ;
22676 char *kwnames[] = {
22677 (char *) "self",(char *) "which", NULL
22678 };
22679
22680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22683 arg2 = (int)SWIG_As_int(obj1);
22684 if (PyErr_Occurred()) SWIG_fail;
22685 {
22686 PyThreadState* __tstate = wxPyBeginAllowThreads();
22687 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22688
22689 wxPyEndAllowThreads(__tstate);
22690 if (PyErr_Occurred()) SWIG_fail;
22691 }
22692 {
22693 resultobj = wxPyMake_wxObject(result, 0);
22694 }
22695 return resultobj;
22696 fail:
22697 return NULL;
22698 }
22699
22700
22701 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22702 PyObject *resultobj;
22703 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22704 wxImageList *arg2 = (wxImageList *) 0 ;
22705 int arg3 ;
22706 PyObject * obj0 = 0 ;
22707 PyObject * obj1 = 0 ;
22708 PyObject * obj2 = 0 ;
22709 char *kwnames[] = {
22710 (char *) "self",(char *) "imageList",(char *) "which", NULL
22711 };
22712
22713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22716 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22718 arg3 = (int)SWIG_As_int(obj2);
22719 if (PyErr_Occurred()) SWIG_fail;
22720 {
22721 PyThreadState* __tstate = wxPyBeginAllowThreads();
22722 (arg1)->SetImageList(arg2,arg3);
22723
22724 wxPyEndAllowThreads(__tstate);
22725 if (PyErr_Occurred()) SWIG_fail;
22726 }
22727 Py_INCREF(Py_None); resultobj = Py_None;
22728 return resultobj;
22729 fail:
22730 return NULL;
22731 }
22732
22733
22734 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22735 PyObject *resultobj;
22736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22737 wxImageList *arg2 = (wxImageList *) 0 ;
22738 int arg3 ;
22739 PyObject * obj0 = 0 ;
22740 PyObject * obj1 = 0 ;
22741 PyObject * obj2 = 0 ;
22742 char *kwnames[] = {
22743 (char *) "self",(char *) "imageList",(char *) "which", NULL
22744 };
22745
22746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22749 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22750 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22751 arg3 = (int)SWIG_As_int(obj2);
22752 if (PyErr_Occurred()) SWIG_fail;
22753 {
22754 PyThreadState* __tstate = wxPyBeginAllowThreads();
22755 (arg1)->AssignImageList(arg2,arg3);
22756
22757 wxPyEndAllowThreads(__tstate);
22758 if (PyErr_Occurred()) SWIG_fail;
22759 }
22760 Py_INCREF(Py_None); resultobj = Py_None;
22761 return resultobj;
22762 fail:
22763 return NULL;
22764 }
22765
22766
22767 static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) {
22768 PyObject *resultobj;
22769 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22770 bool result;
22771 PyObject * obj0 = 0 ;
22772 char *kwnames[] = {
22773 (char *) "self", NULL
22774 };
22775
22776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22779 {
22780 PyThreadState* __tstate = wxPyBeginAllowThreads();
22781 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22782
22783 wxPyEndAllowThreads(__tstate);
22784 if (PyErr_Occurred()) SWIG_fail;
22785 }
22786 {
22787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22788 }
22789 return resultobj;
22790 fail:
22791 return NULL;
22792 }
22793
22794
22795 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) {
22796 PyObject *resultobj;
22797 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22798 bool result;
22799 PyObject * obj0 = 0 ;
22800 char *kwnames[] = {
22801 (char *) "self", NULL
22802 };
22803
22804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22807 {
22808 PyThreadState* __tstate = wxPyBeginAllowThreads();
22809 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22810
22811 wxPyEndAllowThreads(__tstate);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 {
22815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22816 }
22817 return resultobj;
22818 fail:
22819 return NULL;
22820 }
22821
22822
22823 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) {
22824 PyObject *resultobj;
22825 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22826 long arg2 ;
22827 PyObject * obj0 = 0 ;
22828 PyObject * obj1 = 0 ;
22829 char *kwnames[] = {
22830 (char *) "self",(char *) "item", NULL
22831 };
22832
22833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22836 arg2 = (long)SWIG_As_long(obj1);
22837 if (PyErr_Occurred()) SWIG_fail;
22838 {
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 (arg1)->RefreshItem(arg2);
22841
22842 wxPyEndAllowThreads(__tstate);
22843 if (PyErr_Occurred()) SWIG_fail;
22844 }
22845 Py_INCREF(Py_None); resultobj = Py_None;
22846 return resultobj;
22847 fail:
22848 return NULL;
22849 }
22850
22851
22852 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) {
22853 PyObject *resultobj;
22854 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22855 long arg2 ;
22856 long arg3 ;
22857 PyObject * obj0 = 0 ;
22858 PyObject * obj1 = 0 ;
22859 PyObject * obj2 = 0 ;
22860 char *kwnames[] = {
22861 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22862 };
22863
22864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22867 arg2 = (long)SWIG_As_long(obj1);
22868 if (PyErr_Occurred()) SWIG_fail;
22869 arg3 = (long)SWIG_As_long(obj2);
22870 if (PyErr_Occurred()) SWIG_fail;
22871 {
22872 PyThreadState* __tstate = wxPyBeginAllowThreads();
22873 (arg1)->RefreshItems(arg2,arg3);
22874
22875 wxPyEndAllowThreads(__tstate);
22876 if (PyErr_Occurred()) SWIG_fail;
22877 }
22878 Py_INCREF(Py_None); resultobj = Py_None;
22879 return resultobj;
22880 fail:
22881 return NULL;
22882 }
22883
22884
22885 static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) {
22886 PyObject *resultobj;
22887 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22888 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22889 bool result;
22890 PyObject * obj0 = 0 ;
22891 PyObject * obj1 = 0 ;
22892 char *kwnames[] = {
22893 (char *) "self",(char *) "flag", NULL
22894 };
22895
22896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22899 if (obj1) {
22900 arg2 = (int)SWIG_As_int(obj1);
22901 if (PyErr_Occurred()) SWIG_fail;
22902 }
22903 {
22904 PyThreadState* __tstate = wxPyBeginAllowThreads();
22905 result = (bool)(arg1)->Arrange(arg2);
22906
22907 wxPyEndAllowThreads(__tstate);
22908 if (PyErr_Occurred()) SWIG_fail;
22909 }
22910 {
22911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22912 }
22913 return resultobj;
22914 fail:
22915 return NULL;
22916 }
22917
22918
22919 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
22920 PyObject *resultobj;
22921 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22922 long arg2 ;
22923 bool result;
22924 PyObject * obj0 = 0 ;
22925 PyObject * obj1 = 0 ;
22926 char *kwnames[] = {
22927 (char *) "self",(char *) "item", NULL
22928 };
22929
22930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22933 arg2 = (long)SWIG_As_long(obj1);
22934 if (PyErr_Occurred()) SWIG_fail;
22935 {
22936 PyThreadState* __tstate = wxPyBeginAllowThreads();
22937 result = (bool)(arg1)->DeleteItem(arg2);
22938
22939 wxPyEndAllowThreads(__tstate);
22940 if (PyErr_Occurred()) SWIG_fail;
22941 }
22942 {
22943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22944 }
22945 return resultobj;
22946 fail:
22947 return NULL;
22948 }
22949
22950
22951 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
22952 PyObject *resultobj;
22953 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22954 bool result;
22955 PyObject * obj0 = 0 ;
22956 char *kwnames[] = {
22957 (char *) "self", NULL
22958 };
22959
22960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22963 {
22964 PyThreadState* __tstate = wxPyBeginAllowThreads();
22965 result = (bool)(arg1)->DeleteAllItems();
22966
22967 wxPyEndAllowThreads(__tstate);
22968 if (PyErr_Occurred()) SWIG_fail;
22969 }
22970 {
22971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22972 }
22973 return resultobj;
22974 fail:
22975 return NULL;
22976 }
22977
22978
22979 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22980 PyObject *resultobj;
22981 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22982 int arg2 ;
22983 bool result;
22984 PyObject * obj0 = 0 ;
22985 PyObject * obj1 = 0 ;
22986 char *kwnames[] = {
22987 (char *) "self",(char *) "col", NULL
22988 };
22989
22990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22993 arg2 = (int)SWIG_As_int(obj1);
22994 if (PyErr_Occurred()) SWIG_fail;
22995 {
22996 PyThreadState* __tstate = wxPyBeginAllowThreads();
22997 result = (bool)(arg1)->DeleteColumn(arg2);
22998
22999 wxPyEndAllowThreads(__tstate);
23000 if (PyErr_Occurred()) SWIG_fail;
23001 }
23002 {
23003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23004 }
23005 return resultobj;
23006 fail:
23007 return NULL;
23008 }
23009
23010
23011 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) {
23012 PyObject *resultobj;
23013 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23014 bool result;
23015 PyObject * obj0 = 0 ;
23016 char *kwnames[] = {
23017 (char *) "self", NULL
23018 };
23019
23020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",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 result = (bool)(arg1)->DeleteAllColumns();
23026
23027 wxPyEndAllowThreads(__tstate);
23028 if (PyErr_Occurred()) SWIG_fail;
23029 }
23030 {
23031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23032 }
23033 return resultobj;
23034 fail:
23035 return NULL;
23036 }
23037
23038
23039 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) {
23040 PyObject *resultobj;
23041 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23042 PyObject * obj0 = 0 ;
23043 char *kwnames[] = {
23044 (char *) "self", NULL
23045 };
23046
23047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
23048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23050 {
23051 PyThreadState* __tstate = wxPyBeginAllowThreads();
23052 (arg1)->ClearAll();
23053
23054 wxPyEndAllowThreads(__tstate);
23055 if (PyErr_Occurred()) SWIG_fail;
23056 }
23057 Py_INCREF(Py_None); resultobj = Py_None;
23058 return resultobj;
23059 fail:
23060 return NULL;
23061 }
23062
23063
23064 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23065 PyObject *resultobj;
23066 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23067 long arg2 ;
23068 wxTextCtrl *result;
23069 PyObject * obj0 = 0 ;
23070 PyObject * obj1 = 0 ;
23071 char *kwnames[] = {
23072 (char *) "self",(char *) "item", NULL
23073 };
23074
23075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
23076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23078 arg2 = (long)SWIG_As_long(obj1);
23079 if (PyErr_Occurred()) SWIG_fail;
23080 {
23081 PyThreadState* __tstate = wxPyBeginAllowThreads();
23082 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
23083
23084 wxPyEndAllowThreads(__tstate);
23085 if (PyErr_Occurred()) SWIG_fail;
23086 }
23087 {
23088 resultobj = wxPyMake_wxObject(result, 0);
23089 }
23090 return resultobj;
23091 fail:
23092 return NULL;
23093 }
23094
23095
23096 static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23097 PyObject *resultobj;
23098 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23099 bool arg2 ;
23100 bool result;
23101 PyObject * obj0 = 0 ;
23102 PyObject * obj1 = 0 ;
23103 char *kwnames[] = {
23104 (char *) "self",(char *) "cancel", NULL
23105 };
23106
23107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail;
23108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23110 arg2 = (bool)SWIG_As_bool(obj1);
23111 if (PyErr_Occurred()) SWIG_fail;
23112 {
23113 PyThreadState* __tstate = wxPyBeginAllowThreads();
23114 result = (bool)(arg1)->EndEditLabel(arg2);
23115
23116 wxPyEndAllowThreads(__tstate);
23117 if (PyErr_Occurred()) SWIG_fail;
23118 }
23119 {
23120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23121 }
23122 return resultobj;
23123 fail:
23124 return NULL;
23125 }
23126
23127
23128 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
23129 PyObject *resultobj;
23130 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23131 long arg2 ;
23132 bool result;
23133 PyObject * obj0 = 0 ;
23134 PyObject * obj1 = 0 ;
23135 char *kwnames[] = {
23136 (char *) "self",(char *) "item", NULL
23137 };
23138
23139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
23140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23142 arg2 = (long)SWIG_As_long(obj1);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 {
23145 PyThreadState* __tstate = wxPyBeginAllowThreads();
23146 result = (bool)(arg1)->EnsureVisible(arg2);
23147
23148 wxPyEndAllowThreads(__tstate);
23149 if (PyErr_Occurred()) SWIG_fail;
23150 }
23151 {
23152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23153 }
23154 return resultobj;
23155 fail:
23156 return NULL;
23157 }
23158
23159
23160 static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
23161 PyObject *resultobj;
23162 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23163 long arg2 ;
23164 wxString *arg3 = 0 ;
23165 bool arg4 = (bool) False ;
23166 long result;
23167 bool temp3 = False ;
23168 PyObject * obj0 = 0 ;
23169 PyObject * obj1 = 0 ;
23170 PyObject * obj2 = 0 ;
23171 PyObject * obj3 = 0 ;
23172 char *kwnames[] = {
23173 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
23174 };
23175
23176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23179 arg2 = (long)SWIG_As_long(obj1);
23180 if (PyErr_Occurred()) SWIG_fail;
23181 {
23182 arg3 = wxString_in_helper(obj2);
23183 if (arg3 == NULL) SWIG_fail;
23184 temp3 = True;
23185 }
23186 if (obj3) {
23187 arg4 = (bool)SWIG_As_bool(obj3);
23188 if (PyErr_Occurred()) SWIG_fail;
23189 }
23190 {
23191 PyThreadState* __tstate = wxPyBeginAllowThreads();
23192 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
23193
23194 wxPyEndAllowThreads(__tstate);
23195 if (PyErr_Occurred()) SWIG_fail;
23196 }
23197 resultobj = SWIG_From_long((long)result);
23198 {
23199 if (temp3)
23200 delete arg3;
23201 }
23202 return resultobj;
23203 fail:
23204 {
23205 if (temp3)
23206 delete arg3;
23207 }
23208 return NULL;
23209 }
23210
23211
23212 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) {
23213 PyObject *resultobj;
23214 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23215 long arg2 ;
23216 long arg3 ;
23217 long result;
23218 PyObject * obj0 = 0 ;
23219 PyObject * obj1 = 0 ;
23220 PyObject * obj2 = 0 ;
23221 char *kwnames[] = {
23222 (char *) "self",(char *) "start",(char *) "data", NULL
23223 };
23224
23225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
23226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23228 arg2 = (long)SWIG_As_long(obj1);
23229 if (PyErr_Occurred()) SWIG_fail;
23230 arg3 = (long)SWIG_As_long(obj2);
23231 if (PyErr_Occurred()) SWIG_fail;
23232 {
23233 PyThreadState* __tstate = wxPyBeginAllowThreads();
23234 result = (long)(arg1)->FindItem(arg2,arg3);
23235
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 resultobj = SWIG_From_long((long)result);
23240 return resultobj;
23241 fail:
23242 return NULL;
23243 }
23244
23245
23246 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) {
23247 PyObject *resultobj;
23248 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23249 long arg2 ;
23250 wxPoint *arg3 = 0 ;
23251 int arg4 ;
23252 long result;
23253 wxPoint temp3 ;
23254 PyObject * obj0 = 0 ;
23255 PyObject * obj1 = 0 ;
23256 PyObject * obj2 = 0 ;
23257 PyObject * obj3 = 0 ;
23258 char *kwnames[] = {
23259 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
23260 };
23261
23262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23265 arg2 = (long)SWIG_As_long(obj1);
23266 if (PyErr_Occurred()) SWIG_fail;
23267 {
23268 arg3 = &temp3;
23269 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23270 }
23271 arg4 = (int)SWIG_As_int(obj3);
23272 if (PyErr_Occurred()) SWIG_fail;
23273 {
23274 PyThreadState* __tstate = wxPyBeginAllowThreads();
23275 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
23276
23277 wxPyEndAllowThreads(__tstate);
23278 if (PyErr_Occurred()) SWIG_fail;
23279 }
23280 resultobj = SWIG_From_long((long)result);
23281 return resultobj;
23282 fail:
23283 return NULL;
23284 }
23285
23286
23287 static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
23288 PyObject *resultobj;
23289 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23290 wxPoint *arg2 = 0 ;
23291 int *arg3 = 0 ;
23292 long result;
23293 wxPoint temp2 ;
23294 int temp3 ;
23295 int res3 = 0 ;
23296 PyObject * obj0 = 0 ;
23297 PyObject * obj1 = 0 ;
23298 char *kwnames[] = {
23299 (char *) "self",(char *) "point", NULL
23300 };
23301
23302 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
23304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23306 {
23307 arg2 = &temp2;
23308 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23309 }
23310 {
23311 PyThreadState* __tstate = wxPyBeginAllowThreads();
23312 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23313
23314 wxPyEndAllowThreads(__tstate);
23315 if (PyErr_Occurred()) SWIG_fail;
23316 }
23317 resultobj = SWIG_From_long((long)result);
23318 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23319 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23320 return resultobj;
23321 fail:
23322 return NULL;
23323 }
23324
23325
23326 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
23327 PyObject *resultobj;
23328 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23329 wxListItem *arg2 = 0 ;
23330 long result;
23331 PyObject * obj0 = 0 ;
23332 PyObject * obj1 = 0 ;
23333 char *kwnames[] = {
23334 (char *) "self",(char *) "info", NULL
23335 };
23336
23337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23340 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23341 SWIG_POINTER_EXCEPTION | 0)) == -1)
23342 SWIG_fail;
23343 if (arg2 == NULL) {
23344 PyErr_SetString(PyExc_TypeError,"null reference");
23345 SWIG_fail;
23346 }
23347 {
23348 PyThreadState* __tstate = wxPyBeginAllowThreads();
23349 result = (long)(arg1)->InsertItem(*arg2);
23350
23351 wxPyEndAllowThreads(__tstate);
23352 if (PyErr_Occurred()) SWIG_fail;
23353 }
23354 resultobj = SWIG_From_long((long)result);
23355 return resultobj;
23356 fail:
23357 return NULL;
23358 }
23359
23360
23361 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23362 PyObject *resultobj;
23363 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23364 long arg2 ;
23365 wxString *arg3 = 0 ;
23366 long result;
23367 bool temp3 = False ;
23368 PyObject * obj0 = 0 ;
23369 PyObject * obj1 = 0 ;
23370 PyObject * obj2 = 0 ;
23371 char *kwnames[] = {
23372 (char *) "self",(char *) "index",(char *) "label", NULL
23373 };
23374
23375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23378 arg2 = (long)SWIG_As_long(obj1);
23379 if (PyErr_Occurred()) SWIG_fail;
23380 {
23381 arg3 = wxString_in_helper(obj2);
23382 if (arg3 == NULL) SWIG_fail;
23383 temp3 = True;
23384 }
23385 {
23386 PyThreadState* __tstate = wxPyBeginAllowThreads();
23387 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23388
23389 wxPyEndAllowThreads(__tstate);
23390 if (PyErr_Occurred()) SWIG_fail;
23391 }
23392 resultobj = SWIG_From_long((long)result);
23393 {
23394 if (temp3)
23395 delete arg3;
23396 }
23397 return resultobj;
23398 fail:
23399 {
23400 if (temp3)
23401 delete arg3;
23402 }
23403 return NULL;
23404 }
23405
23406
23407 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) {
23408 PyObject *resultobj;
23409 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23410 long arg2 ;
23411 int arg3 ;
23412 long result;
23413 PyObject * obj0 = 0 ;
23414 PyObject * obj1 = 0 ;
23415 PyObject * obj2 = 0 ;
23416 char *kwnames[] = {
23417 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23418 };
23419
23420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23423 arg2 = (long)SWIG_As_long(obj1);
23424 if (PyErr_Occurred()) SWIG_fail;
23425 arg3 = (int)SWIG_As_int(obj2);
23426 if (PyErr_Occurred()) SWIG_fail;
23427 {
23428 PyThreadState* __tstate = wxPyBeginAllowThreads();
23429 result = (long)(arg1)->InsertItem(arg2,arg3);
23430
23431 wxPyEndAllowThreads(__tstate);
23432 if (PyErr_Occurred()) SWIG_fail;
23433 }
23434 resultobj = SWIG_From_long((long)result);
23435 return resultobj;
23436 fail:
23437 return NULL;
23438 }
23439
23440
23441 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23442 PyObject *resultobj;
23443 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23444 long arg2 ;
23445 wxString *arg3 = 0 ;
23446 int arg4 ;
23447 long result;
23448 bool temp3 = False ;
23449 PyObject * obj0 = 0 ;
23450 PyObject * obj1 = 0 ;
23451 PyObject * obj2 = 0 ;
23452 PyObject * obj3 = 0 ;
23453 char *kwnames[] = {
23454 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23455 };
23456
23457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23460 arg2 = (long)SWIG_As_long(obj1);
23461 if (PyErr_Occurred()) SWIG_fail;
23462 {
23463 arg3 = wxString_in_helper(obj2);
23464 if (arg3 == NULL) SWIG_fail;
23465 temp3 = True;
23466 }
23467 arg4 = (int)SWIG_As_int(obj3);
23468 if (PyErr_Occurred()) SWIG_fail;
23469 {
23470 PyThreadState* __tstate = wxPyBeginAllowThreads();
23471 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23472
23473 wxPyEndAllowThreads(__tstate);
23474 if (PyErr_Occurred()) SWIG_fail;
23475 }
23476 resultobj = SWIG_From_long((long)result);
23477 {
23478 if (temp3)
23479 delete arg3;
23480 }
23481 return resultobj;
23482 fail:
23483 {
23484 if (temp3)
23485 delete arg3;
23486 }
23487 return NULL;
23488 }
23489
23490
23491 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) {
23492 PyObject *resultobj;
23493 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23494 long arg2 ;
23495 wxListItem *arg3 = 0 ;
23496 long result;
23497 PyObject * obj0 = 0 ;
23498 PyObject * obj1 = 0 ;
23499 PyObject * obj2 = 0 ;
23500 char *kwnames[] = {
23501 (char *) "self",(char *) "col",(char *) "info", NULL
23502 };
23503
23504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23507 arg2 = (long)SWIG_As_long(obj1);
23508 if (PyErr_Occurred()) SWIG_fail;
23509 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23510 SWIG_POINTER_EXCEPTION | 0)) == -1)
23511 SWIG_fail;
23512 if (arg3 == NULL) {
23513 PyErr_SetString(PyExc_TypeError,"null reference");
23514 SWIG_fail;
23515 }
23516 {
23517 PyThreadState* __tstate = wxPyBeginAllowThreads();
23518 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23519
23520 wxPyEndAllowThreads(__tstate);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 resultobj = SWIG_From_long((long)result);
23524 return resultobj;
23525 fail:
23526 return NULL;
23527 }
23528
23529
23530 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23531 PyObject *resultobj;
23532 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23533 long arg2 ;
23534 wxString *arg3 = 0 ;
23535 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23536 int arg5 = (int) -1 ;
23537 long result;
23538 bool temp3 = False ;
23539 PyObject * obj0 = 0 ;
23540 PyObject * obj1 = 0 ;
23541 PyObject * obj2 = 0 ;
23542 PyObject * obj3 = 0 ;
23543 PyObject * obj4 = 0 ;
23544 char *kwnames[] = {
23545 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23546 };
23547
23548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23551 arg2 = (long)SWIG_As_long(obj1);
23552 if (PyErr_Occurred()) SWIG_fail;
23553 {
23554 arg3 = wxString_in_helper(obj2);
23555 if (arg3 == NULL) SWIG_fail;
23556 temp3 = True;
23557 }
23558 if (obj3) {
23559 arg4 = (int)SWIG_As_int(obj3);
23560 if (PyErr_Occurred()) SWIG_fail;
23561 }
23562 if (obj4) {
23563 arg5 = (int)SWIG_As_int(obj4);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 }
23566 {
23567 PyThreadState* __tstate = wxPyBeginAllowThreads();
23568 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23569
23570 wxPyEndAllowThreads(__tstate);
23571 if (PyErr_Occurred()) SWIG_fail;
23572 }
23573 resultobj = SWIG_From_long((long)result);
23574 {
23575 if (temp3)
23576 delete arg3;
23577 }
23578 return resultobj;
23579 fail:
23580 {
23581 if (temp3)
23582 delete arg3;
23583 }
23584 return NULL;
23585 }
23586
23587
23588 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
23589 PyObject *resultobj;
23590 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23591 long arg2 ;
23592 PyObject * obj0 = 0 ;
23593 PyObject * obj1 = 0 ;
23594 char *kwnames[] = {
23595 (char *) "self",(char *) "count", NULL
23596 };
23597
23598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23601 arg2 = (long)SWIG_As_long(obj1);
23602 if (PyErr_Occurred()) SWIG_fail;
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 (arg1)->SetItemCount(arg2);
23606
23607 wxPyEndAllowThreads(__tstate);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 Py_INCREF(Py_None); resultobj = Py_None;
23611 return resultobj;
23612 fail:
23613 return NULL;
23614 }
23615
23616
23617 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) {
23618 PyObject *resultobj;
23619 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23620 int arg2 ;
23621 int arg3 ;
23622 bool result;
23623 PyObject * obj0 = 0 ;
23624 PyObject * obj1 = 0 ;
23625 PyObject * obj2 = 0 ;
23626 char *kwnames[] = {
23627 (char *) "self",(char *) "dx",(char *) "dy", NULL
23628 };
23629
23630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23633 arg2 = (int)SWIG_As_int(obj1);
23634 if (PyErr_Occurred()) SWIG_fail;
23635 arg3 = (int)SWIG_As_int(obj2);
23636 if (PyErr_Occurred()) SWIG_fail;
23637 {
23638 PyThreadState* __tstate = wxPyBeginAllowThreads();
23639 result = (bool)(arg1)->ScrollList(arg2,arg3);
23640
23641 wxPyEndAllowThreads(__tstate);
23642 if (PyErr_Occurred()) SWIG_fail;
23643 }
23644 {
23645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23646 }
23647 return resultobj;
23648 fail:
23649 return NULL;
23650 }
23651
23652
23653 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23654 PyObject *resultobj;
23655 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23656 long arg2 ;
23657 wxColour *arg3 = 0 ;
23658 wxColour temp3 ;
23659 PyObject * obj0 = 0 ;
23660 PyObject * obj1 = 0 ;
23661 PyObject * obj2 = 0 ;
23662 char *kwnames[] = {
23663 (char *) "self",(char *) "item",(char *) "col", NULL
23664 };
23665
23666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23669 arg2 = (long)SWIG_As_long(obj1);
23670 if (PyErr_Occurred()) SWIG_fail;
23671 {
23672 arg3 = &temp3;
23673 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23674 }
23675 {
23676 PyThreadState* __tstate = wxPyBeginAllowThreads();
23677 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23678
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 Py_INCREF(Py_None); resultobj = Py_None;
23683 return resultobj;
23684 fail:
23685 return NULL;
23686 }
23687
23688
23689 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23690 PyObject *resultobj;
23691 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23692 long arg2 ;
23693 wxColour result;
23694 PyObject * obj0 = 0 ;
23695 PyObject * obj1 = 0 ;
23696 char *kwnames[] = {
23697 (char *) "self",(char *) "item", NULL
23698 };
23699
23700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23703 arg2 = (long)SWIG_As_long(obj1);
23704 if (PyErr_Occurred()) SWIG_fail;
23705 {
23706 PyThreadState* __tstate = wxPyBeginAllowThreads();
23707 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23708
23709 wxPyEndAllowThreads(__tstate);
23710 if (PyErr_Occurred()) SWIG_fail;
23711 }
23712 {
23713 wxColour * resultptr;
23714 resultptr = new wxColour((wxColour &) result);
23715 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23716 }
23717 return resultobj;
23718 fail:
23719 return NULL;
23720 }
23721
23722
23723 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
23724 PyObject *resultobj;
23725 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23726 long arg2 ;
23727 wxColour *arg3 = 0 ;
23728 wxColour temp3 ;
23729 PyObject * obj0 = 0 ;
23730 PyObject * obj1 = 0 ;
23731 PyObject * obj2 = 0 ;
23732 char *kwnames[] = {
23733 (char *) "self",(char *) "item",(char *) "col", NULL
23734 };
23735
23736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23739 arg2 = (long)SWIG_As_long(obj1);
23740 if (PyErr_Occurred()) SWIG_fail;
23741 {
23742 arg3 = &temp3;
23743 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23744 }
23745 {
23746 PyThreadState* __tstate = wxPyBeginAllowThreads();
23747 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23748
23749 wxPyEndAllowThreads(__tstate);
23750 if (PyErr_Occurred()) SWIG_fail;
23751 }
23752 Py_INCREF(Py_None); resultobj = Py_None;
23753 return resultobj;
23754 fail:
23755 return NULL;
23756 }
23757
23758
23759 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
23760 PyObject *resultobj;
23761 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23762 long arg2 ;
23763 wxColour result;
23764 PyObject * obj0 = 0 ;
23765 PyObject * obj1 = 0 ;
23766 char *kwnames[] = {
23767 (char *) "self",(char *) "item", NULL
23768 };
23769
23770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23773 arg2 = (long)SWIG_As_long(obj1);
23774 if (PyErr_Occurred()) SWIG_fail;
23775 {
23776 PyThreadState* __tstate = wxPyBeginAllowThreads();
23777 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23778
23779 wxPyEndAllowThreads(__tstate);
23780 if (PyErr_Occurred()) SWIG_fail;
23781 }
23782 {
23783 wxColour * resultptr;
23784 resultptr = new wxColour((wxColour &) result);
23785 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23786 }
23787 return resultobj;
23788 fail:
23789 return NULL;
23790 }
23791
23792
23793 static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) {
23794 PyObject *resultobj;
23795 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23796 PyObject *arg2 = (PyObject *) 0 ;
23797 bool result;
23798 PyObject * obj0 = 0 ;
23799 PyObject * obj1 = 0 ;
23800 char *kwnames[] = {
23801 (char *) "self",(char *) "func", NULL
23802 };
23803
23804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23807 arg2 = obj1;
23808 {
23809 PyThreadState* __tstate = wxPyBeginAllowThreads();
23810 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23811
23812 wxPyEndAllowThreads(__tstate);
23813 if (PyErr_Occurred()) SWIG_fail;
23814 }
23815 {
23816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23817 }
23818 return resultobj;
23819 fail:
23820 return NULL;
23821 }
23822
23823
23824 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) {
23825 PyObject *resultobj;
23826 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23827 wxWindow *result;
23828 PyObject * obj0 = 0 ;
23829 char *kwnames[] = {
23830 (char *) "self", NULL
23831 };
23832
23833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23836 {
23837 PyThreadState* __tstate = wxPyBeginAllowThreads();
23838 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23839
23840 wxPyEndAllowThreads(__tstate);
23841 if (PyErr_Occurred()) SWIG_fail;
23842 }
23843 {
23844 resultobj = wxPyMake_wxObject(result, 0);
23845 }
23846 return resultobj;
23847 fail:
23848 return NULL;
23849 }
23850
23851
23852 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
23853 PyObject *resultobj;
23854 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23855 wxVisualAttributes result;
23856 PyObject * obj0 = 0 ;
23857 char *kwnames[] = {
23858 (char *) "variant", NULL
23859 };
23860
23861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23862 if (obj0) {
23863 arg1 = (int)SWIG_As_int(obj0);
23864 if (PyErr_Occurred()) SWIG_fail;
23865 }
23866 {
23867 if (!wxPyCheckForApp()) SWIG_fail;
23868 PyThreadState* __tstate = wxPyBeginAllowThreads();
23869 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23870
23871 wxPyEndAllowThreads(__tstate);
23872 if (PyErr_Occurred()) SWIG_fail;
23873 }
23874 {
23875 wxVisualAttributes * resultptr;
23876 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23877 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23878 }
23879 return resultobj;
23880 fail:
23881 return NULL;
23882 }
23883
23884
23885 static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) {
23886 PyObject *obj;
23887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23888 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23889 Py_INCREF(obj);
23890 return Py_BuildValue((char *)"");
23891 }
23892 static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) {
23893 PyObject *resultobj;
23894 wxWindow *arg1 = (wxWindow *) 0 ;
23895 int arg2 = (int) -1 ;
23896 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23897 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23898 wxSize const &arg4_defvalue = wxDefaultSize ;
23899 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23900 long arg5 = (long) wxLC_REPORT ;
23901 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23902 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23903 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23904 wxString *arg7 = (wxString *) &arg7_defvalue ;
23905 wxListView *result;
23906 wxPoint temp3 ;
23907 wxSize temp4 ;
23908 bool temp7 = False ;
23909 PyObject * obj0 = 0 ;
23910 PyObject * obj1 = 0 ;
23911 PyObject * obj2 = 0 ;
23912 PyObject * obj3 = 0 ;
23913 PyObject * obj4 = 0 ;
23914 PyObject * obj5 = 0 ;
23915 PyObject * obj6 = 0 ;
23916 char *kwnames[] = {
23917 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23918 };
23919
23920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23923 if (obj1) {
23924 arg2 = (int)SWIG_As_int(obj1);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 if (obj2) {
23928 {
23929 arg3 = &temp3;
23930 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23931 }
23932 }
23933 if (obj3) {
23934 {
23935 arg4 = &temp4;
23936 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23937 }
23938 }
23939 if (obj4) {
23940 arg5 = (long)SWIG_As_long(obj4);
23941 if (PyErr_Occurred()) SWIG_fail;
23942 }
23943 if (obj5) {
23944 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23945 SWIG_POINTER_EXCEPTION | 0)) == -1)
23946 SWIG_fail;
23947 if (arg6 == NULL) {
23948 PyErr_SetString(PyExc_TypeError,"null reference");
23949 SWIG_fail;
23950 }
23951 }
23952 if (obj6) {
23953 {
23954 arg7 = wxString_in_helper(obj6);
23955 if (arg7 == NULL) SWIG_fail;
23956 temp7 = True;
23957 }
23958 }
23959 {
23960 if (!wxPyCheckForApp()) SWIG_fail;
23961 PyThreadState* __tstate = wxPyBeginAllowThreads();
23962 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23963
23964 wxPyEndAllowThreads(__tstate);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 }
23967 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23968 {
23969 if (temp7)
23970 delete arg7;
23971 }
23972 return resultobj;
23973 fail:
23974 {
23975 if (temp7)
23976 delete arg7;
23977 }
23978 return NULL;
23979 }
23980
23981
23982 static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) {
23983 PyObject *resultobj;
23984 wxListView *result;
23985 char *kwnames[] = {
23986 NULL
23987 };
23988
23989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23990 {
23991 if (!wxPyCheckForApp()) SWIG_fail;
23992 PyThreadState* __tstate = wxPyBeginAllowThreads();
23993 result = (wxListView *)new wxListView();
23994
23995 wxPyEndAllowThreads(__tstate);
23996 if (PyErr_Occurred()) SWIG_fail;
23997 }
23998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23999 return resultobj;
24000 fail:
24001 return NULL;
24002 }
24003
24004
24005 static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) {
24006 PyObject *resultobj;
24007 wxListView *arg1 = (wxListView *) 0 ;
24008 wxWindow *arg2 = (wxWindow *) 0 ;
24009 int arg3 = (int) -1 ;
24010 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24011 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24012 wxSize const &arg5_defvalue = wxDefaultSize ;
24013 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24014 long arg6 = (long) wxLC_REPORT ;
24015 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24016 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24017 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
24018 wxString *arg8 = (wxString *) &arg8_defvalue ;
24019 bool result;
24020 wxPoint temp4 ;
24021 wxSize temp5 ;
24022 bool temp8 = False ;
24023 PyObject * obj0 = 0 ;
24024 PyObject * obj1 = 0 ;
24025 PyObject * obj2 = 0 ;
24026 PyObject * obj3 = 0 ;
24027 PyObject * obj4 = 0 ;
24028 PyObject * obj5 = 0 ;
24029 PyObject * obj6 = 0 ;
24030 PyObject * obj7 = 0 ;
24031 char *kwnames[] = {
24032 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24033 };
24034
24035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24038 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24040 if (obj2) {
24041 arg3 = (int)SWIG_As_int(obj2);
24042 if (PyErr_Occurred()) SWIG_fail;
24043 }
24044 if (obj3) {
24045 {
24046 arg4 = &temp4;
24047 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24048 }
24049 }
24050 if (obj4) {
24051 {
24052 arg5 = &temp5;
24053 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24054 }
24055 }
24056 if (obj5) {
24057 arg6 = (long)SWIG_As_long(obj5);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 }
24060 if (obj6) {
24061 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24062 SWIG_POINTER_EXCEPTION | 0)) == -1)
24063 SWIG_fail;
24064 if (arg7 == NULL) {
24065 PyErr_SetString(PyExc_TypeError,"null reference");
24066 SWIG_fail;
24067 }
24068 }
24069 if (obj7) {
24070 {
24071 arg8 = wxString_in_helper(obj7);
24072 if (arg8 == NULL) SWIG_fail;
24073 temp8 = True;
24074 }
24075 }
24076 {
24077 PyThreadState* __tstate = wxPyBeginAllowThreads();
24078 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24079
24080 wxPyEndAllowThreads(__tstate);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 }
24083 {
24084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24085 }
24086 {
24087 if (temp8)
24088 delete arg8;
24089 }
24090 return resultobj;
24091 fail:
24092 {
24093 if (temp8)
24094 delete arg8;
24095 }
24096 return NULL;
24097 }
24098
24099
24100 static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) {
24101 PyObject *resultobj;
24102 wxListView *arg1 = (wxListView *) 0 ;
24103 long arg2 ;
24104 bool arg3 = (bool) True ;
24105 PyObject * obj0 = 0 ;
24106 PyObject * obj1 = 0 ;
24107 PyObject * obj2 = 0 ;
24108 char *kwnames[] = {
24109 (char *) "self",(char *) "n",(char *) "on", NULL
24110 };
24111
24112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
24113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24115 arg2 = (long)SWIG_As_long(obj1);
24116 if (PyErr_Occurred()) SWIG_fail;
24117 if (obj2) {
24118 arg3 = (bool)SWIG_As_bool(obj2);
24119 if (PyErr_Occurred()) SWIG_fail;
24120 }
24121 {
24122 PyThreadState* __tstate = wxPyBeginAllowThreads();
24123 (arg1)->Select(arg2,arg3);
24124
24125 wxPyEndAllowThreads(__tstate);
24126 if (PyErr_Occurred()) SWIG_fail;
24127 }
24128 Py_INCREF(Py_None); resultobj = Py_None;
24129 return resultobj;
24130 fail:
24131 return NULL;
24132 }
24133
24134
24135 static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) {
24136 PyObject *resultobj;
24137 wxListView *arg1 = (wxListView *) 0 ;
24138 long arg2 ;
24139 PyObject * obj0 = 0 ;
24140 PyObject * obj1 = 0 ;
24141 char *kwnames[] = {
24142 (char *) "self",(char *) "index", NULL
24143 };
24144
24145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
24146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24148 arg2 = (long)SWIG_As_long(obj1);
24149 if (PyErr_Occurred()) SWIG_fail;
24150 {
24151 PyThreadState* __tstate = wxPyBeginAllowThreads();
24152 (arg1)->Focus(arg2);
24153
24154 wxPyEndAllowThreads(__tstate);
24155 if (PyErr_Occurred()) SWIG_fail;
24156 }
24157 Py_INCREF(Py_None); resultobj = Py_None;
24158 return resultobj;
24159 fail:
24160 return NULL;
24161 }
24162
24163
24164 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) {
24165 PyObject *resultobj;
24166 wxListView *arg1 = (wxListView *) 0 ;
24167 long result;
24168 PyObject * obj0 = 0 ;
24169 char *kwnames[] = {
24170 (char *) "self", NULL
24171 };
24172
24173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
24174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24176 {
24177 PyThreadState* __tstate = wxPyBeginAllowThreads();
24178 result = (long)((wxListView const *)arg1)->GetFocusedItem();
24179
24180 wxPyEndAllowThreads(__tstate);
24181 if (PyErr_Occurred()) SWIG_fail;
24182 }
24183 resultobj = SWIG_From_long((long)result);
24184 return resultobj;
24185 fail:
24186 return NULL;
24187 }
24188
24189
24190 static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24191 PyObject *resultobj;
24192 wxListView *arg1 = (wxListView *) 0 ;
24193 long arg2 ;
24194 long result;
24195 PyObject * obj0 = 0 ;
24196 PyObject * obj1 = 0 ;
24197 char *kwnames[] = {
24198 (char *) "self",(char *) "item", NULL
24199 };
24200
24201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
24202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24204 arg2 = (long)SWIG_As_long(obj1);
24205 if (PyErr_Occurred()) SWIG_fail;
24206 {
24207 PyThreadState* __tstate = wxPyBeginAllowThreads();
24208 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
24209
24210 wxPyEndAllowThreads(__tstate);
24211 if (PyErr_Occurred()) SWIG_fail;
24212 }
24213 resultobj = SWIG_From_long((long)result);
24214 return resultobj;
24215 fail:
24216 return NULL;
24217 }
24218
24219
24220 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24221 PyObject *resultobj;
24222 wxListView *arg1 = (wxListView *) 0 ;
24223 long result;
24224 PyObject * obj0 = 0 ;
24225 char *kwnames[] = {
24226 (char *) "self", NULL
24227 };
24228
24229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
24230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24232 {
24233 PyThreadState* __tstate = wxPyBeginAllowThreads();
24234 result = (long)((wxListView const *)arg1)->GetFirstSelected();
24235
24236 wxPyEndAllowThreads(__tstate);
24237 if (PyErr_Occurred()) SWIG_fail;
24238 }
24239 resultobj = SWIG_From_long((long)result);
24240 return resultobj;
24241 fail:
24242 return NULL;
24243 }
24244
24245
24246 static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24247 PyObject *resultobj;
24248 wxListView *arg1 = (wxListView *) 0 ;
24249 long arg2 ;
24250 bool result;
24251 PyObject * obj0 = 0 ;
24252 PyObject * obj1 = 0 ;
24253 char *kwnames[] = {
24254 (char *) "self",(char *) "index", NULL
24255 };
24256
24257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24260 arg2 = (long)SWIG_As_long(obj1);
24261 if (PyErr_Occurred()) SWIG_fail;
24262 {
24263 PyThreadState* __tstate = wxPyBeginAllowThreads();
24264 result = (bool)(arg1)->IsSelected(arg2);
24265
24266 wxPyEndAllowThreads(__tstate);
24267 if (PyErr_Occurred()) SWIG_fail;
24268 }
24269 {
24270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24271 }
24272 return resultobj;
24273 fail:
24274 return NULL;
24275 }
24276
24277
24278 static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24279 PyObject *resultobj;
24280 wxListView *arg1 = (wxListView *) 0 ;
24281 int arg2 ;
24282 int arg3 ;
24283 PyObject * obj0 = 0 ;
24284 PyObject * obj1 = 0 ;
24285 PyObject * obj2 = 0 ;
24286 char *kwnames[] = {
24287 (char *) "self",(char *) "col",(char *) "image", NULL
24288 };
24289
24290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24293 arg2 = (int)SWIG_As_int(obj1);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 arg3 = (int)SWIG_As_int(obj2);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 {
24298 PyThreadState* __tstate = wxPyBeginAllowThreads();
24299 (arg1)->SetColumnImage(arg2,arg3);
24300
24301 wxPyEndAllowThreads(__tstate);
24302 if (PyErr_Occurred()) SWIG_fail;
24303 }
24304 Py_INCREF(Py_None); resultobj = Py_None;
24305 return resultobj;
24306 fail:
24307 return NULL;
24308 }
24309
24310
24311 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24312 PyObject *resultobj;
24313 wxListView *arg1 = (wxListView *) 0 ;
24314 int arg2 ;
24315 PyObject * obj0 = 0 ;
24316 PyObject * obj1 = 0 ;
24317 char *kwnames[] = {
24318 (char *) "self",(char *) "col", NULL
24319 };
24320
24321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24324 arg2 = (int)SWIG_As_int(obj1);
24325 if (PyErr_Occurred()) SWIG_fail;
24326 {
24327 PyThreadState* __tstate = wxPyBeginAllowThreads();
24328 (arg1)->ClearColumnImage(arg2);
24329
24330 wxPyEndAllowThreads(__tstate);
24331 if (PyErr_Occurred()) SWIG_fail;
24332 }
24333 Py_INCREF(Py_None); resultobj = Py_None;
24334 return resultobj;
24335 fail:
24336 return NULL;
24337 }
24338
24339
24340 static PyObject * ListView_swigregister(PyObject *, PyObject *args) {
24341 PyObject *obj;
24342 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24343 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24344 Py_INCREF(obj);
24345 return Py_BuildValue((char *)"");
24346 }
24347 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
24348 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24349 return 1;
24350 }
24351
24352
24353 static PyObject *_wrap_TreeCtrlNameStr_get() {
24354 PyObject *pyobj;
24355
24356 {
24357 #if wxUSE_UNICODE
24358 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24359 #else
24360 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24361 #endif
24362 }
24363 return pyobj;
24364 }
24365
24366
24367 static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24368 PyObject *resultobj;
24369 wxTreeItemId *result;
24370 char *kwnames[] = {
24371 NULL
24372 };
24373
24374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24375 {
24376 PyThreadState* __tstate = wxPyBeginAllowThreads();
24377 result = (wxTreeItemId *)new wxTreeItemId();
24378
24379 wxPyEndAllowThreads(__tstate);
24380 if (PyErr_Occurred()) SWIG_fail;
24381 }
24382 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24383 return resultobj;
24384 fail:
24385 return NULL;
24386 }
24387
24388
24389 static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24390 PyObject *resultobj;
24391 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24392 PyObject * obj0 = 0 ;
24393 char *kwnames[] = {
24394 (char *) "self", NULL
24395 };
24396
24397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24400 {
24401 PyThreadState* __tstate = wxPyBeginAllowThreads();
24402 delete arg1;
24403
24404 wxPyEndAllowThreads(__tstate);
24405 if (PyErr_Occurred()) SWIG_fail;
24406 }
24407 Py_INCREF(Py_None); resultobj = Py_None;
24408 return resultobj;
24409 fail:
24410 return NULL;
24411 }
24412
24413
24414 static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
24415 PyObject *resultobj;
24416 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24417 bool result;
24418 PyObject * obj0 = 0 ;
24419 char *kwnames[] = {
24420 (char *) "self", NULL
24421 };
24422
24423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24426 {
24427 PyThreadState* __tstate = wxPyBeginAllowThreads();
24428 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24429
24430 wxPyEndAllowThreads(__tstate);
24431 if (PyErr_Occurred()) SWIG_fail;
24432 }
24433 {
24434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24435 }
24436 return resultobj;
24437 fail:
24438 return NULL;
24439 }
24440
24441
24442 static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24443 PyObject *resultobj;
24444 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24445 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24446 bool result;
24447 PyObject * obj0 = 0 ;
24448 PyObject * obj1 = 0 ;
24449 char *kwnames[] = {
24450 (char *) "self",(char *) "other", NULL
24451 };
24452
24453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24456 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24458 {
24459 PyThreadState* __tstate = wxPyBeginAllowThreads();
24460 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24461
24462 wxPyEndAllowThreads(__tstate);
24463 if (PyErr_Occurred()) SWIG_fail;
24464 }
24465 {
24466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24467 }
24468 return resultobj;
24469 fail:
24470 return NULL;
24471 }
24472
24473
24474 static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24475 PyObject *resultobj;
24476 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24477 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24478 bool result;
24479 PyObject * obj0 = 0 ;
24480 PyObject * obj1 = 0 ;
24481 char *kwnames[] = {
24482 (char *) "self",(char *) "other", NULL
24483 };
24484
24485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24488 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24490 {
24491 PyThreadState* __tstate = wxPyBeginAllowThreads();
24492 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24493
24494 wxPyEndAllowThreads(__tstate);
24495 if (PyErr_Occurred()) SWIG_fail;
24496 }
24497 {
24498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24499 }
24500 return resultobj;
24501 fail:
24502 return NULL;
24503 }
24504
24505
24506 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) {
24507 PyObject *resultobj;
24508 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24509 void *arg2 = (void *) 0 ;
24510 PyObject * obj0 = 0 ;
24511 PyObject * obj1 = 0 ;
24512 char *kwnames[] = {
24513 (char *) "self",(char *) "m_pItem", NULL
24514 };
24515
24516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24519 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24520 if (arg1) (arg1)->m_pItem = arg2;
24521
24522 Py_INCREF(Py_None); resultobj = Py_None;
24523 return resultobj;
24524 fail:
24525 return NULL;
24526 }
24527
24528
24529 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) {
24530 PyObject *resultobj;
24531 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24532 void *result;
24533 PyObject * obj0 = 0 ;
24534 char *kwnames[] = {
24535 (char *) "self", NULL
24536 };
24537
24538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24541 result = (void *) ((arg1)->m_pItem);
24542
24543 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24544 return resultobj;
24545 fail:
24546 return NULL;
24547 }
24548
24549
24550 static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) {
24551 PyObject *obj;
24552 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24553 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24554 Py_INCREF(obj);
24555 return Py_BuildValue((char *)"");
24556 }
24557 static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) {
24558 PyObject *resultobj;
24559 PyObject *arg1 = (PyObject *) NULL ;
24560 wxPyTreeItemData *result;
24561 PyObject * obj0 = 0 ;
24562 char *kwnames[] = {
24563 (char *) "obj", NULL
24564 };
24565
24566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24567 if (obj0) {
24568 arg1 = obj0;
24569 }
24570 {
24571 PyThreadState* __tstate = wxPyBeginAllowThreads();
24572 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24573
24574 wxPyEndAllowThreads(__tstate);
24575 if (PyErr_Occurred()) SWIG_fail;
24576 }
24577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24578 return resultobj;
24579 fail:
24580 return NULL;
24581 }
24582
24583
24584 static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
24585 PyObject *resultobj;
24586 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24587 PyObject *result;
24588 PyObject * obj0 = 0 ;
24589 char *kwnames[] = {
24590 (char *) "self", NULL
24591 };
24592
24593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24596 {
24597 PyThreadState* __tstate = wxPyBeginAllowThreads();
24598 result = (PyObject *)(arg1)->GetData();
24599
24600 wxPyEndAllowThreads(__tstate);
24601 if (PyErr_Occurred()) SWIG_fail;
24602 }
24603 resultobj = result;
24604 return resultobj;
24605 fail:
24606 return NULL;
24607 }
24608
24609
24610 static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24611 PyObject *resultobj;
24612 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24613 PyObject *arg2 = (PyObject *) 0 ;
24614 PyObject * obj0 = 0 ;
24615 PyObject * obj1 = 0 ;
24616 char *kwnames[] = {
24617 (char *) "self",(char *) "obj", NULL
24618 };
24619
24620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24623 arg2 = obj1;
24624 {
24625 PyThreadState* __tstate = wxPyBeginAllowThreads();
24626 (arg1)->SetData(arg2);
24627
24628 wxPyEndAllowThreads(__tstate);
24629 if (PyErr_Occurred()) SWIG_fail;
24630 }
24631 Py_INCREF(Py_None); resultobj = Py_None;
24632 return resultobj;
24633 fail:
24634 return NULL;
24635 }
24636
24637
24638 static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24639 PyObject *resultobj;
24640 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24641 wxTreeItemId *result;
24642 PyObject * obj0 = 0 ;
24643 char *kwnames[] = {
24644 (char *) "self", NULL
24645 };
24646
24647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24650 {
24651 PyThreadState* __tstate = wxPyBeginAllowThreads();
24652 {
24653 wxTreeItemId const &_result_ref = (arg1)->GetId();
24654 result = (wxTreeItemId *) &_result_ref;
24655 }
24656
24657 wxPyEndAllowThreads(__tstate);
24658 if (PyErr_Occurred()) SWIG_fail;
24659 }
24660 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24661 return resultobj;
24662 fail:
24663 return NULL;
24664 }
24665
24666
24667 static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24668 PyObject *resultobj;
24669 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24670 wxTreeItemId *arg2 = 0 ;
24671 PyObject * obj0 = 0 ;
24672 PyObject * obj1 = 0 ;
24673 char *kwnames[] = {
24674 (char *) "self",(char *) "id", NULL
24675 };
24676
24677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24680 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24681 SWIG_POINTER_EXCEPTION | 0)) == -1)
24682 SWIG_fail;
24683 if (arg2 == NULL) {
24684 PyErr_SetString(PyExc_TypeError,"null reference");
24685 SWIG_fail;
24686 }
24687 {
24688 PyThreadState* __tstate = wxPyBeginAllowThreads();
24689 (arg1)->SetId((wxTreeItemId const &)*arg2);
24690
24691 wxPyEndAllowThreads(__tstate);
24692 if (PyErr_Occurred()) SWIG_fail;
24693 }
24694 Py_INCREF(Py_None); resultobj = Py_None;
24695 return resultobj;
24696 fail:
24697 return NULL;
24698 }
24699
24700
24701 static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
24702 PyObject *resultobj;
24703 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24704 PyObject * obj0 = 0 ;
24705 char *kwnames[] = {
24706 (char *) "self", NULL
24707 };
24708
24709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24712 {
24713 PyThreadState* __tstate = wxPyBeginAllowThreads();
24714 wxPyTreeItemData_Destroy(arg1);
24715
24716 wxPyEndAllowThreads(__tstate);
24717 if (PyErr_Occurred()) SWIG_fail;
24718 }
24719 Py_INCREF(Py_None); resultobj = Py_None;
24720 return resultobj;
24721 fail:
24722 return NULL;
24723 }
24724
24725
24726 static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) {
24727 PyObject *obj;
24728 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24729 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24730 Py_INCREF(obj);
24731 return Py_BuildValue((char *)"");
24732 }
24733 static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj;
24735 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24736 int arg2 = (int) 0 ;
24737 wxTreeEvent *result;
24738 PyObject * obj0 = 0 ;
24739 PyObject * obj1 = 0 ;
24740 char *kwnames[] = {
24741 (char *) "commandType",(char *) "id", NULL
24742 };
24743
24744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24745 if (obj0) {
24746 arg1 = (wxEventType)SWIG_As_int(obj0);
24747 if (PyErr_Occurred()) SWIG_fail;
24748 }
24749 if (obj1) {
24750 arg2 = (int)SWIG_As_int(obj1);
24751 if (PyErr_Occurred()) SWIG_fail;
24752 }
24753 {
24754 PyThreadState* __tstate = wxPyBeginAllowThreads();
24755 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24756
24757 wxPyEndAllowThreads(__tstate);
24758 if (PyErr_Occurred()) SWIG_fail;
24759 }
24760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24761 return resultobj;
24762 fail:
24763 return NULL;
24764 }
24765
24766
24767 static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
24768 PyObject *resultobj;
24769 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24770 wxTreeItemId result;
24771 PyObject * obj0 = 0 ;
24772 char *kwnames[] = {
24773 (char *) "self", NULL
24774 };
24775
24776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24779 {
24780 PyThreadState* __tstate = wxPyBeginAllowThreads();
24781 result = ((wxTreeEvent const *)arg1)->GetItem();
24782
24783 wxPyEndAllowThreads(__tstate);
24784 if (PyErr_Occurred()) SWIG_fail;
24785 }
24786 {
24787 wxTreeItemId * resultptr;
24788 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24789 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24790 }
24791 return resultobj;
24792 fail:
24793 return NULL;
24794 }
24795
24796
24797 static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
24798 PyObject *resultobj;
24799 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24800 wxTreeItemId *arg2 = 0 ;
24801 PyObject * obj0 = 0 ;
24802 PyObject * obj1 = 0 ;
24803 char *kwnames[] = {
24804 (char *) "self",(char *) "item", NULL
24805 };
24806
24807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24810 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24811 SWIG_POINTER_EXCEPTION | 0)) == -1)
24812 SWIG_fail;
24813 if (arg2 == NULL) {
24814 PyErr_SetString(PyExc_TypeError,"null reference");
24815 SWIG_fail;
24816 }
24817 {
24818 PyThreadState* __tstate = wxPyBeginAllowThreads();
24819 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24820
24821 wxPyEndAllowThreads(__tstate);
24822 if (PyErr_Occurred()) SWIG_fail;
24823 }
24824 Py_INCREF(Py_None); resultobj = Py_None;
24825 return resultobj;
24826 fail:
24827 return NULL;
24828 }
24829
24830
24831 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
24832 PyObject *resultobj;
24833 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24834 wxTreeItemId result;
24835 PyObject * obj0 = 0 ;
24836 char *kwnames[] = {
24837 (char *) "self", NULL
24838 };
24839
24840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24843 {
24844 PyThreadState* __tstate = wxPyBeginAllowThreads();
24845 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24846
24847 wxPyEndAllowThreads(__tstate);
24848 if (PyErr_Occurred()) SWIG_fail;
24849 }
24850 {
24851 wxTreeItemId * resultptr;
24852 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24853 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24854 }
24855 return resultobj;
24856 fail:
24857 return NULL;
24858 }
24859
24860
24861 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
24862 PyObject *resultobj;
24863 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24864 wxTreeItemId *arg2 = 0 ;
24865 PyObject * obj0 = 0 ;
24866 PyObject * obj1 = 0 ;
24867 char *kwnames[] = {
24868 (char *) "self",(char *) "item", NULL
24869 };
24870
24871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24874 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24875 SWIG_POINTER_EXCEPTION | 0)) == -1)
24876 SWIG_fail;
24877 if (arg2 == NULL) {
24878 PyErr_SetString(PyExc_TypeError,"null reference");
24879 SWIG_fail;
24880 }
24881 {
24882 PyThreadState* __tstate = wxPyBeginAllowThreads();
24883 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24884
24885 wxPyEndAllowThreads(__tstate);
24886 if (PyErr_Occurred()) SWIG_fail;
24887 }
24888 Py_INCREF(Py_None); resultobj = Py_None;
24889 return resultobj;
24890 fail:
24891 return NULL;
24892 }
24893
24894
24895 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
24896 PyObject *resultobj;
24897 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24898 wxPoint result;
24899 PyObject * obj0 = 0 ;
24900 char *kwnames[] = {
24901 (char *) "self", NULL
24902 };
24903
24904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24907 {
24908 PyThreadState* __tstate = wxPyBeginAllowThreads();
24909 result = ((wxTreeEvent const *)arg1)->GetPoint();
24910
24911 wxPyEndAllowThreads(__tstate);
24912 if (PyErr_Occurred()) SWIG_fail;
24913 }
24914 {
24915 wxPoint * resultptr;
24916 resultptr = new wxPoint((wxPoint &) result);
24917 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24918 }
24919 return resultobj;
24920 fail:
24921 return NULL;
24922 }
24923
24924
24925 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
24926 PyObject *resultobj;
24927 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24928 wxPoint *arg2 = 0 ;
24929 wxPoint temp2 ;
24930 PyObject * obj0 = 0 ;
24931 PyObject * obj1 = 0 ;
24932 char *kwnames[] = {
24933 (char *) "self",(char *) "pt", NULL
24934 };
24935
24936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24939 {
24940 arg2 = &temp2;
24941 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24942 }
24943 {
24944 PyThreadState* __tstate = wxPyBeginAllowThreads();
24945 (arg1)->SetPoint((wxPoint const &)*arg2);
24946
24947 wxPyEndAllowThreads(__tstate);
24948 if (PyErr_Occurred()) SWIG_fail;
24949 }
24950 Py_INCREF(Py_None); resultobj = Py_None;
24951 return resultobj;
24952 fail:
24953 return NULL;
24954 }
24955
24956
24957 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24958 PyObject *resultobj;
24959 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24960 wxKeyEvent *result;
24961 PyObject * obj0 = 0 ;
24962 char *kwnames[] = {
24963 (char *) "self", NULL
24964 };
24965
24966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24969 {
24970 PyThreadState* __tstate = wxPyBeginAllowThreads();
24971 {
24972 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24973 result = (wxKeyEvent *) &_result_ref;
24974 }
24975
24976 wxPyEndAllowThreads(__tstate);
24977 if (PyErr_Occurred()) SWIG_fail;
24978 }
24979 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24980 return resultobj;
24981 fail:
24982 return NULL;
24983 }
24984
24985
24986 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
24987 PyObject *resultobj;
24988 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24989 int result;
24990 PyObject * obj0 = 0 ;
24991 char *kwnames[] = {
24992 (char *) "self", NULL
24993 };
24994
24995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24998 {
24999 PyThreadState* __tstate = wxPyBeginAllowThreads();
25000 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
25001
25002 wxPyEndAllowThreads(__tstate);
25003 if (PyErr_Occurred()) SWIG_fail;
25004 }
25005 resultobj = SWIG_From_int((int)result);
25006 return resultobj;
25007 fail:
25008 return NULL;
25009 }
25010
25011
25012 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25013 PyObject *resultobj;
25014 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25015 wxKeyEvent *arg2 = 0 ;
25016 PyObject * obj0 = 0 ;
25017 PyObject * obj1 = 0 ;
25018 char *kwnames[] = {
25019 (char *) "self",(char *) "evt", NULL
25020 };
25021
25022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
25023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25025 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
25026 SWIG_POINTER_EXCEPTION | 0)) == -1)
25027 SWIG_fail;
25028 if (arg2 == NULL) {
25029 PyErr_SetString(PyExc_TypeError,"null reference");
25030 SWIG_fail;
25031 }
25032 {
25033 PyThreadState* __tstate = wxPyBeginAllowThreads();
25034 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
25035
25036 wxPyEndAllowThreads(__tstate);
25037 if (PyErr_Occurred()) SWIG_fail;
25038 }
25039 Py_INCREF(Py_None); resultobj = Py_None;
25040 return resultobj;
25041 fail:
25042 return NULL;
25043 }
25044
25045
25046 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25047 PyObject *resultobj;
25048 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25049 wxString *result;
25050 PyObject * obj0 = 0 ;
25051 char *kwnames[] = {
25052 (char *) "self", NULL
25053 };
25054
25055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
25056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25058 {
25059 PyThreadState* __tstate = wxPyBeginAllowThreads();
25060 {
25061 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
25062 result = (wxString *) &_result_ref;
25063 }
25064
25065 wxPyEndAllowThreads(__tstate);
25066 if (PyErr_Occurred()) SWIG_fail;
25067 }
25068 {
25069 #if wxUSE_UNICODE
25070 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25071 #else
25072 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25073 #endif
25074 }
25075 return resultobj;
25076 fail:
25077 return NULL;
25078 }
25079
25080
25081 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25082 PyObject *resultobj;
25083 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25084 wxString *arg2 = 0 ;
25085 bool temp2 = False ;
25086 PyObject * obj0 = 0 ;
25087 PyObject * obj1 = 0 ;
25088 char *kwnames[] = {
25089 (char *) "self",(char *) "label", NULL
25090 };
25091
25092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
25093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25095 {
25096 arg2 = wxString_in_helper(obj1);
25097 if (arg2 == NULL) SWIG_fail;
25098 temp2 = True;
25099 }
25100 {
25101 PyThreadState* __tstate = wxPyBeginAllowThreads();
25102 (arg1)->SetLabel((wxString const &)*arg2);
25103
25104 wxPyEndAllowThreads(__tstate);
25105 if (PyErr_Occurred()) SWIG_fail;
25106 }
25107 Py_INCREF(Py_None); resultobj = Py_None;
25108 {
25109 if (temp2)
25110 delete arg2;
25111 }
25112 return resultobj;
25113 fail:
25114 {
25115 if (temp2)
25116 delete arg2;
25117 }
25118 return NULL;
25119 }
25120
25121
25122 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
25123 PyObject *resultobj;
25124 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25125 bool result;
25126 PyObject * obj0 = 0 ;
25127 char *kwnames[] = {
25128 (char *) "self", NULL
25129 };
25130
25131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
25132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25134 {
25135 PyThreadState* __tstate = wxPyBeginAllowThreads();
25136 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
25137
25138 wxPyEndAllowThreads(__tstate);
25139 if (PyErr_Occurred()) SWIG_fail;
25140 }
25141 {
25142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25143 }
25144 return resultobj;
25145 fail:
25146 return NULL;
25147 }
25148
25149
25150 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
25151 PyObject *resultobj;
25152 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25153 bool arg2 ;
25154 PyObject * obj0 = 0 ;
25155 PyObject * obj1 = 0 ;
25156 char *kwnames[] = {
25157 (char *) "self",(char *) "editCancelled", NULL
25158 };
25159
25160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
25161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25163 arg2 = (bool)SWIG_As_bool(obj1);
25164 if (PyErr_Occurred()) SWIG_fail;
25165 {
25166 PyThreadState* __tstate = wxPyBeginAllowThreads();
25167 (arg1)->SetEditCanceled(arg2);
25168
25169 wxPyEndAllowThreads(__tstate);
25170 if (PyErr_Occurred()) SWIG_fail;
25171 }
25172 Py_INCREF(Py_None); resultobj = Py_None;
25173 return resultobj;
25174 fail:
25175 return NULL;
25176 }
25177
25178
25179 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
25180 PyObject *resultobj;
25181 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25182 wxString *arg2 = 0 ;
25183 bool temp2 = False ;
25184 PyObject * obj0 = 0 ;
25185 PyObject * obj1 = 0 ;
25186 char *kwnames[] = {
25187 (char *) "self",(char *) "toolTip", NULL
25188 };
25189
25190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
25191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25193 {
25194 arg2 = wxString_in_helper(obj1);
25195 if (arg2 == NULL) SWIG_fail;
25196 temp2 = True;
25197 }
25198 {
25199 PyThreadState* __tstate = wxPyBeginAllowThreads();
25200 (arg1)->SetToolTip((wxString const &)*arg2);
25201
25202 wxPyEndAllowThreads(__tstate);
25203 if (PyErr_Occurred()) SWIG_fail;
25204 }
25205 Py_INCREF(Py_None); resultobj = Py_None;
25206 {
25207 if (temp2)
25208 delete arg2;
25209 }
25210 return resultobj;
25211 fail:
25212 {
25213 if (temp2)
25214 delete arg2;
25215 }
25216 return NULL;
25217 }
25218
25219
25220 static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) {
25221 PyObject *obj;
25222 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25223 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
25224 Py_INCREF(obj);
25225 return Py_BuildValue((char *)"");
25226 }
25227 static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25228 PyObject *resultobj;
25229 wxWindow *arg1 = (wxWindow *) 0 ;
25230 int arg2 = (int) -1 ;
25231 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25232 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25233 wxSize const &arg4_defvalue = wxDefaultSize ;
25234 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25235 long arg5 = (long) wxTR_DEFAULT_STYLE ;
25236 wxValidator const &arg6_defvalue = wxDefaultValidator ;
25237 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
25238 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
25239 wxString *arg7 = (wxString *) &arg7_defvalue ;
25240 wxPyTreeCtrl *result;
25241 wxPoint temp3 ;
25242 wxSize temp4 ;
25243 bool temp7 = False ;
25244 PyObject * obj0 = 0 ;
25245 PyObject * obj1 = 0 ;
25246 PyObject * obj2 = 0 ;
25247 PyObject * obj3 = 0 ;
25248 PyObject * obj4 = 0 ;
25249 PyObject * obj5 = 0 ;
25250 PyObject * obj6 = 0 ;
25251 char *kwnames[] = {
25252 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25253 };
25254
25255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25258 if (obj1) {
25259 arg2 = (int)SWIG_As_int(obj1);
25260 if (PyErr_Occurred()) SWIG_fail;
25261 }
25262 if (obj2) {
25263 {
25264 arg3 = &temp3;
25265 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25266 }
25267 }
25268 if (obj3) {
25269 {
25270 arg4 = &temp4;
25271 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25272 }
25273 }
25274 if (obj4) {
25275 arg5 = (long)SWIG_As_long(obj4);
25276 if (PyErr_Occurred()) SWIG_fail;
25277 }
25278 if (obj5) {
25279 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
25280 SWIG_POINTER_EXCEPTION | 0)) == -1)
25281 SWIG_fail;
25282 if (arg6 == NULL) {
25283 PyErr_SetString(PyExc_TypeError,"null reference");
25284 SWIG_fail;
25285 }
25286 }
25287 if (obj6) {
25288 {
25289 arg7 = wxString_in_helper(obj6);
25290 if (arg7 == NULL) SWIG_fail;
25291 temp7 = True;
25292 }
25293 }
25294 {
25295 if (!wxPyCheckForApp()) SWIG_fail;
25296 PyThreadState* __tstate = wxPyBeginAllowThreads();
25297 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
25298
25299 wxPyEndAllowThreads(__tstate);
25300 if (PyErr_Occurred()) SWIG_fail;
25301 }
25302 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25303 {
25304 if (temp7)
25305 delete arg7;
25306 }
25307 return resultobj;
25308 fail:
25309 {
25310 if (temp7)
25311 delete arg7;
25312 }
25313 return NULL;
25314 }
25315
25316
25317 static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25318 PyObject *resultobj;
25319 wxPyTreeCtrl *result;
25320 char *kwnames[] = {
25321 NULL
25322 };
25323
25324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25325 {
25326 if (!wxPyCheckForApp()) SWIG_fail;
25327 PyThreadState* __tstate = wxPyBeginAllowThreads();
25328 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25329
25330 wxPyEndAllowThreads(__tstate);
25331 if (PyErr_Occurred()) SWIG_fail;
25332 }
25333 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25334 return resultobj;
25335 fail:
25336 return NULL;
25337 }
25338
25339
25340 static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
25341 PyObject *resultobj;
25342 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25343 wxWindow *arg2 = (wxWindow *) 0 ;
25344 int arg3 = (int) -1 ;
25345 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25346 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25347 wxSize const &arg5_defvalue = wxDefaultSize ;
25348 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25349 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25350 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25351 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25352 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25353 wxString *arg8 = (wxString *) &arg8_defvalue ;
25354 bool result;
25355 wxPoint temp4 ;
25356 wxSize temp5 ;
25357 bool temp8 = False ;
25358 PyObject * obj0 = 0 ;
25359 PyObject * obj1 = 0 ;
25360 PyObject * obj2 = 0 ;
25361 PyObject * obj3 = 0 ;
25362 PyObject * obj4 = 0 ;
25363 PyObject * obj5 = 0 ;
25364 PyObject * obj6 = 0 ;
25365 PyObject * obj7 = 0 ;
25366 char *kwnames[] = {
25367 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25368 };
25369
25370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25373 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25375 if (obj2) {
25376 arg3 = (int)SWIG_As_int(obj2);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 if (obj3) {
25380 {
25381 arg4 = &temp4;
25382 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25383 }
25384 }
25385 if (obj4) {
25386 {
25387 arg5 = &temp5;
25388 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25389 }
25390 }
25391 if (obj5) {
25392 arg6 = (long)SWIG_As_long(obj5);
25393 if (PyErr_Occurred()) SWIG_fail;
25394 }
25395 if (obj6) {
25396 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25397 SWIG_POINTER_EXCEPTION | 0)) == -1)
25398 SWIG_fail;
25399 if (arg7 == NULL) {
25400 PyErr_SetString(PyExc_TypeError,"null reference");
25401 SWIG_fail;
25402 }
25403 }
25404 if (obj7) {
25405 {
25406 arg8 = wxString_in_helper(obj7);
25407 if (arg8 == NULL) SWIG_fail;
25408 temp8 = True;
25409 }
25410 }
25411 {
25412 PyThreadState* __tstate = wxPyBeginAllowThreads();
25413 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25414
25415 wxPyEndAllowThreads(__tstate);
25416 if (PyErr_Occurred()) SWIG_fail;
25417 }
25418 {
25419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25420 }
25421 {
25422 if (temp8)
25423 delete arg8;
25424 }
25425 return resultobj;
25426 fail:
25427 {
25428 if (temp8)
25429 delete arg8;
25430 }
25431 return NULL;
25432 }
25433
25434
25435 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25436 PyObject *resultobj;
25437 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25438 PyObject *arg2 = (PyObject *) 0 ;
25439 PyObject *arg3 = (PyObject *) 0 ;
25440 PyObject * obj0 = 0 ;
25441 PyObject * obj1 = 0 ;
25442 PyObject * obj2 = 0 ;
25443 char *kwnames[] = {
25444 (char *) "self",(char *) "self",(char *) "_class", NULL
25445 };
25446
25447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25450 arg2 = obj1;
25451 arg3 = obj2;
25452 {
25453 PyThreadState* __tstate = wxPyBeginAllowThreads();
25454 (arg1)->_setCallbackInfo(arg2,arg3);
25455
25456 wxPyEndAllowThreads(__tstate);
25457 if (PyErr_Occurred()) SWIG_fail;
25458 }
25459 Py_INCREF(Py_None); resultobj = Py_None;
25460 return resultobj;
25461 fail:
25462 return NULL;
25463 }
25464
25465
25466 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
25467 PyObject *resultobj;
25468 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25469 size_t result;
25470 PyObject * obj0 = 0 ;
25471 char *kwnames[] = {
25472 (char *) "self", NULL
25473 };
25474
25475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25478 {
25479 PyThreadState* __tstate = wxPyBeginAllowThreads();
25480 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25481
25482 wxPyEndAllowThreads(__tstate);
25483 if (PyErr_Occurred()) SWIG_fail;
25484 }
25485 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25486 return resultobj;
25487 fail:
25488 return NULL;
25489 }
25490
25491
25492 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25493 PyObject *resultobj;
25494 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25495 unsigned int result;
25496 PyObject * obj0 = 0 ;
25497 char *kwnames[] = {
25498 (char *) "self", NULL
25499 };
25500
25501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25504 {
25505 PyThreadState* __tstate = wxPyBeginAllowThreads();
25506 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25507
25508 wxPyEndAllowThreads(__tstate);
25509 if (PyErr_Occurred()) SWIG_fail;
25510 }
25511 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25512 return resultobj;
25513 fail:
25514 return NULL;
25515 }
25516
25517
25518 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25519 PyObject *resultobj;
25520 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25521 unsigned int arg2 ;
25522 PyObject * obj0 = 0 ;
25523 PyObject * obj1 = 0 ;
25524 char *kwnames[] = {
25525 (char *) "self",(char *) "indent", NULL
25526 };
25527
25528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25531 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25532 if (PyErr_Occurred()) SWIG_fail;
25533 {
25534 PyThreadState* __tstate = wxPyBeginAllowThreads();
25535 (arg1)->SetIndent(arg2);
25536
25537 wxPyEndAllowThreads(__tstate);
25538 if (PyErr_Occurred()) SWIG_fail;
25539 }
25540 Py_INCREF(Py_None); resultobj = Py_None;
25541 return resultobj;
25542 fail:
25543 return NULL;
25544 }
25545
25546
25547 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25548 PyObject *resultobj;
25549 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25550 unsigned int result;
25551 PyObject * obj0 = 0 ;
25552 char *kwnames[] = {
25553 (char *) "self", NULL
25554 };
25555
25556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25559 {
25560 PyThreadState* __tstate = wxPyBeginAllowThreads();
25561 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25562
25563 wxPyEndAllowThreads(__tstate);
25564 if (PyErr_Occurred()) SWIG_fail;
25565 }
25566 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25567 return resultobj;
25568 fail:
25569 return NULL;
25570 }
25571
25572
25573 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25574 PyObject *resultobj;
25575 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25576 unsigned int arg2 ;
25577 PyObject * obj0 = 0 ;
25578 PyObject * obj1 = 0 ;
25579 char *kwnames[] = {
25580 (char *) "self",(char *) "spacing", NULL
25581 };
25582
25583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25586 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25587 if (PyErr_Occurred()) SWIG_fail;
25588 {
25589 PyThreadState* __tstate = wxPyBeginAllowThreads();
25590 (arg1)->SetSpacing(arg2);
25591
25592 wxPyEndAllowThreads(__tstate);
25593 if (PyErr_Occurred()) SWIG_fail;
25594 }
25595 Py_INCREF(Py_None); resultobj = Py_None;
25596 return resultobj;
25597 fail:
25598 return NULL;
25599 }
25600
25601
25602 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25603 PyObject *resultobj;
25604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25605 wxImageList *result;
25606 PyObject * obj0 = 0 ;
25607 char *kwnames[] = {
25608 (char *) "self", NULL
25609 };
25610
25611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25614 {
25615 PyThreadState* __tstate = wxPyBeginAllowThreads();
25616 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25617
25618 wxPyEndAllowThreads(__tstate);
25619 if (PyErr_Occurred()) SWIG_fail;
25620 }
25621 {
25622 resultobj = wxPyMake_wxObject(result, 0);
25623 }
25624 return resultobj;
25625 fail:
25626 return NULL;
25627 }
25628
25629
25630 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25631 PyObject *resultobj;
25632 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25633 wxImageList *result;
25634 PyObject * obj0 = 0 ;
25635 char *kwnames[] = {
25636 (char *) "self", NULL
25637 };
25638
25639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25642 {
25643 PyThreadState* __tstate = wxPyBeginAllowThreads();
25644 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25645
25646 wxPyEndAllowThreads(__tstate);
25647 if (PyErr_Occurred()) SWIG_fail;
25648 }
25649 {
25650 resultobj = wxPyMake_wxObject(result, 0);
25651 }
25652 return resultobj;
25653 fail:
25654 return NULL;
25655 }
25656
25657
25658 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25659 PyObject *resultobj;
25660 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25661 wxImageList *arg2 = (wxImageList *) 0 ;
25662 PyObject * obj0 = 0 ;
25663 PyObject * obj1 = 0 ;
25664 char *kwnames[] = {
25665 (char *) "self",(char *) "imageList", NULL
25666 };
25667
25668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25671 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25673 {
25674 PyThreadState* __tstate = wxPyBeginAllowThreads();
25675 (arg1)->SetImageList(arg2);
25676
25677 wxPyEndAllowThreads(__tstate);
25678 if (PyErr_Occurred()) SWIG_fail;
25679 }
25680 Py_INCREF(Py_None); resultobj = Py_None;
25681 return resultobj;
25682 fail:
25683 return NULL;
25684 }
25685
25686
25687 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25688 PyObject *resultobj;
25689 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25690 wxImageList *arg2 = (wxImageList *) 0 ;
25691 PyObject * obj0 = 0 ;
25692 PyObject * obj1 = 0 ;
25693 char *kwnames[] = {
25694 (char *) "self",(char *) "imageList", NULL
25695 };
25696
25697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25700 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25702 {
25703 PyThreadState* __tstate = wxPyBeginAllowThreads();
25704 (arg1)->SetStateImageList(arg2);
25705
25706 wxPyEndAllowThreads(__tstate);
25707 if (PyErr_Occurred()) SWIG_fail;
25708 }
25709 Py_INCREF(Py_None); resultobj = Py_None;
25710 return resultobj;
25711 fail:
25712 return NULL;
25713 }
25714
25715
25716 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25717 PyObject *resultobj;
25718 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25719 wxImageList *arg2 = (wxImageList *) 0 ;
25720 PyObject * obj0 = 0 ;
25721 PyObject * obj1 = 0 ;
25722 char *kwnames[] = {
25723 (char *) "self",(char *) "imageList", NULL
25724 };
25725
25726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25729 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25730 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25731 {
25732 PyThreadState* __tstate = wxPyBeginAllowThreads();
25733 (arg1)->AssignImageList(arg2);
25734
25735 wxPyEndAllowThreads(__tstate);
25736 if (PyErr_Occurred()) SWIG_fail;
25737 }
25738 Py_INCREF(Py_None); resultobj = Py_None;
25739 return resultobj;
25740 fail:
25741 return NULL;
25742 }
25743
25744
25745 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25746 PyObject *resultobj;
25747 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25748 wxImageList *arg2 = (wxImageList *) 0 ;
25749 PyObject * obj0 = 0 ;
25750 PyObject * obj1 = 0 ;
25751 char *kwnames[] = {
25752 (char *) "self",(char *) "imageList", NULL
25753 };
25754
25755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25758 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25759 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25760 {
25761 PyThreadState* __tstate = wxPyBeginAllowThreads();
25762 (arg1)->AssignStateImageList(arg2);
25763
25764 wxPyEndAllowThreads(__tstate);
25765 if (PyErr_Occurred()) SWIG_fail;
25766 }
25767 Py_INCREF(Py_None); resultobj = Py_None;
25768 return resultobj;
25769 fail:
25770 return NULL;
25771 }
25772
25773
25774 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
25775 PyObject *resultobj;
25776 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25777 wxTreeItemId *arg2 = 0 ;
25778 wxString result;
25779 PyObject * obj0 = 0 ;
25780 PyObject * obj1 = 0 ;
25781 char *kwnames[] = {
25782 (char *) "self",(char *) "item", NULL
25783 };
25784
25785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25789 SWIG_POINTER_EXCEPTION | 0)) == -1)
25790 SWIG_fail;
25791 if (arg2 == NULL) {
25792 PyErr_SetString(PyExc_TypeError,"null reference");
25793 SWIG_fail;
25794 }
25795 {
25796 PyThreadState* __tstate = wxPyBeginAllowThreads();
25797 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25798
25799 wxPyEndAllowThreads(__tstate);
25800 if (PyErr_Occurred()) SWIG_fail;
25801 }
25802 {
25803 #if wxUSE_UNICODE
25804 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25805 #else
25806 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25807 #endif
25808 }
25809 return resultobj;
25810 fail:
25811 return NULL;
25812 }
25813
25814
25815 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
25816 PyObject *resultobj;
25817 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25818 wxTreeItemId *arg2 = 0 ;
25819 int arg3 = (int) wxTreeItemIcon_Normal ;
25820 int result;
25821 PyObject * obj0 = 0 ;
25822 PyObject * obj1 = 0 ;
25823 PyObject * obj2 = 0 ;
25824 char *kwnames[] = {
25825 (char *) "self",(char *) "item",(char *) "which", NULL
25826 };
25827
25828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25831 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25832 SWIG_POINTER_EXCEPTION | 0)) == -1)
25833 SWIG_fail;
25834 if (arg2 == NULL) {
25835 PyErr_SetString(PyExc_TypeError,"null reference");
25836 SWIG_fail;
25837 }
25838 if (obj2) {
25839 arg3 = (int)SWIG_As_int(obj2);
25840 if (PyErr_Occurred()) SWIG_fail;
25841 }
25842 {
25843 PyThreadState* __tstate = wxPyBeginAllowThreads();
25844 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25845
25846 wxPyEndAllowThreads(__tstate);
25847 if (PyErr_Occurred()) SWIG_fail;
25848 }
25849 resultobj = SWIG_From_int((int)result);
25850 return resultobj;
25851 fail:
25852 return NULL;
25853 }
25854
25855
25856 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
25857 PyObject *resultobj;
25858 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25859 wxTreeItemId *arg2 = 0 ;
25860 wxPyTreeItemData *result;
25861 PyObject * obj0 = 0 ;
25862 PyObject * obj1 = 0 ;
25863 char *kwnames[] = {
25864 (char *) "self",(char *) "item", NULL
25865 };
25866
25867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25870 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25871 SWIG_POINTER_EXCEPTION | 0)) == -1)
25872 SWIG_fail;
25873 if (arg2 == NULL) {
25874 PyErr_SetString(PyExc_TypeError,"null reference");
25875 SWIG_fail;
25876 }
25877 {
25878 PyThreadState* __tstate = wxPyBeginAllowThreads();
25879 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25880
25881 wxPyEndAllowThreads(__tstate);
25882 if (PyErr_Occurred()) SWIG_fail;
25883 }
25884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25885 return resultobj;
25886 fail:
25887 return NULL;
25888 }
25889
25890
25891 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
25892 PyObject *resultobj;
25893 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25894 wxTreeItemId *arg2 = 0 ;
25895 PyObject *result;
25896 PyObject * obj0 = 0 ;
25897 PyObject * obj1 = 0 ;
25898 char *kwnames[] = {
25899 (char *) "self",(char *) "item", NULL
25900 };
25901
25902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25905 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25906 SWIG_POINTER_EXCEPTION | 0)) == -1)
25907 SWIG_fail;
25908 if (arg2 == NULL) {
25909 PyErr_SetString(PyExc_TypeError,"null reference");
25910 SWIG_fail;
25911 }
25912 {
25913 PyThreadState* __tstate = wxPyBeginAllowThreads();
25914 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25915
25916 wxPyEndAllowThreads(__tstate);
25917 if (PyErr_Occurred()) SWIG_fail;
25918 }
25919 resultobj = result;
25920 return resultobj;
25921 fail:
25922 return NULL;
25923 }
25924
25925
25926 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
25927 PyObject *resultobj;
25928 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25929 wxTreeItemId *arg2 = 0 ;
25930 wxColour result;
25931 PyObject * obj0 = 0 ;
25932 PyObject * obj1 = 0 ;
25933 char *kwnames[] = {
25934 (char *) "self",(char *) "item", NULL
25935 };
25936
25937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25940 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25941 SWIG_POINTER_EXCEPTION | 0)) == -1)
25942 SWIG_fail;
25943 if (arg2 == NULL) {
25944 PyErr_SetString(PyExc_TypeError,"null reference");
25945 SWIG_fail;
25946 }
25947 {
25948 PyThreadState* __tstate = wxPyBeginAllowThreads();
25949 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25950
25951 wxPyEndAllowThreads(__tstate);
25952 if (PyErr_Occurred()) SWIG_fail;
25953 }
25954 {
25955 wxColour * resultptr;
25956 resultptr = new wxColour((wxColour &) result);
25957 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25958 }
25959 return resultobj;
25960 fail:
25961 return NULL;
25962 }
25963
25964
25965 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
25966 PyObject *resultobj;
25967 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25968 wxTreeItemId *arg2 = 0 ;
25969 wxColour result;
25970 PyObject * obj0 = 0 ;
25971 PyObject * obj1 = 0 ;
25972 char *kwnames[] = {
25973 (char *) "self",(char *) "item", NULL
25974 };
25975
25976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25979 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25980 SWIG_POINTER_EXCEPTION | 0)) == -1)
25981 SWIG_fail;
25982 if (arg2 == NULL) {
25983 PyErr_SetString(PyExc_TypeError,"null reference");
25984 SWIG_fail;
25985 }
25986 {
25987 PyThreadState* __tstate = wxPyBeginAllowThreads();
25988 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25989
25990 wxPyEndAllowThreads(__tstate);
25991 if (PyErr_Occurred()) SWIG_fail;
25992 }
25993 {
25994 wxColour * resultptr;
25995 resultptr = new wxColour((wxColour &) result);
25996 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25997 }
25998 return resultobj;
25999 fail:
26000 return NULL;
26001 }
26002
26003
26004 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26005 PyObject *resultobj;
26006 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26007 wxTreeItemId *arg2 = 0 ;
26008 wxFont result;
26009 PyObject * obj0 = 0 ;
26010 PyObject * obj1 = 0 ;
26011 char *kwnames[] = {
26012 (char *) "self",(char *) "item", NULL
26013 };
26014
26015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
26016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26019 SWIG_POINTER_EXCEPTION | 0)) == -1)
26020 SWIG_fail;
26021 if (arg2 == NULL) {
26022 PyErr_SetString(PyExc_TypeError,"null reference");
26023 SWIG_fail;
26024 }
26025 {
26026 PyThreadState* __tstate = wxPyBeginAllowThreads();
26027 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
26028
26029 wxPyEndAllowThreads(__tstate);
26030 if (PyErr_Occurred()) SWIG_fail;
26031 }
26032 {
26033 wxFont * resultptr;
26034 resultptr = new wxFont((wxFont &) result);
26035 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
26036 }
26037 return resultobj;
26038 fail:
26039 return NULL;
26040 }
26041
26042
26043 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26044 PyObject *resultobj;
26045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26046 wxTreeItemId *arg2 = 0 ;
26047 wxString *arg3 = 0 ;
26048 bool temp3 = False ;
26049 PyObject * obj0 = 0 ;
26050 PyObject * obj1 = 0 ;
26051 PyObject * obj2 = 0 ;
26052 char *kwnames[] = {
26053 (char *) "self",(char *) "item",(char *) "text", NULL
26054 };
26055
26056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
26057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26059 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26060 SWIG_POINTER_EXCEPTION | 0)) == -1)
26061 SWIG_fail;
26062 if (arg2 == NULL) {
26063 PyErr_SetString(PyExc_TypeError,"null reference");
26064 SWIG_fail;
26065 }
26066 {
26067 arg3 = wxString_in_helper(obj2);
26068 if (arg3 == NULL) SWIG_fail;
26069 temp3 = True;
26070 }
26071 {
26072 PyThreadState* __tstate = wxPyBeginAllowThreads();
26073 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
26074
26075 wxPyEndAllowThreads(__tstate);
26076 if (PyErr_Occurred()) SWIG_fail;
26077 }
26078 Py_INCREF(Py_None); resultobj = Py_None;
26079 {
26080 if (temp3)
26081 delete arg3;
26082 }
26083 return resultobj;
26084 fail:
26085 {
26086 if (temp3)
26087 delete arg3;
26088 }
26089 return NULL;
26090 }
26091
26092
26093 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26094 PyObject *resultobj;
26095 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26096 wxTreeItemId *arg2 = 0 ;
26097 int arg3 ;
26098 int arg4 = (int) wxTreeItemIcon_Normal ;
26099 PyObject * obj0 = 0 ;
26100 PyObject * obj1 = 0 ;
26101 PyObject * obj2 = 0 ;
26102 PyObject * obj3 = 0 ;
26103 char *kwnames[] = {
26104 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
26105 };
26106
26107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26110 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26111 SWIG_POINTER_EXCEPTION | 0)) == -1)
26112 SWIG_fail;
26113 if (arg2 == NULL) {
26114 PyErr_SetString(PyExc_TypeError,"null reference");
26115 SWIG_fail;
26116 }
26117 arg3 = (int)SWIG_As_int(obj2);
26118 if (PyErr_Occurred()) SWIG_fail;
26119 if (obj3) {
26120 arg4 = (int)SWIG_As_int(obj3);
26121 if (PyErr_Occurred()) SWIG_fail;
26122 }
26123 {
26124 PyThreadState* __tstate = wxPyBeginAllowThreads();
26125 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
26126
26127 wxPyEndAllowThreads(__tstate);
26128 if (PyErr_Occurred()) SWIG_fail;
26129 }
26130 Py_INCREF(Py_None); resultobj = Py_None;
26131 return resultobj;
26132 fail:
26133 return NULL;
26134 }
26135
26136
26137 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26138 PyObject *resultobj;
26139 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26140 wxTreeItemId *arg2 = 0 ;
26141 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
26142 PyObject * obj0 = 0 ;
26143 PyObject * obj1 = 0 ;
26144 PyObject * obj2 = 0 ;
26145 char *kwnames[] = {
26146 (char *) "self",(char *) "item",(char *) "data", NULL
26147 };
26148
26149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26152 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26153 SWIG_POINTER_EXCEPTION | 0)) == -1)
26154 SWIG_fail;
26155 if (arg2 == NULL) {
26156 PyErr_SetString(PyExc_TypeError,"null reference");
26157 SWIG_fail;
26158 }
26159 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
26160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26161 {
26162 PyThreadState* __tstate = wxPyBeginAllowThreads();
26163 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
26164
26165 wxPyEndAllowThreads(__tstate);
26166 if (PyErr_Occurred()) SWIG_fail;
26167 }
26168 Py_INCREF(Py_None); resultobj = Py_None;
26169 return resultobj;
26170 fail:
26171 return NULL;
26172 }
26173
26174
26175 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26176 PyObject *resultobj;
26177 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26178 wxTreeItemId *arg2 = 0 ;
26179 PyObject *arg3 = (PyObject *) 0 ;
26180 PyObject * obj0 = 0 ;
26181 PyObject * obj1 = 0 ;
26182 PyObject * obj2 = 0 ;
26183 char *kwnames[] = {
26184 (char *) "self",(char *) "item",(char *) "obj", NULL
26185 };
26186
26187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26190 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26191 SWIG_POINTER_EXCEPTION | 0)) == -1)
26192 SWIG_fail;
26193 if (arg2 == NULL) {
26194 PyErr_SetString(PyExc_TypeError,"null reference");
26195 SWIG_fail;
26196 }
26197 arg3 = obj2;
26198 {
26199 PyThreadState* __tstate = wxPyBeginAllowThreads();
26200 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
26201
26202 wxPyEndAllowThreads(__tstate);
26203 if (PyErr_Occurred()) SWIG_fail;
26204 }
26205 Py_INCREF(Py_None); resultobj = Py_None;
26206 return resultobj;
26207 fail:
26208 return NULL;
26209 }
26210
26211
26212 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26213 PyObject *resultobj;
26214 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26215 wxTreeItemId *arg2 = 0 ;
26216 bool arg3 = (bool) True ;
26217 PyObject * obj0 = 0 ;
26218 PyObject * obj1 = 0 ;
26219 PyObject * obj2 = 0 ;
26220 char *kwnames[] = {
26221 (char *) "self",(char *) "item",(char *) "has", NULL
26222 };
26223
26224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
26225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26227 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26228 SWIG_POINTER_EXCEPTION | 0)) == -1)
26229 SWIG_fail;
26230 if (arg2 == NULL) {
26231 PyErr_SetString(PyExc_TypeError,"null reference");
26232 SWIG_fail;
26233 }
26234 if (obj2) {
26235 arg3 = (bool)SWIG_As_bool(obj2);
26236 if (PyErr_Occurred()) SWIG_fail;
26237 }
26238 {
26239 PyThreadState* __tstate = wxPyBeginAllowThreads();
26240 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
26241
26242 wxPyEndAllowThreads(__tstate);
26243 if (PyErr_Occurred()) SWIG_fail;
26244 }
26245 Py_INCREF(Py_None); resultobj = Py_None;
26246 return resultobj;
26247 fail:
26248 return NULL;
26249 }
26250
26251
26252 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) {
26253 PyObject *resultobj;
26254 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26255 wxTreeItemId *arg2 = 0 ;
26256 bool arg3 = (bool) True ;
26257 PyObject * obj0 = 0 ;
26258 PyObject * obj1 = 0 ;
26259 PyObject * obj2 = 0 ;
26260 char *kwnames[] = {
26261 (char *) "self",(char *) "item",(char *) "bold", NULL
26262 };
26263
26264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
26265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26267 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26268 SWIG_POINTER_EXCEPTION | 0)) == -1)
26269 SWIG_fail;
26270 if (arg2 == NULL) {
26271 PyErr_SetString(PyExc_TypeError,"null reference");
26272 SWIG_fail;
26273 }
26274 if (obj2) {
26275 arg3 = (bool)SWIG_As_bool(obj2);
26276 if (PyErr_Occurred()) SWIG_fail;
26277 }
26278 {
26279 PyThreadState* __tstate = wxPyBeginAllowThreads();
26280 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
26281
26282 wxPyEndAllowThreads(__tstate);
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
26285 Py_INCREF(Py_None); resultobj = Py_None;
26286 return resultobj;
26287 fail:
26288 return NULL;
26289 }
26290
26291
26292 static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) {
26293 PyObject *resultobj;
26294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26295 wxTreeItemId *arg2 = 0 ;
26296 bool arg3 = (bool) True ;
26297 PyObject * obj0 = 0 ;
26298 PyObject * obj1 = 0 ;
26299 PyObject * obj2 = 0 ;
26300 char *kwnames[] = {
26301 (char *) "self",(char *) "item",(char *) "highlight", NULL
26302 };
26303
26304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
26305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26308 SWIG_POINTER_EXCEPTION | 0)) == -1)
26309 SWIG_fail;
26310 if (arg2 == NULL) {
26311 PyErr_SetString(PyExc_TypeError,"null reference");
26312 SWIG_fail;
26313 }
26314 if (obj2) {
26315 arg3 = (bool)SWIG_As_bool(obj2);
26316 if (PyErr_Occurred()) SWIG_fail;
26317 }
26318 {
26319 PyThreadState* __tstate = wxPyBeginAllowThreads();
26320 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
26321
26322 wxPyEndAllowThreads(__tstate);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 Py_INCREF(Py_None); resultobj = Py_None;
26326 return resultobj;
26327 fail:
26328 return NULL;
26329 }
26330
26331
26332 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26333 PyObject *resultobj;
26334 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26335 wxTreeItemId *arg2 = 0 ;
26336 wxColour *arg3 = 0 ;
26337 wxColour temp3 ;
26338 PyObject * obj0 = 0 ;
26339 PyObject * obj1 = 0 ;
26340 PyObject * obj2 = 0 ;
26341 char *kwnames[] = {
26342 (char *) "self",(char *) "item",(char *) "col", NULL
26343 };
26344
26345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26349 SWIG_POINTER_EXCEPTION | 0)) == -1)
26350 SWIG_fail;
26351 if (arg2 == NULL) {
26352 PyErr_SetString(PyExc_TypeError,"null reference");
26353 SWIG_fail;
26354 }
26355 {
26356 arg3 = &temp3;
26357 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26358 }
26359 {
26360 PyThreadState* __tstate = wxPyBeginAllowThreads();
26361 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26362
26363 wxPyEndAllowThreads(__tstate);
26364 if (PyErr_Occurred()) SWIG_fail;
26365 }
26366 Py_INCREF(Py_None); resultobj = Py_None;
26367 return resultobj;
26368 fail:
26369 return NULL;
26370 }
26371
26372
26373 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26374 PyObject *resultobj;
26375 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26376 wxTreeItemId *arg2 = 0 ;
26377 wxColour *arg3 = 0 ;
26378 wxColour temp3 ;
26379 PyObject * obj0 = 0 ;
26380 PyObject * obj1 = 0 ;
26381 PyObject * obj2 = 0 ;
26382 char *kwnames[] = {
26383 (char *) "self",(char *) "item",(char *) "col", NULL
26384 };
26385
26386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26389 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26390 SWIG_POINTER_EXCEPTION | 0)) == -1)
26391 SWIG_fail;
26392 if (arg2 == NULL) {
26393 PyErr_SetString(PyExc_TypeError,"null reference");
26394 SWIG_fail;
26395 }
26396 {
26397 arg3 = &temp3;
26398 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26399 }
26400 {
26401 PyThreadState* __tstate = wxPyBeginAllowThreads();
26402 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26403
26404 wxPyEndAllowThreads(__tstate);
26405 if (PyErr_Occurred()) SWIG_fail;
26406 }
26407 Py_INCREF(Py_None); resultobj = Py_None;
26408 return resultobj;
26409 fail:
26410 return NULL;
26411 }
26412
26413
26414 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26415 PyObject *resultobj;
26416 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26417 wxTreeItemId *arg2 = 0 ;
26418 wxFont *arg3 = 0 ;
26419 PyObject * obj0 = 0 ;
26420 PyObject * obj1 = 0 ;
26421 PyObject * obj2 = 0 ;
26422 char *kwnames[] = {
26423 (char *) "self",(char *) "item",(char *) "font", NULL
26424 };
26425
26426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26429 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26430 SWIG_POINTER_EXCEPTION | 0)) == -1)
26431 SWIG_fail;
26432 if (arg2 == NULL) {
26433 PyErr_SetString(PyExc_TypeError,"null reference");
26434 SWIG_fail;
26435 }
26436 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26437 SWIG_POINTER_EXCEPTION | 0)) == -1)
26438 SWIG_fail;
26439 if (arg3 == NULL) {
26440 PyErr_SetString(PyExc_TypeError,"null reference");
26441 SWIG_fail;
26442 }
26443 {
26444 PyThreadState* __tstate = wxPyBeginAllowThreads();
26445 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26446
26447 wxPyEndAllowThreads(__tstate);
26448 if (PyErr_Occurred()) SWIG_fail;
26449 }
26450 Py_INCREF(Py_None); resultobj = Py_None;
26451 return resultobj;
26452 fail:
26453 return NULL;
26454 }
26455
26456
26457 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26458 PyObject *resultobj;
26459 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26460 wxTreeItemId *arg2 = 0 ;
26461 bool result;
26462 PyObject * obj0 = 0 ;
26463 PyObject * obj1 = 0 ;
26464 char *kwnames[] = {
26465 (char *) "self",(char *) "item", NULL
26466 };
26467
26468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26472 SWIG_POINTER_EXCEPTION | 0)) == -1)
26473 SWIG_fail;
26474 if (arg2 == NULL) {
26475 PyErr_SetString(PyExc_TypeError,"null reference");
26476 SWIG_fail;
26477 }
26478 {
26479 PyThreadState* __tstate = wxPyBeginAllowThreads();
26480 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26481
26482 wxPyEndAllowThreads(__tstate);
26483 if (PyErr_Occurred()) SWIG_fail;
26484 }
26485 {
26486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26487 }
26488 return resultobj;
26489 fail:
26490 return NULL;
26491 }
26492
26493
26494 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26495 PyObject *resultobj;
26496 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26497 wxTreeItemId *arg2 = 0 ;
26498 bool result;
26499 PyObject * obj0 = 0 ;
26500 PyObject * obj1 = 0 ;
26501 char *kwnames[] = {
26502 (char *) "self",(char *) "item", NULL
26503 };
26504
26505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26508 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26509 SWIG_POINTER_EXCEPTION | 0)) == -1)
26510 SWIG_fail;
26511 if (arg2 == NULL) {
26512 PyErr_SetString(PyExc_TypeError,"null reference");
26513 SWIG_fail;
26514 }
26515 {
26516 PyThreadState* __tstate = wxPyBeginAllowThreads();
26517 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26518
26519 wxPyEndAllowThreads(__tstate);
26520 if (PyErr_Occurred()) SWIG_fail;
26521 }
26522 {
26523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26524 }
26525 return resultobj;
26526 fail:
26527 return NULL;
26528 }
26529
26530
26531 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) {
26532 PyObject *resultobj;
26533 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26534 wxTreeItemId *arg2 = 0 ;
26535 bool result;
26536 PyObject * obj0 = 0 ;
26537 PyObject * obj1 = 0 ;
26538 char *kwnames[] = {
26539 (char *) "self",(char *) "item", NULL
26540 };
26541
26542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26545 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26546 SWIG_POINTER_EXCEPTION | 0)) == -1)
26547 SWIG_fail;
26548 if (arg2 == NULL) {
26549 PyErr_SetString(PyExc_TypeError,"null reference");
26550 SWIG_fail;
26551 }
26552 {
26553 PyThreadState* __tstate = wxPyBeginAllowThreads();
26554 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26555
26556 wxPyEndAllowThreads(__tstate);
26557 if (PyErr_Occurred()) SWIG_fail;
26558 }
26559 {
26560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26561 }
26562 return resultobj;
26563 fail:
26564 return NULL;
26565 }
26566
26567
26568 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
26569 PyObject *resultobj;
26570 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26571 wxTreeItemId *arg2 = 0 ;
26572 bool result;
26573 PyObject * obj0 = 0 ;
26574 PyObject * obj1 = 0 ;
26575 char *kwnames[] = {
26576 (char *) "self",(char *) "item", NULL
26577 };
26578
26579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26582 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26583 SWIG_POINTER_EXCEPTION | 0)) == -1)
26584 SWIG_fail;
26585 if (arg2 == NULL) {
26586 PyErr_SetString(PyExc_TypeError,"null reference");
26587 SWIG_fail;
26588 }
26589 {
26590 PyThreadState* __tstate = wxPyBeginAllowThreads();
26591 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26592
26593 wxPyEndAllowThreads(__tstate);
26594 if (PyErr_Occurred()) SWIG_fail;
26595 }
26596 {
26597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26598 }
26599 return resultobj;
26600 fail:
26601 return NULL;
26602 }
26603
26604
26605 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) {
26606 PyObject *resultobj;
26607 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26608 wxTreeItemId *arg2 = 0 ;
26609 bool result;
26610 PyObject * obj0 = 0 ;
26611 PyObject * obj1 = 0 ;
26612 char *kwnames[] = {
26613 (char *) "self",(char *) "item", NULL
26614 };
26615
26616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26619 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26620 SWIG_POINTER_EXCEPTION | 0)) == -1)
26621 SWIG_fail;
26622 if (arg2 == NULL) {
26623 PyErr_SetString(PyExc_TypeError,"null reference");
26624 SWIG_fail;
26625 }
26626 {
26627 PyThreadState* __tstate = wxPyBeginAllowThreads();
26628 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26629
26630 wxPyEndAllowThreads(__tstate);
26631 if (PyErr_Occurred()) SWIG_fail;
26632 }
26633 {
26634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26635 }
26636 return resultobj;
26637 fail:
26638 return NULL;
26639 }
26640
26641
26642 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) {
26643 PyObject *resultobj;
26644 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26645 wxTreeItemId *arg2 = 0 ;
26646 bool arg3 = (bool) True ;
26647 size_t result;
26648 PyObject * obj0 = 0 ;
26649 PyObject * obj1 = 0 ;
26650 PyObject * obj2 = 0 ;
26651 char *kwnames[] = {
26652 (char *) "self",(char *) "item",(char *) "recursively", NULL
26653 };
26654
26655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26658 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26659 SWIG_POINTER_EXCEPTION | 0)) == -1)
26660 SWIG_fail;
26661 if (arg2 == NULL) {
26662 PyErr_SetString(PyExc_TypeError,"null reference");
26663 SWIG_fail;
26664 }
26665 if (obj2) {
26666 arg3 = (bool)SWIG_As_bool(obj2);
26667 if (PyErr_Occurred()) SWIG_fail;
26668 }
26669 {
26670 PyThreadState* __tstate = wxPyBeginAllowThreads();
26671 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26672
26673 wxPyEndAllowThreads(__tstate);
26674 if (PyErr_Occurred()) SWIG_fail;
26675 }
26676 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
26677 return resultobj;
26678 fail:
26679 return NULL;
26680 }
26681
26682
26683 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) {
26684 PyObject *resultobj;
26685 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26686 wxTreeItemId result;
26687 PyObject * obj0 = 0 ;
26688 char *kwnames[] = {
26689 (char *) "self", NULL
26690 };
26691
26692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26695 {
26696 PyThreadState* __tstate = wxPyBeginAllowThreads();
26697 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26698
26699 wxPyEndAllowThreads(__tstate);
26700 if (PyErr_Occurred()) SWIG_fail;
26701 }
26702 {
26703 wxTreeItemId * resultptr;
26704 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26705 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26706 }
26707 return resultobj;
26708 fail:
26709 return NULL;
26710 }
26711
26712
26713 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
26714 PyObject *resultobj;
26715 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26716 wxTreeItemId result;
26717 PyObject * obj0 = 0 ;
26718 char *kwnames[] = {
26719 (char *) "self", NULL
26720 };
26721
26722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26725 {
26726 PyThreadState* __tstate = wxPyBeginAllowThreads();
26727 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26728
26729 wxPyEndAllowThreads(__tstate);
26730 if (PyErr_Occurred()) SWIG_fail;
26731 }
26732 {
26733 wxTreeItemId * resultptr;
26734 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26735 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26736 }
26737 return resultobj;
26738 fail:
26739 return NULL;
26740 }
26741
26742
26743 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
26744 PyObject *resultobj;
26745 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26746 PyObject *result;
26747 PyObject * obj0 = 0 ;
26748 char *kwnames[] = {
26749 (char *) "self", NULL
26750 };
26751
26752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26755 {
26756 PyThreadState* __tstate = wxPyBeginAllowThreads();
26757 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26758
26759 wxPyEndAllowThreads(__tstate);
26760 if (PyErr_Occurred()) SWIG_fail;
26761 }
26762 resultobj = result;
26763 return resultobj;
26764 fail:
26765 return NULL;
26766 }
26767
26768
26769 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) {
26770 PyObject *resultobj;
26771 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26772 wxTreeItemId *arg2 = 0 ;
26773 wxTreeItemId result;
26774 PyObject * obj0 = 0 ;
26775 PyObject * obj1 = 0 ;
26776 char *kwnames[] = {
26777 (char *) "self",(char *) "item", NULL
26778 };
26779
26780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26784 SWIG_POINTER_EXCEPTION | 0)) == -1)
26785 SWIG_fail;
26786 if (arg2 == NULL) {
26787 PyErr_SetString(PyExc_TypeError,"null reference");
26788 SWIG_fail;
26789 }
26790 {
26791 PyThreadState* __tstate = wxPyBeginAllowThreads();
26792 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26793
26794 wxPyEndAllowThreads(__tstate);
26795 if (PyErr_Occurred()) SWIG_fail;
26796 }
26797 {
26798 wxTreeItemId * resultptr;
26799 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26800 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26801 }
26802 return resultobj;
26803 fail:
26804 return NULL;
26805 }
26806
26807
26808 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) {
26809 PyObject *resultobj;
26810 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26811 wxTreeItemId *arg2 = 0 ;
26812 PyObject *result;
26813 PyObject * obj0 = 0 ;
26814 PyObject * obj1 = 0 ;
26815 char *kwnames[] = {
26816 (char *) "self",(char *) "item", NULL
26817 };
26818
26819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26822 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26823 SWIG_POINTER_EXCEPTION | 0)) == -1)
26824 SWIG_fail;
26825 if (arg2 == NULL) {
26826 PyErr_SetString(PyExc_TypeError,"null reference");
26827 SWIG_fail;
26828 }
26829 {
26830 PyThreadState* __tstate = wxPyBeginAllowThreads();
26831 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26832
26833 wxPyEndAllowThreads(__tstate);
26834 if (PyErr_Occurred()) SWIG_fail;
26835 }
26836 resultobj = result;
26837 return resultobj;
26838 fail:
26839 return NULL;
26840 }
26841
26842
26843 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) {
26844 PyObject *resultobj;
26845 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26846 wxTreeItemId *arg2 = 0 ;
26847 void *arg3 = (void *) 0 ;
26848 PyObject *result;
26849 PyObject * obj0 = 0 ;
26850 PyObject * obj1 = 0 ;
26851 PyObject * obj2 = 0 ;
26852 char *kwnames[] = {
26853 (char *) "self",(char *) "item",(char *) "cookie", NULL
26854 };
26855
26856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26859 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26860 SWIG_POINTER_EXCEPTION | 0)) == -1)
26861 SWIG_fail;
26862 if (arg2 == NULL) {
26863 PyErr_SetString(PyExc_TypeError,"null reference");
26864 SWIG_fail;
26865 }
26866 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26867 {
26868 PyThreadState* __tstate = wxPyBeginAllowThreads();
26869 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26870
26871 wxPyEndAllowThreads(__tstate);
26872 if (PyErr_Occurred()) SWIG_fail;
26873 }
26874 resultobj = result;
26875 return resultobj;
26876 fail:
26877 return NULL;
26878 }
26879
26880
26881 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) {
26882 PyObject *resultobj;
26883 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26884 wxTreeItemId *arg2 = 0 ;
26885 wxTreeItemId result;
26886 PyObject * obj0 = 0 ;
26887 PyObject * obj1 = 0 ;
26888 char *kwnames[] = {
26889 (char *) "self",(char *) "item", NULL
26890 };
26891
26892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
26893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26895 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26896 SWIG_POINTER_EXCEPTION | 0)) == -1)
26897 SWIG_fail;
26898 if (arg2 == NULL) {
26899 PyErr_SetString(PyExc_TypeError,"null reference");
26900 SWIG_fail;
26901 }
26902 {
26903 PyThreadState* __tstate = wxPyBeginAllowThreads();
26904 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26905
26906 wxPyEndAllowThreads(__tstate);
26907 if (PyErr_Occurred()) SWIG_fail;
26908 }
26909 {
26910 wxTreeItemId * resultptr;
26911 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26912 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26913 }
26914 return resultobj;
26915 fail:
26916 return NULL;
26917 }
26918
26919
26920 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) {
26921 PyObject *resultobj;
26922 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26923 wxTreeItemId *arg2 = 0 ;
26924 wxTreeItemId result;
26925 PyObject * obj0 = 0 ;
26926 PyObject * obj1 = 0 ;
26927 char *kwnames[] = {
26928 (char *) "self",(char *) "item", NULL
26929 };
26930
26931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26934 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26935 SWIG_POINTER_EXCEPTION | 0)) == -1)
26936 SWIG_fail;
26937 if (arg2 == NULL) {
26938 PyErr_SetString(PyExc_TypeError,"null reference");
26939 SWIG_fail;
26940 }
26941 {
26942 PyThreadState* __tstate = wxPyBeginAllowThreads();
26943 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26944
26945 wxPyEndAllowThreads(__tstate);
26946 if (PyErr_Occurred()) SWIG_fail;
26947 }
26948 {
26949 wxTreeItemId * resultptr;
26950 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26951 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26952 }
26953 return resultobj;
26954 fail:
26955 return NULL;
26956 }
26957
26958
26959 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) {
26960 PyObject *resultobj;
26961 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26962 wxTreeItemId *arg2 = 0 ;
26963 wxTreeItemId result;
26964 PyObject * obj0 = 0 ;
26965 PyObject * obj1 = 0 ;
26966 char *kwnames[] = {
26967 (char *) "self",(char *) "item", NULL
26968 };
26969
26970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26973 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26974 SWIG_POINTER_EXCEPTION | 0)) == -1)
26975 SWIG_fail;
26976 if (arg2 == NULL) {
26977 PyErr_SetString(PyExc_TypeError,"null reference");
26978 SWIG_fail;
26979 }
26980 {
26981 PyThreadState* __tstate = wxPyBeginAllowThreads();
26982 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26983
26984 wxPyEndAllowThreads(__tstate);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 {
26988 wxTreeItemId * resultptr;
26989 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26990 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26991 }
26992 return resultobj;
26993 fail:
26994 return NULL;
26995 }
26996
26997
26998 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) {
26999 PyObject *resultobj;
27000 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27001 wxTreeItemId result;
27002 PyObject * obj0 = 0 ;
27003 char *kwnames[] = {
27004 (char *) "self", NULL
27005 };
27006
27007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
27008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27010 {
27011 PyThreadState* __tstate = wxPyBeginAllowThreads();
27012 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
27013
27014 wxPyEndAllowThreads(__tstate);
27015 if (PyErr_Occurred()) SWIG_fail;
27016 }
27017 {
27018 wxTreeItemId * resultptr;
27019 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27020 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27021 }
27022 return resultobj;
27023 fail:
27024 return NULL;
27025 }
27026
27027
27028 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27029 PyObject *resultobj;
27030 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27031 wxTreeItemId *arg2 = 0 ;
27032 wxTreeItemId result;
27033 PyObject * obj0 = 0 ;
27034 PyObject * obj1 = 0 ;
27035 char *kwnames[] = {
27036 (char *) "self",(char *) "item", NULL
27037 };
27038
27039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
27040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27042 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27043 SWIG_POINTER_EXCEPTION | 0)) == -1)
27044 SWIG_fail;
27045 if (arg2 == NULL) {
27046 PyErr_SetString(PyExc_TypeError,"null reference");
27047 SWIG_fail;
27048 }
27049 {
27050 PyThreadState* __tstate = wxPyBeginAllowThreads();
27051 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
27052
27053 wxPyEndAllowThreads(__tstate);
27054 if (PyErr_Occurred()) SWIG_fail;
27055 }
27056 {
27057 wxTreeItemId * resultptr;
27058 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27059 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27060 }
27061 return resultobj;
27062 fail:
27063 return NULL;
27064 }
27065
27066
27067 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27068 PyObject *resultobj;
27069 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27070 wxTreeItemId *arg2 = 0 ;
27071 wxTreeItemId result;
27072 PyObject * obj0 = 0 ;
27073 PyObject * obj1 = 0 ;
27074 char *kwnames[] = {
27075 (char *) "self",(char *) "item", NULL
27076 };
27077
27078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
27079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27082 SWIG_POINTER_EXCEPTION | 0)) == -1)
27083 SWIG_fail;
27084 if (arg2 == NULL) {
27085 PyErr_SetString(PyExc_TypeError,"null reference");
27086 SWIG_fail;
27087 }
27088 {
27089 PyThreadState* __tstate = wxPyBeginAllowThreads();
27090 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
27091
27092 wxPyEndAllowThreads(__tstate);
27093 if (PyErr_Occurred()) SWIG_fail;
27094 }
27095 {
27096 wxTreeItemId * resultptr;
27097 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27098 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27099 }
27100 return resultobj;
27101 fail:
27102 return NULL;
27103 }
27104
27105
27106 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) {
27107 PyObject *resultobj;
27108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27109 wxString *arg2 = 0 ;
27110 int arg3 = (int) -1 ;
27111 int arg4 = (int) -1 ;
27112 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
27113 wxTreeItemId result;
27114 bool temp2 = False ;
27115 PyObject * obj0 = 0 ;
27116 PyObject * obj1 = 0 ;
27117 PyObject * obj2 = 0 ;
27118 PyObject * obj3 = 0 ;
27119 PyObject * obj4 = 0 ;
27120 char *kwnames[] = {
27121 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27122 };
27123
27124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27127 {
27128 arg2 = wxString_in_helper(obj1);
27129 if (arg2 == NULL) SWIG_fail;
27130 temp2 = True;
27131 }
27132 if (obj2) {
27133 arg3 = (int)SWIG_As_int(obj2);
27134 if (PyErr_Occurred()) SWIG_fail;
27135 }
27136 if (obj3) {
27137 arg4 = (int)SWIG_As_int(obj3);
27138 if (PyErr_Occurred()) SWIG_fail;
27139 }
27140 if (obj4) {
27141 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
27142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27143 }
27144 {
27145 PyThreadState* __tstate = wxPyBeginAllowThreads();
27146 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
27147
27148 wxPyEndAllowThreads(__tstate);
27149 if (PyErr_Occurred()) SWIG_fail;
27150 }
27151 {
27152 wxTreeItemId * resultptr;
27153 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27154 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27155 }
27156 {
27157 if (temp2)
27158 delete arg2;
27159 }
27160 return resultobj;
27161 fail:
27162 {
27163 if (temp2)
27164 delete arg2;
27165 }
27166 return NULL;
27167 }
27168
27169
27170 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
27171 PyObject *resultobj;
27172 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27173 wxTreeItemId *arg2 = 0 ;
27174 wxString *arg3 = 0 ;
27175 int arg4 = (int) -1 ;
27176 int arg5 = (int) -1 ;
27177 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27178 wxTreeItemId result;
27179 bool temp3 = False ;
27180 PyObject * obj0 = 0 ;
27181 PyObject * obj1 = 0 ;
27182 PyObject * obj2 = 0 ;
27183 PyObject * obj3 = 0 ;
27184 PyObject * obj4 = 0 ;
27185 PyObject * obj5 = 0 ;
27186 char *kwnames[] = {
27187 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27188 };
27189
27190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27193 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27194 SWIG_POINTER_EXCEPTION | 0)) == -1)
27195 SWIG_fail;
27196 if (arg2 == NULL) {
27197 PyErr_SetString(PyExc_TypeError,"null reference");
27198 SWIG_fail;
27199 }
27200 {
27201 arg3 = wxString_in_helper(obj2);
27202 if (arg3 == NULL) SWIG_fail;
27203 temp3 = True;
27204 }
27205 if (obj3) {
27206 arg4 = (int)SWIG_As_int(obj3);
27207 if (PyErr_Occurred()) SWIG_fail;
27208 }
27209 if (obj4) {
27210 arg5 = (int)SWIG_As_int(obj4);
27211 if (PyErr_Occurred()) SWIG_fail;
27212 }
27213 if (obj5) {
27214 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27216 }
27217 {
27218 PyThreadState* __tstate = wxPyBeginAllowThreads();
27219 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27220
27221 wxPyEndAllowThreads(__tstate);
27222 if (PyErr_Occurred()) SWIG_fail;
27223 }
27224 {
27225 wxTreeItemId * resultptr;
27226 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27227 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27228 }
27229 {
27230 if (temp3)
27231 delete arg3;
27232 }
27233 return resultobj;
27234 fail:
27235 {
27236 if (temp3)
27237 delete arg3;
27238 }
27239 return NULL;
27240 }
27241
27242
27243 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
27244 PyObject *resultobj;
27245 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27246 wxTreeItemId *arg2 = 0 ;
27247 wxTreeItemId *arg3 = 0 ;
27248 wxString *arg4 = 0 ;
27249 int arg5 = (int) -1 ;
27250 int arg6 = (int) -1 ;
27251 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27252 wxTreeItemId result;
27253 bool temp4 = False ;
27254 PyObject * obj0 = 0 ;
27255 PyObject * obj1 = 0 ;
27256 PyObject * obj2 = 0 ;
27257 PyObject * obj3 = 0 ;
27258 PyObject * obj4 = 0 ;
27259 PyObject * obj5 = 0 ;
27260 PyObject * obj6 = 0 ;
27261 char *kwnames[] = {
27262 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27263 };
27264
27265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27268 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27269 SWIG_POINTER_EXCEPTION | 0)) == -1)
27270 SWIG_fail;
27271 if (arg2 == NULL) {
27272 PyErr_SetString(PyExc_TypeError,"null reference");
27273 SWIG_fail;
27274 }
27275 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
27276 SWIG_POINTER_EXCEPTION | 0)) == -1)
27277 SWIG_fail;
27278 if (arg3 == NULL) {
27279 PyErr_SetString(PyExc_TypeError,"null reference");
27280 SWIG_fail;
27281 }
27282 {
27283 arg4 = wxString_in_helper(obj3);
27284 if (arg4 == NULL) SWIG_fail;
27285 temp4 = True;
27286 }
27287 if (obj4) {
27288 arg5 = (int)SWIG_As_int(obj4);
27289 if (PyErr_Occurred()) SWIG_fail;
27290 }
27291 if (obj5) {
27292 arg6 = (int)SWIG_As_int(obj5);
27293 if (PyErr_Occurred()) SWIG_fail;
27294 }
27295 if (obj6) {
27296 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27298 }
27299 {
27300 PyThreadState* __tstate = wxPyBeginAllowThreads();
27301 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27302
27303 wxPyEndAllowThreads(__tstate);
27304 if (PyErr_Occurred()) SWIG_fail;
27305 }
27306 {
27307 wxTreeItemId * resultptr;
27308 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27309 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27310 }
27311 {
27312 if (temp4)
27313 delete arg4;
27314 }
27315 return resultobj;
27316 fail:
27317 {
27318 if (temp4)
27319 delete arg4;
27320 }
27321 return NULL;
27322 }
27323
27324
27325 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) {
27326 PyObject *resultobj;
27327 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27328 wxTreeItemId *arg2 = 0 ;
27329 size_t arg3 ;
27330 wxString *arg4 = 0 ;
27331 int arg5 = (int) -1 ;
27332 int arg6 = (int) -1 ;
27333 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27334 wxTreeItemId result;
27335 bool temp4 = False ;
27336 PyObject * obj0 = 0 ;
27337 PyObject * obj1 = 0 ;
27338 PyObject * obj2 = 0 ;
27339 PyObject * obj3 = 0 ;
27340 PyObject * obj4 = 0 ;
27341 PyObject * obj5 = 0 ;
27342 PyObject * obj6 = 0 ;
27343 char *kwnames[] = {
27344 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27345 };
27346
27347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27350 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27351 SWIG_POINTER_EXCEPTION | 0)) == -1)
27352 SWIG_fail;
27353 if (arg2 == NULL) {
27354 PyErr_SetString(PyExc_TypeError,"null reference");
27355 SWIG_fail;
27356 }
27357 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
27358 if (PyErr_Occurred()) SWIG_fail;
27359 {
27360 arg4 = wxString_in_helper(obj3);
27361 if (arg4 == NULL) SWIG_fail;
27362 temp4 = True;
27363 }
27364 if (obj4) {
27365 arg5 = (int)SWIG_As_int(obj4);
27366 if (PyErr_Occurred()) SWIG_fail;
27367 }
27368 if (obj5) {
27369 arg6 = (int)SWIG_As_int(obj5);
27370 if (PyErr_Occurred()) SWIG_fail;
27371 }
27372 if (obj6) {
27373 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27375 }
27376 {
27377 PyThreadState* __tstate = wxPyBeginAllowThreads();
27378 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27379
27380 wxPyEndAllowThreads(__tstate);
27381 if (PyErr_Occurred()) SWIG_fail;
27382 }
27383 {
27384 wxTreeItemId * resultptr;
27385 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27386 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27387 }
27388 {
27389 if (temp4)
27390 delete arg4;
27391 }
27392 return resultobj;
27393 fail:
27394 {
27395 if (temp4)
27396 delete arg4;
27397 }
27398 return NULL;
27399 }
27400
27401
27402 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
27403 PyObject *resultobj;
27404 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27405 wxTreeItemId *arg2 = 0 ;
27406 wxString *arg3 = 0 ;
27407 int arg4 = (int) -1 ;
27408 int arg5 = (int) -1 ;
27409 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27410 wxTreeItemId result;
27411 bool temp3 = False ;
27412 PyObject * obj0 = 0 ;
27413 PyObject * obj1 = 0 ;
27414 PyObject * obj2 = 0 ;
27415 PyObject * obj3 = 0 ;
27416 PyObject * obj4 = 0 ;
27417 PyObject * obj5 = 0 ;
27418 char *kwnames[] = {
27419 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27420 };
27421
27422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27425 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27426 SWIG_POINTER_EXCEPTION | 0)) == -1)
27427 SWIG_fail;
27428 if (arg2 == NULL) {
27429 PyErr_SetString(PyExc_TypeError,"null reference");
27430 SWIG_fail;
27431 }
27432 {
27433 arg3 = wxString_in_helper(obj2);
27434 if (arg3 == NULL) SWIG_fail;
27435 temp3 = True;
27436 }
27437 if (obj3) {
27438 arg4 = (int)SWIG_As_int(obj3);
27439 if (PyErr_Occurred()) SWIG_fail;
27440 }
27441 if (obj4) {
27442 arg5 = (int)SWIG_As_int(obj4);
27443 if (PyErr_Occurred()) SWIG_fail;
27444 }
27445 if (obj5) {
27446 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27448 }
27449 {
27450 PyThreadState* __tstate = wxPyBeginAllowThreads();
27451 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27452
27453 wxPyEndAllowThreads(__tstate);
27454 if (PyErr_Occurred()) SWIG_fail;
27455 }
27456 {
27457 wxTreeItemId * resultptr;
27458 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27459 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27460 }
27461 {
27462 if (temp3)
27463 delete arg3;
27464 }
27465 return resultobj;
27466 fail:
27467 {
27468 if (temp3)
27469 delete arg3;
27470 }
27471 return NULL;
27472 }
27473
27474
27475 static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
27476 PyObject *resultobj;
27477 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27478 wxTreeItemId *arg2 = 0 ;
27479 PyObject * obj0 = 0 ;
27480 PyObject * obj1 = 0 ;
27481 char *kwnames[] = {
27482 (char *) "self",(char *) "item", NULL
27483 };
27484
27485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27488 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27489 SWIG_POINTER_EXCEPTION | 0)) == -1)
27490 SWIG_fail;
27491 if (arg2 == NULL) {
27492 PyErr_SetString(PyExc_TypeError,"null reference");
27493 SWIG_fail;
27494 }
27495 {
27496 PyThreadState* __tstate = wxPyBeginAllowThreads();
27497 (arg1)->Delete((wxTreeItemId const &)*arg2);
27498
27499 wxPyEndAllowThreads(__tstate);
27500 if (PyErr_Occurred()) SWIG_fail;
27501 }
27502 Py_INCREF(Py_None); resultobj = Py_None;
27503 return resultobj;
27504 fail:
27505 return NULL;
27506 }
27507
27508
27509 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27510 PyObject *resultobj;
27511 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27512 wxTreeItemId *arg2 = 0 ;
27513 PyObject * obj0 = 0 ;
27514 PyObject * obj1 = 0 ;
27515 char *kwnames[] = {
27516 (char *) "self",(char *) "item", NULL
27517 };
27518
27519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27523 SWIG_POINTER_EXCEPTION | 0)) == -1)
27524 SWIG_fail;
27525 if (arg2 == NULL) {
27526 PyErr_SetString(PyExc_TypeError,"null reference");
27527 SWIG_fail;
27528 }
27529 {
27530 PyThreadState* __tstate = wxPyBeginAllowThreads();
27531 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27532
27533 wxPyEndAllowThreads(__tstate);
27534 if (PyErr_Occurred()) SWIG_fail;
27535 }
27536 Py_INCREF(Py_None); resultobj = Py_None;
27537 return resultobj;
27538 fail:
27539 return NULL;
27540 }
27541
27542
27543 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
27544 PyObject *resultobj;
27545 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27546 PyObject * obj0 = 0 ;
27547 char *kwnames[] = {
27548 (char *) "self", NULL
27549 };
27550
27551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27554 {
27555 PyThreadState* __tstate = wxPyBeginAllowThreads();
27556 (arg1)->DeleteAllItems();
27557
27558 wxPyEndAllowThreads(__tstate);
27559 if (PyErr_Occurred()) SWIG_fail;
27560 }
27561 Py_INCREF(Py_None); resultobj = Py_None;
27562 return resultobj;
27563 fail:
27564 return NULL;
27565 }
27566
27567
27568 static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) {
27569 PyObject *resultobj;
27570 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27571 wxTreeItemId *arg2 = 0 ;
27572 PyObject * obj0 = 0 ;
27573 PyObject * obj1 = 0 ;
27574 char *kwnames[] = {
27575 (char *) "self",(char *) "item", NULL
27576 };
27577
27578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27582 SWIG_POINTER_EXCEPTION | 0)) == -1)
27583 SWIG_fail;
27584 if (arg2 == NULL) {
27585 PyErr_SetString(PyExc_TypeError,"null reference");
27586 SWIG_fail;
27587 }
27588 {
27589 PyThreadState* __tstate = wxPyBeginAllowThreads();
27590 (arg1)->Expand((wxTreeItemId const &)*arg2);
27591
27592 wxPyEndAllowThreads(__tstate);
27593 if (PyErr_Occurred()) SWIG_fail;
27594 }
27595 Py_INCREF(Py_None); resultobj = Py_None;
27596 return resultobj;
27597 fail:
27598 return NULL;
27599 }
27600
27601
27602 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) {
27603 PyObject *resultobj;
27604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27605 wxTreeItemId *arg2 = 0 ;
27606 PyObject * obj0 = 0 ;
27607 PyObject * obj1 = 0 ;
27608 char *kwnames[] = {
27609 (char *) "self",(char *) "item", NULL
27610 };
27611
27612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27615 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27616 SWIG_POINTER_EXCEPTION | 0)) == -1)
27617 SWIG_fail;
27618 if (arg2 == NULL) {
27619 PyErr_SetString(PyExc_TypeError,"null reference");
27620 SWIG_fail;
27621 }
27622 {
27623 PyThreadState* __tstate = wxPyBeginAllowThreads();
27624 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27625
27626 wxPyEndAllowThreads(__tstate);
27627 if (PyErr_Occurred()) SWIG_fail;
27628 }
27629 Py_INCREF(Py_None); resultobj = Py_None;
27630 return resultobj;
27631 fail:
27632 return NULL;
27633 }
27634
27635
27636 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) {
27637 PyObject *resultobj;
27638 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27639 wxTreeItemId *arg2 = 0 ;
27640 PyObject * obj0 = 0 ;
27641 PyObject * obj1 = 0 ;
27642 char *kwnames[] = {
27643 (char *) "self",(char *) "item", NULL
27644 };
27645
27646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27649 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27650 SWIG_POINTER_EXCEPTION | 0)) == -1)
27651 SWIG_fail;
27652 if (arg2 == NULL) {
27653 PyErr_SetString(PyExc_TypeError,"null reference");
27654 SWIG_fail;
27655 }
27656 {
27657 PyThreadState* __tstate = wxPyBeginAllowThreads();
27658 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27659
27660 wxPyEndAllowThreads(__tstate);
27661 if (PyErr_Occurred()) SWIG_fail;
27662 }
27663 Py_INCREF(Py_None); resultobj = Py_None;
27664 return resultobj;
27665 fail:
27666 return NULL;
27667 }
27668
27669
27670 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
27671 PyObject *resultobj;
27672 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27673 wxTreeItemId *arg2 = 0 ;
27674 PyObject * obj0 = 0 ;
27675 PyObject * obj1 = 0 ;
27676 char *kwnames[] = {
27677 (char *) "self",(char *) "item", NULL
27678 };
27679
27680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27683 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27684 SWIG_POINTER_EXCEPTION | 0)) == -1)
27685 SWIG_fail;
27686 if (arg2 == NULL) {
27687 PyErr_SetString(PyExc_TypeError,"null reference");
27688 SWIG_fail;
27689 }
27690 {
27691 PyThreadState* __tstate = wxPyBeginAllowThreads();
27692 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27693
27694 wxPyEndAllowThreads(__tstate);
27695 if (PyErr_Occurred()) SWIG_fail;
27696 }
27697 Py_INCREF(Py_None); resultobj = Py_None;
27698 return resultobj;
27699 fail:
27700 return NULL;
27701 }
27702
27703
27704 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) {
27705 PyObject *resultobj;
27706 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27707 PyObject * obj0 = 0 ;
27708 char *kwnames[] = {
27709 (char *) "self", NULL
27710 };
27711
27712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27715 {
27716 PyThreadState* __tstate = wxPyBeginAllowThreads();
27717 (arg1)->Unselect();
27718
27719 wxPyEndAllowThreads(__tstate);
27720 if (PyErr_Occurred()) SWIG_fail;
27721 }
27722 Py_INCREF(Py_None); resultobj = Py_None;
27723 return resultobj;
27724 fail:
27725 return NULL;
27726 }
27727
27728
27729 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) {
27730 PyObject *resultobj;
27731 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27732 wxTreeItemId *arg2 = 0 ;
27733 PyObject * obj0 = 0 ;
27734 PyObject * obj1 = 0 ;
27735 char *kwnames[] = {
27736 (char *) "self",(char *) "item", NULL
27737 };
27738
27739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27742 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27743 SWIG_POINTER_EXCEPTION | 0)) == -1)
27744 SWIG_fail;
27745 if (arg2 == NULL) {
27746 PyErr_SetString(PyExc_TypeError,"null reference");
27747 SWIG_fail;
27748 }
27749 {
27750 PyThreadState* __tstate = wxPyBeginAllowThreads();
27751 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27752
27753 wxPyEndAllowThreads(__tstate);
27754 if (PyErr_Occurred()) SWIG_fail;
27755 }
27756 Py_INCREF(Py_None); resultobj = Py_None;
27757 return resultobj;
27758 fail:
27759 return NULL;
27760 }
27761
27762
27763 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
27764 PyObject *resultobj;
27765 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27766 PyObject * obj0 = 0 ;
27767 char *kwnames[] = {
27768 (char *) "self", NULL
27769 };
27770
27771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27774 {
27775 PyThreadState* __tstate = wxPyBeginAllowThreads();
27776 (arg1)->UnselectAll();
27777
27778 wxPyEndAllowThreads(__tstate);
27779 if (PyErr_Occurred()) SWIG_fail;
27780 }
27781 Py_INCREF(Py_None); resultobj = Py_None;
27782 return resultobj;
27783 fail:
27784 return NULL;
27785 }
27786
27787
27788 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) {
27789 PyObject *resultobj;
27790 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27791 wxTreeItemId *arg2 = 0 ;
27792 bool arg3 = (bool) True ;
27793 PyObject * obj0 = 0 ;
27794 PyObject * obj1 = 0 ;
27795 PyObject * obj2 = 0 ;
27796 char *kwnames[] = {
27797 (char *) "self",(char *) "item",(char *) "select", NULL
27798 };
27799
27800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27803 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27804 SWIG_POINTER_EXCEPTION | 0)) == -1)
27805 SWIG_fail;
27806 if (arg2 == NULL) {
27807 PyErr_SetString(PyExc_TypeError,"null reference");
27808 SWIG_fail;
27809 }
27810 if (obj2) {
27811 arg3 = (bool)SWIG_As_bool(obj2);
27812 if (PyErr_Occurred()) SWIG_fail;
27813 }
27814 {
27815 PyThreadState* __tstate = wxPyBeginAllowThreads();
27816 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27817
27818 wxPyEndAllowThreads(__tstate);
27819 if (PyErr_Occurred()) SWIG_fail;
27820 }
27821 Py_INCREF(Py_None); resultobj = Py_None;
27822 return resultobj;
27823 fail:
27824 return NULL;
27825 }
27826
27827
27828 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) {
27829 PyObject *resultobj;
27830 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27831 wxTreeItemId *arg2 = 0 ;
27832 PyObject * obj0 = 0 ;
27833 PyObject * obj1 = 0 ;
27834 char *kwnames[] = {
27835 (char *) "self",(char *) "item", NULL
27836 };
27837
27838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27841 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27842 SWIG_POINTER_EXCEPTION | 0)) == -1)
27843 SWIG_fail;
27844 if (arg2 == NULL) {
27845 PyErr_SetString(PyExc_TypeError,"null reference");
27846 SWIG_fail;
27847 }
27848 {
27849 PyThreadState* __tstate = wxPyBeginAllowThreads();
27850 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27851
27852 wxPyEndAllowThreads(__tstate);
27853 if (PyErr_Occurred()) SWIG_fail;
27854 }
27855 Py_INCREF(Py_None); resultobj = Py_None;
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27863 PyObject *resultobj;
27864 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27865 wxTreeItemId *arg2 = 0 ;
27866 PyObject * obj0 = 0 ;
27867 PyObject * obj1 = 0 ;
27868 char *kwnames[] = {
27869 (char *) "self",(char *) "item", NULL
27870 };
27871
27872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27875 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27876 SWIG_POINTER_EXCEPTION | 0)) == -1)
27877 SWIG_fail;
27878 if (arg2 == NULL) {
27879 PyErr_SetString(PyExc_TypeError,"null reference");
27880 SWIG_fail;
27881 }
27882 {
27883 PyThreadState* __tstate = wxPyBeginAllowThreads();
27884 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27885
27886 wxPyEndAllowThreads(__tstate);
27887 if (PyErr_Occurred()) SWIG_fail;
27888 }
27889 Py_INCREF(Py_None); resultobj = Py_None;
27890 return resultobj;
27891 fail:
27892 return NULL;
27893 }
27894
27895
27896 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) {
27897 PyObject *resultobj;
27898 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27899 wxTreeItemId *arg2 = 0 ;
27900 PyObject * obj0 = 0 ;
27901 PyObject * obj1 = 0 ;
27902 char *kwnames[] = {
27903 (char *) "self",(char *) "item", NULL
27904 };
27905
27906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27909 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27910 SWIG_POINTER_EXCEPTION | 0)) == -1)
27911 SWIG_fail;
27912 if (arg2 == NULL) {
27913 PyErr_SetString(PyExc_TypeError,"null reference");
27914 SWIG_fail;
27915 }
27916 {
27917 PyThreadState* __tstate = wxPyBeginAllowThreads();
27918 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27919
27920 wxPyEndAllowThreads(__tstate);
27921 if (PyErr_Occurred()) SWIG_fail;
27922 }
27923 Py_INCREF(Py_None); resultobj = Py_None;
27924 return resultobj;
27925 fail:
27926 return NULL;
27927 }
27928
27929
27930 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
27931 PyObject *resultobj;
27932 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27933 wxTreeItemId *arg2 = 0 ;
27934 PyObject * obj0 = 0 ;
27935 PyObject * obj1 = 0 ;
27936 char *kwnames[] = {
27937 (char *) "self",(char *) "item", NULL
27938 };
27939
27940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27943 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27944 SWIG_POINTER_EXCEPTION | 0)) == -1)
27945 SWIG_fail;
27946 if (arg2 == NULL) {
27947 PyErr_SetString(PyExc_TypeError,"null reference");
27948 SWIG_fail;
27949 }
27950 {
27951 PyThreadState* __tstate = wxPyBeginAllowThreads();
27952 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27953
27954 wxPyEndAllowThreads(__tstate);
27955 if (PyErr_Occurred()) SWIG_fail;
27956 }
27957 Py_INCREF(Py_None); resultobj = Py_None;
27958 return resultobj;
27959 fail:
27960 return NULL;
27961 }
27962
27963
27964 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
27965 PyObject *resultobj;
27966 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27967 wxTextCtrl *result;
27968 PyObject * obj0 = 0 ;
27969 char *kwnames[] = {
27970 (char *) "self", NULL
27971 };
27972
27973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27976 {
27977 PyThreadState* __tstate = wxPyBeginAllowThreads();
27978 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27979
27980 wxPyEndAllowThreads(__tstate);
27981 if (PyErr_Occurred()) SWIG_fail;
27982 }
27983 {
27984 resultobj = wxPyMake_wxObject(result, 0);
27985 }
27986 return resultobj;
27987 fail:
27988 return NULL;
27989 }
27990
27991
27992 static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
27993 PyObject *resultobj;
27994 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27995 wxTreeItemId *arg2 = 0 ;
27996 bool arg3 = (bool) False ;
27997 PyObject * obj0 = 0 ;
27998 PyObject * obj1 = 0 ;
27999 PyObject * obj2 = 0 ;
28000 char *kwnames[] = {
28001 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
28002 };
28003
28004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
28005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28007 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28008 SWIG_POINTER_EXCEPTION | 0)) == -1)
28009 SWIG_fail;
28010 if (arg2 == NULL) {
28011 PyErr_SetString(PyExc_TypeError,"null reference");
28012 SWIG_fail;
28013 }
28014 if (obj2) {
28015 arg3 = (bool)SWIG_As_bool(obj2);
28016 if (PyErr_Occurred()) SWIG_fail;
28017 }
28018 {
28019 PyThreadState* __tstate = wxPyBeginAllowThreads();
28020 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
28021
28022 wxPyEndAllowThreads(__tstate);
28023 if (PyErr_Occurred()) SWIG_fail;
28024 }
28025 Py_INCREF(Py_None); resultobj = Py_None;
28026 return resultobj;
28027 fail:
28028 return NULL;
28029 }
28030
28031
28032 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) {
28033 PyObject *resultobj;
28034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28035 wxTreeItemId *arg2 = 0 ;
28036 PyObject * obj0 = 0 ;
28037 PyObject * obj1 = 0 ;
28038 char *kwnames[] = {
28039 (char *) "self",(char *) "item", NULL
28040 };
28041
28042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
28043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28046 SWIG_POINTER_EXCEPTION | 0)) == -1)
28047 SWIG_fail;
28048 if (arg2 == NULL) {
28049 PyErr_SetString(PyExc_TypeError,"null reference");
28050 SWIG_fail;
28051 }
28052 {
28053 PyThreadState* __tstate = wxPyBeginAllowThreads();
28054 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
28055
28056 wxPyEndAllowThreads(__tstate);
28057 if (PyErr_Occurred()) SWIG_fail;
28058 }
28059 Py_INCREF(Py_None); resultobj = Py_None;
28060 return resultobj;
28061 fail:
28062 return NULL;
28063 }
28064
28065
28066 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
28067 PyObject *resultobj;
28068 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28069 wxPoint *arg2 = 0 ;
28070 int *arg3 = 0 ;
28071 wxTreeItemId result;
28072 wxPoint temp2 ;
28073 int temp3 ;
28074 int res3 = 0 ;
28075 PyObject * obj0 = 0 ;
28076 PyObject * obj1 = 0 ;
28077 char *kwnames[] = {
28078 (char *) "self",(char *) "point", NULL
28079 };
28080
28081 arg3 = &temp3; res3 = SWIG_NEWOBJ;
28082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
28083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28085 {
28086 arg2 = &temp2;
28087 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28088 }
28089 {
28090 PyThreadState* __tstate = wxPyBeginAllowThreads();
28091 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
28092
28093 wxPyEndAllowThreads(__tstate);
28094 if (PyErr_Occurred()) SWIG_fail;
28095 }
28096 {
28097 wxTreeItemId * resultptr;
28098 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28099 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28100 }
28101 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
28102 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
28103 return resultobj;
28104 fail:
28105 return NULL;
28106 }
28107
28108
28109 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) {
28110 PyObject *resultobj;
28111 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28112 wxTreeItemId *arg2 = 0 ;
28113 bool arg3 = (bool) False ;
28114 PyObject *result;
28115 PyObject * obj0 = 0 ;
28116 PyObject * obj1 = 0 ;
28117 PyObject * obj2 = 0 ;
28118 char *kwnames[] = {
28119 (char *) "self",(char *) "item",(char *) "textOnly", NULL
28120 };
28121
28122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
28123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28125 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28126 SWIG_POINTER_EXCEPTION | 0)) == -1)
28127 SWIG_fail;
28128 if (arg2 == NULL) {
28129 PyErr_SetString(PyExc_TypeError,"null reference");
28130 SWIG_fail;
28131 }
28132 if (obj2) {
28133 arg3 = (bool)SWIG_As_bool(obj2);
28134 if (PyErr_Occurred()) SWIG_fail;
28135 }
28136 {
28137 PyThreadState* __tstate = wxPyBeginAllowThreads();
28138 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
28139
28140 wxPyEndAllowThreads(__tstate);
28141 if (PyErr_Occurred()) SWIG_fail;
28142 }
28143 resultobj = result;
28144 return resultobj;
28145 fail:
28146 return NULL;
28147 }
28148
28149
28150 static PyObject *_wrap_TreeCtrl_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
28151 PyObject *resultobj;
28152 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28153 wxTreeItemId *arg2 = 0 ;
28154 int arg3 ;
28155 PyObject * obj0 = 0 ;
28156 PyObject * obj1 = 0 ;
28157 PyObject * obj2 = 0 ;
28158 char *kwnames[] = {
28159 (char *) "self",(char *) "node",(char *) "state", NULL
28160 };
28161
28162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) goto fail;
28163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28165 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28166 SWIG_POINTER_EXCEPTION | 0)) == -1)
28167 SWIG_fail;
28168 if (arg2 == NULL) {
28169 PyErr_SetString(PyExc_TypeError,"null reference");
28170 SWIG_fail;
28171 }
28172 arg3 = (int)SWIG_As_int(obj2);
28173 if (PyErr_Occurred()) SWIG_fail;
28174 {
28175 PyThreadState* __tstate = wxPyBeginAllowThreads();
28176 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
28177
28178 wxPyEndAllowThreads(__tstate);
28179 if (PyErr_Occurred()) SWIG_fail;
28180 }
28181 Py_INCREF(Py_None); resultobj = Py_None;
28182 return resultobj;
28183 fail:
28184 return NULL;
28185 }
28186
28187
28188 static PyObject *_wrap_TreeCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
28189 PyObject *resultobj;
28190 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28191 wxTreeItemId *arg2 = 0 ;
28192 int result;
28193 PyObject * obj0 = 0 ;
28194 PyObject * obj1 = 0 ;
28195 char *kwnames[] = {
28196 (char *) "self",(char *) "node", NULL
28197 };
28198
28199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) goto fail;
28200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28203 SWIG_POINTER_EXCEPTION | 0)) == -1)
28204 SWIG_fail;
28205 if (arg2 == NULL) {
28206 PyErr_SetString(PyExc_TypeError,"null reference");
28207 SWIG_fail;
28208 }
28209 {
28210 PyThreadState* __tstate = wxPyBeginAllowThreads();
28211 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
28212
28213 wxPyEndAllowThreads(__tstate);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 resultobj = SWIG_From_int((int)result);
28217 return resultobj;
28218 fail:
28219 return NULL;
28220 }
28221
28222
28223 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
28224 PyObject *resultobj;
28225 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
28226 wxVisualAttributes result;
28227 PyObject * obj0 = 0 ;
28228 char *kwnames[] = {
28229 (char *) "variant", NULL
28230 };
28231
28232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
28233 if (obj0) {
28234 arg1 = (int)SWIG_As_int(obj0);
28235 if (PyErr_Occurred()) SWIG_fail;
28236 }
28237 {
28238 if (!wxPyCheckForApp()) SWIG_fail;
28239 PyThreadState* __tstate = wxPyBeginAllowThreads();
28240 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
28241
28242 wxPyEndAllowThreads(__tstate);
28243 if (PyErr_Occurred()) SWIG_fail;
28244 }
28245 {
28246 wxVisualAttributes * resultptr;
28247 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
28248 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
28249 }
28250 return resultobj;
28251 fail:
28252 return NULL;
28253 }
28254
28255
28256 static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) {
28257 PyObject *obj;
28258 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28259 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
28260 Py_INCREF(obj);
28261 return Py_BuildValue((char *)"");
28262 }
28263 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
28264 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
28265 return 1;
28266 }
28267
28268
28269 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
28270 PyObject *pyobj;
28271
28272 {
28273 #if wxUSE_UNICODE
28274 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28275 #else
28276 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28277 #endif
28278 }
28279 return pyobj;
28280 }
28281
28282
28283 static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28284 PyObject *resultobj;
28285 wxWindow *arg1 = (wxWindow *) 0 ;
28286 int arg2 = (int) (int)-1 ;
28287 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
28288 wxString *arg3 = (wxString *) &arg3_defvalue ;
28289 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28290 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28291 wxSize const &arg5_defvalue = wxDefaultSize ;
28292 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28293 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28294 wxString const &arg7_defvalue = wxPyEmptyString ;
28295 wxString *arg7 = (wxString *) &arg7_defvalue ;
28296 int arg8 = (int) 0 ;
28297 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
28298 wxString *arg9 = (wxString *) &arg9_defvalue ;
28299 wxGenericDirCtrl *result;
28300 bool temp3 = False ;
28301 wxPoint temp4 ;
28302 wxSize temp5 ;
28303 bool temp7 = False ;
28304 bool temp9 = False ;
28305 PyObject * obj0 = 0 ;
28306 PyObject * obj1 = 0 ;
28307 PyObject * obj2 = 0 ;
28308 PyObject * obj3 = 0 ;
28309 PyObject * obj4 = 0 ;
28310 PyObject * obj5 = 0 ;
28311 PyObject * obj6 = 0 ;
28312 PyObject * obj7 = 0 ;
28313 PyObject * obj8 = 0 ;
28314 char *kwnames[] = {
28315 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28316 };
28317
28318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
28319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28321 if (obj1) {
28322 arg2 = (int)SWIG_As_int(obj1);
28323 if (PyErr_Occurred()) SWIG_fail;
28324 }
28325 if (obj2) {
28326 {
28327 arg3 = wxString_in_helper(obj2);
28328 if (arg3 == NULL) SWIG_fail;
28329 temp3 = True;
28330 }
28331 }
28332 if (obj3) {
28333 {
28334 arg4 = &temp4;
28335 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28336 }
28337 }
28338 if (obj4) {
28339 {
28340 arg5 = &temp5;
28341 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28342 }
28343 }
28344 if (obj5) {
28345 arg6 = (long)SWIG_As_long(obj5);
28346 if (PyErr_Occurred()) SWIG_fail;
28347 }
28348 if (obj6) {
28349 {
28350 arg7 = wxString_in_helper(obj6);
28351 if (arg7 == NULL) SWIG_fail;
28352 temp7 = True;
28353 }
28354 }
28355 if (obj7) {
28356 arg8 = (int)SWIG_As_int(obj7);
28357 if (PyErr_Occurred()) SWIG_fail;
28358 }
28359 if (obj8) {
28360 {
28361 arg9 = wxString_in_helper(obj8);
28362 if (arg9 == NULL) SWIG_fail;
28363 temp9 = True;
28364 }
28365 }
28366 {
28367 if (!wxPyCheckForApp()) SWIG_fail;
28368 PyThreadState* __tstate = wxPyBeginAllowThreads();
28369 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
28370
28371 wxPyEndAllowThreads(__tstate);
28372 if (PyErr_Occurred()) SWIG_fail;
28373 }
28374 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28375 {
28376 if (temp3)
28377 delete arg3;
28378 }
28379 {
28380 if (temp7)
28381 delete arg7;
28382 }
28383 {
28384 if (temp9)
28385 delete arg9;
28386 }
28387 return resultobj;
28388 fail:
28389 {
28390 if (temp3)
28391 delete arg3;
28392 }
28393 {
28394 if (temp7)
28395 delete arg7;
28396 }
28397 {
28398 if (temp9)
28399 delete arg9;
28400 }
28401 return NULL;
28402 }
28403
28404
28405 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28406 PyObject *resultobj;
28407 wxGenericDirCtrl *result;
28408 char *kwnames[] = {
28409 NULL
28410 };
28411
28412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
28413 {
28414 if (!wxPyCheckForApp()) SWIG_fail;
28415 PyThreadState* __tstate = wxPyBeginAllowThreads();
28416 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
28417
28418 wxPyEndAllowThreads(__tstate);
28419 if (PyErr_Occurred()) SWIG_fail;
28420 }
28421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28422 return resultobj;
28423 fail:
28424 return NULL;
28425 }
28426
28427
28428 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28429 PyObject *resultobj;
28430 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28431 wxWindow *arg2 = (wxWindow *) 0 ;
28432 int arg3 = (int) (int)-1 ;
28433 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28434 wxString *arg4 = (wxString *) &arg4_defvalue ;
28435 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28436 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28437 wxSize const &arg6_defvalue = wxDefaultSize ;
28438 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28439 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28440 wxString const &arg8_defvalue = wxPyEmptyString ;
28441 wxString *arg8 = (wxString *) &arg8_defvalue ;
28442 int arg9 = (int) 0 ;
28443 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28444 wxString *arg10 = (wxString *) &arg10_defvalue ;
28445 bool result;
28446 bool temp4 = False ;
28447 wxPoint temp5 ;
28448 wxSize temp6 ;
28449 bool temp8 = False ;
28450 bool temp10 = False ;
28451 PyObject * obj0 = 0 ;
28452 PyObject * obj1 = 0 ;
28453 PyObject * obj2 = 0 ;
28454 PyObject * obj3 = 0 ;
28455 PyObject * obj4 = 0 ;
28456 PyObject * obj5 = 0 ;
28457 PyObject * obj6 = 0 ;
28458 PyObject * obj7 = 0 ;
28459 PyObject * obj8 = 0 ;
28460 PyObject * obj9 = 0 ;
28461 char *kwnames[] = {
28462 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28463 };
28464
28465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28468 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28470 if (obj2) {
28471 arg3 = (int)SWIG_As_int(obj2);
28472 if (PyErr_Occurred()) SWIG_fail;
28473 }
28474 if (obj3) {
28475 {
28476 arg4 = wxString_in_helper(obj3);
28477 if (arg4 == NULL) SWIG_fail;
28478 temp4 = True;
28479 }
28480 }
28481 if (obj4) {
28482 {
28483 arg5 = &temp5;
28484 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28485 }
28486 }
28487 if (obj5) {
28488 {
28489 arg6 = &temp6;
28490 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28491 }
28492 }
28493 if (obj6) {
28494 arg7 = (long)SWIG_As_long(obj6);
28495 if (PyErr_Occurred()) SWIG_fail;
28496 }
28497 if (obj7) {
28498 {
28499 arg8 = wxString_in_helper(obj7);
28500 if (arg8 == NULL) SWIG_fail;
28501 temp8 = True;
28502 }
28503 }
28504 if (obj8) {
28505 arg9 = (int)SWIG_As_int(obj8);
28506 if (PyErr_Occurred()) SWIG_fail;
28507 }
28508 if (obj9) {
28509 {
28510 arg10 = wxString_in_helper(obj9);
28511 if (arg10 == NULL) SWIG_fail;
28512 temp10 = True;
28513 }
28514 }
28515 {
28516 PyThreadState* __tstate = wxPyBeginAllowThreads();
28517 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28518
28519 wxPyEndAllowThreads(__tstate);
28520 if (PyErr_Occurred()) SWIG_fail;
28521 }
28522 {
28523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28524 }
28525 {
28526 if (temp4)
28527 delete arg4;
28528 }
28529 {
28530 if (temp8)
28531 delete arg8;
28532 }
28533 {
28534 if (temp10)
28535 delete arg10;
28536 }
28537 return resultobj;
28538 fail:
28539 {
28540 if (temp4)
28541 delete arg4;
28542 }
28543 {
28544 if (temp8)
28545 delete arg8;
28546 }
28547 {
28548 if (temp10)
28549 delete arg10;
28550 }
28551 return NULL;
28552 }
28553
28554
28555 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) {
28556 PyObject *resultobj;
28557 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28558 wxString *arg2 = 0 ;
28559 bool result;
28560 bool temp2 = False ;
28561 PyObject * obj0 = 0 ;
28562 PyObject * obj1 = 0 ;
28563 char *kwnames[] = {
28564 (char *) "self",(char *) "path", NULL
28565 };
28566
28567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28570 {
28571 arg2 = wxString_in_helper(obj1);
28572 if (arg2 == NULL) SWIG_fail;
28573 temp2 = True;
28574 }
28575 {
28576 PyThreadState* __tstate = wxPyBeginAllowThreads();
28577 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28578
28579 wxPyEndAllowThreads(__tstate);
28580 if (PyErr_Occurred()) SWIG_fail;
28581 }
28582 {
28583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28584 }
28585 {
28586 if (temp2)
28587 delete arg2;
28588 }
28589 return resultobj;
28590 fail:
28591 {
28592 if (temp2)
28593 delete arg2;
28594 }
28595 return NULL;
28596 }
28597
28598
28599 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28600 PyObject *resultobj;
28601 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28602 wxString result;
28603 PyObject * obj0 = 0 ;
28604 char *kwnames[] = {
28605 (char *) "self", NULL
28606 };
28607
28608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28611 {
28612 PyThreadState* __tstate = wxPyBeginAllowThreads();
28613 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28614
28615 wxPyEndAllowThreads(__tstate);
28616 if (PyErr_Occurred()) SWIG_fail;
28617 }
28618 {
28619 #if wxUSE_UNICODE
28620 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28621 #else
28622 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28623 #endif
28624 }
28625 return resultobj;
28626 fail:
28627 return NULL;
28628 }
28629
28630
28631 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28632 PyObject *resultobj;
28633 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28634 wxString *arg2 = 0 ;
28635 bool temp2 = False ;
28636 PyObject * obj0 = 0 ;
28637 PyObject * obj1 = 0 ;
28638 char *kwnames[] = {
28639 (char *) "self",(char *) "path", NULL
28640 };
28641
28642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28645 {
28646 arg2 = wxString_in_helper(obj1);
28647 if (arg2 == NULL) SWIG_fail;
28648 temp2 = True;
28649 }
28650 {
28651 PyThreadState* __tstate = wxPyBeginAllowThreads();
28652 (arg1)->SetDefaultPath((wxString const &)*arg2);
28653
28654 wxPyEndAllowThreads(__tstate);
28655 if (PyErr_Occurred()) SWIG_fail;
28656 }
28657 Py_INCREF(Py_None); resultobj = Py_None;
28658 {
28659 if (temp2)
28660 delete arg2;
28661 }
28662 return resultobj;
28663 fail:
28664 {
28665 if (temp2)
28666 delete arg2;
28667 }
28668 return NULL;
28669 }
28670
28671
28672 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28673 PyObject *resultobj;
28674 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28675 wxString result;
28676 PyObject * obj0 = 0 ;
28677 char *kwnames[] = {
28678 (char *) "self", NULL
28679 };
28680
28681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28684 {
28685 PyThreadState* __tstate = wxPyBeginAllowThreads();
28686 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28687
28688 wxPyEndAllowThreads(__tstate);
28689 if (PyErr_Occurred()) SWIG_fail;
28690 }
28691 {
28692 #if wxUSE_UNICODE
28693 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28694 #else
28695 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28696 #endif
28697 }
28698 return resultobj;
28699 fail:
28700 return NULL;
28701 }
28702
28703
28704 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) {
28705 PyObject *resultobj;
28706 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28707 wxString result;
28708 PyObject * obj0 = 0 ;
28709 char *kwnames[] = {
28710 (char *) "self", NULL
28711 };
28712
28713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28716 {
28717 PyThreadState* __tstate = wxPyBeginAllowThreads();
28718 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28719
28720 wxPyEndAllowThreads(__tstate);
28721 if (PyErr_Occurred()) SWIG_fail;
28722 }
28723 {
28724 #if wxUSE_UNICODE
28725 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28726 #else
28727 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28728 #endif
28729 }
28730 return resultobj;
28731 fail:
28732 return NULL;
28733 }
28734
28735
28736 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28737 PyObject *resultobj;
28738 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28739 wxString *arg2 = 0 ;
28740 bool temp2 = False ;
28741 PyObject * obj0 = 0 ;
28742 PyObject * obj1 = 0 ;
28743 char *kwnames[] = {
28744 (char *) "self",(char *) "path", NULL
28745 };
28746
28747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28750 {
28751 arg2 = wxString_in_helper(obj1);
28752 if (arg2 == NULL) SWIG_fail;
28753 temp2 = True;
28754 }
28755 {
28756 PyThreadState* __tstate = wxPyBeginAllowThreads();
28757 (arg1)->SetPath((wxString const &)*arg2);
28758
28759 wxPyEndAllowThreads(__tstate);
28760 if (PyErr_Occurred()) SWIG_fail;
28761 }
28762 Py_INCREF(Py_None); resultobj = Py_None;
28763 {
28764 if (temp2)
28765 delete arg2;
28766 }
28767 return resultobj;
28768 fail:
28769 {
28770 if (temp2)
28771 delete arg2;
28772 }
28773 return NULL;
28774 }
28775
28776
28777 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
28778 PyObject *resultobj;
28779 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28780 bool arg2 ;
28781 PyObject * obj0 = 0 ;
28782 PyObject * obj1 = 0 ;
28783 char *kwnames[] = {
28784 (char *) "self",(char *) "show", NULL
28785 };
28786
28787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28790 arg2 = (bool)SWIG_As_bool(obj1);
28791 if (PyErr_Occurred()) SWIG_fail;
28792 {
28793 PyThreadState* __tstate = wxPyBeginAllowThreads();
28794 (arg1)->ShowHidden(arg2);
28795
28796 wxPyEndAllowThreads(__tstate);
28797 if (PyErr_Occurred()) SWIG_fail;
28798 }
28799 Py_INCREF(Py_None); resultobj = Py_None;
28800 return resultobj;
28801 fail:
28802 return NULL;
28803 }
28804
28805
28806 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
28807 PyObject *resultobj;
28808 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28809 bool result;
28810 PyObject * obj0 = 0 ;
28811 char *kwnames[] = {
28812 (char *) "self", NULL
28813 };
28814
28815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28818 {
28819 PyThreadState* __tstate = wxPyBeginAllowThreads();
28820 result = (bool)(arg1)->GetShowHidden();
28821
28822 wxPyEndAllowThreads(__tstate);
28823 if (PyErr_Occurred()) SWIG_fail;
28824 }
28825 {
28826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28827 }
28828 return resultobj;
28829 fail:
28830 return NULL;
28831 }
28832
28833
28834 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
28835 PyObject *resultobj;
28836 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28837 wxString result;
28838 PyObject * obj0 = 0 ;
28839 char *kwnames[] = {
28840 (char *) "self", NULL
28841 };
28842
28843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28846 {
28847 PyThreadState* __tstate = wxPyBeginAllowThreads();
28848 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28849
28850 wxPyEndAllowThreads(__tstate);
28851 if (PyErr_Occurred()) SWIG_fail;
28852 }
28853 {
28854 #if wxUSE_UNICODE
28855 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28856 #else
28857 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28858 #endif
28859 }
28860 return resultobj;
28861 fail:
28862 return NULL;
28863 }
28864
28865
28866 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
28867 PyObject *resultobj;
28868 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28869 wxString *arg2 = 0 ;
28870 bool temp2 = False ;
28871 PyObject * obj0 = 0 ;
28872 PyObject * obj1 = 0 ;
28873 char *kwnames[] = {
28874 (char *) "self",(char *) "filter", NULL
28875 };
28876
28877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28880 {
28881 arg2 = wxString_in_helper(obj1);
28882 if (arg2 == NULL) SWIG_fail;
28883 temp2 = True;
28884 }
28885 {
28886 PyThreadState* __tstate = wxPyBeginAllowThreads();
28887 (arg1)->SetFilter((wxString const &)*arg2);
28888
28889 wxPyEndAllowThreads(__tstate);
28890 if (PyErr_Occurred()) SWIG_fail;
28891 }
28892 Py_INCREF(Py_None); resultobj = Py_None;
28893 {
28894 if (temp2)
28895 delete arg2;
28896 }
28897 return resultobj;
28898 fail:
28899 {
28900 if (temp2)
28901 delete arg2;
28902 }
28903 return NULL;
28904 }
28905
28906
28907 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
28908 PyObject *resultobj;
28909 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28910 int result;
28911 PyObject * obj0 = 0 ;
28912 char *kwnames[] = {
28913 (char *) "self", NULL
28914 };
28915
28916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28919 {
28920 PyThreadState* __tstate = wxPyBeginAllowThreads();
28921 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28922
28923 wxPyEndAllowThreads(__tstate);
28924 if (PyErr_Occurred()) SWIG_fail;
28925 }
28926 resultobj = SWIG_From_int((int)result);
28927 return resultobj;
28928 fail:
28929 return NULL;
28930 }
28931
28932
28933 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
28934 PyObject *resultobj;
28935 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28936 int arg2 ;
28937 PyObject * obj0 = 0 ;
28938 PyObject * obj1 = 0 ;
28939 char *kwnames[] = {
28940 (char *) "self",(char *) "n", NULL
28941 };
28942
28943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28946 arg2 = (int)SWIG_As_int(obj1);
28947 if (PyErr_Occurred()) SWIG_fail;
28948 {
28949 PyThreadState* __tstate = wxPyBeginAllowThreads();
28950 (arg1)->SetFilterIndex(arg2);
28951
28952 wxPyEndAllowThreads(__tstate);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 Py_INCREF(Py_None); resultobj = Py_None;
28956 return resultobj;
28957 fail:
28958 return NULL;
28959 }
28960
28961
28962 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) {
28963 PyObject *resultobj;
28964 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28965 wxTreeItemId result;
28966 PyObject * obj0 = 0 ;
28967 char *kwnames[] = {
28968 (char *) "self", NULL
28969 };
28970
28971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28974 {
28975 PyThreadState* __tstate = wxPyBeginAllowThreads();
28976 result = (arg1)->GetRootId();
28977
28978 wxPyEndAllowThreads(__tstate);
28979 if (PyErr_Occurred()) SWIG_fail;
28980 }
28981 {
28982 wxTreeItemId * resultptr;
28983 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28984 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28985 }
28986 return resultobj;
28987 fail:
28988 return NULL;
28989 }
28990
28991
28992 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28993 PyObject *resultobj;
28994 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28995 wxPyTreeCtrl *result;
28996 PyObject * obj0 = 0 ;
28997 char *kwnames[] = {
28998 (char *) "self", NULL
28999 };
29000
29001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
29002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29004 {
29005 PyThreadState* __tstate = wxPyBeginAllowThreads();
29006 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
29007
29008 wxPyEndAllowThreads(__tstate);
29009 if (PyErr_Occurred()) SWIG_fail;
29010 }
29011 {
29012 resultobj = wxPyMake_wxObject(result, 0);
29013 }
29014 return resultobj;
29015 fail:
29016 return NULL;
29017 }
29018
29019
29020 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29021 PyObject *resultobj;
29022 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29023 wxDirFilterListCtrl *result;
29024 PyObject * obj0 = 0 ;
29025 char *kwnames[] = {
29026 (char *) "self", NULL
29027 };
29028
29029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
29030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29032 {
29033 PyThreadState* __tstate = wxPyBeginAllowThreads();
29034 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
29035
29036 wxPyEndAllowThreads(__tstate);
29037 if (PyErr_Occurred()) SWIG_fail;
29038 }
29039 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
29040 return resultobj;
29041 fail:
29042 return NULL;
29043 }
29044
29045
29046 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) {
29047 PyObject *resultobj;
29048 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29049 wxTreeItemId arg2 ;
29050 wxString *arg3 = 0 ;
29051 bool *arg4 = 0 ;
29052 wxTreeItemId result;
29053 wxTreeItemId *argp2 ;
29054 bool temp3 = False ;
29055 bool temp4 ;
29056 int res4 = 0 ;
29057 PyObject * obj0 = 0 ;
29058 PyObject * obj1 = 0 ;
29059 PyObject * obj2 = 0 ;
29060 char *kwnames[] = {
29061 (char *) "self",(char *) "parentId",(char *) "path", NULL
29062 };
29063
29064 arg4 = &temp4; res4 = SWIG_NEWOBJ;
29065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
29066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29068 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
29069 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
29070 arg2 = *argp2;
29071 {
29072 arg3 = wxString_in_helper(obj2);
29073 if (arg3 == NULL) SWIG_fail;
29074 temp3 = True;
29075 }
29076 {
29077 PyThreadState* __tstate = wxPyBeginAllowThreads();
29078 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
29079
29080 wxPyEndAllowThreads(__tstate);
29081 if (PyErr_Occurred()) SWIG_fail;
29082 }
29083 {
29084 wxTreeItemId * resultptr;
29085 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29086 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29087 }
29088 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
29089 SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0)));
29090 {
29091 if (temp3)
29092 delete arg3;
29093 }
29094 return resultobj;
29095 fail:
29096 {
29097 if (temp3)
29098 delete arg3;
29099 }
29100 return NULL;
29101 }
29102
29103
29104 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) {
29105 PyObject *resultobj;
29106 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29107 PyObject * obj0 = 0 ;
29108 char *kwnames[] = {
29109 (char *) "self", NULL
29110 };
29111
29112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
29113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29115 {
29116 PyThreadState* __tstate = wxPyBeginAllowThreads();
29117 (arg1)->DoResize();
29118
29119 wxPyEndAllowThreads(__tstate);
29120 if (PyErr_Occurred()) SWIG_fail;
29121 }
29122 Py_INCREF(Py_None); resultobj = Py_None;
29123 return resultobj;
29124 fail:
29125 return NULL;
29126 }
29127
29128
29129 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) {
29130 PyObject *resultobj;
29131 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29132 PyObject * obj0 = 0 ;
29133 char *kwnames[] = {
29134 (char *) "self", NULL
29135 };
29136
29137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
29138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29140 {
29141 PyThreadState* __tstate = wxPyBeginAllowThreads();
29142 (arg1)->ReCreateTree();
29143
29144 wxPyEndAllowThreads(__tstate);
29145 if (PyErr_Occurred()) SWIG_fail;
29146 }
29147 Py_INCREF(Py_None); resultobj = Py_None;
29148 return resultobj;
29149 fail:
29150 return NULL;
29151 }
29152
29153
29154 static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) {
29155 PyObject *obj;
29156 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29157 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
29158 Py_INCREF(obj);
29159 return Py_BuildValue((char *)"");
29160 }
29161 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29162 PyObject *resultobj;
29163 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29164 int arg2 = (int) (int)-1 ;
29165 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29166 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29167 wxSize const &arg4_defvalue = wxDefaultSize ;
29168 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29169 long arg5 = (long) 0 ;
29170 wxDirFilterListCtrl *result;
29171 wxPoint temp3 ;
29172 wxSize temp4 ;
29173 PyObject * obj0 = 0 ;
29174 PyObject * obj1 = 0 ;
29175 PyObject * obj2 = 0 ;
29176 PyObject * obj3 = 0 ;
29177 PyObject * obj4 = 0 ;
29178 char *kwnames[] = {
29179 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29180 };
29181
29182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29185 if (obj1) {
29186 arg2 = (int)SWIG_As_int(obj1);
29187 if (PyErr_Occurred()) SWIG_fail;
29188 }
29189 if (obj2) {
29190 {
29191 arg3 = &temp3;
29192 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29193 }
29194 }
29195 if (obj3) {
29196 {
29197 arg4 = &temp4;
29198 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29199 }
29200 }
29201 if (obj4) {
29202 arg5 = (long)SWIG_As_long(obj4);
29203 if (PyErr_Occurred()) SWIG_fail;
29204 }
29205 {
29206 if (!wxPyCheckForApp()) SWIG_fail;
29207 PyThreadState* __tstate = wxPyBeginAllowThreads();
29208 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
29209
29210 wxPyEndAllowThreads(__tstate);
29211 if (PyErr_Occurred()) SWIG_fail;
29212 }
29213 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29214 return resultobj;
29215 fail:
29216 return NULL;
29217 }
29218
29219
29220 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29221 PyObject *resultobj;
29222 wxDirFilterListCtrl *result;
29223 char *kwnames[] = {
29224 NULL
29225 };
29226
29227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
29228 {
29229 if (!wxPyCheckForApp()) SWIG_fail;
29230 PyThreadState* __tstate = wxPyBeginAllowThreads();
29231 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
29232
29233 wxPyEndAllowThreads(__tstate);
29234 if (PyErr_Occurred()) SWIG_fail;
29235 }
29236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29237 return resultobj;
29238 fail:
29239 return NULL;
29240 }
29241
29242
29243 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
29244 PyObject *resultobj;
29245 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29246 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
29247 int arg3 = (int) (int)-1 ;
29248 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29249 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29250 wxSize const &arg5_defvalue = wxDefaultSize ;
29251 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29252 long arg6 = (long) 0 ;
29253 bool result;
29254 wxPoint temp4 ;
29255 wxSize temp5 ;
29256 PyObject * obj0 = 0 ;
29257 PyObject * obj1 = 0 ;
29258 PyObject * obj2 = 0 ;
29259 PyObject * obj3 = 0 ;
29260 PyObject * obj4 = 0 ;
29261 PyObject * obj5 = 0 ;
29262 char *kwnames[] = {
29263 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29264 };
29265
29266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29269 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
29270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29271 if (obj2) {
29272 arg3 = (int)SWIG_As_int(obj2);
29273 if (PyErr_Occurred()) SWIG_fail;
29274 }
29275 if (obj3) {
29276 {
29277 arg4 = &temp4;
29278 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29279 }
29280 }
29281 if (obj4) {
29282 {
29283 arg5 = &temp5;
29284 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29285 }
29286 }
29287 if (obj5) {
29288 arg6 = (long)SWIG_As_long(obj5);
29289 if (PyErr_Occurred()) SWIG_fail;
29290 }
29291 {
29292 PyThreadState* __tstate = wxPyBeginAllowThreads();
29293 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
29294
29295 wxPyEndAllowThreads(__tstate);
29296 if (PyErr_Occurred()) SWIG_fail;
29297 }
29298 {
29299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29300 }
29301 return resultobj;
29302 fail:
29303 return NULL;
29304 }
29305
29306
29307 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) {
29308 PyObject *resultobj;
29309 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29310 wxString *arg2 = 0 ;
29311 int arg3 ;
29312 bool temp2 = False ;
29313 PyObject * obj0 = 0 ;
29314 PyObject * obj1 = 0 ;
29315 PyObject * obj2 = 0 ;
29316 char *kwnames[] = {
29317 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
29318 };
29319
29320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
29321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29323 {
29324 arg2 = wxString_in_helper(obj1);
29325 if (arg2 == NULL) SWIG_fail;
29326 temp2 = True;
29327 }
29328 arg3 = (int)SWIG_As_int(obj2);
29329 if (PyErr_Occurred()) SWIG_fail;
29330 {
29331 PyThreadState* __tstate = wxPyBeginAllowThreads();
29332 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
29333
29334 wxPyEndAllowThreads(__tstate);
29335 if (PyErr_Occurred()) SWIG_fail;
29336 }
29337 Py_INCREF(Py_None); resultobj = Py_None;
29338 {
29339 if (temp2)
29340 delete arg2;
29341 }
29342 return resultobj;
29343 fail:
29344 {
29345 if (temp2)
29346 delete arg2;
29347 }
29348 return NULL;
29349 }
29350
29351
29352 static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) {
29353 PyObject *obj;
29354 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29355 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
29356 Py_INCREF(obj);
29357 return Py_BuildValue((char *)"");
29358 }
29359 static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29360 PyObject *resultobj;
29361 wxWindow *arg1 = (wxWindow *) 0 ;
29362 int arg2 = (int) (int)-1 ;
29363 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29364 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29365 wxSize const &arg4_defvalue = wxDefaultSize ;
29366 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29367 long arg5 = (long) 0 ;
29368 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29369 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29370 wxString const &arg7_defvalue = wxPyControlNameStr ;
29371 wxString *arg7 = (wxString *) &arg7_defvalue ;
29372 wxPyControl *result;
29373 wxPoint temp3 ;
29374 wxSize temp4 ;
29375 bool temp7 = False ;
29376 PyObject * obj0 = 0 ;
29377 PyObject * obj1 = 0 ;
29378 PyObject * obj2 = 0 ;
29379 PyObject * obj3 = 0 ;
29380 PyObject * obj4 = 0 ;
29381 PyObject * obj5 = 0 ;
29382 PyObject * obj6 = 0 ;
29383 char *kwnames[] = {
29384 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29385 };
29386
29387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
29388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29390 if (obj1) {
29391 arg2 = (int)SWIG_As_int(obj1);
29392 if (PyErr_Occurred()) SWIG_fail;
29393 }
29394 if (obj2) {
29395 {
29396 arg3 = &temp3;
29397 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29398 }
29399 }
29400 if (obj3) {
29401 {
29402 arg4 = &temp4;
29403 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29404 }
29405 }
29406 if (obj4) {
29407 arg5 = (long)SWIG_As_long(obj4);
29408 if (PyErr_Occurred()) SWIG_fail;
29409 }
29410 if (obj5) {
29411 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
29412 SWIG_POINTER_EXCEPTION | 0)) == -1)
29413 SWIG_fail;
29414 if (arg6 == NULL) {
29415 PyErr_SetString(PyExc_TypeError,"null reference");
29416 SWIG_fail;
29417 }
29418 }
29419 if (obj6) {
29420 {
29421 arg7 = wxString_in_helper(obj6);
29422 if (arg7 == NULL) SWIG_fail;
29423 temp7 = True;
29424 }
29425 }
29426 {
29427 if (!wxPyCheckForApp()) SWIG_fail;
29428 PyThreadState* __tstate = wxPyBeginAllowThreads();
29429 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29430
29431 wxPyEndAllowThreads(__tstate);
29432 if (PyErr_Occurred()) SWIG_fail;
29433 }
29434 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29435 {
29436 if (temp7)
29437 delete arg7;
29438 }
29439 return resultobj;
29440 fail:
29441 {
29442 if (temp7)
29443 delete arg7;
29444 }
29445 return NULL;
29446 }
29447
29448
29449 static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29450 PyObject *resultobj;
29451 wxPyControl *result;
29452 char *kwnames[] = {
29453 NULL
29454 };
29455
29456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29457 {
29458 if (!wxPyCheckForApp()) SWIG_fail;
29459 PyThreadState* __tstate = wxPyBeginAllowThreads();
29460 result = (wxPyControl *)new wxPyControl();
29461
29462 wxPyEndAllowThreads(__tstate);
29463 if (PyErr_Occurred()) SWIG_fail;
29464 }
29465 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29466 return resultobj;
29467 fail:
29468 return NULL;
29469 }
29470
29471
29472 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29473 PyObject *resultobj;
29474 wxPyControl *arg1 = (wxPyControl *) 0 ;
29475 PyObject *arg2 = (PyObject *) 0 ;
29476 PyObject *arg3 = (PyObject *) 0 ;
29477 PyObject * obj0 = 0 ;
29478 PyObject * obj1 = 0 ;
29479 PyObject * obj2 = 0 ;
29480 char *kwnames[] = {
29481 (char *) "self",(char *) "self",(char *) "_class", NULL
29482 };
29483
29484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29487 arg2 = obj1;
29488 arg3 = obj2;
29489 {
29490 PyThreadState* __tstate = wxPyBeginAllowThreads();
29491 (arg1)->_setCallbackInfo(arg2,arg3);
29492
29493 wxPyEndAllowThreads(__tstate);
29494 if (PyErr_Occurred()) SWIG_fail;
29495 }
29496 Py_INCREF(Py_None); resultobj = Py_None;
29497 return resultobj;
29498 fail:
29499 return NULL;
29500 }
29501
29502
29503 static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29504 PyObject *resultobj;
29505 wxPyControl *arg1 = (wxPyControl *) 0 ;
29506 wxSize *arg2 = 0 ;
29507 wxSize temp2 ;
29508 PyObject * obj0 = 0 ;
29509 PyObject * obj1 = 0 ;
29510 char *kwnames[] = {
29511 (char *) "self",(char *) "size", NULL
29512 };
29513
29514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29517 {
29518 arg2 = &temp2;
29519 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29520 }
29521 {
29522 PyThreadState* __tstate = wxPyBeginAllowThreads();
29523 (arg1)->SetBestSize((wxSize const &)*arg2);
29524
29525 wxPyEndAllowThreads(__tstate);
29526 if (PyErr_Occurred()) SWIG_fail;
29527 }
29528 Py_INCREF(Py_None); resultobj = Py_None;
29529 return resultobj;
29530 fail:
29531 return NULL;
29532 }
29533
29534
29535 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29536 PyObject *resultobj;
29537 wxPyControl *arg1 = (wxPyControl *) 0 ;
29538 int arg2 ;
29539 int arg3 ;
29540 int arg4 ;
29541 int arg5 ;
29542 PyObject * obj0 = 0 ;
29543 PyObject * obj1 = 0 ;
29544 PyObject * obj2 = 0 ;
29545 PyObject * obj3 = 0 ;
29546 PyObject * obj4 = 0 ;
29547 char *kwnames[] = {
29548 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29549 };
29550
29551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29554 arg2 = (int)SWIG_As_int(obj1);
29555 if (PyErr_Occurred()) SWIG_fail;
29556 arg3 = (int)SWIG_As_int(obj2);
29557 if (PyErr_Occurred()) SWIG_fail;
29558 arg4 = (int)SWIG_As_int(obj3);
29559 if (PyErr_Occurred()) SWIG_fail;
29560 arg5 = (int)SWIG_As_int(obj4);
29561 if (PyErr_Occurred()) SWIG_fail;
29562 {
29563 PyThreadState* __tstate = wxPyBeginAllowThreads();
29564 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29565
29566 wxPyEndAllowThreads(__tstate);
29567 if (PyErr_Occurred()) SWIG_fail;
29568 }
29569 Py_INCREF(Py_None); resultobj = Py_None;
29570 return resultobj;
29571 fail:
29572 return NULL;
29573 }
29574
29575
29576 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29577 PyObject *resultobj;
29578 wxPyControl *arg1 = (wxPyControl *) 0 ;
29579 int arg2 ;
29580 int arg3 ;
29581 int arg4 ;
29582 int arg5 ;
29583 int arg6 = (int) wxSIZE_AUTO ;
29584 PyObject * obj0 = 0 ;
29585 PyObject * obj1 = 0 ;
29586 PyObject * obj2 = 0 ;
29587 PyObject * obj3 = 0 ;
29588 PyObject * obj4 = 0 ;
29589 PyObject * obj5 = 0 ;
29590 char *kwnames[] = {
29591 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29592 };
29593
29594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29597 arg2 = (int)SWIG_As_int(obj1);
29598 if (PyErr_Occurred()) SWIG_fail;
29599 arg3 = (int)SWIG_As_int(obj2);
29600 if (PyErr_Occurred()) SWIG_fail;
29601 arg4 = (int)SWIG_As_int(obj3);
29602 if (PyErr_Occurred()) SWIG_fail;
29603 arg5 = (int)SWIG_As_int(obj4);
29604 if (PyErr_Occurred()) SWIG_fail;
29605 if (obj5) {
29606 arg6 = (int)SWIG_As_int(obj5);
29607 if (PyErr_Occurred()) SWIG_fail;
29608 }
29609 {
29610 PyThreadState* __tstate = wxPyBeginAllowThreads();
29611 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29612
29613 wxPyEndAllowThreads(__tstate);
29614 if (PyErr_Occurred()) SWIG_fail;
29615 }
29616 Py_INCREF(Py_None); resultobj = Py_None;
29617 return resultobj;
29618 fail:
29619 return NULL;
29620 }
29621
29622
29623 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29624 PyObject *resultobj;
29625 wxPyControl *arg1 = (wxPyControl *) 0 ;
29626 int arg2 ;
29627 int arg3 ;
29628 PyObject * obj0 = 0 ;
29629 PyObject * obj1 = 0 ;
29630 PyObject * obj2 = 0 ;
29631 char *kwnames[] = {
29632 (char *) "self",(char *) "width",(char *) "height", NULL
29633 };
29634
29635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29638 arg2 = (int)SWIG_As_int(obj1);
29639 if (PyErr_Occurred()) SWIG_fail;
29640 arg3 = (int)SWIG_As_int(obj2);
29641 if (PyErr_Occurred()) SWIG_fail;
29642 {
29643 PyThreadState* __tstate = wxPyBeginAllowThreads();
29644 (arg1)->base_DoSetClientSize(arg2,arg3);
29645
29646 wxPyEndAllowThreads(__tstate);
29647 if (PyErr_Occurred()) SWIG_fail;
29648 }
29649 Py_INCREF(Py_None); resultobj = Py_None;
29650 return resultobj;
29651 fail:
29652 return NULL;
29653 }
29654
29655
29656 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29657 PyObject *resultobj;
29658 wxPyControl *arg1 = (wxPyControl *) 0 ;
29659 int arg2 ;
29660 int arg3 ;
29661 PyObject * obj0 = 0 ;
29662 PyObject * obj1 = 0 ;
29663 PyObject * obj2 = 0 ;
29664 char *kwnames[] = {
29665 (char *) "self",(char *) "x",(char *) "y", NULL
29666 };
29667
29668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29671 arg2 = (int)SWIG_As_int(obj1);
29672 if (PyErr_Occurred()) SWIG_fail;
29673 arg3 = (int)SWIG_As_int(obj2);
29674 if (PyErr_Occurred()) SWIG_fail;
29675 {
29676 PyThreadState* __tstate = wxPyBeginAllowThreads();
29677 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29678
29679 wxPyEndAllowThreads(__tstate);
29680 if (PyErr_Occurred()) SWIG_fail;
29681 }
29682 Py_INCREF(Py_None); resultobj = Py_None;
29683 return resultobj;
29684 fail:
29685 return NULL;
29686 }
29687
29688
29689 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29690 PyObject *resultobj;
29691 wxPyControl *arg1 = (wxPyControl *) 0 ;
29692 int *arg2 = (int *) 0 ;
29693 int *arg3 = (int *) 0 ;
29694 int temp2 ;
29695 int res2 = 0 ;
29696 int temp3 ;
29697 int res3 = 0 ;
29698 PyObject * obj0 = 0 ;
29699 char *kwnames[] = {
29700 (char *) "self", NULL
29701 };
29702
29703 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29704 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29708 {
29709 PyThreadState* __tstate = wxPyBeginAllowThreads();
29710 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29711
29712 wxPyEndAllowThreads(__tstate);
29713 if (PyErr_Occurred()) SWIG_fail;
29714 }
29715 Py_INCREF(Py_None); resultobj = Py_None;
29716 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29717 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29718 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29719 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29720 return resultobj;
29721 fail:
29722 return NULL;
29723 }
29724
29725
29726 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29727 PyObject *resultobj;
29728 wxPyControl *arg1 = (wxPyControl *) 0 ;
29729 int *arg2 = (int *) 0 ;
29730 int *arg3 = (int *) 0 ;
29731 int temp2 ;
29732 int res2 = 0 ;
29733 int temp3 ;
29734 int res3 = 0 ;
29735 PyObject * obj0 = 0 ;
29736 char *kwnames[] = {
29737 (char *) "self", NULL
29738 };
29739
29740 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29741 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29745 {
29746 PyThreadState* __tstate = wxPyBeginAllowThreads();
29747 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29748
29749 wxPyEndAllowThreads(__tstate);
29750 if (PyErr_Occurred()) SWIG_fail;
29751 }
29752 Py_INCREF(Py_None); resultobj = Py_None;
29753 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29754 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29755 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29756 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29757 return resultobj;
29758 fail:
29759 return NULL;
29760 }
29761
29762
29763 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
29764 PyObject *resultobj;
29765 wxPyControl *arg1 = (wxPyControl *) 0 ;
29766 int *arg2 = (int *) 0 ;
29767 int *arg3 = (int *) 0 ;
29768 int temp2 ;
29769 int res2 = 0 ;
29770 int temp3 ;
29771 int res3 = 0 ;
29772 PyObject * obj0 = 0 ;
29773 char *kwnames[] = {
29774 (char *) "self", NULL
29775 };
29776
29777 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29778 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29782 {
29783 PyThreadState* __tstate = wxPyBeginAllowThreads();
29784 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29785
29786 wxPyEndAllowThreads(__tstate);
29787 if (PyErr_Occurred()) SWIG_fail;
29788 }
29789 Py_INCREF(Py_None); resultobj = Py_None;
29790 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29791 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29792 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29793 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29794 return resultobj;
29795 fail:
29796 return NULL;
29797 }
29798
29799
29800 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29801 PyObject *resultobj;
29802 wxPyControl *arg1 = (wxPyControl *) 0 ;
29803 wxSize result;
29804 PyObject * obj0 = 0 ;
29805 char *kwnames[] = {
29806 (char *) "self", NULL
29807 };
29808
29809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29812 {
29813 PyThreadState* __tstate = wxPyBeginAllowThreads();
29814 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29815
29816 wxPyEndAllowThreads(__tstate);
29817 if (PyErr_Occurred()) SWIG_fail;
29818 }
29819 {
29820 wxSize * resultptr;
29821 resultptr = new wxSize((wxSize &) result);
29822 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29823 }
29824 return resultobj;
29825 fail:
29826 return NULL;
29827 }
29828
29829
29830 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29831 PyObject *resultobj;
29832 wxPyControl *arg1 = (wxPyControl *) 0 ;
29833 wxSize result;
29834 PyObject * obj0 = 0 ;
29835 char *kwnames[] = {
29836 (char *) "self", NULL
29837 };
29838
29839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29842 {
29843 PyThreadState* __tstate = wxPyBeginAllowThreads();
29844 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29845
29846 wxPyEndAllowThreads(__tstate);
29847 if (PyErr_Occurred()) SWIG_fail;
29848 }
29849 {
29850 wxSize * resultptr;
29851 resultptr = new wxSize((wxSize &) result);
29852 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29853 }
29854 return resultobj;
29855 fail:
29856 return NULL;
29857 }
29858
29859
29860 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
29861 PyObject *resultobj;
29862 wxPyControl *arg1 = (wxPyControl *) 0 ;
29863 PyObject * obj0 = 0 ;
29864 char *kwnames[] = {
29865 (char *) "self", NULL
29866 };
29867
29868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29871 {
29872 PyThreadState* __tstate = wxPyBeginAllowThreads();
29873 (arg1)->base_InitDialog();
29874
29875 wxPyEndAllowThreads(__tstate);
29876 if (PyErr_Occurred()) SWIG_fail;
29877 }
29878 Py_INCREF(Py_None); resultobj = Py_None;
29879 return resultobj;
29880 fail:
29881 return NULL;
29882 }
29883
29884
29885 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29886 PyObject *resultobj;
29887 wxPyControl *arg1 = (wxPyControl *) 0 ;
29888 bool result;
29889 PyObject * obj0 = 0 ;
29890 char *kwnames[] = {
29891 (char *) "self", NULL
29892 };
29893
29894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29897 {
29898 PyThreadState* __tstate = wxPyBeginAllowThreads();
29899 result = (bool)(arg1)->base_TransferDataToWindow();
29900
29901 wxPyEndAllowThreads(__tstate);
29902 if (PyErr_Occurred()) SWIG_fail;
29903 }
29904 {
29905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29906 }
29907 return resultobj;
29908 fail:
29909 return NULL;
29910 }
29911
29912
29913 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29914 PyObject *resultobj;
29915 wxPyControl *arg1 = (wxPyControl *) 0 ;
29916 bool result;
29917 PyObject * obj0 = 0 ;
29918 char *kwnames[] = {
29919 (char *) "self", NULL
29920 };
29921
29922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29925 {
29926 PyThreadState* __tstate = wxPyBeginAllowThreads();
29927 result = (bool)(arg1)->base_TransferDataFromWindow();
29928
29929 wxPyEndAllowThreads(__tstate);
29930 if (PyErr_Occurred()) SWIG_fail;
29931 }
29932 {
29933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29934 }
29935 return resultobj;
29936 fail:
29937 return NULL;
29938 }
29939
29940
29941 static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
29942 PyObject *resultobj;
29943 wxPyControl *arg1 = (wxPyControl *) 0 ;
29944 bool result;
29945 PyObject * obj0 = 0 ;
29946 char *kwnames[] = {
29947 (char *) "self", NULL
29948 };
29949
29950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29953 {
29954 PyThreadState* __tstate = wxPyBeginAllowThreads();
29955 result = (bool)(arg1)->base_Validate();
29956
29957 wxPyEndAllowThreads(__tstate);
29958 if (PyErr_Occurred()) SWIG_fail;
29959 }
29960 {
29961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29962 }
29963 return resultobj;
29964 fail:
29965 return NULL;
29966 }
29967
29968
29969 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
29970 PyObject *resultobj;
29971 wxPyControl *arg1 = (wxPyControl *) 0 ;
29972 bool result;
29973 PyObject * obj0 = 0 ;
29974 char *kwnames[] = {
29975 (char *) "self", NULL
29976 };
29977
29978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29981 {
29982 PyThreadState* __tstate = wxPyBeginAllowThreads();
29983 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29984
29985 wxPyEndAllowThreads(__tstate);
29986 if (PyErr_Occurred()) SWIG_fail;
29987 }
29988 {
29989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29990 }
29991 return resultobj;
29992 fail:
29993 return NULL;
29994 }
29995
29996
29997 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
29998 PyObject *resultobj;
29999 wxPyControl *arg1 = (wxPyControl *) 0 ;
30000 bool result;
30001 PyObject * obj0 = 0 ;
30002 char *kwnames[] = {
30003 (char *) "self", NULL
30004 };
30005
30006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
30007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30009 {
30010 PyThreadState* __tstate = wxPyBeginAllowThreads();
30011 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
30012
30013 wxPyEndAllowThreads(__tstate);
30014 if (PyErr_Occurred()) SWIG_fail;
30015 }
30016 {
30017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30018 }
30019 return resultobj;
30020 fail:
30021 return NULL;
30022 }
30023
30024
30025 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
30026 PyObject *resultobj;
30027 wxPyControl *arg1 = (wxPyControl *) 0 ;
30028 wxSize result;
30029 PyObject * obj0 = 0 ;
30030 char *kwnames[] = {
30031 (char *) "self", NULL
30032 };
30033
30034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
30035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30037 {
30038 PyThreadState* __tstate = wxPyBeginAllowThreads();
30039 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
30040
30041 wxPyEndAllowThreads(__tstate);
30042 if (PyErr_Occurred()) SWIG_fail;
30043 }
30044 {
30045 wxSize * resultptr;
30046 resultptr = new wxSize((wxSize &) result);
30047 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30048 }
30049 return resultobj;
30050 fail:
30051 return NULL;
30052 }
30053
30054
30055 static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
30056 PyObject *resultobj;
30057 wxPyControl *arg1 = (wxPyControl *) 0 ;
30058 wxWindow *arg2 = (wxWindow *) 0 ;
30059 PyObject * obj0 = 0 ;
30060 PyObject * obj1 = 0 ;
30061 char *kwnames[] = {
30062 (char *) "self",(char *) "child", NULL
30063 };
30064
30065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
30066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30068 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30070 {
30071 PyThreadState* __tstate = wxPyBeginAllowThreads();
30072 (arg1)->base_AddChild(arg2);
30073
30074 wxPyEndAllowThreads(__tstate);
30075 if (PyErr_Occurred()) SWIG_fail;
30076 }
30077 Py_INCREF(Py_None); resultobj = Py_None;
30078 return resultobj;
30079 fail:
30080 return NULL;
30081 }
30082
30083
30084 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
30085 PyObject *resultobj;
30086 wxPyControl *arg1 = (wxPyControl *) 0 ;
30087 wxWindow *arg2 = (wxWindow *) 0 ;
30088 PyObject * obj0 = 0 ;
30089 PyObject * obj1 = 0 ;
30090 char *kwnames[] = {
30091 (char *) "self",(char *) "child", NULL
30092 };
30093
30094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
30095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30097 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30099 {
30100 PyThreadState* __tstate = wxPyBeginAllowThreads();
30101 (arg1)->base_RemoveChild(arg2);
30102
30103 wxPyEndAllowThreads(__tstate);
30104 if (PyErr_Occurred()) SWIG_fail;
30105 }
30106 Py_INCREF(Py_None); resultobj = Py_None;
30107 return resultobj;
30108 fail:
30109 return NULL;
30110 }
30111
30112
30113 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
30114 PyObject *resultobj;
30115 wxPyControl *arg1 = (wxPyControl *) 0 ;
30116 bool result;
30117 PyObject * obj0 = 0 ;
30118 char *kwnames[] = {
30119 (char *) "self", NULL
30120 };
30121
30122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
30123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30125 {
30126 PyThreadState* __tstate = wxPyBeginAllowThreads();
30127 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
30128
30129 wxPyEndAllowThreads(__tstate);
30130 if (PyErr_Occurred()) SWIG_fail;
30131 }
30132 {
30133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30134 }
30135 return resultobj;
30136 fail:
30137 return NULL;
30138 }
30139
30140
30141 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
30142 PyObject *resultobj;
30143 wxPyControl *arg1 = (wxPyControl *) 0 ;
30144 wxColour *arg2 = 0 ;
30145 wxColour temp2 ;
30146 PyObject * obj0 = 0 ;
30147 PyObject * obj1 = 0 ;
30148 char *kwnames[] = {
30149 (char *) "self",(char *) "c", NULL
30150 };
30151
30152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
30153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30155 {
30156 arg2 = &temp2;
30157 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30158 }
30159 {
30160 PyThreadState* __tstate = wxPyBeginAllowThreads();
30161 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
30162
30163 wxPyEndAllowThreads(__tstate);
30164 if (PyErr_Occurred()) SWIG_fail;
30165 }
30166 Py_INCREF(Py_None); resultobj = Py_None;
30167 return resultobj;
30168 fail:
30169 return NULL;
30170 }
30171
30172
30173 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
30174 PyObject *resultobj;
30175 wxPyControl *arg1 = (wxPyControl *) 0 ;
30176 wxVisualAttributes result;
30177 PyObject * obj0 = 0 ;
30178 char *kwnames[] = {
30179 (char *) "self", NULL
30180 };
30181
30182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
30183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30185 {
30186 PyThreadState* __tstate = wxPyBeginAllowThreads();
30187 result = (arg1)->base_GetDefaultAttributes();
30188
30189 wxPyEndAllowThreads(__tstate);
30190 if (PyErr_Occurred()) SWIG_fail;
30191 }
30192 {
30193 wxVisualAttributes * resultptr;
30194 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
30195 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
30196 }
30197 return resultobj;
30198 fail:
30199 return NULL;
30200 }
30201
30202
30203 static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
30204 PyObject *obj;
30205 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30206 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
30207 Py_INCREF(obj);
30208 return Py_BuildValue((char *)"");
30209 }
30210 static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) {
30211 PyObject *resultobj;
30212 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
30213 int arg2 = (int) 0 ;
30214 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30215 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30216 wxHelpEvent *result;
30217 wxPoint temp3 ;
30218 PyObject * obj0 = 0 ;
30219 PyObject * obj1 = 0 ;
30220 PyObject * obj2 = 0 ;
30221 char *kwnames[] = {
30222 (char *) "type",(char *) "winid",(char *) "pt", NULL
30223 };
30224
30225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
30226 if (obj0) {
30227 arg1 = (wxEventType)SWIG_As_int(obj0);
30228 if (PyErr_Occurred()) SWIG_fail;
30229 }
30230 if (obj1) {
30231 arg2 = (int)SWIG_As_int(obj1);
30232 if (PyErr_Occurred()) SWIG_fail;
30233 }
30234 if (obj2) {
30235 {
30236 arg3 = &temp3;
30237 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30238 }
30239 }
30240 {
30241 PyThreadState* __tstate = wxPyBeginAllowThreads();
30242 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
30243
30244 wxPyEndAllowThreads(__tstate);
30245 if (PyErr_Occurred()) SWIG_fail;
30246 }
30247 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
30248 return resultobj;
30249 fail:
30250 return NULL;
30251 }
30252
30253
30254 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30255 PyObject *resultobj;
30256 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30257 wxPoint result;
30258 PyObject * obj0 = 0 ;
30259 char *kwnames[] = {
30260 (char *) "self", NULL
30261 };
30262
30263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
30264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30266 {
30267 PyThreadState* __tstate = wxPyBeginAllowThreads();
30268 result = ((wxHelpEvent const *)arg1)->GetPosition();
30269
30270 wxPyEndAllowThreads(__tstate);
30271 if (PyErr_Occurred()) SWIG_fail;
30272 }
30273 {
30274 wxPoint * resultptr;
30275 resultptr = new wxPoint((wxPoint &) result);
30276 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
30277 }
30278 return resultobj;
30279 fail:
30280 return NULL;
30281 }
30282
30283
30284 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30285 PyObject *resultobj;
30286 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30287 wxPoint *arg2 = 0 ;
30288 wxPoint temp2 ;
30289 PyObject * obj0 = 0 ;
30290 PyObject * obj1 = 0 ;
30291 char *kwnames[] = {
30292 (char *) "self",(char *) "pos", NULL
30293 };
30294
30295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
30296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30298 {
30299 arg2 = &temp2;
30300 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30301 }
30302 {
30303 PyThreadState* __tstate = wxPyBeginAllowThreads();
30304 (arg1)->SetPosition((wxPoint const &)*arg2);
30305
30306 wxPyEndAllowThreads(__tstate);
30307 if (PyErr_Occurred()) SWIG_fail;
30308 }
30309 Py_INCREF(Py_None); resultobj = Py_None;
30310 return resultobj;
30311 fail:
30312 return NULL;
30313 }
30314
30315
30316 static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30317 PyObject *resultobj;
30318 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30319 wxString *result;
30320 PyObject * obj0 = 0 ;
30321 char *kwnames[] = {
30322 (char *) "self", NULL
30323 };
30324
30325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
30326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30328 {
30329 PyThreadState* __tstate = wxPyBeginAllowThreads();
30330 {
30331 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
30332 result = (wxString *) &_result_ref;
30333 }
30334
30335 wxPyEndAllowThreads(__tstate);
30336 if (PyErr_Occurred()) SWIG_fail;
30337 }
30338 {
30339 #if wxUSE_UNICODE
30340 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30341 #else
30342 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30343 #endif
30344 }
30345 return resultobj;
30346 fail:
30347 return NULL;
30348 }
30349
30350
30351 static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30352 PyObject *resultobj;
30353 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30354 wxString *arg2 = 0 ;
30355 bool temp2 = False ;
30356 PyObject * obj0 = 0 ;
30357 PyObject * obj1 = 0 ;
30358 char *kwnames[] = {
30359 (char *) "self",(char *) "link", NULL
30360 };
30361
30362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
30363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30365 {
30366 arg2 = wxString_in_helper(obj1);
30367 if (arg2 == NULL) SWIG_fail;
30368 temp2 = True;
30369 }
30370 {
30371 PyThreadState* __tstate = wxPyBeginAllowThreads();
30372 (arg1)->SetLink((wxString const &)*arg2);
30373
30374 wxPyEndAllowThreads(__tstate);
30375 if (PyErr_Occurred()) SWIG_fail;
30376 }
30377 Py_INCREF(Py_None); resultobj = Py_None;
30378 {
30379 if (temp2)
30380 delete arg2;
30381 }
30382 return resultobj;
30383 fail:
30384 {
30385 if (temp2)
30386 delete arg2;
30387 }
30388 return NULL;
30389 }
30390
30391
30392 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30393 PyObject *resultobj;
30394 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30395 wxString *result;
30396 PyObject * obj0 = 0 ;
30397 char *kwnames[] = {
30398 (char *) "self", NULL
30399 };
30400
30401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
30402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30404 {
30405 PyThreadState* __tstate = wxPyBeginAllowThreads();
30406 {
30407 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
30408 result = (wxString *) &_result_ref;
30409 }
30410
30411 wxPyEndAllowThreads(__tstate);
30412 if (PyErr_Occurred()) SWIG_fail;
30413 }
30414 {
30415 #if wxUSE_UNICODE
30416 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30417 #else
30418 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30419 #endif
30420 }
30421 return resultobj;
30422 fail:
30423 return NULL;
30424 }
30425
30426
30427 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30428 PyObject *resultobj;
30429 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30430 wxString *arg2 = 0 ;
30431 bool temp2 = False ;
30432 PyObject * obj0 = 0 ;
30433 PyObject * obj1 = 0 ;
30434 char *kwnames[] = {
30435 (char *) "self",(char *) "target", NULL
30436 };
30437
30438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
30439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30441 {
30442 arg2 = wxString_in_helper(obj1);
30443 if (arg2 == NULL) SWIG_fail;
30444 temp2 = True;
30445 }
30446 {
30447 PyThreadState* __tstate = wxPyBeginAllowThreads();
30448 (arg1)->SetTarget((wxString const &)*arg2);
30449
30450 wxPyEndAllowThreads(__tstate);
30451 if (PyErr_Occurred()) SWIG_fail;
30452 }
30453 Py_INCREF(Py_None); resultobj = Py_None;
30454 {
30455 if (temp2)
30456 delete arg2;
30457 }
30458 return resultobj;
30459 fail:
30460 {
30461 if (temp2)
30462 delete arg2;
30463 }
30464 return NULL;
30465 }
30466
30467
30468 static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) {
30469 PyObject *obj;
30470 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30471 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30472 Py_INCREF(obj);
30473 return Py_BuildValue((char *)"");
30474 }
30475 static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30476 PyObject *resultobj;
30477 wxWindow *arg1 = (wxWindow *) NULL ;
30478 bool arg2 = (bool) True ;
30479 wxContextHelp *result;
30480 PyObject * obj0 = 0 ;
30481 PyObject * obj1 = 0 ;
30482 char *kwnames[] = {
30483 (char *) "window",(char *) "doNow", NULL
30484 };
30485
30486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30487 if (obj0) {
30488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30490 }
30491 if (obj1) {
30492 arg2 = (bool)SWIG_As_bool(obj1);
30493 if (PyErr_Occurred()) SWIG_fail;
30494 }
30495 {
30496 if (!wxPyCheckForApp()) SWIG_fail;
30497 PyThreadState* __tstate = wxPyBeginAllowThreads();
30498 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30499
30500 wxPyEndAllowThreads(__tstate);
30501 if (PyErr_Occurred()) SWIG_fail;
30502 }
30503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30504 return resultobj;
30505 fail:
30506 return NULL;
30507 }
30508
30509
30510 static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30511 PyObject *resultobj;
30512 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30513 PyObject * obj0 = 0 ;
30514 char *kwnames[] = {
30515 (char *) "self", NULL
30516 };
30517
30518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30521 {
30522 PyThreadState* __tstate = wxPyBeginAllowThreads();
30523 delete arg1;
30524
30525 wxPyEndAllowThreads(__tstate);
30526 if (PyErr_Occurred()) SWIG_fail;
30527 }
30528 Py_INCREF(Py_None); resultobj = Py_None;
30529 return resultobj;
30530 fail:
30531 return NULL;
30532 }
30533
30534
30535 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30536 PyObject *resultobj;
30537 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30538 wxWindow *arg2 = (wxWindow *) NULL ;
30539 bool result;
30540 PyObject * obj0 = 0 ;
30541 PyObject * obj1 = 0 ;
30542 char *kwnames[] = {
30543 (char *) "self",(char *) "window", NULL
30544 };
30545
30546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30549 if (obj1) {
30550 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30552 }
30553 {
30554 PyThreadState* __tstate = wxPyBeginAllowThreads();
30555 result = (bool)(arg1)->BeginContextHelp(arg2);
30556
30557 wxPyEndAllowThreads(__tstate);
30558 if (PyErr_Occurred()) SWIG_fail;
30559 }
30560 {
30561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30562 }
30563 return resultobj;
30564 fail:
30565 return NULL;
30566 }
30567
30568
30569 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30570 PyObject *resultobj;
30571 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30572 bool result;
30573 PyObject * obj0 = 0 ;
30574 char *kwnames[] = {
30575 (char *) "self", NULL
30576 };
30577
30578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30581 {
30582 PyThreadState* __tstate = wxPyBeginAllowThreads();
30583 result = (bool)(arg1)->EndContextHelp();
30584
30585 wxPyEndAllowThreads(__tstate);
30586 if (PyErr_Occurred()) SWIG_fail;
30587 }
30588 {
30589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30590 }
30591 return resultobj;
30592 fail:
30593 return NULL;
30594 }
30595
30596
30597 static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) {
30598 PyObject *obj;
30599 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30600 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30601 Py_INCREF(obj);
30602 return Py_BuildValue((char *)"");
30603 }
30604 static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
30605 PyObject *resultobj;
30606 wxWindow *arg1 = (wxWindow *) 0 ;
30607 int arg2 = (int) wxID_CONTEXT_HELP ;
30608 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30609 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30610 wxSize const &arg4_defvalue = wxDefaultSize ;
30611 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30612 long arg5 = (long) wxBU_AUTODRAW ;
30613 wxContextHelpButton *result;
30614 wxPoint temp3 ;
30615 wxSize temp4 ;
30616 PyObject * obj0 = 0 ;
30617 PyObject * obj1 = 0 ;
30618 PyObject * obj2 = 0 ;
30619 PyObject * obj3 = 0 ;
30620 PyObject * obj4 = 0 ;
30621 char *kwnames[] = {
30622 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30623 };
30624
30625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30628 if (obj1) {
30629 arg2 = (int)SWIG_As_int(obj1);
30630 if (PyErr_Occurred()) SWIG_fail;
30631 }
30632 if (obj2) {
30633 {
30634 arg3 = &temp3;
30635 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30636 }
30637 }
30638 if (obj3) {
30639 {
30640 arg4 = &temp4;
30641 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30642 }
30643 }
30644 if (obj4) {
30645 arg5 = (long)SWIG_As_long(obj4);
30646 if (PyErr_Occurred()) SWIG_fail;
30647 }
30648 {
30649 if (!wxPyCheckForApp()) SWIG_fail;
30650 PyThreadState* __tstate = wxPyBeginAllowThreads();
30651 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30652
30653 wxPyEndAllowThreads(__tstate);
30654 if (PyErr_Occurred()) SWIG_fail;
30655 }
30656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30657 return resultobj;
30658 fail:
30659 return NULL;
30660 }
30661
30662
30663 static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) {
30664 PyObject *obj;
30665 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30666 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30667 Py_INCREF(obj);
30668 return Py_BuildValue((char *)"");
30669 }
30670 static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) {
30671 PyObject *resultobj;
30672 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30673 wxHelpProvider *result;
30674 PyObject * obj0 = 0 ;
30675 char *kwnames[] = {
30676 (char *) "helpProvider", NULL
30677 };
30678
30679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30682 {
30683 PyThreadState* __tstate = wxPyBeginAllowThreads();
30684 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30685
30686 wxPyEndAllowThreads(__tstate);
30687 if (PyErr_Occurred()) SWIG_fail;
30688 }
30689 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30690 return resultobj;
30691 fail:
30692 return NULL;
30693 }
30694
30695
30696 static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) {
30697 PyObject *resultobj;
30698 wxHelpProvider *result;
30699 char *kwnames[] = {
30700 NULL
30701 };
30702
30703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30704 {
30705 PyThreadState* __tstate = wxPyBeginAllowThreads();
30706 result = (wxHelpProvider *)wxHelpProvider::Get();
30707
30708 wxPyEndAllowThreads(__tstate);
30709 if (PyErr_Occurred()) SWIG_fail;
30710 }
30711 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30712 return resultobj;
30713 fail:
30714 return NULL;
30715 }
30716
30717
30718 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30719 PyObject *resultobj;
30720 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30721 wxWindow *arg2 = (wxWindow *) 0 ;
30722 wxString result;
30723 PyObject * obj0 = 0 ;
30724 PyObject * obj1 = 0 ;
30725 char *kwnames[] = {
30726 (char *) "self",(char *) "window", NULL
30727 };
30728
30729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30732 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30734 {
30735 PyThreadState* __tstate = wxPyBeginAllowThreads();
30736 result = (arg1)->GetHelp((wxWindow const *)arg2);
30737
30738 wxPyEndAllowThreads(__tstate);
30739 if (PyErr_Occurred()) SWIG_fail;
30740 }
30741 {
30742 #if wxUSE_UNICODE
30743 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30744 #else
30745 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30746 #endif
30747 }
30748 return resultobj;
30749 fail:
30750 return NULL;
30751 }
30752
30753
30754 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30755 PyObject *resultobj;
30756 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30757 wxWindow *arg2 = (wxWindow *) 0 ;
30758 bool result;
30759 PyObject * obj0 = 0 ;
30760 PyObject * obj1 = 0 ;
30761 char *kwnames[] = {
30762 (char *) "self",(char *) "window", NULL
30763 };
30764
30765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30768 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30770 {
30771 PyThreadState* __tstate = wxPyBeginAllowThreads();
30772 result = (bool)(arg1)->ShowHelp(arg2);
30773
30774 wxPyEndAllowThreads(__tstate);
30775 if (PyErr_Occurred()) SWIG_fail;
30776 }
30777 {
30778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30779 }
30780 return resultobj;
30781 fail:
30782 return NULL;
30783 }
30784
30785
30786 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30787 PyObject *resultobj;
30788 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30789 wxWindow *arg2 = (wxWindow *) 0 ;
30790 wxString *arg3 = 0 ;
30791 bool temp3 = False ;
30792 PyObject * obj0 = 0 ;
30793 PyObject * obj1 = 0 ;
30794 PyObject * obj2 = 0 ;
30795 char *kwnames[] = {
30796 (char *) "self",(char *) "window",(char *) "text", NULL
30797 };
30798
30799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30802 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30804 {
30805 arg3 = wxString_in_helper(obj2);
30806 if (arg3 == NULL) SWIG_fail;
30807 temp3 = True;
30808 }
30809 {
30810 PyThreadState* __tstate = wxPyBeginAllowThreads();
30811 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30812
30813 wxPyEndAllowThreads(__tstate);
30814 if (PyErr_Occurred()) SWIG_fail;
30815 }
30816 Py_INCREF(Py_None); resultobj = Py_None;
30817 {
30818 if (temp3)
30819 delete arg3;
30820 }
30821 return resultobj;
30822 fail:
30823 {
30824 if (temp3)
30825 delete arg3;
30826 }
30827 return NULL;
30828 }
30829
30830
30831 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) {
30832 PyObject *resultobj;
30833 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30834 int arg2 ;
30835 wxString *arg3 = 0 ;
30836 bool temp3 = False ;
30837 PyObject * obj0 = 0 ;
30838 PyObject * obj1 = 0 ;
30839 PyObject * obj2 = 0 ;
30840 char *kwnames[] = {
30841 (char *) "self",(char *) "id",(char *) "text", NULL
30842 };
30843
30844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30847 arg2 = (int)SWIG_As_int(obj1);
30848 if (PyErr_Occurred()) SWIG_fail;
30849 {
30850 arg3 = wxString_in_helper(obj2);
30851 if (arg3 == NULL) SWIG_fail;
30852 temp3 = True;
30853 }
30854 {
30855 PyThreadState* __tstate = wxPyBeginAllowThreads();
30856 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30857
30858 wxPyEndAllowThreads(__tstate);
30859 if (PyErr_Occurred()) SWIG_fail;
30860 }
30861 Py_INCREF(Py_None); resultobj = Py_None;
30862 {
30863 if (temp3)
30864 delete arg3;
30865 }
30866 return resultobj;
30867 fail:
30868 {
30869 if (temp3)
30870 delete arg3;
30871 }
30872 return NULL;
30873 }
30874
30875
30876 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30877 PyObject *resultobj;
30878 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30879 wxWindow *arg2 = (wxWindow *) 0 ;
30880 PyObject * obj0 = 0 ;
30881 PyObject * obj1 = 0 ;
30882 char *kwnames[] = {
30883 (char *) "self",(char *) "window", NULL
30884 };
30885
30886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30889 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30891 {
30892 PyThreadState* __tstate = wxPyBeginAllowThreads();
30893 (arg1)->RemoveHelp(arg2);
30894
30895 wxPyEndAllowThreads(__tstate);
30896 if (PyErr_Occurred()) SWIG_fail;
30897 }
30898 Py_INCREF(Py_None); resultobj = Py_None;
30899 return resultobj;
30900 fail:
30901 return NULL;
30902 }
30903
30904
30905 static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
30906 PyObject *resultobj;
30907 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30908 PyObject * obj0 = 0 ;
30909 char *kwnames[] = {
30910 (char *) "self", NULL
30911 };
30912
30913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30916 {
30917 PyThreadState* __tstate = wxPyBeginAllowThreads();
30918 wxHelpProvider_Destroy(arg1);
30919
30920 wxPyEndAllowThreads(__tstate);
30921 if (PyErr_Occurred()) SWIG_fail;
30922 }
30923 Py_INCREF(Py_None); resultobj = Py_None;
30924 return resultobj;
30925 fail:
30926 return NULL;
30927 }
30928
30929
30930 static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) {
30931 PyObject *obj;
30932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30933 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30934 Py_INCREF(obj);
30935 return Py_BuildValue((char *)"");
30936 }
30937 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) {
30938 PyObject *resultobj;
30939 wxSimpleHelpProvider *result;
30940 char *kwnames[] = {
30941 NULL
30942 };
30943
30944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30945 {
30946 PyThreadState* __tstate = wxPyBeginAllowThreads();
30947 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30948
30949 wxPyEndAllowThreads(__tstate);
30950 if (PyErr_Occurred()) SWIG_fail;
30951 }
30952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30953 return resultobj;
30954 fail:
30955 return NULL;
30956 }
30957
30958
30959 static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) {
30960 PyObject *obj;
30961 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30962 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30963 Py_INCREF(obj);
30964 return Py_BuildValue((char *)"");
30965 }
30966 static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
30967 PyObject *resultobj;
30968 wxBitmap *arg1 = 0 ;
30969 wxCursor const &arg2_defvalue = wxNullCursor ;
30970 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30971 wxGenericDragImage *result;
30972 PyObject * obj0 = 0 ;
30973 PyObject * obj1 = 0 ;
30974 char *kwnames[] = {
30975 (char *) "image",(char *) "cursor", NULL
30976 };
30977
30978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30980 SWIG_POINTER_EXCEPTION | 0)) == -1)
30981 SWIG_fail;
30982 if (arg1 == NULL) {
30983 PyErr_SetString(PyExc_TypeError,"null reference");
30984 SWIG_fail;
30985 }
30986 if (obj1) {
30987 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30988 SWIG_POINTER_EXCEPTION | 0)) == -1)
30989 SWIG_fail;
30990 if (arg2 == NULL) {
30991 PyErr_SetString(PyExc_TypeError,"null reference");
30992 SWIG_fail;
30993 }
30994 }
30995 {
30996 if (!wxPyCheckForApp()) SWIG_fail;
30997 PyThreadState* __tstate = wxPyBeginAllowThreads();
30998 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30999
31000 wxPyEndAllowThreads(__tstate);
31001 if (PyErr_Occurred()) SWIG_fail;
31002 }
31003 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31004 return resultobj;
31005 fail:
31006 return NULL;
31007 }
31008
31009
31010 static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) {
31011 PyObject *resultobj;
31012 wxIcon *arg1 = 0 ;
31013 wxCursor const &arg2_defvalue = wxNullCursor ;
31014 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31015 wxGenericDragImage *result;
31016 PyObject * obj0 = 0 ;
31017 PyObject * obj1 = 0 ;
31018 char *kwnames[] = {
31019 (char *) "image",(char *) "cursor", NULL
31020 };
31021
31022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
31023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
31024 SWIG_POINTER_EXCEPTION | 0)) == -1)
31025 SWIG_fail;
31026 if (arg1 == NULL) {
31027 PyErr_SetString(PyExc_TypeError,"null reference");
31028 SWIG_fail;
31029 }
31030 if (obj1) {
31031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31032 SWIG_POINTER_EXCEPTION | 0)) == -1)
31033 SWIG_fail;
31034 if (arg2 == NULL) {
31035 PyErr_SetString(PyExc_TypeError,"null reference");
31036 SWIG_fail;
31037 }
31038 }
31039 {
31040 if (!wxPyCheckForApp()) SWIG_fail;
31041 PyThreadState* __tstate = wxPyBeginAllowThreads();
31042 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
31043
31044 wxPyEndAllowThreads(__tstate);
31045 if (PyErr_Occurred()) SWIG_fail;
31046 }
31047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31048 return resultobj;
31049 fail:
31050 return NULL;
31051 }
31052
31053
31054 static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) {
31055 PyObject *resultobj;
31056 wxString *arg1 = 0 ;
31057 wxCursor const &arg2_defvalue = wxNullCursor ;
31058 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31059 wxGenericDragImage *result;
31060 bool temp1 = False ;
31061 PyObject * obj0 = 0 ;
31062 PyObject * obj1 = 0 ;
31063 char *kwnames[] = {
31064 (char *) "str",(char *) "cursor", NULL
31065 };
31066
31067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
31068 {
31069 arg1 = wxString_in_helper(obj0);
31070 if (arg1 == NULL) SWIG_fail;
31071 temp1 = True;
31072 }
31073 if (obj1) {
31074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31075 SWIG_POINTER_EXCEPTION | 0)) == -1)
31076 SWIG_fail;
31077 if (arg2 == NULL) {
31078 PyErr_SetString(PyExc_TypeError,"null reference");
31079 SWIG_fail;
31080 }
31081 }
31082 {
31083 if (!wxPyCheckForApp()) SWIG_fail;
31084 PyThreadState* __tstate = wxPyBeginAllowThreads();
31085 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
31086
31087 wxPyEndAllowThreads(__tstate);
31088 if (PyErr_Occurred()) SWIG_fail;
31089 }
31090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31091 {
31092 if (temp1)
31093 delete arg1;
31094 }
31095 return resultobj;
31096 fail:
31097 {
31098 if (temp1)
31099 delete arg1;
31100 }
31101 return NULL;
31102 }
31103
31104
31105 static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) {
31106 PyObject *resultobj;
31107 wxPyTreeCtrl *arg1 = 0 ;
31108 wxTreeItemId *arg2 = 0 ;
31109 wxGenericDragImage *result;
31110 PyObject * obj0 = 0 ;
31111 PyObject * obj1 = 0 ;
31112 char *kwnames[] = {
31113 (char *) "treeCtrl",(char *) "id", NULL
31114 };
31115
31116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
31117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
31118 SWIG_POINTER_EXCEPTION | 0)) == -1)
31119 SWIG_fail;
31120 if (arg1 == NULL) {
31121 PyErr_SetString(PyExc_TypeError,"null reference");
31122 SWIG_fail;
31123 }
31124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
31125 SWIG_POINTER_EXCEPTION | 0)) == -1)
31126 SWIG_fail;
31127 if (arg2 == NULL) {
31128 PyErr_SetString(PyExc_TypeError,"null reference");
31129 SWIG_fail;
31130 }
31131 {
31132 if (!wxPyCheckForApp()) SWIG_fail;
31133 PyThreadState* __tstate = wxPyBeginAllowThreads();
31134 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
31135
31136 wxPyEndAllowThreads(__tstate);
31137 if (PyErr_Occurred()) SWIG_fail;
31138 }
31139 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31140 return resultobj;
31141 fail:
31142 return NULL;
31143 }
31144
31145
31146 static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) {
31147 PyObject *resultobj;
31148 wxPyListCtrl *arg1 = 0 ;
31149 long arg2 ;
31150 wxGenericDragImage *result;
31151 PyObject * obj0 = 0 ;
31152 PyObject * obj1 = 0 ;
31153 char *kwnames[] = {
31154 (char *) "listCtrl",(char *) "id", NULL
31155 };
31156
31157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
31158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
31159 SWIG_POINTER_EXCEPTION | 0)) == -1)
31160 SWIG_fail;
31161 if (arg1 == NULL) {
31162 PyErr_SetString(PyExc_TypeError,"null reference");
31163 SWIG_fail;
31164 }
31165 arg2 = (long)SWIG_As_long(obj1);
31166 if (PyErr_Occurred()) SWIG_fail;
31167 {
31168 if (!wxPyCheckForApp()) SWIG_fail;
31169 PyThreadState* __tstate = wxPyBeginAllowThreads();
31170 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
31171
31172 wxPyEndAllowThreads(__tstate);
31173 if (PyErr_Occurred()) SWIG_fail;
31174 }
31175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31176 return resultobj;
31177 fail:
31178 return NULL;
31179 }
31180
31181
31182 static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31183 PyObject *resultobj;
31184 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31185 PyObject * obj0 = 0 ;
31186 char *kwnames[] = {
31187 (char *) "self", NULL
31188 };
31189
31190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
31191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31193 {
31194 PyThreadState* __tstate = wxPyBeginAllowThreads();
31195 delete arg1;
31196
31197 wxPyEndAllowThreads(__tstate);
31198 if (PyErr_Occurred()) SWIG_fail;
31199 }
31200 Py_INCREF(Py_None); resultobj = Py_None;
31201 return resultobj;
31202 fail:
31203 return NULL;
31204 }
31205
31206
31207 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
31208 PyObject *resultobj;
31209 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31210 wxBitmap *arg2 = (wxBitmap *) 0 ;
31211 PyObject * obj0 = 0 ;
31212 PyObject * obj1 = 0 ;
31213 char *kwnames[] = {
31214 (char *) "self",(char *) "bitmap", NULL
31215 };
31216
31217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
31218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
31221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31222 {
31223 PyThreadState* __tstate = wxPyBeginAllowThreads();
31224 (arg1)->SetBackingBitmap(arg2);
31225
31226 wxPyEndAllowThreads(__tstate);
31227 if (PyErr_Occurred()) SWIG_fail;
31228 }
31229 Py_INCREF(Py_None); resultobj = Py_None;
31230 return resultobj;
31231 fail:
31232 return NULL;
31233 }
31234
31235
31236 static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31237 PyObject *resultobj;
31238 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31239 wxPoint *arg2 = 0 ;
31240 wxWindow *arg3 = (wxWindow *) 0 ;
31241 bool arg4 = (bool) False ;
31242 wxRect *arg5 = (wxRect *) NULL ;
31243 bool result;
31244 wxPoint temp2 ;
31245 PyObject * obj0 = 0 ;
31246 PyObject * obj1 = 0 ;
31247 PyObject * obj2 = 0 ;
31248 PyObject * obj3 = 0 ;
31249 PyObject * obj4 = 0 ;
31250 char *kwnames[] = {
31251 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
31252 };
31253
31254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31257 {
31258 arg2 = &temp2;
31259 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31260 }
31261 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31263 if (obj3) {
31264 arg4 = (bool)SWIG_As_bool(obj3);
31265 if (PyErr_Occurred()) SWIG_fail;
31266 }
31267 if (obj4) {
31268 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
31269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31270 }
31271 {
31272 PyThreadState* __tstate = wxPyBeginAllowThreads();
31273 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
31274
31275 wxPyEndAllowThreads(__tstate);
31276 if (PyErr_Occurred()) SWIG_fail;
31277 }
31278 {
31279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31280 }
31281 return resultobj;
31282 fail:
31283 return NULL;
31284 }
31285
31286
31287 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) {
31288 PyObject *resultobj;
31289 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31290 wxPoint *arg2 = 0 ;
31291 wxWindow *arg3 = (wxWindow *) 0 ;
31292 wxWindow *arg4 = (wxWindow *) 0 ;
31293 bool result;
31294 wxPoint temp2 ;
31295 PyObject * obj0 = 0 ;
31296 PyObject * obj1 = 0 ;
31297 PyObject * obj2 = 0 ;
31298 PyObject * obj3 = 0 ;
31299 char *kwnames[] = {
31300 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
31301 };
31302
31303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31306 {
31307 arg2 = &temp2;
31308 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31309 }
31310 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31312 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
31313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31314 {
31315 PyThreadState* __tstate = wxPyBeginAllowThreads();
31316 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
31317
31318 wxPyEndAllowThreads(__tstate);
31319 if (PyErr_Occurred()) SWIG_fail;
31320 }
31321 {
31322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31323 }
31324 return resultobj;
31325 fail:
31326 return NULL;
31327 }
31328
31329
31330 static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31331 PyObject *resultobj;
31332 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31333 bool result;
31334 PyObject * obj0 = 0 ;
31335 char *kwnames[] = {
31336 (char *) "self", NULL
31337 };
31338
31339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
31340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31342 {
31343 PyThreadState* __tstate = wxPyBeginAllowThreads();
31344 result = (bool)(arg1)->EndDrag();
31345
31346 wxPyEndAllowThreads(__tstate);
31347 if (PyErr_Occurred()) SWIG_fail;
31348 }
31349 {
31350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31351 }
31352 return resultobj;
31353 fail:
31354 return NULL;
31355 }
31356
31357
31358 static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) {
31359 PyObject *resultobj;
31360 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31361 wxPoint *arg2 = 0 ;
31362 bool result;
31363 wxPoint temp2 ;
31364 PyObject * obj0 = 0 ;
31365 PyObject * obj1 = 0 ;
31366 char *kwnames[] = {
31367 (char *) "self",(char *) "pt", NULL
31368 };
31369
31370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
31371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31373 {
31374 arg2 = &temp2;
31375 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31376 }
31377 {
31378 PyThreadState* __tstate = wxPyBeginAllowThreads();
31379 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
31380
31381 wxPyEndAllowThreads(__tstate);
31382 if (PyErr_Occurred()) SWIG_fail;
31383 }
31384 {
31385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31386 }
31387 return resultobj;
31388 fail:
31389 return NULL;
31390 }
31391
31392
31393 static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) {
31394 PyObject *resultobj;
31395 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31396 bool result;
31397 PyObject * obj0 = 0 ;
31398 char *kwnames[] = {
31399 (char *) "self", NULL
31400 };
31401
31402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
31403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31405 {
31406 PyThreadState* __tstate = wxPyBeginAllowThreads();
31407 result = (bool)(arg1)->Show();
31408
31409 wxPyEndAllowThreads(__tstate);
31410 if (PyErr_Occurred()) SWIG_fail;
31411 }
31412 {
31413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31414 }
31415 return resultobj;
31416 fail:
31417 return NULL;
31418 }
31419
31420
31421 static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
31422 PyObject *resultobj;
31423 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31424 bool result;
31425 PyObject * obj0 = 0 ;
31426 char *kwnames[] = {
31427 (char *) "self", NULL
31428 };
31429
31430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
31431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31433 {
31434 PyThreadState* __tstate = wxPyBeginAllowThreads();
31435 result = (bool)(arg1)->Hide();
31436
31437 wxPyEndAllowThreads(__tstate);
31438 if (PyErr_Occurred()) SWIG_fail;
31439 }
31440 {
31441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31442 }
31443 return resultobj;
31444 fail:
31445 return NULL;
31446 }
31447
31448
31449 static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) {
31450 PyObject *resultobj;
31451 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31452 wxPoint *arg2 = 0 ;
31453 wxRect result;
31454 wxPoint temp2 ;
31455 PyObject * obj0 = 0 ;
31456 PyObject * obj1 = 0 ;
31457 char *kwnames[] = {
31458 (char *) "self",(char *) "pos", NULL
31459 };
31460
31461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31464 {
31465 arg2 = &temp2;
31466 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31467 }
31468 {
31469 PyThreadState* __tstate = wxPyBeginAllowThreads();
31470 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31471
31472 wxPyEndAllowThreads(__tstate);
31473 if (PyErr_Occurred()) SWIG_fail;
31474 }
31475 {
31476 wxRect * resultptr;
31477 resultptr = new wxRect((wxRect &) result);
31478 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31479 }
31480 return resultobj;
31481 fail:
31482 return NULL;
31483 }
31484
31485
31486 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31487 PyObject *resultobj;
31488 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31489 wxDC *arg2 = 0 ;
31490 wxPoint *arg3 = 0 ;
31491 bool result;
31492 wxPoint temp3 ;
31493 PyObject * obj0 = 0 ;
31494 PyObject * obj1 = 0 ;
31495 PyObject * obj2 = 0 ;
31496 char *kwnames[] = {
31497 (char *) "self",(char *) "dc",(char *) "pos", NULL
31498 };
31499
31500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31503 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31504 SWIG_POINTER_EXCEPTION | 0)) == -1)
31505 SWIG_fail;
31506 if (arg2 == NULL) {
31507 PyErr_SetString(PyExc_TypeError,"null reference");
31508 SWIG_fail;
31509 }
31510 {
31511 arg3 = &temp3;
31512 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31513 }
31514 {
31515 PyThreadState* __tstate = wxPyBeginAllowThreads();
31516 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31517
31518 wxPyEndAllowThreads(__tstate);
31519 if (PyErr_Occurred()) SWIG_fail;
31520 }
31521 {
31522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31523 }
31524 return resultobj;
31525 fail:
31526 return NULL;
31527 }
31528
31529
31530 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31531 PyObject *resultobj;
31532 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31533 wxDC *arg2 = 0 ;
31534 wxMemoryDC *arg3 = 0 ;
31535 wxRect *arg4 = 0 ;
31536 wxRect *arg5 = 0 ;
31537 bool result;
31538 wxRect temp4 ;
31539 wxRect temp5 ;
31540 PyObject * obj0 = 0 ;
31541 PyObject * obj1 = 0 ;
31542 PyObject * obj2 = 0 ;
31543 PyObject * obj3 = 0 ;
31544 PyObject * obj4 = 0 ;
31545 char *kwnames[] = {
31546 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31547 };
31548
31549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31552 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31553 SWIG_POINTER_EXCEPTION | 0)) == -1)
31554 SWIG_fail;
31555 if (arg2 == NULL) {
31556 PyErr_SetString(PyExc_TypeError,"null reference");
31557 SWIG_fail;
31558 }
31559 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31560 SWIG_POINTER_EXCEPTION | 0)) == -1)
31561 SWIG_fail;
31562 if (arg3 == NULL) {
31563 PyErr_SetString(PyExc_TypeError,"null reference");
31564 SWIG_fail;
31565 }
31566 {
31567 arg4 = &temp4;
31568 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31569 }
31570 {
31571 arg5 = &temp5;
31572 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31573 }
31574 {
31575 PyThreadState* __tstate = wxPyBeginAllowThreads();
31576 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31577
31578 wxPyEndAllowThreads(__tstate);
31579 if (PyErr_Occurred()) SWIG_fail;
31580 }
31581 {
31582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31583 }
31584 return resultobj;
31585 fail:
31586 return NULL;
31587 }
31588
31589
31590 static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31591 PyObject *resultobj;
31592 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31593 wxPoint *arg2 = 0 ;
31594 wxPoint *arg3 = 0 ;
31595 bool arg4 ;
31596 bool arg5 ;
31597 bool result;
31598 wxPoint temp2 ;
31599 wxPoint temp3 ;
31600 PyObject * obj0 = 0 ;
31601 PyObject * obj1 = 0 ;
31602 PyObject * obj2 = 0 ;
31603 PyObject * obj3 = 0 ;
31604 PyObject * obj4 = 0 ;
31605 char *kwnames[] = {
31606 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31607 };
31608
31609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31612 {
31613 arg2 = &temp2;
31614 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31615 }
31616 {
31617 arg3 = &temp3;
31618 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31619 }
31620 arg4 = (bool)SWIG_As_bool(obj3);
31621 if (PyErr_Occurred()) SWIG_fail;
31622 arg5 = (bool)SWIG_As_bool(obj4);
31623 if (PyErr_Occurred()) SWIG_fail;
31624 {
31625 PyThreadState* __tstate = wxPyBeginAllowThreads();
31626 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31627
31628 wxPyEndAllowThreads(__tstate);
31629 if (PyErr_Occurred()) SWIG_fail;
31630 }
31631 {
31632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31633 }
31634 return resultobj;
31635 fail:
31636 return NULL;
31637 }
31638
31639
31640 static PyObject * DragImage_swigregister(PyObject *, PyObject *args) {
31641 PyObject *obj;
31642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31643 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31644 Py_INCREF(obj);
31645 return Py_BuildValue((char *)"");
31646 }
31647 static PyMethodDef SwigMethods[] = {
31648 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL },
31649 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL },
31650 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31651 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31652 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31653 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31654 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL },
31655 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31656 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31657 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31658 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31659 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31660 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31661 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31662 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31663 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31664 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31665 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31666 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31667 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL },
31668 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL },
31669 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL },
31670 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31671 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31672 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31673 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31674 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31675 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31676 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31677 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31678 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL },
31679 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL },
31680 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31681 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL },
31682 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL },
31683 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL },
31684 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31685 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31686 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31687 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31688 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31689 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL },
31690 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31691 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31692 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31693 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31694 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31695 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31696 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31697 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31698 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31699 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31700 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31701 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31702 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31703 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL },
31704 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31705 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31706 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31707 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31708 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31709 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31710 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL },
31711 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL },
31712 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL },
31713 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31714 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31715 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31716 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31717 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31718 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31719 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31720 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31721 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
31722 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
31723 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31724 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL },
31725 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
31726 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
31727 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31728 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31729 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL },
31730 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
31731 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
31732 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31733 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31734 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31735 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31736 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL },
31737 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL },
31738 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL },
31739 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31740 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31741 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL },
31742 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31743 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31744 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31745 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31746 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31747 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
31748 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31749 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL },
31750 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31751 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31752 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31753 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
31754 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL },
31755 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL },
31756 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31757 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31758 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL },
31759 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL },
31760 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31761 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31762 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
31763 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL },
31764 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL },
31765 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31766 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31767 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL },
31768 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31769 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31770 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
31771 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31772 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL },
31773 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31774 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31775 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31776 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31777 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL },
31778 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL },
31779 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31780 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
31781 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL },
31782 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31783 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31784 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL },
31785 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31786 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31787 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31788 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31789 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31790 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31791 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31792 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
31793 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31794 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31795 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
31796 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31797 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31798 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31799 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31800 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
31801 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31802 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31803 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31804 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31805 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31806 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31807 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31808 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31809 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
31810 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31811 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL },
31812 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL },
31813 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31814 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31815 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31816 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31817 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31818 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31819 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL },
31820 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL },
31821 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL },
31822 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL },
31823 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31824 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL },
31825 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL },
31826 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31827 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31828 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
31829 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31830 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31831 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
31832 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
31833 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL },
31834 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL },
31835 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL },
31836 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL },
31837 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL },
31838 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL },
31839 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31840 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31841 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31842 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31843 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31844 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL },
31845 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31846 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31847 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL },
31848 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31849 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31850 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31851 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
31852 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
31853 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
31854 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
31855 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
31856 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
31857 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
31858 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31859 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31860 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31861 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31862 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31863 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31864 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31865 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL },
31866 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL },
31867 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL },
31868 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
31869 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31870 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL },
31871 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31872 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31873 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL },
31874 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31875 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL },
31876 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
31877 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
31878 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31879 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31880 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL },
31881 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31882 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31883 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31884 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31885 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
31886 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31887 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL },
31888 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
31889 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
31890 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31891 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31892 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31893 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31894 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31895 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31896 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31897 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31898 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31899 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31900 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL },
31901 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31902 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31903 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31904 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31905 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31906 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL },
31907 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31908 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31909 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31910 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31911 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31912 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL },
31913 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31914 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31915 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31916 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL },
31917 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
31918 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
31919 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31920 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31921 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31922 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31923 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31924 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
31925 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
31926 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
31927 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31928 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL },
31929 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL },
31930 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
31931 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
31932 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
31933 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31934 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL },
31935 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
31936 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
31937 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31938 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31939 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31940 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31941 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL },
31942 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL },
31943 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL },
31944 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31945 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31946 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31947 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31948 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31949 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31950 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31951 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31952 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
31953 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31954 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
31955 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31956 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
31957 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
31958 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
31959 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
31960 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL },
31961 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL },
31962 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL },
31963 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31964 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL },
31965 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31966 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31967 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL },
31968 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
31969 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
31970 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31971 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31972 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31973 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31974 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31975 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL },
31976 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL },
31977 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS, NULL },
31978 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31979 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
31980 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
31981 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31982 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31983 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31984 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
31985 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
31986 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31987 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
31988 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL },
31989 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL },
31990 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
31991 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS, NULL },
31992 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL },
31993 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31994 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31995 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31996 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS, NULL },
31997 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31998 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31999 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32000 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32001 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32002 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS, NULL },
32003 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL },
32004 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32005 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32006 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
32007 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL },
32008 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL },
32009 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32010 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
32011 { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32012 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32013 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL },
32014 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32015 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL },
32016 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL },
32017 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL },
32018 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32019 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32020 { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL },
32021 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL },
32022 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32023 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL },
32024 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32025 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32026 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32027 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32028 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL },
32029 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32030 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32031 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32032 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32033 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL },
32034 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32035 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32036 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32037 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
32038 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL },
32039 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32040 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32041 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
32042 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32043 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32044 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32045 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32046 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32047 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32048 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32049 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32050 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32051 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
32052 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32053 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32054 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32055 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32056 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32057 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32058 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32059 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
32060 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
32061 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32062 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32063 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL },
32064 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL },
32065 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL },
32066 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32067 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32068 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL },
32069 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL },
32070 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL },
32071 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32072 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32073 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL },
32074 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL },
32075 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL },
32076 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL },
32077 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL },
32078 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL },
32079 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL },
32080 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32081 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32082 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32083 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL },
32084 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL },
32085 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32086 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32087 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32088 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32089 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32090 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL },
32091 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32092 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32093 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32094 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32095 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32096 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32097 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32098 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
32099 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL },
32100 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL },
32101 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL },
32102 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32103 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32104 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL },
32105 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32106 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL },
32107 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32108 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL },
32109 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32110 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32111 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32112 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32113 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32114 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL },
32115 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32116 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32117 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32118 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32119 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32120 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32121 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32122 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32123 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32124 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32125 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32126 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL },
32127 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32128 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32129 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32130 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32131 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32132 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32133 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32134 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32135 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL },
32136 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
32137 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32138 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32139 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32140 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32141 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32142 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32143 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32144 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32145 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32146 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32147 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32148 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32149 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32150 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32151 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32152 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32153 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32154 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32155 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32156 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32157 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32158 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32159 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32160 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL },
32161 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL },
32162 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32163 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32164 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL },
32165 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL },
32166 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32167 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32168 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL },
32169 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL },
32170 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL },
32171 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL },
32172 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL },
32173 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL },
32174 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL },
32175 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL },
32176 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
32177 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
32178 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL },
32179 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32180 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL },
32181 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL },
32182 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32183 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32184 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32185 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32186 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32187 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32188 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL },
32189 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL },
32190 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL },
32191 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32192 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32193 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32194 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32195 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32196 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32197 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32198 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32199 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32200 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32201 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL },
32202 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL },
32203 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32204 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32205 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL },
32206 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32207 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32208 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32209 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32210 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32211 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32212 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32213 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32214 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32215 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32216 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL },
32217 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL },
32218 { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32219 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32220 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32221 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32222 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32223 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32224 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32225 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32226 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32227 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32228 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32229 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32230 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL },
32231 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32232 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32233 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32234 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32235 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32236 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32237 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32238 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL },
32239 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32240 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32241 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32242 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32243 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32244 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32245 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL },
32246 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL },
32247 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL },
32248 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL },
32249 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL },
32250 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
32251 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32252 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32253 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL },
32254 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL },
32255 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32256 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32257 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32258 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
32259 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32260 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL },
32261 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32262 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32263 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32264 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL },
32265 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32266 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32267 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32268 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32269 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL },
32270 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32271 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32272 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32273 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32274 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL },
32275 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32276 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32277 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL },
32278 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL },
32279 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL },
32280 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32281 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32282 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL },
32283 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL },
32284 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32285 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32286 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32287 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32288 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32289 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL },
32290 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32291 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32292 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
32293 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
32294 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
32295 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL },
32296 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL },
32297 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL },
32298 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32299 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32300 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32301 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32302 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32303 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32304 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL },
32305 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32306 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32307 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32308 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32309 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32310 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32311 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32312 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32313 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32314 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32315 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32316 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32317 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32318 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32319 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
32320 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL },
32321 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32322 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32323 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32324 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32325 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32326 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32327 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32328 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32329 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32330 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32331 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32332 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32333 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32334 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32335 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32336 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32337 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32338 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32339 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32340 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32341 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32342 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32343 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32344 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32345 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32346 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32347 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32348 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL },
32349 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL },
32350 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32351 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32352 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32353 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32354 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32355 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL },
32356 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32357 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL },
32358 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL },
32359 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL },
32360 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32361 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32362 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL },
32363 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL },
32364 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL },
32365 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL },
32366 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32367 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32368 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL },
32369 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32370 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32371 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL },
32372 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
32373 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32374 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL },
32375 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
32376 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
32377 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32378 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32379 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL },
32380 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL },
32381 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL },
32382 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32383 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL },
32384 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32385 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32386 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32387 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32388 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32389 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL },
32390 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32391 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32392 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32393 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32394 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32395 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL },
32396 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32397 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32398 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32399 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL },
32400 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32401 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32402 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32403 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL },
32404 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32405 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32406 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32407 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL },
32408 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32409 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32410 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32411 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32412 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32413 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32414 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32415 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL },
32416 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32417 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32418 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL },
32419 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL },
32420 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL },
32421 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL },
32422 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32423 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32424 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32425 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
32426 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
32427 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32428 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32429 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32430 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32431 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32432 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32433 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32434 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32435 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32436 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32437 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32438 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32439 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32440 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
32441 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32442 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32443 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
32444 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
32445 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
32446 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
32447 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
32448 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
32449 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
32450 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32451 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32452 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
32453 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32454 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32455 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32456 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32457 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32458 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32459 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32460 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL },
32461 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32462 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32463 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32464 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32465 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL },
32466 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL },
32467 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL },
32468 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32469 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL },
32470 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32471 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32472 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32473 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL },
32474 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32475 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32476 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL },
32477 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL },
32478 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL },
32479 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32480 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32481 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL },
32482 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL },
32483 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32484 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32485 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32486 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32487 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL },
32488 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32489 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL },
32490 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL },
32491 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
32492 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL },
32493 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32494 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32495 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32496 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL },
32497 { NULL, NULL, 0, NULL }
32498 };
32499
32500
32501 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32502
32503 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
32504 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32505 }
32506 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
32507 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
32508 }
32509 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32510 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32511 }
32512 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32513 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32514 }
32515 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32516 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32517 }
32518 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32519 return (void *)((wxSizer *) ((wxGridSizer *) x));
32520 }
32521 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32522 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32523 }
32524 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32525 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32526 }
32527 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32528 return (void *)((wxSizer *) ((wxPySizer *) x));
32529 }
32530 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32531 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32532 }
32533 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32534 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32535 }
32536 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32537 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32538 }
32539 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32540 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32541 }
32542 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32543 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32544 }
32545 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32546 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32547 }
32548 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32549 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32550 }
32551 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32552 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32553 }
32554 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32555 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32556 }
32557 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32558 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32559 }
32560 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32561 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32562 }
32563 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
32564 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32565 }
32566 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32567 return (void *)((wxEvent *) ((wxPyEvent *) x));
32568 }
32569 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32570 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32571 }
32572 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32573 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32574 }
32575 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32576 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32577 }
32578 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32579 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32580 }
32581 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32582 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32583 }
32584 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32585 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32586 }
32587 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32588 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32589 }
32590 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32591 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32592 }
32593 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32594 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32595 }
32596 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32597 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32598 }
32599 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32600 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32601 }
32602 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32603 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32604 }
32605 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32606 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32607 }
32608 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32609 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32610 }
32611 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32612 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32613 }
32614 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32615 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32616 }
32617 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32618 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32619 }
32620 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32621 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32622 }
32623 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32624 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32625 }
32626 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32627 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32628 }
32629 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32630 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32631 }
32632 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32633 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32634 }
32635 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32636 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32637 }
32638 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32639 return (void *)((wxEvent *) ((wxShowEvent *) x));
32640 }
32641 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32642 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32643 }
32644 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32645 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32646 }
32647 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32648 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32649 }
32650 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32651 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32652 }
32653 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32654 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32655 }
32656 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32657 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32658 }
32659 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32660 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32661 }
32662 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32663 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32664 }
32665 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32666 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32667 }
32668 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32669 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32670 }
32671 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32672 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32673 }
32674 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32675 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32676 }
32677 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32678 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32679 }
32680 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32681 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32682 }
32683 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
32684 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32685 }
32686 static void *_p_wxListBoxTo_p_wxControl(void *x) {
32687 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
32688 }
32689 static void *_p_wxChoiceTo_p_wxControl(void *x) {
32690 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
32691 }
32692 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32693 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32694 }
32695 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
32696 return (void *)((wxControl *) ((wxStaticBitmap *) x));
32697 }
32698 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32699 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32700 }
32701 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
32702 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32703 }
32704 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32705 return (void *)((wxControl *) ((wxStaticBox *) x));
32706 }
32707 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32708 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32709 }
32710 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32711 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32712 }
32713 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32714 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32715 }
32716 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32717 return (void *)((wxControl *) ((wxScrollBar *) x));
32718 }
32719 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32720 return (void *)((wxControl *) ((wxBookCtrl *) x));
32721 }
32722 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32723 return (void *)((wxControl *) ((wxRadioButton *) x));
32724 }
32725 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32726 return (void *)((wxControl *) ((wxToggleButton *) x));
32727 }
32728 static void *_p_wxGaugeTo_p_wxControl(void *x) {
32729 return (void *)((wxControl *) ((wxGauge *) x));
32730 }
32731 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32732 return (void *)((wxControl *) ((wxToolBarBase *) x));
32733 }
32734 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32735 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32736 }
32737 static void *_p_wxButtonTo_p_wxControl(void *x) {
32738 return (void *)((wxControl *) ((wxButton *) x));
32739 }
32740 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32741 return (void *)((wxControl *) ((wxSpinButton *) x));
32742 }
32743 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32744 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32745 }
32746 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32747 return (void *)((wxControl *) ((wxControlWithItems *) x));
32748 }
32749 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32750 return (void *)((wxControl *) ((wxRadioBox *) x));
32751 }
32752 static void *_p_wxNotebookTo_p_wxControl(void *x) {
32753 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32754 }
32755 static void *_p_wxListbookTo_p_wxControl(void *x) {
32756 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32757 }
32758 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32759 return (void *)((wxControl *) ((wxCheckBox *) x));
32760 }
32761 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32762 return (void *)((wxControl *) ((wxTextCtrl *) x));
32763 }
32764 static void *_p_wxListViewTo_p_wxControl(void *x) {
32765 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32766 }
32767 static void *_p_wxSliderTo_p_wxControl(void *x) {
32768 return (void *)((wxControl *) ((wxSlider *) x));
32769 }
32770 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32771 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32772 }
32773 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32774 return (void *)((wxControl *) ((wxPyControl *) x));
32775 }
32776 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32777 return (void *)((wxControl *) ((wxStaticLine *) x));
32778 }
32779 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32780 return (void *)((wxControl *) ((wxStaticText *) x));
32781 }
32782 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32783 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32784 }
32785 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
32786 return (void *)((wxChoice *) ((wxComboBox *) x));
32787 }
32788 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32789 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32790 }
32791 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32792 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32793 }
32794 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32795 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32796 }
32797 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32798 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32799 }
32800 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32801 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32802 }
32803 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32804 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32805 }
32806 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32807 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32808 }
32809 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32810 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32811 }
32812 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32813 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32814 }
32815 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32816 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32817 }
32818 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32819 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32820 }
32821 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32822 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32823 }
32824 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32825 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32826 }
32827 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32828 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32829 }
32830 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32831 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32832 }
32833 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32834 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32835 }
32836 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32837 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32838 }
32839 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32840 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32841 }
32842 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32843 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32844 }
32845 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32846 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32847 }
32848 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32849 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32850 }
32851 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32852 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32853 }
32854 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32855 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32856 }
32857 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32858 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32859 }
32860 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32861 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32862 }
32863 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32864 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32865 }
32866 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32867 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32868 }
32869 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32870 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32871 }
32872 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32873 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32874 }
32875 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32876 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32877 }
32878 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32879 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32880 }
32881 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32882 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32883 }
32884 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32885 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32886 }
32887 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32888 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32889 }
32890 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32891 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32892 }
32893 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32894 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32895 }
32896 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32897 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32898 }
32899 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32900 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32901 }
32902 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32903 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32904 }
32905 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32906 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32907 }
32908 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32909 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32910 }
32911 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32912 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32913 }
32914 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32915 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32916 }
32917 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32918 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32919 }
32920 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32921 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32922 }
32923 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32924 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32925 }
32926 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32927 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32928 }
32929 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32930 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32931 }
32932 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32933 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32934 }
32935 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32936 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32937 }
32938 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32939 return (void *)((wxButton *) ((wxBitmapButton *) x));
32940 }
32941 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32942 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32943 }
32944 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32945 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32946 }
32947 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32948 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32949 }
32950 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32951 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32952 }
32953 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32954 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32955 }
32956 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32957 return (void *)((wxObject *) ((wxSizerItem *) x));
32958 }
32959 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32960 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32961 }
32962 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32963 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32964 }
32965 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32966 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32967 }
32968 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32969 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32970 }
32971 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32972 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32973 }
32974 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32975 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32976 }
32977 static void *_p_wxSizerTo_p_wxObject(void *x) {
32978 return (void *)((wxObject *) ((wxSizer *) x));
32979 }
32980 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32981 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32982 }
32983 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32984 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32985 }
32986 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32987 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32988 }
32989 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32990 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32991 }
32992 static void *_p_wxEventTo_p_wxObject(void *x) {
32993 return (void *)((wxObject *) ((wxEvent *) x));
32994 }
32995 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32996 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32997 }
32998 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32999 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
33000 }
33001 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33002 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33003 }
33004 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
33005 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
33006 }
33007 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
33008 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
33009 }
33010 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
33011 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33012 }
33013 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33014 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33015 }
33016 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33017 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33018 }
33019 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
33020 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
33021 }
33022 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
33023 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
33024 }
33025 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
33026 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33027 }
33028 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
33029 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
33030 }
33031 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
33032 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
33033 }
33034 static void *_p_wxControlTo_p_wxObject(void *x) {
33035 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
33036 }
33037 static void *_p_wxPyControlTo_p_wxObject(void *x) {
33038 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
33039 }
33040 static void *_p_wxGaugeTo_p_wxObject(void *x) {
33041 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
33042 }
33043 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
33044 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
33045 }
33046 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
33047 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
33048 }
33049 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
33050 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33051 }
33052 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
33053 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
33054 }
33055 static void *_p_wxChoiceTo_p_wxObject(void *x) {
33056 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33057 }
33058 static void *_p_wxFSFileTo_p_wxObject(void *x) {
33059 return (void *)((wxObject *) ((wxFSFile *) x));
33060 }
33061 static void *_p_wxPySizerTo_p_wxObject(void *x) {
33062 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
33063 }
33064 static void *_p_wxListViewTo_p_wxObject(void *x) {
33065 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33066 }
33067 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
33068 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33069 }
33070 static void *_p_wxNotebookTo_p_wxObject(void *x) {
33071 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33072 }
33073 static void *_p_wxPyEventTo_p_wxObject(void *x) {
33074 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
33075 }
33076 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
33077 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
33078 }
33079 static void *_p_wxListbookTo_p_wxObject(void *x) {
33080 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33081 }
33082 static void *_p_wxShowEventTo_p_wxObject(void *x) {
33083 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
33084 }
33085 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
33086 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33087 }
33088 static void *_p_wxSliderTo_p_wxObject(void *x) {
33089 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
33090 }
33091 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
33092 return (void *)((wxObject *) ((wxMenuItem *) x));
33093 }
33094 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
33095 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
33096 }
33097 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
33098 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
33099 }
33100 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
33101 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
33102 }
33103 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
33104 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
33105 }
33106 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
33107 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
33108 }
33109 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
33110 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
33111 }
33112 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
33113 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
33114 }
33115 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
33116 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
33117 }
33118 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
33119 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
33120 }
33121 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
33122 return (void *)((wxObject *) ((wxContextHelp *) x));
33123 }
33124 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
33125 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
33126 }
33127 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
33128 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
33129 }
33130 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
33131 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
33132 }
33133 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
33134 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
33135 }
33136 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
33137 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
33138 }
33139 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
33140 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
33141 }
33142 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
33143 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
33144 }
33145 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
33146 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
33147 }
33148 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
33149 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
33150 }
33151 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
33152 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
33153 }
33154 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
33155 return (void *)((wxObject *) ((wxImageHandler *) x));
33156 }
33157 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
33158 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
33159 }
33160 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
33161 return (void *)((wxObject *) ((wxEvtHandler *) x));
33162 }
33163 static void *_p_wxListEventTo_p_wxObject(void *x) {
33164 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
33165 }
33166 static void *_p_wxListBoxTo_p_wxObject(void *x) {
33167 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33168 }
33169 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
33170 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33171 }
33172 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
33173 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
33174 }
33175 static void *_p_wxButtonTo_p_wxObject(void *x) {
33176 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
33177 }
33178 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
33179 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33180 }
33181 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
33182 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
33183 }
33184 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
33185 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33186 }
33187 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
33188 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
33189 }
33190 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
33191 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
33192 }
33193 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
33194 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
33195 }
33196 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
33197 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33198 }
33199 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
33200 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
33201 }
33202 static void *_p_wxListItemTo_p_wxObject(void *x) {
33203 return (void *)((wxObject *) ((wxListItem *) x));
33204 }
33205 static void *_p_wxImageTo_p_wxObject(void *x) {
33206 return (void *)((wxObject *) ((wxImage *) x));
33207 }
33208 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
33209 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
33210 }
33211 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
33212 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
33213 }
33214 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
33215 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
33216 }
33217 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
33218 return (void *)((wxObject *) ((wxGenericDragImage *) x));
33219 }
33220 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
33221 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33222 }
33223 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
33224 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33225 }
33226 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
33227 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33228 }
33229 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
33230 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33231 }
33232 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
33233 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
33234 }
33235 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
33236 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
33237 }
33238 static void *_p_wxWindowTo_p_wxObject(void *x) {
33239 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
33240 }
33241 static void *_p_wxMenuTo_p_wxObject(void *x) {
33242 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
33243 }
33244 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
33245 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
33246 }
33247 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
33248 return (void *)((wxObject *) ((wxFileSystem *) x));
33249 }
33250 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
33251 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
33252 }
33253 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
33254 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
33255 }
33256 static void *_p_wxPyAppTo_p_wxObject(void *x) {
33257 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
33258 }
33259 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
33260 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
33261 }
33262 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
33263 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
33264 }
33265 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
33266 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
33267 }
33268 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
33269 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
33270 }
33271 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
33272 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
33273 }
33274 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
33275 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
33276 }
33277 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
33278 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
33279 }
33280 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
33281 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
33282 }
33283 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
33284 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
33285 }
33286 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
33287 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33288 }
33289 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
33290 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33291 }
33292 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
33293 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
33294 }
33295 static void *_p_wxToolBarTo_p_wxObject(void *x) {
33296 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33297 }
33298 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
33299 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
33300 }
33301 static void *_p_wxValidatorTo_p_wxObject(void *x) {
33302 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
33303 }
33304 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
33305 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
33306 }
33307 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
33308 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
33309 }
33310 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
33311 return (void *)((wxWindow *) ((wxMenuBar *) x));
33312 }
33313 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
33314 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33315 }
33316 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
33317 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
33318 }
33319 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
33320 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
33321 }
33322 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
33323 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
33324 }
33325 static void *_p_wxControlTo_p_wxWindow(void *x) {
33326 return (void *)((wxWindow *) ((wxControl *) x));
33327 }
33328 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
33329 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
33330 }
33331 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
33332 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33333 }
33334 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
33335 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
33336 }
33337 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
33338 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33339 }
33340 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
33341 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
33342 }
33343 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
33344 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
33345 }
33346 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33347 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33348 }
33349 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
33350 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
33351 }
33352 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
33353 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
33354 }
33355 static void *_p_wxListbookTo_p_wxWindow(void *x) {
33356 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33357 }
33358 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
33359 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
33360 }
33361 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
33362 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
33363 }
33364 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
33365 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
33366 }
33367 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
33368 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33369 }
33370 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
33371 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33372 }
33373 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
33374 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33375 }
33376 static void *_p_wxListViewTo_p_wxWindow(void *x) {
33377 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33378 }
33379 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
33380 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33381 }
33382 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
33383 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
33384 }
33385 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
33386 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
33387 }
33388 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
33389 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
33390 }
33391 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
33392 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
33393 }
33394 static void *_p_wxSliderTo_p_wxWindow(void *x) {
33395 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
33396 }
33397 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
33398 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
33399 }
33400 static void *_p_wxButtonTo_p_wxWindow(void *x) {
33401 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
33402 }
33403 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
33404 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
33405 }
33406 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
33407 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33408 }
33409 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
33410 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
33411 }
33412 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
33413 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33414 }
33415 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
33416 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
33417 }
33418 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
33419 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
33420 }
33421 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
33422 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
33423 }
33424 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
33425 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
33426 }
33427 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
33428 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
33429 }
33430 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
33431 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
33432 }
33433 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
33434 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33435 }
33436 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
33437 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33438 }
33439 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
33440 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
33441 }
33442 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
33443 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
33444 }
33445 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
33446 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
33447 }
33448 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
33449 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
33450 }
33451 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
33452 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
33453 }
33454 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
33455 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
33456 }
33457 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
33458 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
33459 }
33460 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
33461 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
33462 }
33463 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
33464 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
33465 }
33466 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33467 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33468 }
33469 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33470 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33471 }
33472 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33473 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33474 }
33475 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33476 return (void *)((wxValidator *) ((wxPyValidator *) x));
33477 }
33478 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}};
33479 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}};
33480 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}};
33481 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}};
33482 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}};
33483 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}};
33484 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}};
33485 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}};
33486 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}};
33487 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}};
33488 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}};
33489 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}};
33490 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}};
33491 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}};
33492 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}};
33493 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}};
33494 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}};
33495 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}};
33496 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}};
33497 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}};
33498 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}};
33499 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}};
33500 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}};
33501 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}};
33502 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}};
33503 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}};
33504 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}};
33505 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}};
33506 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}};
33507 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}};
33508 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}};
33509 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}};
33510 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}};
33511 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}};
33512 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}};
33513 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}};
33514 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}};
33515 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}};
33516 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}};
33517 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}};
33518 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}};
33519 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}};
33520 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}};
33521 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}};
33522 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}};
33523 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}};
33524 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}};
33525 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}};
33526 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}};
33527 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}};
33528 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}};
33529 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}};
33530 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}};
33531 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}};
33532 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}};
33533 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}};
33534 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}};
33535 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}};
33536 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}};
33537 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}};
33538 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}};
33539 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}};
33540 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}};
33541 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}};
33542 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}};
33543 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}};
33544 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}};
33545 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}};
33546 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}};
33547 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}};
33548 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}};
33549 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}};
33550 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}};
33551 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}};
33552 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}};
33553 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}};
33554 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}};
33555 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}};
33556 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}};
33557 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}};
33558 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}};
33559 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}};
33560 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}};
33561 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}};
33562 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}};
33563
33564 static swig_type_info *swig_types_initial[] = {
33565 _swigt__p_wxTextUrlEvent,
33566 _swigt__p_wxBookCtrlEvent,
33567 _swigt__p_wxSizer,
33568 _swigt__p_wxCheckBox,
33569 _swigt__p_wxPyTreeCtrl,
33570 _swigt__p_wxEvent,
33571 _swigt__p_wxGenericDirCtrl,
33572 _swigt__p_bool,
33573 _swigt__p_wxPyTreeItemData,
33574 _swigt__p_wxItemContainer,
33575 _swigt__p_wxPyListCtrl,
33576 _swigt__p_wxDirFilterListCtrl,
33577 _swigt__p_wxStaticLine,
33578 _swigt__p_wxControl,
33579 _swigt__p_wxPyControl,
33580 _swigt__p_wxGauge,
33581 _swigt__p_wxToolBarBase,
33582 _swigt__p_wxFont,
33583 _swigt__p_wxToggleButton,
33584 _swigt__p_wxRadioButton,
33585 _swigt__p_wxChoice,
33586 _swigt__p_wxMemoryDC,
33587 _swigt__p_wxListItemAttr,
33588 _swigt__p_void,
33589 _swigt__p_int,
33590 _swigt__p_wxSize,
33591 _swigt__p_wxDC,
33592 _swigt__p_wxListView,
33593 _swigt__p_wxIcon,
33594 _swigt__p_wxVisualAttributes,
33595 _swigt__p_wxTextCtrl,
33596 _swigt__p_wxNotebook,
33597 _swigt__p_wxNotifyEvent,
33598 _swigt__p_wxArrayString,
33599 _swigt__p_wxListbook,
33600 _swigt__p_wxStaticBitmap,
33601 _swigt__p_wxSlider,
33602 _swigt__p_wxStaticBox,
33603 _swigt__p_wxArrayInt,
33604 _swigt__p_wxContextHelp,
33605 _swigt__p_long,
33606 _swigt__p_wxEvtHandler,
33607 _swigt__p_wxListEvent,
33608 _swigt__p_wxCheckListBox,
33609 _swigt__p_wxListBox,
33610 _swigt__p_wxBookCtrl,
33611 _swigt__p_wxSpinButton,
33612 _swigt__p_wxButton,
33613 _swigt__p_wxBitmapButton,
33614 _swigt__p_wxRect,
33615 _swigt__p_wxContextHelpButton,
33616 _swigt__p_wxRadioBox,
33617 _swigt__p_wxScrollBar,
33618 _swigt__p_char,
33619 _swigt__p_wxTreeItemId,
33620 _swigt__p_wxComboBox,
33621 _swigt__p_wxHelpEvent,
33622 _swigt__p_wxListItem,
33623 _swigt__p_wxNotebookSizer,
33624 _swigt__p_wxSpinEvent,
33625 _swigt__p_wxGenericDragImage,
33626 _swigt__p_wxSpinCtrl,
33627 _swigt__p_wxImageList,
33628 _swigt__p_wxHelpProvider,
33629 _swigt__p_wxTextAttr,
33630 _swigt__p_wxSimpleHelpProvider,
33631 _swigt__p_wxPoint,
33632 _swigt__p_wxListbookEvent,
33633 _swigt__p_wxNotebookEvent,
33634 _swigt__p_wxObject,
33635 _swigt__p_wxCursor,
33636 _swigt__p_wxKeyEvent,
33637 _swigt__p_wxWindow,
33638 _swigt__p_wxString,
33639 _swigt__p_wxBitmap,
33640 _swigt__p_wxTreeEvent,
33641 _swigt__p_wxMouseEvent,
33642 _swigt__p_wxCommandEvent,
33643 _swigt__p_wxStaticText,
33644 _swigt__p_wxControlWithItems,
33645 _swigt__p_wxToolBarToolBase,
33646 _swigt__p_wxColour,
33647 _swigt__p_wxToolBar,
33648 _swigt__p_wxBookCtrlSizer,
33649 _swigt__p_wxValidator,
33650 0
33651 };
33652
33653
33654 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33655
33656 static swig_const_info swig_const_table[] = {
33657 {0, 0, 0, 0.0, 0, 0}};
33658
33659 #ifdef __cplusplus
33660 }
33661 #endif
33662
33663 #ifdef __cplusplus
33664 extern "C"
33665 #endif
33666 SWIGEXPORT(void) SWIG_init(void) {
33667 static PyObject *SWIG_globals = 0;
33668 static int typeinit = 0;
33669 PyObject *m, *d;
33670 int i;
33671 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33672 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33673 d = PyModule_GetDict(m);
33674
33675 if (!typeinit) {
33676 for (i = 0; swig_types_initial[i]; i++) {
33677 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33678 }
33679 typeinit = 1;
33680 }
33681 SWIG_InstallConstants(d,swig_const_table);
33682
33683 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33684 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33685 PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT));
33686 PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP));
33687 PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT));
33688 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM));
33689 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT));
33690 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW));
33691 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33692 PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE));
33693 PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE));
33694 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
33695 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED));
33696 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED));
33697 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED));
33698 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
33699 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
33700 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
33701 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL));
33702 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL));
33703 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH));
33704 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR));
33705 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
33706 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
33707 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
33708 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33709 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33710 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL));
33711 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL));
33712 PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY));
33713 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE));
33714 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB));
33715 PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT));
33716 PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER));
33717 PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT));
33718 PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE));
33719 PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH));
33720 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER));
33721 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD));
33722 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL));
33723 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL));
33724 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP));
33725 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP));
33726 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP));
33727 PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2));
33728 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT));
33729 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT));
33730 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE));
33731 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER));
33732 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT));
33733 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33734 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR));
33735 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33736 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE));
33737 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE));
33738 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT));
33739 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC));
33740 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE));
33741 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT));
33742 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT));
33743 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT));
33744 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT));
33745 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS));
33746 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN));
33747 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE));
33748 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT));
33749 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW));
33750 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND));
33751 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33752 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33753 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33754 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33755 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33756 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33757 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33758 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL));
33759 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL));
33760 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS));
33761 PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP));
33762 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33763 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33764 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33765 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33766 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33767 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33768 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33769 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH));
33770 PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP));
33771 PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT));
33772 PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT));
33773 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM));
33774 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE));
33775 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE));
33776 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON));
33777 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL));
33778 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM));
33779 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33780 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33781 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT));
33782 PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP));
33783 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM));
33784 PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT));
33785 PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT));
33786 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK));
33787 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33788 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33789 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON));
33790 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR));
33791 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL));
33792 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL));
33793 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL));
33794 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS));
33795 PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT));
33796 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE));
33797 PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS));
33798 PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT));
33799 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER));
33800 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN));
33801 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT));
33802 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT));
33803 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33804 PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES));
33805 PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES));
33806 PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON));
33807 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON));
33808 PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST));
33809 PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT));
33810 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP));
33811 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT));
33812 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE));
33813 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL));
33814 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS));
33815 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER));
33816 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER));
33817 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL));
33818 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING));
33819 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING));
33820 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE));
33821 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN));
33822 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT));
33823 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE));
33824 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT));
33825 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE));
33826 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA));
33827 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM));
33828 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH));
33829 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT));
33830 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE));
33831 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED));
33832 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED));
33833 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED));
33834 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT));
33835 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED));
33836 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED));
33837 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE));
33838 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED));
33839 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE));
33840 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE));
33841 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW));
33842 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE));
33843 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON));
33844 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL));
33845 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT));
33846 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON));
33847 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT));
33848 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT));
33849 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM));
33850 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE));
33851 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL));
33852 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW));
33853 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT));
33854 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT));
33855 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT));
33856 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT));
33857 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP));
33858 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID));
33859 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT));
33860 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT));
33861 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE));
33862 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER));
33863 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE));
33864 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER));
33865 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS));
33866 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON));
33867 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL));
33868 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP));
33869 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN));
33870 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT));
33871 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT));
33872 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33873 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33874 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33875 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33876 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33877 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33878 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33879 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33880 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33881 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33882 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33883 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33884 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33885 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33886 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33887 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33888 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33889 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33890 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33891 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33892 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33893 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33894
33895 // Map renamed classes back to their common name for OOR
33896 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33897
33898 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33899 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS));
33900 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS));
33901 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES));
33902 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT));
33903 PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE));
33904 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE));
33905 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED));
33906 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33907 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS));
33908 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT));
33909 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES));
33910 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT));
33911 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE));
33912 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS));
33913 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS));
33914 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS));
33915 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal));
33916 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected));
33917 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded));
33918 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded));
33919 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max));
33920 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE));
33921 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW));
33922 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE));
33923 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON));
33924 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON));
33925 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT));
33926 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL));
33927 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT));
33928 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON));
33929 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT));
33930 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT));
33931 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART));
33932 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART));
33933 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM));
33934 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33935 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33936 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33937 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33938 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33939 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33940 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33941 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33942 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33943 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33944 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33945 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33946 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33947 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33948 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33949 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33950 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33951 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33952 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33953 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33954
33955 // Map renamed classes back to their common name for OOR
33956 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33957 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33958
33959 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33960 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY));
33961 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST));
33962 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS));
33963 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL));
33964 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS));
33965 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP));
33966 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP));
33967 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33968 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33969
33970 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33971
33972 }
33973