]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
Some change notes
[wxWidgets.git] / wxPython / src / mac / _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 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
343 #define SWIG_From_signed_SS_char PyInt_FromLong
344 /*@@*/
345 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
346 #define SWIG_From_unsigned_SS_char PyInt_FromLong
347 /*@@*/
348 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
349 #define SWIG_From_short PyInt_FromLong
350 /*@@*/
351 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
352 #define SWIG_From_unsigned_SS_short PyInt_FromLong
353 /*@@*/
354 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
355 #define SWIG_From_int PyInt_FromLong
356 /*@@*/
357 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
358 #define SWIG_From_long PyInt_FromLong
359 /*@@*/
360 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
361 #define SWIG_From_float PyFloat_FromDouble
362 /*@@*/
363 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
364 #define SWIG_From_double PyFloat_FromDouble
365 /*@@*/
366
367
368 #include "wx/wxPython/wxPython.h"
369 #include "wx/wxPython/pyclasses.h"
370
371 static const wxString wxPyPanelNameStr(wxPanelNameStr);
372 static const wxString wxPyEmptyString(wxEmptyString);
373 static const wxString wxPyControlNameStr(wxControlNameStr);
374
375 const wxArrayString wxPyEmptyStringArray;
376
377 static const wxString wxPyButtonNameStr(wxButtonNameStr);
378
379 #include <limits.h>
380
381
382 SWIGSTATICINLINE(int)
383 SWIG_CheckLongInRange(long value, long min_value, long max_value,
384 const char *errmsg)
385 {
386 if (value < min_value) {
387 if (errmsg) {
388 PyErr_Format(PyExc_OverflowError,
389 "value %ld is less than '%s' minimum %ld",
390 value, errmsg, min_value);
391 }
392 return 0;
393 } else if (value > max_value) {
394 if (errmsg) {
395 PyErr_Format(PyExc_OverflowError,
396 "value %ld is greater than '%s' maximum %ld",
397 value, errmsg, max_value);
398 }
399 return 0;
400 }
401 return 1;
402 }
403
404
405 // See my_fragments.i
406 SWIGSTATICINLINE(int)
407 SWIG_AsVal_long(PyObject* obj, long* val)
408 {
409 if (PyNumber_Check(obj)) {
410 if (val) *val = PyInt_AsLong(obj);
411 return 1;
412 }
413 else {
414 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
415 obj->ob_type->tp_name);
416 PyErr_SetObject(PyExc_TypeError, errmsg);
417 Py_DECREF(errmsg);
418 }
419 return 0;
420 }
421
422
423 #if INT_MAX != LONG_MAX
424 SWIGSTATICINLINE(int)
425 SWIG_AsVal_int(PyObject *obj, int *val)
426 {
427 const char* errmsg = val ? "int" : 0;
428 long v;
429 if (SWIG_AsVal_long(obj, &v)) {
430 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
431 if (val) *val = swig_numeric_cast(v, int);
432 return 1;
433 } else {
434 return 0;
435 }
436 } else {
437 PyErr_Clear();
438 }
439 if (val) {
440 PyErr_SetString(PyExc_TypeError, "an int is expected");
441 }
442 return 0;
443 }
444 #else
445 SWIGSTATICINLINE(int)
446 SWIG_AsVal_int(PyObject *obj, int *val)
447 {
448 return SWIG_AsVal_long(obj,(long*)val);
449 }
450 #endif
451
452
453 SWIGSTATICINLINE(int)
454 SWIG_As_int(PyObject* obj)
455 {
456 int v;
457 if (!SWIG_AsVal_int(obj, &v)) {
458 /*
459 this is needed to make valgrind/purify happier. the other
460 solution is throw an exception, but since this code should work
461 with plain C ....
462 */
463 memset((void*)&v, 0, sizeof(int));
464 }
465 return v;
466 }
467
468
469 SWIGSTATICINLINE(long)
470 SWIG_As_long(PyObject* obj)
471 {
472 long v;
473 if (!SWIG_AsVal_long(obj, &v)) {
474 /*
475 this is needed to make valgrind/purify happier. the other
476 solution is throw an exception, but since this code should work
477 with plain C ....
478 */
479 memset((void*)&v, 0, sizeof(long));
480 }
481 return v;
482 }
483
484
485 SWIGSTATICINLINE(int)
486 SWIG_Check_int(PyObject* obj)
487 {
488 return SWIG_AsVal_int(obj, (int*)0);
489 }
490
491
492 SWIGSTATICINLINE(int)
493 SWIG_Check_long(PyObject* obj)
494 {
495 return SWIG_AsVal_long(obj, (long*)0);
496 }
497
498 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
499
500 SWIGSTATICINLINE(int)
501 SWIG_AsVal_bool(PyObject *obj, bool *val)
502 {
503 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
504 if (obj == Py_True) {
505 if (val) *val = true;
506 return 1;
507 }
508 if (obj == Py_False) {
509 if (val) *val = false;
510 return 1;
511 }
512 int res = 0;
513 if (SWIG_AsVal_int(obj, &res)) {
514 if (val) *val = (bool)res;
515 return 1;
516 }
517 if (val) {
518 PyErr_SetString(PyExc_TypeError, "a bool is expected");
519 }
520 return 0;
521 }
522
523
524 SWIGSTATICINLINE(bool)
525 SWIG_As_bool(PyObject* obj)
526 {
527 bool v;
528 if (!SWIG_AsVal_bool(obj, &v)) {
529 /*
530 this is needed to make valgrind/purify happier. the other
531 solution is throw an exception, but since this code should work
532 with plain C ....
533 */
534 memset((void*)&v, 0, sizeof(bool));
535 }
536 return v;
537 }
538
539
540 SWIGSTATICINLINE(int)
541 SWIG_Check_bool(PyObject* obj)
542 {
543 return SWIG_AsVal_bool(obj, (bool*)0);
544 }
545
546 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
547 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
548 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
549 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
550 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
551 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
552
553 #include <wx/checklst.h>
554
555
556 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
557 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
558 if (clientData) {
559 wxPyClientData* data = new wxPyClientData(clientData);
560 self->Insert(item, pos, data);
561 } else
562 self->Insert(item, pos);
563 }
564 PyObject *wxListBox_GetSelections(wxListBox *self){
565 wxArrayInt lst;
566 self->GetSelections(lst);
567 PyObject *tup = PyTuple_New(lst.GetCount());
568 for(size_t i=0; i<lst.GetCount(); i++) {
569 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
570 }
571 return tup;
572 }
573 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
574 #ifdef __WXMSW__
575 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
576 self->GetItem(item)->SetTextColour(c);
577 #endif
578 }
579 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
580 #ifdef __WXMSW__
581 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
582 self->GetItem(item)->SetBackgroundColour(c);
583 #endif
584 }
585 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
586 #ifdef __WXMSW__
587 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
588 self->GetItem(item)->SetFont(f);
589 #endif
590 }
591 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
592
593 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
594 PyObject* o2;
595 PyObject* o3;
596
597 if (!target) {
598 target = o;
599 } else if (target == Py_None) {
600 Py_DECREF(Py_None);
601 target = o;
602 } else {
603 o2 = target;
604 target = PyTuple_New(1);
605 PyTuple_SetItem(target, 0, o2);
606
607 o3 = PyTuple_New(1);
608 PyTuple_SetItem(o3, 0, o);
609
610 o2 = target;
611 target = PySequence_Concat(o2, o3);
612 Py_DECREF(o2);
613 Py_DECREF(o3);
614 }
615 return target;
616 }
617
618
619
620 // See my_fragments.i
621 SWIGSTATICINLINE(int)
622 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
623 {
624 long v = 0;
625 if (SWIG_AsVal_long(obj, &v) && v < 0) {
626 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
627 return 0;
628 }
629 else if (val)
630 *val = (unsigned long)v;
631 return 1;
632 }
633
634
635 SWIGSTATICINLINE(unsigned long)
636 SWIG_As_unsigned_SS_long(PyObject* obj)
637 {
638 unsigned long v;
639 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
640 /*
641 this is needed to make valgrind/purify happier. the other
642 solution is throw an exception, but since this code should work
643 with plain C ....
644 */
645 memset((void*)&v, 0, sizeof(unsigned long));
646 }
647 return v;
648 }
649
650
651 SWIGSTATICINLINE(int)
652 SWIG_Check_unsigned_SS_long(PyObject* obj)
653 {
654 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
655 }
656
657 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
658 self->AppendText(text);
659 }
660 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
661 return self->GetValue().Mid(from, to - from);
662 }
663 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
664 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
665 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
666 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
667 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
668
669 #include <wx/slider.h>
670
671
672 static const wxString wxPySliderNameStr(wxSliderNameStr);
673 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
674
675 #if !wxUSE_TOGGLEBTN
676 // implement dummy items for platforms that don't have this class
677
678 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
679
680 class wxToggleButton : public wxControl
681 {
682 public:
683 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
684 const wxPoint&, const wxSize&, long,
685 const wxValidator&, const wxString&)
686 { wxPyRaiseNotImplemented(); }
687
688 wxToggleButton()
689 { wxPyRaiseNotImplemented(); }
690 };
691 #endif
692
693 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
694
695 SWIGSTATICINLINE(PyObject* )
696 SWIG_From_unsigned_SS_long(unsigned long value)
697 {
698 return (value > LONG_MAX) ?
699 PyLong_FromUnsignedLong(value)
700 : PyInt_FromLong(swig_numeric_cast(value,long));
701 }
702
703 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
704 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
705 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
706 if (udata) {
707 Py_INCREF(udata->m_obj);
708 return udata->m_obj;
709 } else {
710 Py_INCREF(Py_None);
711 return Py_None;
712 }
713 }
714 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
715 self->SetClientData(new wxPyUserData(clientData));
716 }
717 wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
718 wxPyUserData* udata = NULL;
719 if (clientData && clientData != Py_None)
720 udata = new wxPyUserData(clientData);
721 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
722 shortHelp, longHelp, udata);
723 }
724 wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
725 wxPyUserData* udata = NULL;
726 if (clientData && clientData != Py_None)
727 udata = new wxPyUserData(clientData);
728 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
729 shortHelp, longHelp, udata);
730 }
731 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
732 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
733 if (udata) {
734 Py_INCREF(udata->m_obj);
735 return udata->m_obj;
736 } else {
737 Py_INCREF(Py_None);
738 return Py_None;
739 }
740 }
741 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
742 self->SetToolClientData(id, new wxPyUserData(clientData));
743 }
744
745 #include <wx/listctrl.h>
746
747 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
748 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
749 // Python aware sorting function for wxPyListCtrl
750 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
751 int retval = 0;
752 PyObject* func = (PyObject*)funcPtr;
753 bool blocked = wxPyBeginBlockThreads();
754
755 PyObject* args = Py_BuildValue("(ii)", item1, item2);
756 PyObject* result = PyEval_CallObject(func, args);
757 Py_DECREF(args);
758 if (result) {
759 retval = PyInt_AsLong(result);
760 Py_DECREF(result);
761 }
762
763 wxPyEndBlockThreads(blocked);
764 return retval;
765 }
766
767 // C++ Version of a Python aware class
768 class wxPyListCtrl : public wxListCtrl {
769 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
770 public:
771 wxPyListCtrl() : wxListCtrl() {}
772 wxPyListCtrl(wxWindow* parent, wxWindowID id,
773 const wxPoint& pos,
774 const wxSize& size,
775 long style,
776 const wxValidator& validator,
777 const wxString& name) :
778 wxListCtrl(parent, id, pos, size, style, validator, name) {}
779
780 bool Create(wxWindow* parent, wxWindowID id,
781 const wxPoint& pos,
782 const wxSize& size,
783 long style,
784 const wxValidator& validator,
785 const wxString& name) {
786 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
787 }
788
789 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
790 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
791 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
792
793 PYPRIVATE;
794 };
795
796 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
797
798 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
799 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
800 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
801
802 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
803 wxListItem item;
804 item.SetMask( wxLIST_MASK_STATE |
805 wxLIST_MASK_TEXT |
806 wxLIST_MASK_IMAGE |
807 wxLIST_MASK_DATA |
808 wxLIST_SET_ITEM |
809 wxLIST_MASK_WIDTH |
810 wxLIST_MASK_FORMAT
811 );
812 if (self->GetColumn(col, item))
813 return new wxListItem(item);
814 else
815 return NULL;
816 }
817 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
818 wxListItem* info = new wxListItem;
819 info->m_itemId = itemId;
820 info->m_col = col;
821 info->m_mask = 0xFFFF;
822 self->GetItem(*info);
823 return info;
824 }
825 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
826 wxPoint pos;
827 self->GetItemPosition(item, pos);
828 return pos;
829 }
830 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
831 wxRect rect;
832 self->GetItemRect(item, rect, code);
833 return rect;
834 }
835
836 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
837 if (!PyCallable_Check(func))
838 return False;
839 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
840 }
841 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
842
843
844
845 return (wxWindow*)self->m_mainWin;
846
847 }
848
849 #include <wx/treectrl.h>
850 #include "wx/wxPython/pytree.h"
851
852 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
853 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
854 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
855 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
856 // C++ version of Python aware wxTreeCtrl
857 class wxPyTreeCtrl : public wxTreeCtrl {
858 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
859 public:
860 wxPyTreeCtrl() : wxTreeCtrl() {}
861 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
862 const wxPoint& pos,
863 const wxSize& size,
864 long style,
865 const wxValidator& validator,
866 const wxString& name) :
867 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
868
869 bool Create(wxWindow *parent, wxWindowID id,
870 const wxPoint& pos,
871 const wxSize& size,
872 long style,
873 const wxValidator& validator,
874 const wxString& name) {
875 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
876 }
877
878
879 int OnCompareItems(const wxTreeItemId& item1,
880 const wxTreeItemId& item2) {
881 int rval = 0;
882 bool found;
883 bool blocked = wxPyBeginBlockThreads();
884 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
885 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
886 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
887 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
888 Py_DECREF(o1);
889 Py_DECREF(o2);
890 }
891 wxPyEndBlockThreads(blocked);
892 if (! found)
893 rval = wxTreeCtrl::OnCompareItems(item1, item2);
894 return rval;
895 }
896 PYPRIVATE;
897 };
898
899 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
900
901
902
903 #if UINT_MAX < LONG_MAX
904 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
905 #define SWIG_From_unsigned_SS_int SWIG_From_long
906 /*@@*/
907 #else
908 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
909 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
910 /*@@*/
911 #endif
912
913
914 SWIGSTATICINLINE(int)
915 SWIG_CheckUnsignedLongInRange(unsigned long value,
916 unsigned long max_value,
917 const char *errmsg)
918 {
919 if (value > max_value) {
920 if (errmsg) {
921 PyErr_Format(PyExc_OverflowError,
922 "value %ld is greater than '%s' minimum %ld",
923 value, errmsg, max_value);
924 }
925 return 0;
926 }
927 return 1;
928 }
929
930
931 #if UINT_MAX != ULONG_MAX
932 SWIGSTATICINLINE(int)
933 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
934 {
935 const char* errmsg = val ? "unsigned int" : 0;
936 unsigned long v;
937 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
938 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
939 if (val) *val = swig_numeric_cast(v, unsigned int);
940 return 1;
941 }
942 } else {
943 PyErr_Clear();
944 }
945 if (val) {
946 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
947 }
948 return 0;
949 }
950 #else
951 SWIGSTATICINLINE(unsigned int)
952 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
953 {
954 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
955 }
956 #endif
957
958
959 SWIGSTATICINLINE(unsigned int)
960 SWIG_As_unsigned_SS_int(PyObject* obj)
961 {
962 unsigned int v;
963 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
964 /*
965 this is needed to make valgrind/purify happier. the other
966 solution is throw an exception, but since this code should work
967 with plain C ....
968 */
969 memset((void*)&v, 0, sizeof(unsigned int));
970 }
971 return v;
972 }
973
974
975 SWIGSTATICINLINE(int)
976 SWIG_Check_unsigned_SS_int(PyObject* obj)
977 {
978 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
979 }
980
981 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
982 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
983 if (data == NULL) {
984 data = new wxPyTreeItemData();
985 data->SetId(item); // set the id
986 self->SetItemData(item, data);
987 }
988 return data;
989 }
990 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
991 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
992 if (data == NULL) {
993 data = new wxPyTreeItemData();
994 data->SetId(item); // set the id
995 self->SetItemData(item, data);
996 }
997 return data->GetData();
998 }
999 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
1000 data->SetId(item); // set the id
1001 self->SetItemData(item, data);
1002 }
1003 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
1004 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
1005 if (data == NULL) {
1006 data = new wxPyTreeItemData(obj);
1007 data->SetId(item); // set the id
1008 self->SetItemData(item, data);
1009 } else
1010 data->SetData(obj);
1011 }
1012 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
1013 bool blocked = wxPyBeginBlockThreads();
1014 PyObject* rval = PyList_New(0);
1015 wxArrayTreeItemIds array;
1016 size_t num, x;
1017 num = self->GetSelections(array);
1018 for (x=0; x < num; x++) {
1019 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
1020 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
1021 PyList_Append(rval, item);
1022 Py_DECREF(item);
1023 }
1024 wxPyEndBlockThreads(blocked);
1025 return rval;
1026 }
1027 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
1028 void* cookie = 0;
1029 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
1030 bool blocked = wxPyBeginBlockThreads();
1031 PyObject* tup = PyTuple_New(2);
1032 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
1033 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1034 wxPyEndBlockThreads(blocked);
1035 return tup;
1036 }
1037 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
1038 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
1039 bool blocked = wxPyBeginBlockThreads();
1040 PyObject* tup = PyTuple_New(2);
1041 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
1042 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1043 wxPyEndBlockThreads(blocked);
1044 return tup;
1045 }
1046 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
1047 wxRect rect;
1048 if (self->GetBoundingRect(item, rect, textOnly)) {
1049 bool blocked = wxPyBeginBlockThreads();
1050 wxRect* r = new wxRect(rect);
1051 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
1052 wxPyEndBlockThreads(blocked);
1053 return val;
1054 }
1055 else
1056 RETURN_NONE();
1057 }
1058 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
1059
1060 SWIGSTATICINLINE(PyObject*)
1061 SWIG_From_bool(bool value)
1062 {
1063 PyObject *obj = value ? Py_True : Py_False;
1064 Py_INCREF(obj);
1065 return obj;
1066 }
1067
1068
1069 // C++ version of Python aware wxControl
1070 class wxPyControl : public wxControl
1071 {
1072 DECLARE_DYNAMIC_CLASS(wxPyControl)
1073 public:
1074 wxPyControl() : wxControl() {}
1075 wxPyControl(wxWindow* parent, const wxWindowID id,
1076 const wxPoint& pos = wxDefaultPosition,
1077 const wxSize& size = wxDefaultSize,
1078 long style = 0,
1079 const wxValidator& validator=wxDefaultValidator,
1080 const wxString& name = wxPyControlNameStr)
1081 : wxControl(parent, id, pos, size, style, validator, name) {}
1082
1083 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
1084
1085 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
1086 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
1087 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
1088 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
1089
1090 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
1091 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
1092 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
1093
1094 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
1095 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
1096
1097 DEC_PYCALLBACK__(InitDialog);
1098 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
1099 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
1100 DEC_PYCALLBACK_BOOL_(Validate);
1101
1102 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
1103 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
1104 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
1105
1106 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
1107 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
1108
1109 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1110 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
1111 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
1112
1113 PYPRIVATE;
1114 };
1115
1116 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
1117
1118 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
1119 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
1120 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
1121 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
1122
1123 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
1124 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
1125 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
1126
1127 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
1128 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
1129
1130 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
1131 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
1132 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
1133 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1134
1135 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1136 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1137 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1138
1139 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1140 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1141
1142 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
1143 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1144 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
1145
1146
1147
1148 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1149
1150 #include <wx/generic/dragimgg.h>
1151
1152 #ifdef __cplusplus
1153 extern "C" {
1154 #endif
1155 static int _wrap_ButtonNameStr_set(PyObject *) {
1156 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1157 return 1;
1158 }
1159
1160
1161 static PyObject *_wrap_ButtonNameStr_get() {
1162 PyObject *pyobj;
1163
1164 {
1165 #if wxUSE_UNICODE
1166 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1167 #else
1168 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1169 #endif
1170 }
1171 return pyobj;
1172 }
1173
1174
1175 static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) {
1176 PyObject *resultobj;
1177 wxWindow *arg1 = (wxWindow *) 0 ;
1178 int arg2 = (int) -1 ;
1179 wxString const &arg3_defvalue = wxPyEmptyString ;
1180 wxString *arg3 = (wxString *) &arg3_defvalue ;
1181 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1182 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1183 wxSize const &arg5_defvalue = wxDefaultSize ;
1184 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1185 long arg6 = (long) 0 ;
1186 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1187 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1188 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1189 wxString *arg8 = (wxString *) &arg8_defvalue ;
1190 wxButton *result;
1191 bool temp3 = False ;
1192 wxPoint temp4 ;
1193 wxSize temp5 ;
1194 bool temp8 = False ;
1195 PyObject * obj0 = 0 ;
1196 PyObject * obj1 = 0 ;
1197 PyObject * obj2 = 0 ;
1198 PyObject * obj3 = 0 ;
1199 PyObject * obj4 = 0 ;
1200 PyObject * obj5 = 0 ;
1201 PyObject * obj6 = 0 ;
1202 PyObject * obj7 = 0 ;
1203 char *kwnames[] = {
1204 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1205 };
1206
1207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1210 if (obj1) {
1211 arg2 = (int)SWIG_As_int(obj1);
1212 if (PyErr_Occurred()) SWIG_fail;
1213 }
1214 if (obj2) {
1215 {
1216 arg3 = wxString_in_helper(obj2);
1217 if (arg3 == NULL) SWIG_fail;
1218 temp3 = True;
1219 }
1220 }
1221 if (obj3) {
1222 {
1223 arg4 = &temp4;
1224 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1225 }
1226 }
1227 if (obj4) {
1228 {
1229 arg5 = &temp5;
1230 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1231 }
1232 }
1233 if (obj5) {
1234 arg6 = (long)SWIG_As_long(obj5);
1235 if (PyErr_Occurred()) SWIG_fail;
1236 }
1237 if (obj6) {
1238 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1239 SWIG_POINTER_EXCEPTION | 0)) == -1)
1240 SWIG_fail;
1241 if (arg7 == NULL) {
1242 PyErr_SetString(PyExc_TypeError,"null reference");
1243 SWIG_fail;
1244 }
1245 }
1246 if (obj7) {
1247 {
1248 arg8 = wxString_in_helper(obj7);
1249 if (arg8 == NULL) SWIG_fail;
1250 temp8 = True;
1251 }
1252 }
1253 {
1254 if (!wxPyCheckForApp()) SWIG_fail;
1255 PyThreadState* __tstate = wxPyBeginAllowThreads();
1256 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1257
1258 wxPyEndAllowThreads(__tstate);
1259 if (PyErr_Occurred()) SWIG_fail;
1260 }
1261 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1262 {
1263 if (temp3)
1264 delete arg3;
1265 }
1266 {
1267 if (temp8)
1268 delete arg8;
1269 }
1270 return resultobj;
1271 fail:
1272 {
1273 if (temp3)
1274 delete arg3;
1275 }
1276 {
1277 if (temp8)
1278 delete arg8;
1279 }
1280 return NULL;
1281 }
1282
1283
1284 static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) {
1285 PyObject *resultobj;
1286 wxButton *result;
1287 char *kwnames[] = {
1288 NULL
1289 };
1290
1291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1292 {
1293 if (!wxPyCheckForApp()) SWIG_fail;
1294 PyThreadState* __tstate = wxPyBeginAllowThreads();
1295 result = (wxButton *)new wxButton();
1296
1297 wxPyEndAllowThreads(__tstate);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 }
1300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1301 return resultobj;
1302 fail:
1303 return NULL;
1304 }
1305
1306
1307 static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1308 PyObject *resultobj;
1309 wxButton *arg1 = (wxButton *) 0 ;
1310 wxWindow *arg2 = (wxWindow *) 0 ;
1311 int arg3 = (int) -1 ;
1312 wxString const &arg4_defvalue = wxPyEmptyString ;
1313 wxString *arg4 = (wxString *) &arg4_defvalue ;
1314 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1315 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1316 wxSize const &arg6_defvalue = wxDefaultSize ;
1317 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1318 long arg7 = (long) 0 ;
1319 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1320 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1321 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1322 wxString *arg9 = (wxString *) &arg9_defvalue ;
1323 bool result;
1324 bool temp4 = False ;
1325 wxPoint temp5 ;
1326 wxSize temp6 ;
1327 bool temp9 = False ;
1328 PyObject * obj0 = 0 ;
1329 PyObject * obj1 = 0 ;
1330 PyObject * obj2 = 0 ;
1331 PyObject * obj3 = 0 ;
1332 PyObject * obj4 = 0 ;
1333 PyObject * obj5 = 0 ;
1334 PyObject * obj6 = 0 ;
1335 PyObject * obj7 = 0 ;
1336 PyObject * obj8 = 0 ;
1337 char *kwnames[] = {
1338 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1339 };
1340
1341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1344 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1346 if (obj2) {
1347 arg3 = (int)SWIG_As_int(obj2);
1348 if (PyErr_Occurred()) SWIG_fail;
1349 }
1350 if (obj3) {
1351 {
1352 arg4 = wxString_in_helper(obj3);
1353 if (arg4 == NULL) SWIG_fail;
1354 temp4 = True;
1355 }
1356 }
1357 if (obj4) {
1358 {
1359 arg5 = &temp5;
1360 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1361 }
1362 }
1363 if (obj5) {
1364 {
1365 arg6 = &temp6;
1366 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1367 }
1368 }
1369 if (obj6) {
1370 arg7 = (long)SWIG_As_long(obj6);
1371 if (PyErr_Occurred()) SWIG_fail;
1372 }
1373 if (obj7) {
1374 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1375 SWIG_POINTER_EXCEPTION | 0)) == -1)
1376 SWIG_fail;
1377 if (arg8 == NULL) {
1378 PyErr_SetString(PyExc_TypeError,"null reference");
1379 SWIG_fail;
1380 }
1381 }
1382 if (obj8) {
1383 {
1384 arg9 = wxString_in_helper(obj8);
1385 if (arg9 == NULL) SWIG_fail;
1386 temp9 = True;
1387 }
1388 }
1389 {
1390 PyThreadState* __tstate = wxPyBeginAllowThreads();
1391 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1392
1393 wxPyEndAllowThreads(__tstate);
1394 if (PyErr_Occurred()) SWIG_fail;
1395 }
1396 {
1397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1398 }
1399 {
1400 if (temp4)
1401 delete arg4;
1402 }
1403 {
1404 if (temp9)
1405 delete arg9;
1406 }
1407 return resultobj;
1408 fail:
1409 {
1410 if (temp4)
1411 delete arg4;
1412 }
1413 {
1414 if (temp9)
1415 delete arg9;
1416 }
1417 return NULL;
1418 }
1419
1420
1421 static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
1422 PyObject *resultobj;
1423 wxButton *arg1 = (wxButton *) 0 ;
1424 PyObject * obj0 = 0 ;
1425 char *kwnames[] = {
1426 (char *) "self", NULL
1427 };
1428
1429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1432 {
1433 PyThreadState* __tstate = wxPyBeginAllowThreads();
1434 (arg1)->SetDefault();
1435
1436 wxPyEndAllowThreads(__tstate);
1437 if (PyErr_Occurred()) SWIG_fail;
1438 }
1439 Py_INCREF(Py_None); resultobj = Py_None;
1440 return resultobj;
1441 fail:
1442 return NULL;
1443 }
1444
1445
1446 static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
1447 PyObject *resultobj;
1448 wxSize result;
1449 char *kwnames[] = {
1450 NULL
1451 };
1452
1453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1454 {
1455 PyThreadState* __tstate = wxPyBeginAllowThreads();
1456 result = wxButton::GetDefaultSize();
1457
1458 wxPyEndAllowThreads(__tstate);
1459 if (PyErr_Occurred()) SWIG_fail;
1460 }
1461 {
1462 wxSize * resultptr;
1463 resultptr = new wxSize((wxSize &) result);
1464 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1465 }
1466 return resultobj;
1467 fail:
1468 return NULL;
1469 }
1470
1471
1472 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
1473 PyObject *resultobj;
1474 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1475 wxVisualAttributes result;
1476 PyObject * obj0 = 0 ;
1477 char *kwnames[] = {
1478 (char *) "variant", NULL
1479 };
1480
1481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1482 if (obj0) {
1483 arg1 = (int)SWIG_As_int(obj0);
1484 if (PyErr_Occurred()) SWIG_fail;
1485 }
1486 {
1487 if (!wxPyCheckForApp()) SWIG_fail;
1488 PyThreadState* __tstate = wxPyBeginAllowThreads();
1489 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1490
1491 wxPyEndAllowThreads(__tstate);
1492 if (PyErr_Occurred()) SWIG_fail;
1493 }
1494 {
1495 wxVisualAttributes * resultptr;
1496 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1497 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1498 }
1499 return resultobj;
1500 fail:
1501 return NULL;
1502 }
1503
1504
1505 static PyObject * Button_swigregister(PyObject *, PyObject *args) {
1506 PyObject *obj;
1507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1508 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1509 Py_INCREF(obj);
1510 return Py_BuildValue((char *)"");
1511 }
1512 static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1513 PyObject *resultobj;
1514 wxWindow *arg1 = (wxWindow *) 0 ;
1515 int arg2 = (int) -1 ;
1516 wxBitmap const &arg3_defvalue = wxNullBitmap ;
1517 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
1518 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1519 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1520 wxSize const &arg5_defvalue = wxDefaultSize ;
1521 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1522 long arg6 = (long) wxBU_AUTODRAW ;
1523 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1524 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1525 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1526 wxString *arg8 = (wxString *) &arg8_defvalue ;
1527 wxBitmapButton *result;
1528 wxPoint temp4 ;
1529 wxSize temp5 ;
1530 bool temp8 = False ;
1531 PyObject * obj0 = 0 ;
1532 PyObject * obj1 = 0 ;
1533 PyObject * obj2 = 0 ;
1534 PyObject * obj3 = 0 ;
1535 PyObject * obj4 = 0 ;
1536 PyObject * obj5 = 0 ;
1537 PyObject * obj6 = 0 ;
1538 PyObject * obj7 = 0 ;
1539 char *kwnames[] = {
1540 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1541 };
1542
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1546 if (obj1) {
1547 arg2 = (int)SWIG_As_int(obj1);
1548 if (PyErr_Occurred()) SWIG_fail;
1549 }
1550 if (obj2) {
1551 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1552 SWIG_POINTER_EXCEPTION | 0)) == -1)
1553 SWIG_fail;
1554 if (arg3 == NULL) {
1555 PyErr_SetString(PyExc_TypeError,"null reference");
1556 SWIG_fail;
1557 }
1558 }
1559 if (obj3) {
1560 {
1561 arg4 = &temp4;
1562 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1563 }
1564 }
1565 if (obj4) {
1566 {
1567 arg5 = &temp5;
1568 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1569 }
1570 }
1571 if (obj5) {
1572 arg6 = (long)SWIG_As_long(obj5);
1573 if (PyErr_Occurred()) SWIG_fail;
1574 }
1575 if (obj6) {
1576 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1577 SWIG_POINTER_EXCEPTION | 0)) == -1)
1578 SWIG_fail;
1579 if (arg7 == NULL) {
1580 PyErr_SetString(PyExc_TypeError,"null reference");
1581 SWIG_fail;
1582 }
1583 }
1584 if (obj7) {
1585 {
1586 arg8 = wxString_in_helper(obj7);
1587 if (arg8 == NULL) SWIG_fail;
1588 temp8 = True;
1589 }
1590 }
1591 {
1592 if (!wxPyCheckForApp()) SWIG_fail;
1593 PyThreadState* __tstate = wxPyBeginAllowThreads();
1594 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1595
1596 wxPyEndAllowThreads(__tstate);
1597 if (PyErr_Occurred()) SWIG_fail;
1598 }
1599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1600 {
1601 if (temp8)
1602 delete arg8;
1603 }
1604 return resultobj;
1605 fail:
1606 {
1607 if (temp8)
1608 delete arg8;
1609 }
1610 return NULL;
1611 }
1612
1613
1614 static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1615 PyObject *resultobj;
1616 wxBitmapButton *result;
1617 char *kwnames[] = {
1618 NULL
1619 };
1620
1621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1622 {
1623 if (!wxPyCheckForApp()) SWIG_fail;
1624 PyThreadState* __tstate = wxPyBeginAllowThreads();
1625 result = (wxBitmapButton *)new wxBitmapButton();
1626
1627 wxPyEndAllowThreads(__tstate);
1628 if (PyErr_Occurred()) SWIG_fail;
1629 }
1630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1631 return resultobj;
1632 fail:
1633 return NULL;
1634 }
1635
1636
1637 static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1638 PyObject *resultobj;
1639 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1640 wxWindow *arg2 = (wxWindow *) 0 ;
1641 int arg3 = (int) -1 ;
1642 wxBitmap const &arg4_defvalue = wxNullBitmap ;
1643 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1644 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1645 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1646 wxSize const &arg6_defvalue = wxDefaultSize ;
1647 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1648 long arg7 = (long) wxBU_AUTODRAW ;
1649 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1650 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1651 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1652 wxString *arg9 = (wxString *) &arg9_defvalue ;
1653 bool result;
1654 wxPoint temp5 ;
1655 wxSize temp6 ;
1656 bool temp9 = False ;
1657 PyObject * obj0 = 0 ;
1658 PyObject * obj1 = 0 ;
1659 PyObject * obj2 = 0 ;
1660 PyObject * obj3 = 0 ;
1661 PyObject * obj4 = 0 ;
1662 PyObject * obj5 = 0 ;
1663 PyObject * obj6 = 0 ;
1664 PyObject * obj7 = 0 ;
1665 PyObject * obj8 = 0 ;
1666 char *kwnames[] = {
1667 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1668 };
1669
1670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1673 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1675 if (obj2) {
1676 arg3 = (int)SWIG_As_int(obj2);
1677 if (PyErr_Occurred()) SWIG_fail;
1678 }
1679 if (obj3) {
1680 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1681 SWIG_POINTER_EXCEPTION | 0)) == -1)
1682 SWIG_fail;
1683 if (arg4 == NULL) {
1684 PyErr_SetString(PyExc_TypeError,"null reference");
1685 SWIG_fail;
1686 }
1687 }
1688 if (obj4) {
1689 {
1690 arg5 = &temp5;
1691 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1692 }
1693 }
1694 if (obj5) {
1695 {
1696 arg6 = &temp6;
1697 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1698 }
1699 }
1700 if (obj6) {
1701 arg7 = (long)SWIG_As_long(obj6);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
1704 if (obj7) {
1705 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1706 SWIG_POINTER_EXCEPTION | 0)) == -1)
1707 SWIG_fail;
1708 if (arg8 == NULL) {
1709 PyErr_SetString(PyExc_TypeError,"null reference");
1710 SWIG_fail;
1711 }
1712 }
1713 if (obj8) {
1714 {
1715 arg9 = wxString_in_helper(obj8);
1716 if (arg9 == NULL) SWIG_fail;
1717 temp9 = True;
1718 }
1719 }
1720 {
1721 PyThreadState* __tstate = wxPyBeginAllowThreads();
1722 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1723
1724 wxPyEndAllowThreads(__tstate);
1725 if (PyErr_Occurred()) SWIG_fail;
1726 }
1727 {
1728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1729 }
1730 {
1731 if (temp9)
1732 delete arg9;
1733 }
1734 return resultobj;
1735 fail:
1736 {
1737 if (temp9)
1738 delete arg9;
1739 }
1740 return NULL;
1741 }
1742
1743
1744 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1745 PyObject *resultobj;
1746 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1747 wxBitmap result;
1748 PyObject * obj0 = 0 ;
1749 char *kwnames[] = {
1750 (char *) "self", NULL
1751 };
1752
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1756 {
1757 PyThreadState* __tstate = wxPyBeginAllowThreads();
1758 result = (arg1)->GetBitmapLabel();
1759
1760 wxPyEndAllowThreads(__tstate);
1761 if (PyErr_Occurred()) SWIG_fail;
1762 }
1763 {
1764 wxBitmap * resultptr;
1765 resultptr = new wxBitmap((wxBitmap &) result);
1766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1767 }
1768 return resultobj;
1769 fail:
1770 return NULL;
1771 }
1772
1773
1774 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1775 PyObject *resultobj;
1776 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1777 wxBitmap result;
1778 PyObject * obj0 = 0 ;
1779 char *kwnames[] = {
1780 (char *) "self", NULL
1781 };
1782
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1786 {
1787 PyThreadState* __tstate = wxPyBeginAllowThreads();
1788 result = (arg1)->GetBitmapDisabled();
1789
1790 wxPyEndAllowThreads(__tstate);
1791 if (PyErr_Occurred()) SWIG_fail;
1792 }
1793 {
1794 wxBitmap * resultptr;
1795 resultptr = new wxBitmap((wxBitmap &) result);
1796 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1797 }
1798 return resultobj;
1799 fail:
1800 return NULL;
1801 }
1802
1803
1804 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1805 PyObject *resultobj;
1806 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1807 wxBitmap result;
1808 PyObject * obj0 = 0 ;
1809 char *kwnames[] = {
1810 (char *) "self", NULL
1811 };
1812
1813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1816 {
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 result = (arg1)->GetBitmapFocus();
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
1823 {
1824 wxBitmap * resultptr;
1825 resultptr = new wxBitmap((wxBitmap &) result);
1826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1827 }
1828 return resultobj;
1829 fail:
1830 return NULL;
1831 }
1832
1833
1834 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1835 PyObject *resultobj;
1836 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1837 wxBitmap result;
1838 PyObject * obj0 = 0 ;
1839 char *kwnames[] = {
1840 (char *) "self", NULL
1841 };
1842
1843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1846 {
1847 PyThreadState* __tstate = wxPyBeginAllowThreads();
1848 result = (arg1)->GetBitmapSelected();
1849
1850 wxPyEndAllowThreads(__tstate);
1851 if (PyErr_Occurred()) SWIG_fail;
1852 }
1853 {
1854 wxBitmap * resultptr;
1855 resultptr = new wxBitmap((wxBitmap &) result);
1856 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1857 }
1858 return resultobj;
1859 fail:
1860 return NULL;
1861 }
1862
1863
1864 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1865 PyObject *resultobj;
1866 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1867 wxBitmap *arg2 = 0 ;
1868 PyObject * obj0 = 0 ;
1869 PyObject * obj1 = 0 ;
1870 char *kwnames[] = {
1871 (char *) "self",(char *) "bitmap", NULL
1872 };
1873
1874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1877 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1878 SWIG_POINTER_EXCEPTION | 0)) == -1)
1879 SWIG_fail;
1880 if (arg2 == NULL) {
1881 PyErr_SetString(PyExc_TypeError,"null reference");
1882 SWIG_fail;
1883 }
1884 {
1885 PyThreadState* __tstate = wxPyBeginAllowThreads();
1886 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1887
1888 wxPyEndAllowThreads(__tstate);
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
1891 Py_INCREF(Py_None); resultobj = Py_None;
1892 return resultobj;
1893 fail:
1894 return NULL;
1895 }
1896
1897
1898 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1899 PyObject *resultobj;
1900 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1901 wxBitmap *arg2 = 0 ;
1902 PyObject * obj0 = 0 ;
1903 PyObject * obj1 = 0 ;
1904 char *kwnames[] = {
1905 (char *) "self",(char *) "bitmap", NULL
1906 };
1907
1908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1911 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1912 SWIG_POINTER_EXCEPTION | 0)) == -1)
1913 SWIG_fail;
1914 if (arg2 == NULL) {
1915 PyErr_SetString(PyExc_TypeError,"null reference");
1916 SWIG_fail;
1917 }
1918 {
1919 PyThreadState* __tstate = wxPyBeginAllowThreads();
1920 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1921
1922 wxPyEndAllowThreads(__tstate);
1923 if (PyErr_Occurred()) SWIG_fail;
1924 }
1925 Py_INCREF(Py_None); resultobj = Py_None;
1926 return resultobj;
1927 fail:
1928 return NULL;
1929 }
1930
1931
1932 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1933 PyObject *resultobj;
1934 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1935 wxBitmap *arg2 = 0 ;
1936 PyObject * obj0 = 0 ;
1937 PyObject * obj1 = 0 ;
1938 char *kwnames[] = {
1939 (char *) "self",(char *) "bitmap", NULL
1940 };
1941
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1945 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1946 SWIG_POINTER_EXCEPTION | 0)) == -1)
1947 SWIG_fail;
1948 if (arg2 == NULL) {
1949 PyErr_SetString(PyExc_TypeError,"null reference");
1950 SWIG_fail;
1951 }
1952 {
1953 PyThreadState* __tstate = wxPyBeginAllowThreads();
1954 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1955
1956 wxPyEndAllowThreads(__tstate);
1957 if (PyErr_Occurred()) SWIG_fail;
1958 }
1959 Py_INCREF(Py_None); resultobj = Py_None;
1960 return resultobj;
1961 fail:
1962 return NULL;
1963 }
1964
1965
1966 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1967 PyObject *resultobj;
1968 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1969 wxBitmap *arg2 = 0 ;
1970 PyObject * obj0 = 0 ;
1971 PyObject * obj1 = 0 ;
1972 char *kwnames[] = {
1973 (char *) "self",(char *) "bitmap", NULL
1974 };
1975
1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1979 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1980 SWIG_POINTER_EXCEPTION | 0)) == -1)
1981 SWIG_fail;
1982 if (arg2 == NULL) {
1983 PyErr_SetString(PyExc_TypeError,"null reference");
1984 SWIG_fail;
1985 }
1986 {
1987 PyThreadState* __tstate = wxPyBeginAllowThreads();
1988 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1989
1990 wxPyEndAllowThreads(__tstate);
1991 if (PyErr_Occurred()) SWIG_fail;
1992 }
1993 Py_INCREF(Py_None); resultobj = Py_None;
1994 return resultobj;
1995 fail:
1996 return NULL;
1997 }
1998
1999
2000 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
2001 PyObject *resultobj;
2002 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2003 int arg2 ;
2004 int arg3 ;
2005 PyObject * obj0 = 0 ;
2006 PyObject * obj1 = 0 ;
2007 PyObject * obj2 = 0 ;
2008 char *kwnames[] = {
2009 (char *) "self",(char *) "x",(char *) "y", NULL
2010 };
2011
2012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
2013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2015 arg2 = (int)SWIG_As_int(obj1);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 arg3 = (int)SWIG_As_int(obj2);
2018 if (PyErr_Occurred()) SWIG_fail;
2019 {
2020 PyThreadState* __tstate = wxPyBeginAllowThreads();
2021 (arg1)->SetMargins(arg2,arg3);
2022
2023 wxPyEndAllowThreads(__tstate);
2024 if (PyErr_Occurred()) SWIG_fail;
2025 }
2026 Py_INCREF(Py_None); resultobj = Py_None;
2027 return resultobj;
2028 fail:
2029 return NULL;
2030 }
2031
2032
2033 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) {
2034 PyObject *resultobj;
2035 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2036 int result;
2037 PyObject * obj0 = 0 ;
2038 char *kwnames[] = {
2039 (char *) "self", NULL
2040 };
2041
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
2043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2045 {
2046 PyThreadState* __tstate = wxPyBeginAllowThreads();
2047 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
2048
2049 wxPyEndAllowThreads(__tstate);
2050 if (PyErr_Occurred()) SWIG_fail;
2051 }
2052 resultobj = SWIG_From_int((int)result);
2053 return resultobj;
2054 fail:
2055 return NULL;
2056 }
2057
2058
2059 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) {
2060 PyObject *resultobj;
2061 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2062 int result;
2063 PyObject * obj0 = 0 ;
2064 char *kwnames[] = {
2065 (char *) "self", NULL
2066 };
2067
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
2069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2071 {
2072 PyThreadState* __tstate = wxPyBeginAllowThreads();
2073 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
2074
2075 wxPyEndAllowThreads(__tstate);
2076 if (PyErr_Occurred()) SWIG_fail;
2077 }
2078 resultobj = SWIG_From_int((int)result);
2079 return resultobj;
2080 fail:
2081 return NULL;
2082 }
2083
2084
2085 static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) {
2086 PyObject *obj;
2087 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2088 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
2089 Py_INCREF(obj);
2090 return Py_BuildValue((char *)"");
2091 }
2092 static int _wrap_CheckBoxNameStr_set(PyObject *) {
2093 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
2094 return 1;
2095 }
2096
2097
2098 static PyObject *_wrap_CheckBoxNameStr_get() {
2099 PyObject *pyobj;
2100
2101 {
2102 #if wxUSE_UNICODE
2103 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2104 #else
2105 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2106 #endif
2107 }
2108 return pyobj;
2109 }
2110
2111
2112 static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2113 PyObject *resultobj;
2114 wxWindow *arg1 = (wxWindow *) 0 ;
2115 int arg2 = (int) -1 ;
2116 wxString const &arg3_defvalue = wxPyEmptyString ;
2117 wxString *arg3 = (wxString *) &arg3_defvalue ;
2118 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2119 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2120 wxSize const &arg5_defvalue = wxDefaultSize ;
2121 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2122 long arg6 = (long) 0 ;
2123 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2124 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2125 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
2126 wxString *arg8 = (wxString *) &arg8_defvalue ;
2127 wxCheckBox *result;
2128 bool temp3 = False ;
2129 wxPoint temp4 ;
2130 wxSize temp5 ;
2131 bool temp8 = False ;
2132 PyObject * obj0 = 0 ;
2133 PyObject * obj1 = 0 ;
2134 PyObject * obj2 = 0 ;
2135 PyObject * obj3 = 0 ;
2136 PyObject * obj4 = 0 ;
2137 PyObject * obj5 = 0 ;
2138 PyObject * obj6 = 0 ;
2139 PyObject * obj7 = 0 ;
2140 char *kwnames[] = {
2141 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2142 };
2143
2144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2147 if (obj1) {
2148 arg2 = (int)SWIG_As_int(obj1);
2149 if (PyErr_Occurred()) SWIG_fail;
2150 }
2151 if (obj2) {
2152 {
2153 arg3 = wxString_in_helper(obj2);
2154 if (arg3 == NULL) SWIG_fail;
2155 temp3 = True;
2156 }
2157 }
2158 if (obj3) {
2159 {
2160 arg4 = &temp4;
2161 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2162 }
2163 }
2164 if (obj4) {
2165 {
2166 arg5 = &temp5;
2167 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2168 }
2169 }
2170 if (obj5) {
2171 arg6 = (long)SWIG_As_long(obj5);
2172 if (PyErr_Occurred()) SWIG_fail;
2173 }
2174 if (obj6) {
2175 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2176 SWIG_POINTER_EXCEPTION | 0)) == -1)
2177 SWIG_fail;
2178 if (arg7 == NULL) {
2179 PyErr_SetString(PyExc_TypeError,"null reference");
2180 SWIG_fail;
2181 }
2182 }
2183 if (obj7) {
2184 {
2185 arg8 = wxString_in_helper(obj7);
2186 if (arg8 == NULL) SWIG_fail;
2187 temp8 = True;
2188 }
2189 }
2190 {
2191 if (!wxPyCheckForApp()) SWIG_fail;
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2199 {
2200 if (temp3)
2201 delete arg3;
2202 }
2203 {
2204 if (temp8)
2205 delete arg8;
2206 }
2207 return resultobj;
2208 fail:
2209 {
2210 if (temp3)
2211 delete arg3;
2212 }
2213 {
2214 if (temp8)
2215 delete arg8;
2216 }
2217 return NULL;
2218 }
2219
2220
2221 static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2222 PyObject *resultobj;
2223 wxCheckBox *result;
2224 char *kwnames[] = {
2225 NULL
2226 };
2227
2228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2229 {
2230 if (!wxPyCheckForApp()) SWIG_fail;
2231 PyThreadState* __tstate = wxPyBeginAllowThreads();
2232 result = (wxCheckBox *)new wxCheckBox();
2233
2234 wxPyEndAllowThreads(__tstate);
2235 if (PyErr_Occurred()) SWIG_fail;
2236 }
2237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2238 return resultobj;
2239 fail:
2240 return NULL;
2241 }
2242
2243
2244 static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2245 PyObject *resultobj;
2246 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2247 wxWindow *arg2 = (wxWindow *) 0 ;
2248 int arg3 = (int) -1 ;
2249 wxString const &arg4_defvalue = wxPyEmptyString ;
2250 wxString *arg4 = (wxString *) &arg4_defvalue ;
2251 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2252 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2253 wxSize const &arg6_defvalue = wxDefaultSize ;
2254 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2255 long arg7 = (long) 0 ;
2256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2258 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2259 wxString *arg9 = (wxString *) &arg9_defvalue ;
2260 bool result;
2261 bool temp4 = False ;
2262 wxPoint temp5 ;
2263 wxSize temp6 ;
2264 bool temp9 = False ;
2265 PyObject * obj0 = 0 ;
2266 PyObject * obj1 = 0 ;
2267 PyObject * obj2 = 0 ;
2268 PyObject * obj3 = 0 ;
2269 PyObject * obj4 = 0 ;
2270 PyObject * obj5 = 0 ;
2271 PyObject * obj6 = 0 ;
2272 PyObject * obj7 = 0 ;
2273 PyObject * obj8 = 0 ;
2274 char *kwnames[] = {
2275 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2276 };
2277
2278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2283 if (obj2) {
2284 arg3 = (int)SWIG_As_int(obj2);
2285 if (PyErr_Occurred()) SWIG_fail;
2286 }
2287 if (obj3) {
2288 {
2289 arg4 = wxString_in_helper(obj3);
2290 if (arg4 == NULL) SWIG_fail;
2291 temp4 = True;
2292 }
2293 }
2294 if (obj4) {
2295 {
2296 arg5 = &temp5;
2297 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2298 }
2299 }
2300 if (obj5) {
2301 {
2302 arg6 = &temp6;
2303 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2304 }
2305 }
2306 if (obj6) {
2307 arg7 = (long)SWIG_As_long(obj6);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 }
2310 if (obj7) {
2311 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2312 SWIG_POINTER_EXCEPTION | 0)) == -1)
2313 SWIG_fail;
2314 if (arg8 == NULL) {
2315 PyErr_SetString(PyExc_TypeError,"null reference");
2316 SWIG_fail;
2317 }
2318 }
2319 if (obj8) {
2320 {
2321 arg9 = wxString_in_helper(obj8);
2322 if (arg9 == NULL) SWIG_fail;
2323 temp9 = True;
2324 }
2325 }
2326 {
2327 PyThreadState* __tstate = wxPyBeginAllowThreads();
2328 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2329
2330 wxPyEndAllowThreads(__tstate);
2331 if (PyErr_Occurred()) SWIG_fail;
2332 }
2333 {
2334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2335 }
2336 {
2337 if (temp4)
2338 delete arg4;
2339 }
2340 {
2341 if (temp9)
2342 delete arg9;
2343 }
2344 return resultobj;
2345 fail:
2346 {
2347 if (temp4)
2348 delete arg4;
2349 }
2350 {
2351 if (temp9)
2352 delete arg9;
2353 }
2354 return NULL;
2355 }
2356
2357
2358 static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2359 PyObject *resultobj;
2360 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2361 bool result;
2362 PyObject * obj0 = 0 ;
2363 char *kwnames[] = {
2364 (char *) "self", NULL
2365 };
2366
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2370 {
2371 PyThreadState* __tstate = wxPyBeginAllowThreads();
2372 result = (bool)(arg1)->GetValue();
2373
2374 wxPyEndAllowThreads(__tstate);
2375 if (PyErr_Occurred()) SWIG_fail;
2376 }
2377 {
2378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2379 }
2380 return resultobj;
2381 fail:
2382 return NULL;
2383 }
2384
2385
2386 static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
2387 PyObject *resultobj;
2388 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2389 bool result;
2390 PyObject * obj0 = 0 ;
2391 char *kwnames[] = {
2392 (char *) "self", NULL
2393 };
2394
2395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2398 {
2399 PyThreadState* __tstate = wxPyBeginAllowThreads();
2400 result = (bool)(arg1)->IsChecked();
2401
2402 wxPyEndAllowThreads(__tstate);
2403 if (PyErr_Occurred()) SWIG_fail;
2404 }
2405 {
2406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2407 }
2408 return resultobj;
2409 fail:
2410 return NULL;
2411 }
2412
2413
2414 static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2415 PyObject *resultobj;
2416 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2417 bool arg2 ;
2418 PyObject * obj0 = 0 ;
2419 PyObject * obj1 = 0 ;
2420 char *kwnames[] = {
2421 (char *) "self",(char *) "state", NULL
2422 };
2423
2424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2427 arg2 = (bool)SWIG_As_bool(obj1);
2428 if (PyErr_Occurred()) SWIG_fail;
2429 {
2430 PyThreadState* __tstate = wxPyBeginAllowThreads();
2431 (arg1)->SetValue(arg2);
2432
2433 wxPyEndAllowThreads(__tstate);
2434 if (PyErr_Occurred()) SWIG_fail;
2435 }
2436 Py_INCREF(Py_None); resultobj = Py_None;
2437 return resultobj;
2438 fail:
2439 return NULL;
2440 }
2441
2442
2443 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2444 PyObject *resultobj;
2445 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2446 int result;
2447 PyObject * obj0 = 0 ;
2448 char *kwnames[] = {
2449 (char *) "self", NULL
2450 };
2451
2452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2455 {
2456 PyThreadState* __tstate = wxPyBeginAllowThreads();
2457 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2458
2459 wxPyEndAllowThreads(__tstate);
2460 if (PyErr_Occurred()) SWIG_fail;
2461 }
2462 resultobj = SWIG_From_int((int)result);
2463 return resultobj;
2464 fail:
2465 return NULL;
2466 }
2467
2468
2469 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2470 PyObject *resultobj;
2471 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2472 int arg2 ;
2473 PyObject * obj0 = 0 ;
2474 PyObject * obj1 = 0 ;
2475 char *kwnames[] = {
2476 (char *) "self",(char *) "state", NULL
2477 };
2478
2479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2482 arg2 = (int)SWIG_As_int(obj1);
2483 if (PyErr_Occurred()) SWIG_fail;
2484 {
2485 PyThreadState* __tstate = wxPyBeginAllowThreads();
2486 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2487
2488 wxPyEndAllowThreads(__tstate);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 }
2491 Py_INCREF(Py_None); resultobj = Py_None;
2492 return resultobj;
2493 fail:
2494 return NULL;
2495 }
2496
2497
2498 static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) {
2499 PyObject *resultobj;
2500 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2501 bool result;
2502 PyObject * obj0 = 0 ;
2503 char *kwnames[] = {
2504 (char *) "self", NULL
2505 };
2506
2507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2510 {
2511 PyThreadState* __tstate = wxPyBeginAllowThreads();
2512 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2513
2514 wxPyEndAllowThreads(__tstate);
2515 if (PyErr_Occurred()) SWIG_fail;
2516 }
2517 {
2518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2519 }
2520 return resultobj;
2521 fail:
2522 return NULL;
2523 }
2524
2525
2526 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) {
2527 PyObject *resultobj;
2528 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2529 bool result;
2530 PyObject * obj0 = 0 ;
2531 char *kwnames[] = {
2532 (char *) "self", NULL
2533 };
2534
2535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2538 {
2539 PyThreadState* __tstate = wxPyBeginAllowThreads();
2540 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2541
2542 wxPyEndAllowThreads(__tstate);
2543 if (PyErr_Occurred()) SWIG_fail;
2544 }
2545 {
2546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2547 }
2548 return resultobj;
2549 fail:
2550 return NULL;
2551 }
2552
2553
2554 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
2555 PyObject *resultobj;
2556 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2557 wxVisualAttributes result;
2558 PyObject * obj0 = 0 ;
2559 char *kwnames[] = {
2560 (char *) "variant", NULL
2561 };
2562
2563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2564 if (obj0) {
2565 arg1 = (int)SWIG_As_int(obj0);
2566 if (PyErr_Occurred()) SWIG_fail;
2567 }
2568 {
2569 if (!wxPyCheckForApp()) SWIG_fail;
2570 PyThreadState* __tstate = wxPyBeginAllowThreads();
2571 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2572
2573 wxPyEndAllowThreads(__tstate);
2574 if (PyErr_Occurred()) SWIG_fail;
2575 }
2576 {
2577 wxVisualAttributes * resultptr;
2578 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2580 }
2581 return resultobj;
2582 fail:
2583 return NULL;
2584 }
2585
2586
2587 static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) {
2588 PyObject *obj;
2589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2590 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2591 Py_INCREF(obj);
2592 return Py_BuildValue((char *)"");
2593 }
2594 static int _wrap_ChoiceNameStr_set(PyObject *) {
2595 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2596 return 1;
2597 }
2598
2599
2600 static PyObject *_wrap_ChoiceNameStr_get() {
2601 PyObject *pyobj;
2602
2603 {
2604 #if wxUSE_UNICODE
2605 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2606 #else
2607 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2608 #endif
2609 }
2610 return pyobj;
2611 }
2612
2613
2614 static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) {
2615 PyObject *resultobj;
2616 wxWindow *arg1 = (wxWindow *) 0 ;
2617 int arg2 = (int) -1 ;
2618 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2619 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2620 wxSize const &arg4_defvalue = wxDefaultSize ;
2621 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2622 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2623 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2624 long arg6 = (long) 0 ;
2625 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2626 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2627 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2628 wxString *arg8 = (wxString *) &arg8_defvalue ;
2629 wxChoice *result;
2630 wxPoint temp3 ;
2631 wxSize temp4 ;
2632 bool temp5 = False ;
2633 bool temp8 = False ;
2634 PyObject * obj0 = 0 ;
2635 PyObject * obj1 = 0 ;
2636 PyObject * obj2 = 0 ;
2637 PyObject * obj3 = 0 ;
2638 PyObject * obj4 = 0 ;
2639 PyObject * obj5 = 0 ;
2640 PyObject * obj6 = 0 ;
2641 PyObject * obj7 = 0 ;
2642 char *kwnames[] = {
2643 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2644 };
2645
2646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2649 if (obj1) {
2650 arg2 = (int)SWIG_As_int(obj1);
2651 if (PyErr_Occurred()) SWIG_fail;
2652 }
2653 if (obj2) {
2654 {
2655 arg3 = &temp3;
2656 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2657 }
2658 }
2659 if (obj3) {
2660 {
2661 arg4 = &temp4;
2662 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2663 }
2664 }
2665 if (obj4) {
2666 {
2667 if (! PySequence_Check(obj4)) {
2668 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2669 SWIG_fail;
2670 }
2671 arg5 = new wxArrayString;
2672 temp5 = True;
2673 int i, len=PySequence_Length(obj4);
2674 for (i=0; i<len; i++) {
2675 PyObject* item = PySequence_GetItem(obj4, i);
2676 #if wxUSE_UNICODE
2677 PyObject* str = PyObject_Unicode(item);
2678 #else
2679 PyObject* str = PyObject_Str(item);
2680 #endif
2681 if (PyErr_Occurred()) SWIG_fail;
2682 arg5->Add(Py2wxString(str));
2683 Py_DECREF(item);
2684 Py_DECREF(str);
2685 }
2686 }
2687 }
2688 if (obj5) {
2689 arg6 = (long)SWIG_As_long(obj5);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 if (obj6) {
2693 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2694 SWIG_POINTER_EXCEPTION | 0)) == -1)
2695 SWIG_fail;
2696 if (arg7 == NULL) {
2697 PyErr_SetString(PyExc_TypeError,"null reference");
2698 SWIG_fail;
2699 }
2700 }
2701 if (obj7) {
2702 {
2703 arg8 = wxString_in_helper(obj7);
2704 if (arg8 == NULL) SWIG_fail;
2705 temp8 = True;
2706 }
2707 }
2708 {
2709 if (!wxPyCheckForApp()) SWIG_fail;
2710 PyThreadState* __tstate = wxPyBeginAllowThreads();
2711 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2712
2713 wxPyEndAllowThreads(__tstate);
2714 if (PyErr_Occurred()) SWIG_fail;
2715 }
2716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2717 {
2718 if (temp5) delete arg5;
2719 }
2720 {
2721 if (temp8)
2722 delete arg8;
2723 }
2724 return resultobj;
2725 fail:
2726 {
2727 if (temp5) delete arg5;
2728 }
2729 {
2730 if (temp8)
2731 delete arg8;
2732 }
2733 return NULL;
2734 }
2735
2736
2737 static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) {
2738 PyObject *resultobj;
2739 wxChoice *result;
2740 char *kwnames[] = {
2741 NULL
2742 };
2743
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2745 {
2746 if (!wxPyCheckForApp()) SWIG_fail;
2747 PyThreadState* __tstate = wxPyBeginAllowThreads();
2748 result = (wxChoice *)new wxChoice();
2749
2750 wxPyEndAllowThreads(__tstate);
2751 if (PyErr_Occurred()) SWIG_fail;
2752 }
2753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2754 return resultobj;
2755 fail:
2756 return NULL;
2757 }
2758
2759
2760 static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2761 PyObject *resultobj;
2762 wxChoice *arg1 = (wxChoice *) 0 ;
2763 wxWindow *arg2 = (wxWindow *) 0 ;
2764 int arg3 = (int) -1 ;
2765 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2766 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2767 wxSize const &arg5_defvalue = wxDefaultSize ;
2768 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2769 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2770 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2771 long arg7 = (long) 0 ;
2772 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2773 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2774 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2775 wxString *arg9 = (wxString *) &arg9_defvalue ;
2776 bool result;
2777 wxPoint temp4 ;
2778 wxSize temp5 ;
2779 bool temp6 = False ;
2780 bool temp9 = False ;
2781 PyObject * obj0 = 0 ;
2782 PyObject * obj1 = 0 ;
2783 PyObject * obj2 = 0 ;
2784 PyObject * obj3 = 0 ;
2785 PyObject * obj4 = 0 ;
2786 PyObject * obj5 = 0 ;
2787 PyObject * obj6 = 0 ;
2788 PyObject * obj7 = 0 ;
2789 PyObject * obj8 = 0 ;
2790 char *kwnames[] = {
2791 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2792 };
2793
2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2799 if (obj2) {
2800 arg3 = (int)SWIG_As_int(obj2);
2801 if (PyErr_Occurred()) SWIG_fail;
2802 }
2803 if (obj3) {
2804 {
2805 arg4 = &temp4;
2806 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2807 }
2808 }
2809 if (obj4) {
2810 {
2811 arg5 = &temp5;
2812 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2813 }
2814 }
2815 if (obj5) {
2816 {
2817 if (! PySequence_Check(obj5)) {
2818 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2819 SWIG_fail;
2820 }
2821 arg6 = new wxArrayString;
2822 temp6 = True;
2823 int i, len=PySequence_Length(obj5);
2824 for (i=0; i<len; i++) {
2825 PyObject* item = PySequence_GetItem(obj5, i);
2826 #if wxUSE_UNICODE
2827 PyObject* str = PyObject_Unicode(item);
2828 #else
2829 PyObject* str = PyObject_Str(item);
2830 #endif
2831 if (PyErr_Occurred()) SWIG_fail;
2832 arg6->Add(Py2wxString(str));
2833 Py_DECREF(item);
2834 Py_DECREF(str);
2835 }
2836 }
2837 }
2838 if (obj6) {
2839 arg7 = (long)SWIG_As_long(obj6);
2840 if (PyErr_Occurred()) SWIG_fail;
2841 }
2842 if (obj7) {
2843 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2844 SWIG_POINTER_EXCEPTION | 0)) == -1)
2845 SWIG_fail;
2846 if (arg8 == NULL) {
2847 PyErr_SetString(PyExc_TypeError,"null reference");
2848 SWIG_fail;
2849 }
2850 }
2851 if (obj8) {
2852 {
2853 arg9 = wxString_in_helper(obj8);
2854 if (arg9 == NULL) SWIG_fail;
2855 temp9 = True;
2856 }
2857 }
2858 {
2859 PyThreadState* __tstate = wxPyBeginAllowThreads();
2860 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2861
2862 wxPyEndAllowThreads(__tstate);
2863 if (PyErr_Occurred()) SWIG_fail;
2864 }
2865 {
2866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2867 }
2868 {
2869 if (temp6) delete arg6;
2870 }
2871 {
2872 if (temp9)
2873 delete arg9;
2874 }
2875 return resultobj;
2876 fail:
2877 {
2878 if (temp6) delete arg6;
2879 }
2880 {
2881 if (temp9)
2882 delete arg9;
2883 }
2884 return NULL;
2885 }
2886
2887
2888 static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2889 PyObject *resultobj;
2890 wxChoice *arg1 = (wxChoice *) 0 ;
2891 int arg2 ;
2892 PyObject * obj0 = 0 ;
2893 PyObject * obj1 = 0 ;
2894 char *kwnames[] = {
2895 (char *) "self",(char *) "n", NULL
2896 };
2897
2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2901 arg2 = (int)SWIG_As_int(obj1);
2902 if (PyErr_Occurred()) SWIG_fail;
2903 {
2904 PyThreadState* __tstate = wxPyBeginAllowThreads();
2905 (arg1)->SetSelection(arg2);
2906
2907 wxPyEndAllowThreads(__tstate);
2908 if (PyErr_Occurred()) SWIG_fail;
2909 }
2910 Py_INCREF(Py_None); resultobj = Py_None;
2911 return resultobj;
2912 fail:
2913 return NULL;
2914 }
2915
2916
2917 static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2918 PyObject *resultobj;
2919 wxChoice *arg1 = (wxChoice *) 0 ;
2920 wxString *arg2 = 0 ;
2921 bool result;
2922 bool temp2 = False ;
2923 PyObject * obj0 = 0 ;
2924 PyObject * obj1 = 0 ;
2925 char *kwnames[] = {
2926 (char *) "self",(char *) "string", NULL
2927 };
2928
2929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2932 {
2933 arg2 = wxString_in_helper(obj1);
2934 if (arg2 == NULL) SWIG_fail;
2935 temp2 = True;
2936 }
2937 {
2938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2939 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2940
2941 wxPyEndAllowThreads(__tstate);
2942 if (PyErr_Occurred()) SWIG_fail;
2943 }
2944 {
2945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2946 }
2947 {
2948 if (temp2)
2949 delete arg2;
2950 }
2951 return resultobj;
2952 fail:
2953 {
2954 if (temp2)
2955 delete arg2;
2956 }
2957 return NULL;
2958 }
2959
2960
2961 static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
2962 PyObject *resultobj;
2963 wxChoice *arg1 = (wxChoice *) 0 ;
2964 int arg2 ;
2965 wxString *arg3 = 0 ;
2966 bool temp3 = False ;
2967 PyObject * obj0 = 0 ;
2968 PyObject * obj1 = 0 ;
2969 PyObject * obj2 = 0 ;
2970 char *kwnames[] = {
2971 (char *) "self",(char *) "n",(char *) "string", NULL
2972 };
2973
2974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2977 arg2 = (int)SWIG_As_int(obj1);
2978 if (PyErr_Occurred()) SWIG_fail;
2979 {
2980 arg3 = wxString_in_helper(obj2);
2981 if (arg3 == NULL) SWIG_fail;
2982 temp3 = True;
2983 }
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 (arg1)->SetString(arg2,(wxString const &)*arg3);
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 Py_INCREF(Py_None); resultobj = Py_None;
2992 {
2993 if (temp3)
2994 delete arg3;
2995 }
2996 return resultobj;
2997 fail:
2998 {
2999 if (temp3)
3000 delete arg3;
3001 }
3002 return NULL;
3003 }
3004
3005
3006 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3007 PyObject *resultobj;
3008 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3009 wxVisualAttributes result;
3010 PyObject * obj0 = 0 ;
3011 char *kwnames[] = {
3012 (char *) "variant", NULL
3013 };
3014
3015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3016 if (obj0) {
3017 arg1 = (int)SWIG_As_int(obj0);
3018 if (PyErr_Occurred()) SWIG_fail;
3019 }
3020 {
3021 if (!wxPyCheckForApp()) SWIG_fail;
3022 PyThreadState* __tstate = wxPyBeginAllowThreads();
3023 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
3024
3025 wxPyEndAllowThreads(__tstate);
3026 if (PyErr_Occurred()) SWIG_fail;
3027 }
3028 {
3029 wxVisualAttributes * resultptr;
3030 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3031 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3032 }
3033 return resultobj;
3034 fail:
3035 return NULL;
3036 }
3037
3038
3039 static PyObject * Choice_swigregister(PyObject *, PyObject *args) {
3040 PyObject *obj;
3041 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3042 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
3043 Py_INCREF(obj);
3044 return Py_BuildValue((char *)"");
3045 }
3046 static int _wrap_ComboBoxNameStr_set(PyObject *) {
3047 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
3048 return 1;
3049 }
3050
3051
3052 static PyObject *_wrap_ComboBoxNameStr_get() {
3053 PyObject *pyobj;
3054
3055 {
3056 #if wxUSE_UNICODE
3057 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3058 #else
3059 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3060 #endif
3061 }
3062 return pyobj;
3063 }
3064
3065
3066 static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3067 PyObject *resultobj;
3068 wxWindow *arg1 = (wxWindow *) 0 ;
3069 int arg2 = (int) -1 ;
3070 wxString const &arg3_defvalue = wxPyEmptyString ;
3071 wxString *arg3 = (wxString *) &arg3_defvalue ;
3072 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3073 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3074 wxSize const &arg5_defvalue = wxDefaultSize ;
3075 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3076 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
3077 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
3078 long arg7 = (long) 0 ;
3079 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3080 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3081 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
3082 wxString *arg9 = (wxString *) &arg9_defvalue ;
3083 wxComboBox *result;
3084 bool temp3 = False ;
3085 wxPoint temp4 ;
3086 wxSize temp5 ;
3087 bool temp6 = False ;
3088 bool temp9 = False ;
3089 PyObject * obj0 = 0 ;
3090 PyObject * obj1 = 0 ;
3091 PyObject * obj2 = 0 ;
3092 PyObject * obj3 = 0 ;
3093 PyObject * obj4 = 0 ;
3094 PyObject * obj5 = 0 ;
3095 PyObject * obj6 = 0 ;
3096 PyObject * obj7 = 0 ;
3097 PyObject * obj8 = 0 ;
3098 char *kwnames[] = {
3099 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3100 };
3101
3102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3105 if (obj1) {
3106 arg2 = (int)SWIG_As_int(obj1);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 if (obj2) {
3110 {
3111 arg3 = wxString_in_helper(obj2);
3112 if (arg3 == NULL) SWIG_fail;
3113 temp3 = True;
3114 }
3115 }
3116 if (obj3) {
3117 {
3118 arg4 = &temp4;
3119 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3120 }
3121 }
3122 if (obj4) {
3123 {
3124 arg5 = &temp5;
3125 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3126 }
3127 }
3128 if (obj5) {
3129 {
3130 if (! PySequence_Check(obj5)) {
3131 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3132 SWIG_fail;
3133 }
3134 arg6 = new wxArrayString;
3135 temp6 = True;
3136 int i, len=PySequence_Length(obj5);
3137 for (i=0; i<len; i++) {
3138 PyObject* item = PySequence_GetItem(obj5, i);
3139 #if wxUSE_UNICODE
3140 PyObject* str = PyObject_Unicode(item);
3141 #else
3142 PyObject* str = PyObject_Str(item);
3143 #endif
3144 if (PyErr_Occurred()) SWIG_fail;
3145 arg6->Add(Py2wxString(str));
3146 Py_DECREF(item);
3147 Py_DECREF(str);
3148 }
3149 }
3150 }
3151 if (obj6) {
3152 arg7 = (long)SWIG_As_long(obj6);
3153 if (PyErr_Occurred()) SWIG_fail;
3154 }
3155 if (obj7) {
3156 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3157 SWIG_POINTER_EXCEPTION | 0)) == -1)
3158 SWIG_fail;
3159 if (arg8 == NULL) {
3160 PyErr_SetString(PyExc_TypeError,"null reference");
3161 SWIG_fail;
3162 }
3163 }
3164 if (obj8) {
3165 {
3166 arg9 = wxString_in_helper(obj8);
3167 if (arg9 == NULL) SWIG_fail;
3168 temp9 = True;
3169 }
3170 }
3171 {
3172 if (!wxPyCheckForApp()) SWIG_fail;
3173 PyThreadState* __tstate = wxPyBeginAllowThreads();
3174 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3175
3176 wxPyEndAllowThreads(__tstate);
3177 if (PyErr_Occurred()) SWIG_fail;
3178 }
3179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3180 {
3181 if (temp3)
3182 delete arg3;
3183 }
3184 {
3185 if (temp6) delete arg6;
3186 }
3187 {
3188 if (temp9)
3189 delete arg9;
3190 }
3191 return resultobj;
3192 fail:
3193 {
3194 if (temp3)
3195 delete arg3;
3196 }
3197 {
3198 if (temp6) delete arg6;
3199 }
3200 {
3201 if (temp9)
3202 delete arg9;
3203 }
3204 return NULL;
3205 }
3206
3207
3208 static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3209 PyObject *resultobj;
3210 wxComboBox *result;
3211 char *kwnames[] = {
3212 NULL
3213 };
3214
3215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3216 {
3217 if (!wxPyCheckForApp()) SWIG_fail;
3218 PyThreadState* __tstate = wxPyBeginAllowThreads();
3219 result = (wxComboBox *)new wxComboBox();
3220
3221 wxPyEndAllowThreads(__tstate);
3222 if (PyErr_Occurred()) SWIG_fail;
3223 }
3224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3225 return resultobj;
3226 fail:
3227 return NULL;
3228 }
3229
3230
3231 static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
3232 PyObject *resultobj;
3233 wxComboBox *arg1 = (wxComboBox *) 0 ;
3234 wxWindow *arg2 = (wxWindow *) 0 ;
3235 int arg3 = (int) -1 ;
3236 wxString const &arg4_defvalue = wxPyEmptyString ;
3237 wxString *arg4 = (wxString *) &arg4_defvalue ;
3238 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3239 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3240 wxSize const &arg6_defvalue = wxDefaultSize ;
3241 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3242 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3243 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3244 long arg8 = (long) 0 ;
3245 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3246 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3247 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3248 wxString *arg10 = (wxString *) &arg10_defvalue ;
3249 bool result;
3250 bool temp4 = False ;
3251 wxPoint temp5 ;
3252 wxSize temp6 ;
3253 bool temp7 = False ;
3254 bool temp10 = False ;
3255 PyObject * obj0 = 0 ;
3256 PyObject * obj1 = 0 ;
3257 PyObject * obj2 = 0 ;
3258 PyObject * obj3 = 0 ;
3259 PyObject * obj4 = 0 ;
3260 PyObject * obj5 = 0 ;
3261 PyObject * obj6 = 0 ;
3262 PyObject * obj7 = 0 ;
3263 PyObject * obj8 = 0 ;
3264 PyObject * obj9 = 0 ;
3265 char *kwnames[] = {
3266 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3267 };
3268
3269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3274 if (obj2) {
3275 arg3 = (int)SWIG_As_int(obj2);
3276 if (PyErr_Occurred()) SWIG_fail;
3277 }
3278 if (obj3) {
3279 {
3280 arg4 = wxString_in_helper(obj3);
3281 if (arg4 == NULL) SWIG_fail;
3282 temp4 = True;
3283 }
3284 }
3285 if (obj4) {
3286 {
3287 arg5 = &temp5;
3288 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3289 }
3290 }
3291 if (obj5) {
3292 {
3293 arg6 = &temp6;
3294 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3295 }
3296 }
3297 if (obj6) {
3298 {
3299 if (! PySequence_Check(obj6)) {
3300 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3301 SWIG_fail;
3302 }
3303 arg7 = new wxArrayString;
3304 temp7 = True;
3305 int i, len=PySequence_Length(obj6);
3306 for (i=0; i<len; i++) {
3307 PyObject* item = PySequence_GetItem(obj6, i);
3308 #if wxUSE_UNICODE
3309 PyObject* str = PyObject_Unicode(item);
3310 #else
3311 PyObject* str = PyObject_Str(item);
3312 #endif
3313 if (PyErr_Occurred()) SWIG_fail;
3314 arg7->Add(Py2wxString(str));
3315 Py_DECREF(item);
3316 Py_DECREF(str);
3317 }
3318 }
3319 }
3320 if (obj7) {
3321 arg8 = (long)SWIG_As_long(obj7);
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
3324 if (obj8) {
3325 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3326 SWIG_POINTER_EXCEPTION | 0)) == -1)
3327 SWIG_fail;
3328 if (arg9 == NULL) {
3329 PyErr_SetString(PyExc_TypeError,"null reference");
3330 SWIG_fail;
3331 }
3332 }
3333 if (obj9) {
3334 {
3335 arg10 = wxString_in_helper(obj9);
3336 if (arg10 == NULL) SWIG_fail;
3337 temp10 = True;
3338 }
3339 }
3340 {
3341 PyThreadState* __tstate = wxPyBeginAllowThreads();
3342 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
3343
3344 wxPyEndAllowThreads(__tstate);
3345 if (PyErr_Occurred()) SWIG_fail;
3346 }
3347 {
3348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3349 }
3350 {
3351 if (temp4)
3352 delete arg4;
3353 }
3354 {
3355 if (temp7) delete arg7;
3356 }
3357 {
3358 if (temp10)
3359 delete arg10;
3360 }
3361 return resultobj;
3362 fail:
3363 {
3364 if (temp4)
3365 delete arg4;
3366 }
3367 {
3368 if (temp7) delete arg7;
3369 }
3370 {
3371 if (temp10)
3372 delete arg10;
3373 }
3374 return NULL;
3375 }
3376
3377
3378 static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3379 PyObject *resultobj;
3380 wxComboBox *arg1 = (wxComboBox *) 0 ;
3381 wxString result;
3382 PyObject * obj0 = 0 ;
3383 char *kwnames[] = {
3384 (char *) "self", NULL
3385 };
3386
3387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3390 {
3391 PyThreadState* __tstate = wxPyBeginAllowThreads();
3392 result = ((wxComboBox const *)arg1)->GetValue();
3393
3394 wxPyEndAllowThreads(__tstate);
3395 if (PyErr_Occurred()) SWIG_fail;
3396 }
3397 {
3398 #if wxUSE_UNICODE
3399 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3400 #else
3401 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3402 #endif
3403 }
3404 return resultobj;
3405 fail:
3406 return NULL;
3407 }
3408
3409
3410 static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3411 PyObject *resultobj;
3412 wxComboBox *arg1 = (wxComboBox *) 0 ;
3413 wxString *arg2 = 0 ;
3414 bool temp2 = False ;
3415 PyObject * obj0 = 0 ;
3416 PyObject * obj1 = 0 ;
3417 char *kwnames[] = {
3418 (char *) "self",(char *) "value", NULL
3419 };
3420
3421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3424 {
3425 arg2 = wxString_in_helper(obj1);
3426 if (arg2 == NULL) SWIG_fail;
3427 temp2 = True;
3428 }
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 (arg1)->SetValue((wxString const &)*arg2);
3432
3433 wxPyEndAllowThreads(__tstate);
3434 if (PyErr_Occurred()) SWIG_fail;
3435 }
3436 Py_INCREF(Py_None); resultobj = Py_None;
3437 {
3438 if (temp2)
3439 delete arg2;
3440 }
3441 return resultobj;
3442 fail:
3443 {
3444 if (temp2)
3445 delete arg2;
3446 }
3447 return NULL;
3448 }
3449
3450
3451 static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj;
3453 wxComboBox *arg1 = (wxComboBox *) 0 ;
3454 PyObject * obj0 = 0 ;
3455 char *kwnames[] = {
3456 (char *) "self", NULL
3457 };
3458
3459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3462 {
3463 PyThreadState* __tstate = wxPyBeginAllowThreads();
3464 (arg1)->Copy();
3465
3466 wxPyEndAllowThreads(__tstate);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 Py_INCREF(Py_None); resultobj = Py_None;
3470 return resultobj;
3471 fail:
3472 return NULL;
3473 }
3474
3475
3476 static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
3477 PyObject *resultobj;
3478 wxComboBox *arg1 = (wxComboBox *) 0 ;
3479 PyObject * obj0 = 0 ;
3480 char *kwnames[] = {
3481 (char *) "self", NULL
3482 };
3483
3484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3487 {
3488 PyThreadState* __tstate = wxPyBeginAllowThreads();
3489 (arg1)->Cut();
3490
3491 wxPyEndAllowThreads(__tstate);
3492 if (PyErr_Occurred()) SWIG_fail;
3493 }
3494 Py_INCREF(Py_None); resultobj = Py_None;
3495 return resultobj;
3496 fail:
3497 return NULL;
3498 }
3499
3500
3501 static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
3502 PyObject *resultobj;
3503 wxComboBox *arg1 = (wxComboBox *) 0 ;
3504 PyObject * obj0 = 0 ;
3505 char *kwnames[] = {
3506 (char *) "self", NULL
3507 };
3508
3509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3512 {
3513 PyThreadState* __tstate = wxPyBeginAllowThreads();
3514 (arg1)->Paste();
3515
3516 wxPyEndAllowThreads(__tstate);
3517 if (PyErr_Occurred()) SWIG_fail;
3518 }
3519 Py_INCREF(Py_None); resultobj = Py_None;
3520 return resultobj;
3521 fail:
3522 return NULL;
3523 }
3524
3525
3526 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3527 PyObject *resultobj;
3528 wxComboBox *arg1 = (wxComboBox *) 0 ;
3529 long arg2 ;
3530 PyObject * obj0 = 0 ;
3531 PyObject * obj1 = 0 ;
3532 char *kwnames[] = {
3533 (char *) "self",(char *) "pos", NULL
3534 };
3535
3536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3539 arg2 = (long)SWIG_As_long(obj1);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 {
3542 PyThreadState* __tstate = wxPyBeginAllowThreads();
3543 (arg1)->SetInsertionPoint(arg2);
3544
3545 wxPyEndAllowThreads(__tstate);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 }
3548 Py_INCREF(Py_None); resultobj = Py_None;
3549 return resultobj;
3550 fail:
3551 return NULL;
3552 }
3553
3554
3555 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3556 PyObject *resultobj;
3557 wxComboBox *arg1 = (wxComboBox *) 0 ;
3558 long result;
3559 PyObject * obj0 = 0 ;
3560 char *kwnames[] = {
3561 (char *) "self", NULL
3562 };
3563
3564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3567 {
3568 PyThreadState* __tstate = wxPyBeginAllowThreads();
3569 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3570
3571 wxPyEndAllowThreads(__tstate);
3572 if (PyErr_Occurred()) SWIG_fail;
3573 }
3574 resultobj = SWIG_From_long((long)result);
3575 return resultobj;
3576 fail:
3577 return NULL;
3578 }
3579
3580
3581 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3582 PyObject *resultobj;
3583 wxComboBox *arg1 = (wxComboBox *) 0 ;
3584 long result;
3585 PyObject * obj0 = 0 ;
3586 char *kwnames[] = {
3587 (char *) "self", NULL
3588 };
3589
3590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3593 {
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3596
3597 wxPyEndAllowThreads(__tstate);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 resultobj = SWIG_From_long((long)result);
3601 return resultobj;
3602 fail:
3603 return NULL;
3604 }
3605
3606
3607 static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
3608 PyObject *resultobj;
3609 wxComboBox *arg1 = (wxComboBox *) 0 ;
3610 long arg2 ;
3611 long arg3 ;
3612 wxString *arg4 = 0 ;
3613 bool temp4 = False ;
3614 PyObject * obj0 = 0 ;
3615 PyObject * obj1 = 0 ;
3616 PyObject * obj2 = 0 ;
3617 PyObject * obj3 = 0 ;
3618 char *kwnames[] = {
3619 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3620 };
3621
3622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3625 arg2 = (long)SWIG_As_long(obj1);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 arg3 = (long)SWIG_As_long(obj2);
3628 if (PyErr_Occurred()) SWIG_fail;
3629 {
3630 arg4 = wxString_in_helper(obj3);
3631 if (arg4 == NULL) SWIG_fail;
3632 temp4 = True;
3633 }
3634 {
3635 PyThreadState* __tstate = wxPyBeginAllowThreads();
3636 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3637
3638 wxPyEndAllowThreads(__tstate);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 Py_INCREF(Py_None); resultobj = Py_None;
3642 {
3643 if (temp4)
3644 delete arg4;
3645 }
3646 return resultobj;
3647 fail:
3648 {
3649 if (temp4)
3650 delete arg4;
3651 }
3652 return NULL;
3653 }
3654
3655
3656 static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3657 PyObject *resultobj;
3658 wxComboBox *arg1 = (wxComboBox *) 0 ;
3659 int arg2 ;
3660 PyObject * obj0 = 0 ;
3661 PyObject * obj1 = 0 ;
3662 char *kwnames[] = {
3663 (char *) "self",(char *) "n", NULL
3664 };
3665
3666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3669 arg2 = (int)SWIG_As_int(obj1);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 {
3672 PyThreadState* __tstate = wxPyBeginAllowThreads();
3673 (arg1)->SetSelection(arg2);
3674
3675 wxPyEndAllowThreads(__tstate);
3676 if (PyErr_Occurred()) SWIG_fail;
3677 }
3678 Py_INCREF(Py_None); resultobj = Py_None;
3679 return resultobj;
3680 fail:
3681 return NULL;
3682 }
3683
3684
3685 static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) {
3686 PyObject *resultobj;
3687 wxComboBox *arg1 = (wxComboBox *) 0 ;
3688 long arg2 ;
3689 long arg3 ;
3690 PyObject * obj0 = 0 ;
3691 PyObject * obj1 = 0 ;
3692 PyObject * obj2 = 0 ;
3693 char *kwnames[] = {
3694 (char *) "self",(char *) "from",(char *) "to", NULL
3695 };
3696
3697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3700 arg2 = (long)SWIG_As_long(obj1);
3701 if (PyErr_Occurred()) SWIG_fail;
3702 arg3 = (long)SWIG_As_long(obj2);
3703 if (PyErr_Occurred()) SWIG_fail;
3704 {
3705 PyThreadState* __tstate = wxPyBeginAllowThreads();
3706 (arg1)->SetSelection(arg2,arg3);
3707
3708 wxPyEndAllowThreads(__tstate);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 }
3711 Py_INCREF(Py_None); resultobj = Py_None;
3712 return resultobj;
3713 fail:
3714 return NULL;
3715 }
3716
3717
3718 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3719 PyObject *resultobj;
3720 wxComboBox *arg1 = (wxComboBox *) 0 ;
3721 wxString *arg2 = 0 ;
3722 bool result;
3723 bool temp2 = False ;
3724 PyObject * obj0 = 0 ;
3725 PyObject * obj1 = 0 ;
3726 char *kwnames[] = {
3727 (char *) "self",(char *) "string", NULL
3728 };
3729
3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3733 {
3734 arg2 = wxString_in_helper(obj1);
3735 if (arg2 == NULL) SWIG_fail;
3736 temp2 = True;
3737 }
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 {
3746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3747 }
3748 {
3749 if (temp2)
3750 delete arg2;
3751 }
3752 return resultobj;
3753 fail:
3754 {
3755 if (temp2)
3756 delete arg2;
3757 }
3758 return NULL;
3759 }
3760
3761
3762 static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
3763 PyObject *resultobj;
3764 wxComboBox *arg1 = (wxComboBox *) 0 ;
3765 int arg2 ;
3766 wxString *arg3 = 0 ;
3767 bool temp3 = False ;
3768 PyObject * obj0 = 0 ;
3769 PyObject * obj1 = 0 ;
3770 PyObject * obj2 = 0 ;
3771 char *kwnames[] = {
3772 (char *) "self",(char *) "n",(char *) "string", NULL
3773 };
3774
3775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3778 arg2 = (int)SWIG_As_int(obj1);
3779 if (PyErr_Occurred()) SWIG_fail;
3780 {
3781 arg3 = wxString_in_helper(obj2);
3782 if (arg3 == NULL) SWIG_fail;
3783 temp3 = True;
3784 }
3785 {
3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
3787 (arg1)->SetString(arg2,(wxString const &)*arg3);
3788
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 Py_INCREF(Py_None); resultobj = Py_None;
3793 {
3794 if (temp3)
3795 delete arg3;
3796 }
3797 return resultobj;
3798 fail:
3799 {
3800 if (temp3)
3801 delete arg3;
3802 }
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3808 PyObject *resultobj;
3809 wxComboBox *arg1 = (wxComboBox *) 0 ;
3810 bool arg2 ;
3811 PyObject * obj0 = 0 ;
3812 PyObject * obj1 = 0 ;
3813 char *kwnames[] = {
3814 (char *) "self",(char *) "editable", NULL
3815 };
3816
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3820 arg2 = (bool)SWIG_As_bool(obj1);
3821 if (PyErr_Occurred()) SWIG_fail;
3822 {
3823 PyThreadState* __tstate = wxPyBeginAllowThreads();
3824 (arg1)->SetEditable(arg2);
3825
3826 wxPyEndAllowThreads(__tstate);
3827 if (PyErr_Occurred()) SWIG_fail;
3828 }
3829 Py_INCREF(Py_None); resultobj = Py_None;
3830 return resultobj;
3831 fail:
3832 return NULL;
3833 }
3834
3835
3836 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
3837 PyObject *resultobj;
3838 wxComboBox *arg1 = (wxComboBox *) 0 ;
3839 PyObject * obj0 = 0 ;
3840 char *kwnames[] = {
3841 (char *) "self", NULL
3842 };
3843
3844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3847 {
3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
3849 (arg1)->SetInsertionPointEnd();
3850
3851 wxPyEndAllowThreads(__tstate);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 }
3854 Py_INCREF(Py_None); resultobj = Py_None;
3855 return resultobj;
3856 fail:
3857 return NULL;
3858 }
3859
3860
3861 static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
3862 PyObject *resultobj;
3863 wxComboBox *arg1 = (wxComboBox *) 0 ;
3864 long arg2 ;
3865 long arg3 ;
3866 PyObject * obj0 = 0 ;
3867 PyObject * obj1 = 0 ;
3868 PyObject * obj2 = 0 ;
3869 char *kwnames[] = {
3870 (char *) "self",(char *) "from",(char *) "to", NULL
3871 };
3872
3873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3876 arg2 = (long)SWIG_As_long(obj1);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 arg3 = (long)SWIG_As_long(obj2);
3879 if (PyErr_Occurred()) SWIG_fail;
3880 {
3881 PyThreadState* __tstate = wxPyBeginAllowThreads();
3882 (arg1)->Remove(arg2,arg3);
3883
3884 wxPyEndAllowThreads(__tstate);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 }
3887 Py_INCREF(Py_None); resultobj = Py_None;
3888 return resultobj;
3889 fail:
3890 return NULL;
3891 }
3892
3893
3894 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3895 PyObject *resultobj;
3896 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3897 wxVisualAttributes result;
3898 PyObject * obj0 = 0 ;
3899 char *kwnames[] = {
3900 (char *) "variant", NULL
3901 };
3902
3903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3904 if (obj0) {
3905 arg1 = (int)SWIG_As_int(obj0);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 {
3909 if (!wxPyCheckForApp()) SWIG_fail;
3910 PyThreadState* __tstate = wxPyBeginAllowThreads();
3911 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3912
3913 wxPyEndAllowThreads(__tstate);
3914 if (PyErr_Occurred()) SWIG_fail;
3915 }
3916 {
3917 wxVisualAttributes * resultptr;
3918 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3919 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3920 }
3921 return resultobj;
3922 fail:
3923 return NULL;
3924 }
3925
3926
3927 static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) {
3928 PyObject *obj;
3929 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3930 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3931 Py_INCREF(obj);
3932 return Py_BuildValue((char *)"");
3933 }
3934 static int _wrap_GaugeNameStr_set(PyObject *) {
3935 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3936 return 1;
3937 }
3938
3939
3940 static PyObject *_wrap_GaugeNameStr_get() {
3941 PyObject *pyobj;
3942
3943 {
3944 #if wxUSE_UNICODE
3945 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3946 #else
3947 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3948 #endif
3949 }
3950 return pyobj;
3951 }
3952
3953
3954 static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) {
3955 PyObject *resultobj;
3956 wxWindow *arg1 = (wxWindow *) 0 ;
3957 int arg2 = (int) -1 ;
3958 int arg3 = (int) 100 ;
3959 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3960 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3961 wxSize const &arg5_defvalue = wxDefaultSize ;
3962 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3963 long arg6 = (long) wxGA_HORIZONTAL ;
3964 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3965 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3966 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3967 wxString *arg8 = (wxString *) &arg8_defvalue ;
3968 wxGauge *result;
3969 wxPoint temp4 ;
3970 wxSize temp5 ;
3971 bool temp8 = False ;
3972 PyObject * obj0 = 0 ;
3973 PyObject * obj1 = 0 ;
3974 PyObject * obj2 = 0 ;
3975 PyObject * obj3 = 0 ;
3976 PyObject * obj4 = 0 ;
3977 PyObject * obj5 = 0 ;
3978 PyObject * obj6 = 0 ;
3979 PyObject * obj7 = 0 ;
3980 char *kwnames[] = {
3981 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3982 };
3983
3984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3987 if (obj1) {
3988 arg2 = (int)SWIG_As_int(obj1);
3989 if (PyErr_Occurred()) SWIG_fail;
3990 }
3991 if (obj2) {
3992 arg3 = (int)SWIG_As_int(obj2);
3993 if (PyErr_Occurred()) SWIG_fail;
3994 }
3995 if (obj3) {
3996 {
3997 arg4 = &temp4;
3998 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3999 }
4000 }
4001 if (obj4) {
4002 {
4003 arg5 = &temp5;
4004 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4005 }
4006 }
4007 if (obj5) {
4008 arg6 = (long)SWIG_As_long(obj5);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 if (obj6) {
4012 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
4013 SWIG_POINTER_EXCEPTION | 0)) == -1)
4014 SWIG_fail;
4015 if (arg7 == NULL) {
4016 PyErr_SetString(PyExc_TypeError,"null reference");
4017 SWIG_fail;
4018 }
4019 }
4020 if (obj7) {
4021 {
4022 arg8 = wxString_in_helper(obj7);
4023 if (arg8 == NULL) SWIG_fail;
4024 temp8 = True;
4025 }
4026 }
4027 {
4028 if (!wxPyCheckForApp()) SWIG_fail;
4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
4030 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4031
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4036 {
4037 if (temp8)
4038 delete arg8;
4039 }
4040 return resultobj;
4041 fail:
4042 {
4043 if (temp8)
4044 delete arg8;
4045 }
4046 return NULL;
4047 }
4048
4049
4050 static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj;
4052 wxGauge *result;
4053 char *kwnames[] = {
4054 NULL
4055 };
4056
4057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
4058 {
4059 if (!wxPyCheckForApp()) SWIG_fail;
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (wxGauge *)new wxGauge();
4062
4063 wxPyEndAllowThreads(__tstate);
4064 if (PyErr_Occurred()) SWIG_fail;
4065 }
4066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4067 return resultobj;
4068 fail:
4069 return NULL;
4070 }
4071
4072
4073 static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4074 PyObject *resultobj;
4075 wxGauge *arg1 = (wxGauge *) 0 ;
4076 wxWindow *arg2 = (wxWindow *) 0 ;
4077 int arg3 = (int) -1 ;
4078 int arg4 = (int) 100 ;
4079 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4080 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4081 wxSize const &arg6_defvalue = wxDefaultSize ;
4082 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4083 long arg7 = (long) wxGA_HORIZONTAL ;
4084 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4085 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4086 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
4087 wxString *arg9 = (wxString *) &arg9_defvalue ;
4088 bool result;
4089 wxPoint temp5 ;
4090 wxSize temp6 ;
4091 bool temp9 = False ;
4092 PyObject * obj0 = 0 ;
4093 PyObject * obj1 = 0 ;
4094 PyObject * obj2 = 0 ;
4095 PyObject * obj3 = 0 ;
4096 PyObject * obj4 = 0 ;
4097 PyObject * obj5 = 0 ;
4098 PyObject * obj6 = 0 ;
4099 PyObject * obj7 = 0 ;
4100 PyObject * obj8 = 0 ;
4101 char *kwnames[] = {
4102 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4103 };
4104
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4110 if (obj2) {
4111 arg3 = (int)SWIG_As_int(obj2);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 if (obj3) {
4115 arg4 = (int)SWIG_As_int(obj3);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 if (obj4) {
4119 {
4120 arg5 = &temp5;
4121 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4122 }
4123 }
4124 if (obj5) {
4125 {
4126 arg6 = &temp6;
4127 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4128 }
4129 }
4130 if (obj6) {
4131 arg7 = (long)SWIG_As_long(obj6);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 if (obj7) {
4135 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
4136 SWIG_POINTER_EXCEPTION | 0)) == -1)
4137 SWIG_fail;
4138 if (arg8 == NULL) {
4139 PyErr_SetString(PyExc_TypeError,"null reference");
4140 SWIG_fail;
4141 }
4142 }
4143 if (obj8) {
4144 {
4145 arg9 = wxString_in_helper(obj8);
4146 if (arg9 == NULL) SWIG_fail;
4147 temp9 = True;
4148 }
4149 }
4150 {
4151 PyThreadState* __tstate = wxPyBeginAllowThreads();
4152 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4153
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 {
4158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4159 }
4160 {
4161 if (temp9)
4162 delete arg9;
4163 }
4164 return resultobj;
4165 fail:
4166 {
4167 if (temp9)
4168 delete arg9;
4169 }
4170 return NULL;
4171 }
4172
4173
4174 static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 wxGauge *arg1 = (wxGauge *) 0 ;
4177 int arg2 ;
4178 PyObject * obj0 = 0 ;
4179 PyObject * obj1 = 0 ;
4180 char *kwnames[] = {
4181 (char *) "self",(char *) "range", NULL
4182 };
4183
4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4187 arg2 = (int)SWIG_As_int(obj1);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 (arg1)->SetRange(arg2);
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 Py_INCREF(Py_None); resultobj = Py_None;
4197 return resultobj;
4198 fail:
4199 return NULL;
4200 }
4201
4202
4203 static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj;
4205 wxGauge *arg1 = (wxGauge *) 0 ;
4206 int result;
4207 PyObject * obj0 = 0 ;
4208 char *kwnames[] = {
4209 (char *) "self", NULL
4210 };
4211
4212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4215 {
4216 PyThreadState* __tstate = wxPyBeginAllowThreads();
4217 result = (int)((wxGauge const *)arg1)->GetRange();
4218
4219 wxPyEndAllowThreads(__tstate);
4220 if (PyErr_Occurred()) SWIG_fail;
4221 }
4222 resultobj = SWIG_From_int((int)result);
4223 return resultobj;
4224 fail:
4225 return NULL;
4226 }
4227
4228
4229 static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4230 PyObject *resultobj;
4231 wxGauge *arg1 = (wxGauge *) 0 ;
4232 int arg2 ;
4233 PyObject * obj0 = 0 ;
4234 PyObject * obj1 = 0 ;
4235 char *kwnames[] = {
4236 (char *) "self",(char *) "pos", NULL
4237 };
4238
4239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4242 arg2 = (int)SWIG_As_int(obj1);
4243 if (PyErr_Occurred()) SWIG_fail;
4244 {
4245 PyThreadState* __tstate = wxPyBeginAllowThreads();
4246 (arg1)->SetValue(arg2);
4247
4248 wxPyEndAllowThreads(__tstate);
4249 if (PyErr_Occurred()) SWIG_fail;
4250 }
4251 Py_INCREF(Py_None); resultobj = Py_None;
4252 return resultobj;
4253 fail:
4254 return NULL;
4255 }
4256
4257
4258 static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4259 PyObject *resultobj;
4260 wxGauge *arg1 = (wxGauge *) 0 ;
4261 int result;
4262 PyObject * obj0 = 0 ;
4263 char *kwnames[] = {
4264 (char *) "self", NULL
4265 };
4266
4267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4270 {
4271 PyThreadState* __tstate = wxPyBeginAllowThreads();
4272 result = (int)((wxGauge const *)arg1)->GetValue();
4273
4274 wxPyEndAllowThreads(__tstate);
4275 if (PyErr_Occurred()) SWIG_fail;
4276 }
4277 resultobj = SWIG_From_int((int)result);
4278 return resultobj;
4279 fail:
4280 return NULL;
4281 }
4282
4283
4284 static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4285 PyObject *resultobj;
4286 wxGauge *arg1 = (wxGauge *) 0 ;
4287 bool result;
4288 PyObject * obj0 = 0 ;
4289 char *kwnames[] = {
4290 (char *) "self", NULL
4291 };
4292
4293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4296 {
4297 PyThreadState* __tstate = wxPyBeginAllowThreads();
4298 result = (bool)((wxGauge const *)arg1)->IsVertical();
4299
4300 wxPyEndAllowThreads(__tstate);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 {
4304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4305 }
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4313 PyObject *resultobj;
4314 wxGauge *arg1 = (wxGauge *) 0 ;
4315 int arg2 ;
4316 PyObject * obj0 = 0 ;
4317 PyObject * obj1 = 0 ;
4318 char *kwnames[] = {
4319 (char *) "self",(char *) "w", NULL
4320 };
4321
4322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4325 arg2 = (int)SWIG_As_int(obj1);
4326 if (PyErr_Occurred()) SWIG_fail;
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 (arg1)->SetShadowWidth(arg2);
4330
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 Py_INCREF(Py_None); resultobj = Py_None;
4335 return resultobj;
4336 fail:
4337 return NULL;
4338 }
4339
4340
4341 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj;
4343 wxGauge *arg1 = (wxGauge *) 0 ;
4344 int result;
4345 PyObject * obj0 = 0 ;
4346 char *kwnames[] = {
4347 (char *) "self", NULL
4348 };
4349
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4356
4357 wxPyEndAllowThreads(__tstate);
4358 if (PyErr_Occurred()) SWIG_fail;
4359 }
4360 resultobj = SWIG_From_int((int)result);
4361 return resultobj;
4362 fail:
4363 return NULL;
4364 }
4365
4366
4367 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4368 PyObject *resultobj;
4369 wxGauge *arg1 = (wxGauge *) 0 ;
4370 int arg2 ;
4371 PyObject * obj0 = 0 ;
4372 PyObject * obj1 = 0 ;
4373 char *kwnames[] = {
4374 (char *) "self",(char *) "w", NULL
4375 };
4376
4377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4380 arg2 = (int)SWIG_As_int(obj1);
4381 if (PyErr_Occurred()) SWIG_fail;
4382 {
4383 PyThreadState* __tstate = wxPyBeginAllowThreads();
4384 (arg1)->SetBezelFace(arg2);
4385
4386 wxPyEndAllowThreads(__tstate);
4387 if (PyErr_Occurred()) SWIG_fail;
4388 }
4389 Py_INCREF(Py_None); resultobj = Py_None;
4390 return resultobj;
4391 fail:
4392 return NULL;
4393 }
4394
4395
4396 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4397 PyObject *resultobj;
4398 wxGauge *arg1 = (wxGauge *) 0 ;
4399 int result;
4400 PyObject * obj0 = 0 ;
4401 char *kwnames[] = {
4402 (char *) "self", NULL
4403 };
4404
4405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4408 {
4409 PyThreadState* __tstate = wxPyBeginAllowThreads();
4410 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4411
4412 wxPyEndAllowThreads(__tstate);
4413 if (PyErr_Occurred()) SWIG_fail;
4414 }
4415 resultobj = SWIG_From_int((int)result);
4416 return resultobj;
4417 fail:
4418 return NULL;
4419 }
4420
4421
4422 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4423 PyObject *resultobj;
4424 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4425 wxVisualAttributes result;
4426 PyObject * obj0 = 0 ;
4427 char *kwnames[] = {
4428 (char *) "variant", NULL
4429 };
4430
4431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4432 if (obj0) {
4433 arg1 = (int)SWIG_As_int(obj0);
4434 if (PyErr_Occurred()) SWIG_fail;
4435 }
4436 {
4437 if (!wxPyCheckForApp()) SWIG_fail;
4438 PyThreadState* __tstate = wxPyBeginAllowThreads();
4439 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4440
4441 wxPyEndAllowThreads(__tstate);
4442 if (PyErr_Occurred()) SWIG_fail;
4443 }
4444 {
4445 wxVisualAttributes * resultptr;
4446 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4447 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4448 }
4449 return resultobj;
4450 fail:
4451 return NULL;
4452 }
4453
4454
4455 static PyObject * Gauge_swigregister(PyObject *, PyObject *args) {
4456 PyObject *obj;
4457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4458 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4459 Py_INCREF(obj);
4460 return Py_BuildValue((char *)"");
4461 }
4462 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
4463 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4464 return 1;
4465 }
4466
4467
4468 static PyObject *_wrap_StaticBitmapNameStr_get() {
4469 PyObject *pyobj;
4470
4471 {
4472 #if wxUSE_UNICODE
4473 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4474 #else
4475 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4476 #endif
4477 }
4478 return pyobj;
4479 }
4480
4481
4482 static int _wrap_StaticBoxNameStr_set(PyObject *) {
4483 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4484 return 1;
4485 }
4486
4487
4488 static PyObject *_wrap_StaticBoxNameStr_get() {
4489 PyObject *pyobj;
4490
4491 {
4492 #if wxUSE_UNICODE
4493 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4494 #else
4495 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4496 #endif
4497 }
4498 return pyobj;
4499 }
4500
4501
4502 static int _wrap_StaticTextNameStr_set(PyObject *) {
4503 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4504 return 1;
4505 }
4506
4507
4508 static PyObject *_wrap_StaticTextNameStr_get() {
4509 PyObject *pyobj;
4510
4511 {
4512 #if wxUSE_UNICODE
4513 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4514 #else
4515 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4516 #endif
4517 }
4518 return pyobj;
4519 }
4520
4521
4522 static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4523 PyObject *resultobj;
4524 wxWindow *arg1 = (wxWindow *) 0 ;
4525 int arg2 = (int) -1 ;
4526 wxString const &arg3_defvalue = wxPyEmptyString ;
4527 wxString *arg3 = (wxString *) &arg3_defvalue ;
4528 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4529 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4530 wxSize const &arg5_defvalue = wxDefaultSize ;
4531 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4532 long arg6 = (long) 0 ;
4533 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4534 wxString *arg7 = (wxString *) &arg7_defvalue ;
4535 wxStaticBox *result;
4536 bool temp3 = False ;
4537 wxPoint temp4 ;
4538 wxSize temp5 ;
4539 bool temp7 = False ;
4540 PyObject * obj0 = 0 ;
4541 PyObject * obj1 = 0 ;
4542 PyObject * obj2 = 0 ;
4543 PyObject * obj3 = 0 ;
4544 PyObject * obj4 = 0 ;
4545 PyObject * obj5 = 0 ;
4546 PyObject * obj6 = 0 ;
4547 char *kwnames[] = {
4548 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4549 };
4550
4551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4554 if (obj1) {
4555 arg2 = (int)SWIG_As_int(obj1);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 if (obj2) {
4559 {
4560 arg3 = wxString_in_helper(obj2);
4561 if (arg3 == NULL) SWIG_fail;
4562 temp3 = True;
4563 }
4564 }
4565 if (obj3) {
4566 {
4567 arg4 = &temp4;
4568 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4569 }
4570 }
4571 if (obj4) {
4572 {
4573 arg5 = &temp5;
4574 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4575 }
4576 }
4577 if (obj5) {
4578 arg6 = (long)SWIG_As_long(obj5);
4579 if (PyErr_Occurred()) SWIG_fail;
4580 }
4581 if (obj6) {
4582 {
4583 arg7 = wxString_in_helper(obj6);
4584 if (arg7 == NULL) SWIG_fail;
4585 temp7 = True;
4586 }
4587 }
4588 {
4589 if (!wxPyCheckForApp()) SWIG_fail;
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4592
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4597 {
4598 if (temp3)
4599 delete arg3;
4600 }
4601 {
4602 if (temp7)
4603 delete arg7;
4604 }
4605 return resultobj;
4606 fail:
4607 {
4608 if (temp3)
4609 delete arg3;
4610 }
4611 {
4612 if (temp7)
4613 delete arg7;
4614 }
4615 return NULL;
4616 }
4617
4618
4619 static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4620 PyObject *resultobj;
4621 wxStaticBox *result;
4622 char *kwnames[] = {
4623 NULL
4624 };
4625
4626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4627 {
4628 if (!wxPyCheckForApp()) SWIG_fail;
4629 PyThreadState* __tstate = wxPyBeginAllowThreads();
4630 result = (wxStaticBox *)new wxStaticBox();
4631
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4636 return resultobj;
4637 fail:
4638 return NULL;
4639 }
4640
4641
4642 static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4643 PyObject *resultobj;
4644 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4645 wxWindow *arg2 = (wxWindow *) 0 ;
4646 int arg3 = (int) -1 ;
4647 wxString const &arg4_defvalue = wxPyEmptyString ;
4648 wxString *arg4 = (wxString *) &arg4_defvalue ;
4649 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4650 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4651 wxSize const &arg6_defvalue = wxDefaultSize ;
4652 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4653 long arg7 = (long) 0 ;
4654 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4655 wxString *arg8 = (wxString *) &arg8_defvalue ;
4656 bool result;
4657 bool temp4 = False ;
4658 wxPoint temp5 ;
4659 wxSize temp6 ;
4660 bool temp8 = False ;
4661 PyObject * obj0 = 0 ;
4662 PyObject * obj1 = 0 ;
4663 PyObject * obj2 = 0 ;
4664 PyObject * obj3 = 0 ;
4665 PyObject * obj4 = 0 ;
4666 PyObject * obj5 = 0 ;
4667 PyObject * obj6 = 0 ;
4668 PyObject * obj7 = 0 ;
4669 char *kwnames[] = {
4670 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4671 };
4672
4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4676 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4678 if (obj2) {
4679 arg3 = (int)SWIG_As_int(obj2);
4680 if (PyErr_Occurred()) SWIG_fail;
4681 }
4682 if (obj3) {
4683 {
4684 arg4 = wxString_in_helper(obj3);
4685 if (arg4 == NULL) SWIG_fail;
4686 temp4 = True;
4687 }
4688 }
4689 if (obj4) {
4690 {
4691 arg5 = &temp5;
4692 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4693 }
4694 }
4695 if (obj5) {
4696 {
4697 arg6 = &temp6;
4698 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4699 }
4700 }
4701 if (obj6) {
4702 arg7 = (long)SWIG_As_long(obj6);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 if (obj7) {
4706 {
4707 arg8 = wxString_in_helper(obj7);
4708 if (arg8 == NULL) SWIG_fail;
4709 temp8 = True;
4710 }
4711 }
4712 {
4713 PyThreadState* __tstate = wxPyBeginAllowThreads();
4714 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4715
4716 wxPyEndAllowThreads(__tstate);
4717 if (PyErr_Occurred()) SWIG_fail;
4718 }
4719 {
4720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4721 }
4722 {
4723 if (temp4)
4724 delete arg4;
4725 }
4726 {
4727 if (temp8)
4728 delete arg8;
4729 }
4730 return resultobj;
4731 fail:
4732 {
4733 if (temp4)
4734 delete arg4;
4735 }
4736 {
4737 if (temp8)
4738 delete arg8;
4739 }
4740 return NULL;
4741 }
4742
4743
4744 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4745 PyObject *resultobj;
4746 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4747 wxVisualAttributes result;
4748 PyObject * obj0 = 0 ;
4749 char *kwnames[] = {
4750 (char *) "variant", NULL
4751 };
4752
4753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4754 if (obj0) {
4755 arg1 = (int)SWIG_As_int(obj0);
4756 if (PyErr_Occurred()) SWIG_fail;
4757 }
4758 {
4759 if (!wxPyCheckForApp()) SWIG_fail;
4760 PyThreadState* __tstate = wxPyBeginAllowThreads();
4761 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4762
4763 wxPyEndAllowThreads(__tstate);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 }
4766 {
4767 wxVisualAttributes * resultptr;
4768 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4769 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4770 }
4771 return resultobj;
4772 fail:
4773 return NULL;
4774 }
4775
4776
4777 static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) {
4778 PyObject *obj;
4779 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4780 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4781 Py_INCREF(obj);
4782 return Py_BuildValue((char *)"");
4783 }
4784 static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4785 PyObject *resultobj;
4786 wxWindow *arg1 = (wxWindow *) 0 ;
4787 int arg2 = (int) -1 ;
4788 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4789 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4790 wxSize const &arg4_defvalue = wxDefaultSize ;
4791 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4792 long arg5 = (long) wxLI_HORIZONTAL ;
4793 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4794 wxString *arg6 = (wxString *) &arg6_defvalue ;
4795 wxStaticLine *result;
4796 wxPoint temp3 ;
4797 wxSize temp4 ;
4798 bool temp6 = False ;
4799 PyObject * obj0 = 0 ;
4800 PyObject * obj1 = 0 ;
4801 PyObject * obj2 = 0 ;
4802 PyObject * obj3 = 0 ;
4803 PyObject * obj4 = 0 ;
4804 PyObject * obj5 = 0 ;
4805 char *kwnames[] = {
4806 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4807 };
4808
4809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4812 if (obj1) {
4813 arg2 = (int)SWIG_As_int(obj1);
4814 if (PyErr_Occurred()) SWIG_fail;
4815 }
4816 if (obj2) {
4817 {
4818 arg3 = &temp3;
4819 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4820 }
4821 }
4822 if (obj3) {
4823 {
4824 arg4 = &temp4;
4825 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4826 }
4827 }
4828 if (obj4) {
4829 arg5 = (long)SWIG_As_long(obj4);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 if (obj5) {
4833 {
4834 arg6 = wxString_in_helper(obj5);
4835 if (arg6 == NULL) SWIG_fail;
4836 temp6 = True;
4837 }
4838 }
4839 {
4840 if (!wxPyCheckForApp()) SWIG_fail;
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
4842 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4843
4844 wxPyEndAllowThreads(__tstate);
4845 if (PyErr_Occurred()) SWIG_fail;
4846 }
4847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4848 {
4849 if (temp6)
4850 delete arg6;
4851 }
4852 return resultobj;
4853 fail:
4854 {
4855 if (temp6)
4856 delete arg6;
4857 }
4858 return NULL;
4859 }
4860
4861
4862 static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4863 PyObject *resultobj;
4864 wxStaticLine *result;
4865 char *kwnames[] = {
4866 NULL
4867 };
4868
4869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4870 {
4871 if (!wxPyCheckForApp()) SWIG_fail;
4872 PyThreadState* __tstate = wxPyBeginAllowThreads();
4873 result = (wxStaticLine *)new wxStaticLine();
4874
4875 wxPyEndAllowThreads(__tstate);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 }
4878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4879 return resultobj;
4880 fail:
4881 return NULL;
4882 }
4883
4884
4885 static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4886 PyObject *resultobj;
4887 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4888 wxWindow *arg2 = (wxWindow *) 0 ;
4889 int arg3 = (int) -1 ;
4890 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4891 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4892 wxSize const &arg5_defvalue = wxDefaultSize ;
4893 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4894 long arg6 = (long) wxLI_HORIZONTAL ;
4895 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4896 wxString *arg7 = (wxString *) &arg7_defvalue ;
4897 bool result;
4898 wxPoint temp4 ;
4899 wxSize temp5 ;
4900 bool temp7 = False ;
4901 PyObject * obj0 = 0 ;
4902 PyObject * obj1 = 0 ;
4903 PyObject * obj2 = 0 ;
4904 PyObject * obj3 = 0 ;
4905 PyObject * obj4 = 0 ;
4906 PyObject * obj5 = 0 ;
4907 PyObject * obj6 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4917 if (obj2) {
4918 arg3 = (int)SWIG_As_int(obj2);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 if (obj3) {
4922 {
4923 arg4 = &temp4;
4924 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4925 }
4926 }
4927 if (obj4) {
4928 {
4929 arg5 = &temp5;
4930 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4931 }
4932 }
4933 if (obj5) {
4934 arg6 = (long)SWIG_As_long(obj5);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 }
4937 if (obj6) {
4938 {
4939 arg7 = wxString_in_helper(obj6);
4940 if (arg7 == NULL) SWIG_fail;
4941 temp7 = True;
4942 }
4943 }
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 {
4952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4953 }
4954 {
4955 if (temp7)
4956 delete arg7;
4957 }
4958 return resultobj;
4959 fail:
4960 {
4961 if (temp7)
4962 delete arg7;
4963 }
4964 return NULL;
4965 }
4966
4967
4968 static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4969 PyObject *resultobj;
4970 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4971 bool result;
4972 PyObject * obj0 = 0 ;
4973 char *kwnames[] = {
4974 (char *) "self", NULL
4975 };
4976
4977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4983
4984 wxPyEndAllowThreads(__tstate);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 }
4987 {
4988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4989 }
4990 return resultobj;
4991 fail:
4992 return NULL;
4993 }
4994
4995
4996 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj;
4998 int result;
4999 char *kwnames[] = {
5000 NULL
5001 };
5002
5003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (int)wxStaticLine::GetDefaultSize();
5007
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 resultobj = SWIG_From_int((int)result);
5012 return resultobj;
5013 fail:
5014 return NULL;
5015 }
5016
5017
5018 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5019 PyObject *resultobj;
5020 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5021 wxVisualAttributes result;
5022 PyObject * obj0 = 0 ;
5023 char *kwnames[] = {
5024 (char *) "variant", NULL
5025 };
5026
5027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5028 if (obj0) {
5029 arg1 = (int)SWIG_As_int(obj0);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 {
5033 if (!wxPyCheckForApp()) SWIG_fail;
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
5036
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 {
5041 wxVisualAttributes * resultptr;
5042 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5043 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5044 }
5045 return resultobj;
5046 fail:
5047 return NULL;
5048 }
5049
5050
5051 static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) {
5052 PyObject *obj;
5053 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5054 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
5055 Py_INCREF(obj);
5056 return Py_BuildValue((char *)"");
5057 }
5058 static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj;
5060 wxWindow *arg1 = (wxWindow *) 0 ;
5061 int arg2 = (int) -1 ;
5062 wxString const &arg3_defvalue = wxPyEmptyString ;
5063 wxString *arg3 = (wxString *) &arg3_defvalue ;
5064 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5065 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5066 wxSize const &arg5_defvalue = wxDefaultSize ;
5067 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5068 long arg6 = (long) 0 ;
5069 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5070 wxString *arg7 = (wxString *) &arg7_defvalue ;
5071 wxStaticText *result;
5072 bool temp3 = False ;
5073 wxPoint temp4 ;
5074 wxSize temp5 ;
5075 bool temp7 = False ;
5076 PyObject * obj0 = 0 ;
5077 PyObject * obj1 = 0 ;
5078 PyObject * obj2 = 0 ;
5079 PyObject * obj3 = 0 ;
5080 PyObject * obj4 = 0 ;
5081 PyObject * obj5 = 0 ;
5082 PyObject * obj6 = 0 ;
5083 char *kwnames[] = {
5084 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5085 };
5086
5087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5090 if (obj1) {
5091 arg2 = (int)SWIG_As_int(obj1);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 if (obj2) {
5095 {
5096 arg3 = wxString_in_helper(obj2);
5097 if (arg3 == NULL) SWIG_fail;
5098 temp3 = True;
5099 }
5100 }
5101 if (obj3) {
5102 {
5103 arg4 = &temp4;
5104 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5105 }
5106 }
5107 if (obj4) {
5108 {
5109 arg5 = &temp5;
5110 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5111 }
5112 }
5113 if (obj5) {
5114 arg6 = (long)SWIG_As_long(obj5);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 if (obj6) {
5118 {
5119 arg7 = wxString_in_helper(obj6);
5120 if (arg7 == NULL) SWIG_fail;
5121 temp7 = True;
5122 }
5123 }
5124 {
5125 if (!wxPyCheckForApp()) SWIG_fail;
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5128
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5133 {
5134 if (temp3)
5135 delete arg3;
5136 }
5137 {
5138 if (temp7)
5139 delete arg7;
5140 }
5141 return resultobj;
5142 fail:
5143 {
5144 if (temp3)
5145 delete arg3;
5146 }
5147 {
5148 if (temp7)
5149 delete arg7;
5150 }
5151 return NULL;
5152 }
5153
5154
5155 static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5156 PyObject *resultobj;
5157 wxStaticText *result;
5158 char *kwnames[] = {
5159 NULL
5160 };
5161
5162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
5163 {
5164 if (!wxPyCheckForApp()) SWIG_fail;
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 result = (wxStaticText *)new wxStaticText();
5167
5168 wxPyEndAllowThreads(__tstate);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
5171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5172 return resultobj;
5173 fail:
5174 return NULL;
5175 }
5176
5177
5178 static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5179 PyObject *resultobj;
5180 wxStaticText *arg1 = (wxStaticText *) 0 ;
5181 wxWindow *arg2 = (wxWindow *) 0 ;
5182 int arg3 = (int) -1 ;
5183 wxString const &arg4_defvalue = wxPyEmptyString ;
5184 wxString *arg4 = (wxString *) &arg4_defvalue ;
5185 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5186 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5187 wxSize const &arg6_defvalue = wxDefaultSize ;
5188 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5189 long arg7 = (long) 0 ;
5190 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
5191 wxString *arg8 = (wxString *) &arg8_defvalue ;
5192 bool result;
5193 bool temp4 = False ;
5194 wxPoint temp5 ;
5195 wxSize temp6 ;
5196 bool temp8 = False ;
5197 PyObject * obj0 = 0 ;
5198 PyObject * obj1 = 0 ;
5199 PyObject * obj2 = 0 ;
5200 PyObject * obj3 = 0 ;
5201 PyObject * obj4 = 0 ;
5202 PyObject * obj5 = 0 ;
5203 PyObject * obj6 = 0 ;
5204 PyObject * obj7 = 0 ;
5205 char *kwnames[] = {
5206 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5207 };
5208
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5214 if (obj2) {
5215 arg3 = (int)SWIG_As_int(obj2);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 if (obj3) {
5219 {
5220 arg4 = wxString_in_helper(obj3);
5221 if (arg4 == NULL) SWIG_fail;
5222 temp4 = True;
5223 }
5224 }
5225 if (obj4) {
5226 {
5227 arg5 = &temp5;
5228 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5229 }
5230 }
5231 if (obj5) {
5232 {
5233 arg6 = &temp6;
5234 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5235 }
5236 }
5237 if (obj6) {
5238 arg7 = (long)SWIG_As_long(obj6);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 if (obj7) {
5242 {
5243 arg8 = wxString_in_helper(obj7);
5244 if (arg8 == NULL) SWIG_fail;
5245 temp8 = True;
5246 }
5247 }
5248 {
5249 PyThreadState* __tstate = wxPyBeginAllowThreads();
5250 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5251
5252 wxPyEndAllowThreads(__tstate);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 }
5255 {
5256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5257 }
5258 {
5259 if (temp4)
5260 delete arg4;
5261 }
5262 {
5263 if (temp8)
5264 delete arg8;
5265 }
5266 return resultobj;
5267 fail:
5268 {
5269 if (temp4)
5270 delete arg4;
5271 }
5272 {
5273 if (temp8)
5274 delete arg8;
5275 }
5276 return NULL;
5277 }
5278
5279
5280 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5281 PyObject *resultobj;
5282 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5283 wxVisualAttributes result;
5284 PyObject * obj0 = 0 ;
5285 char *kwnames[] = {
5286 (char *) "variant", NULL
5287 };
5288
5289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5290 if (obj0) {
5291 arg1 = (int)SWIG_As_int(obj0);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 }
5294 {
5295 if (!wxPyCheckForApp()) SWIG_fail;
5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
5297 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5298
5299 wxPyEndAllowThreads(__tstate);
5300 if (PyErr_Occurred()) SWIG_fail;
5301 }
5302 {
5303 wxVisualAttributes * resultptr;
5304 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5305 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5306 }
5307 return resultobj;
5308 fail:
5309 return NULL;
5310 }
5311
5312
5313 static PyObject * StaticText_swigregister(PyObject *, PyObject *args) {
5314 PyObject *obj;
5315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5316 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5317 Py_INCREF(obj);
5318 return Py_BuildValue((char *)"");
5319 }
5320 static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 wxWindow *arg1 = (wxWindow *) 0 ;
5323 int arg2 = (int) -1 ;
5324 wxBitmap const &arg3_defvalue = wxNullBitmap ;
5325 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
5326 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5327 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5328 wxSize const &arg5_defvalue = wxDefaultSize ;
5329 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5330 long arg6 = (long) 0 ;
5331 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5332 wxString *arg7 = (wxString *) &arg7_defvalue ;
5333 wxStaticBitmap *result;
5334 wxPoint temp4 ;
5335 wxSize temp5 ;
5336 bool temp7 = False ;
5337 PyObject * obj0 = 0 ;
5338 PyObject * obj1 = 0 ;
5339 PyObject * obj2 = 0 ;
5340 PyObject * obj3 = 0 ;
5341 PyObject * obj4 = 0 ;
5342 PyObject * obj5 = 0 ;
5343 PyObject * obj6 = 0 ;
5344 char *kwnames[] = {
5345 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5346 };
5347
5348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5351 if (obj1) {
5352 arg2 = (int)SWIG_As_int(obj1);
5353 if (PyErr_Occurred()) SWIG_fail;
5354 }
5355 if (obj2) {
5356 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5357 SWIG_POINTER_EXCEPTION | 0)) == -1)
5358 SWIG_fail;
5359 if (arg3 == NULL) {
5360 PyErr_SetString(PyExc_TypeError,"null reference");
5361 SWIG_fail;
5362 }
5363 }
5364 if (obj3) {
5365 {
5366 arg4 = &temp4;
5367 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5368 }
5369 }
5370 if (obj4) {
5371 {
5372 arg5 = &temp5;
5373 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5374 }
5375 }
5376 if (obj5) {
5377 arg6 = (long)SWIG_As_long(obj5);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 }
5380 if (obj6) {
5381 {
5382 arg7 = wxString_in_helper(obj6);
5383 if (arg7 == NULL) SWIG_fail;
5384 temp7 = True;
5385 }
5386 }
5387 {
5388 if (!wxPyCheckForApp()) SWIG_fail;
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5391
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5396 {
5397 if (temp7)
5398 delete arg7;
5399 }
5400 return resultobj;
5401 fail:
5402 {
5403 if (temp7)
5404 delete arg7;
5405 }
5406 return NULL;
5407 }
5408
5409
5410 static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5411 PyObject *resultobj;
5412 wxStaticBitmap *result;
5413 char *kwnames[] = {
5414 NULL
5415 };
5416
5417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5418 {
5419 if (!wxPyCheckForApp()) SWIG_fail;
5420 PyThreadState* __tstate = wxPyBeginAllowThreads();
5421 result = (wxStaticBitmap *)new wxStaticBitmap();
5422
5423 wxPyEndAllowThreads(__tstate);
5424 if (PyErr_Occurred()) SWIG_fail;
5425 }
5426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5427 return resultobj;
5428 fail:
5429 return NULL;
5430 }
5431
5432
5433 static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5434 PyObject *resultobj;
5435 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5436 wxWindow *arg2 = (wxWindow *) 0 ;
5437 int arg3 = (int) -1 ;
5438 wxBitmap const &arg4_defvalue = wxNullBitmap ;
5439 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
5440 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5441 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5442 wxSize const &arg6_defvalue = wxDefaultSize ;
5443 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5444 long arg7 = (long) 0 ;
5445 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5446 wxString *arg8 = (wxString *) &arg8_defvalue ;
5447 bool result;
5448 wxPoint temp5 ;
5449 wxSize temp6 ;
5450 bool temp8 = False ;
5451 PyObject * obj0 = 0 ;
5452 PyObject * obj1 = 0 ;
5453 PyObject * obj2 = 0 ;
5454 PyObject * obj3 = 0 ;
5455 PyObject * obj4 = 0 ;
5456 PyObject * obj5 = 0 ;
5457 PyObject * obj6 = 0 ;
5458 PyObject * obj7 = 0 ;
5459 char *kwnames[] = {
5460 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5461 };
5462
5463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5468 if (obj2) {
5469 arg3 = (int)SWIG_As_int(obj2);
5470 if (PyErr_Occurred()) SWIG_fail;
5471 }
5472 if (obj3) {
5473 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5474 SWIG_POINTER_EXCEPTION | 0)) == -1)
5475 SWIG_fail;
5476 if (arg4 == NULL) {
5477 PyErr_SetString(PyExc_TypeError,"null reference");
5478 SWIG_fail;
5479 }
5480 }
5481 if (obj4) {
5482 {
5483 arg5 = &temp5;
5484 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5485 }
5486 }
5487 if (obj5) {
5488 {
5489 arg6 = &temp6;
5490 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5491 }
5492 }
5493 if (obj6) {
5494 arg7 = (long)SWIG_As_long(obj6);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 if (obj7) {
5498 {
5499 arg8 = wxString_in_helper(obj7);
5500 if (arg8 == NULL) SWIG_fail;
5501 temp8 = True;
5502 }
5503 }
5504 {
5505 PyThreadState* __tstate = wxPyBeginAllowThreads();
5506 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5507
5508 wxPyEndAllowThreads(__tstate);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
5511 {
5512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5513 }
5514 {
5515 if (temp8)
5516 delete arg8;
5517 }
5518 return resultobj;
5519 fail:
5520 {
5521 if (temp8)
5522 delete arg8;
5523 }
5524 return NULL;
5525 }
5526
5527
5528 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5529 PyObject *resultobj;
5530 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5531 wxBitmap result;
5532 PyObject * obj0 = 0 ;
5533 char *kwnames[] = {
5534 (char *) "self", NULL
5535 };
5536
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 result = (arg1)->GetBitmap();
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 {
5548 wxBitmap * resultptr;
5549 resultptr = new wxBitmap((wxBitmap &) result);
5550 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5551 }
5552 return resultobj;
5553 fail:
5554 return NULL;
5555 }
5556
5557
5558 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5559 PyObject *resultobj;
5560 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5561 wxBitmap *arg2 = 0 ;
5562 PyObject * obj0 = 0 ;
5563 PyObject * obj1 = 0 ;
5564 char *kwnames[] = {
5565 (char *) "self",(char *) "bitmap", NULL
5566 };
5567
5568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5571 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5572 SWIG_POINTER_EXCEPTION | 0)) == -1)
5573 SWIG_fail;
5574 if (arg2 == NULL) {
5575 PyErr_SetString(PyExc_TypeError,"null reference");
5576 SWIG_fail;
5577 }
5578 {
5579 PyThreadState* __tstate = wxPyBeginAllowThreads();
5580 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5581
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 }
5585 Py_INCREF(Py_None); resultobj = Py_None;
5586 return resultobj;
5587 fail:
5588 return NULL;
5589 }
5590
5591
5592 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5593 PyObject *resultobj;
5594 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5595 wxIcon *arg2 = 0 ;
5596 PyObject * obj0 = 0 ;
5597 PyObject * obj1 = 0 ;
5598 char *kwnames[] = {
5599 (char *) "self",(char *) "icon", NULL
5600 };
5601
5602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5606 SWIG_POINTER_EXCEPTION | 0)) == -1)
5607 SWIG_fail;
5608 if (arg2 == NULL) {
5609 PyErr_SetString(PyExc_TypeError,"null reference");
5610 SWIG_fail;
5611 }
5612 {
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 (arg1)->SetIcon((wxIcon const &)*arg2);
5615
5616 wxPyEndAllowThreads(__tstate);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 }
5619 Py_INCREF(Py_None); resultobj = Py_None;
5620 return resultobj;
5621 fail:
5622 return NULL;
5623 }
5624
5625
5626 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5627 PyObject *resultobj;
5628 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5629 wxVisualAttributes result;
5630 PyObject * obj0 = 0 ;
5631 char *kwnames[] = {
5632 (char *) "variant", NULL
5633 };
5634
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5636 if (obj0) {
5637 arg1 = (int)SWIG_As_int(obj0);
5638 if (PyErr_Occurred()) SWIG_fail;
5639 }
5640 {
5641 if (!wxPyCheckForApp()) SWIG_fail;
5642 PyThreadState* __tstate = wxPyBeginAllowThreads();
5643 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5644
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 {
5649 wxVisualAttributes * resultptr;
5650 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5651 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5652 }
5653 return resultobj;
5654 fail:
5655 return NULL;
5656 }
5657
5658
5659 static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) {
5660 PyObject *obj;
5661 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5662 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5663 Py_INCREF(obj);
5664 return Py_BuildValue((char *)"");
5665 }
5666 static int _wrap_ListBoxNameStr_set(PyObject *) {
5667 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5668 return 1;
5669 }
5670
5671
5672 static PyObject *_wrap_ListBoxNameStr_get() {
5673 PyObject *pyobj;
5674
5675 {
5676 #if wxUSE_UNICODE
5677 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5678 #else
5679 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5680 #endif
5681 }
5682 return pyobj;
5683 }
5684
5685
5686 static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5687 PyObject *resultobj;
5688 wxWindow *arg1 = (wxWindow *) 0 ;
5689 int arg2 = (int) -1 ;
5690 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5691 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5692 wxSize const &arg4_defvalue = wxDefaultSize ;
5693 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5694 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5695 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5696 long arg6 = (long) 0 ;
5697 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5698 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5699 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5700 wxString *arg8 = (wxString *) &arg8_defvalue ;
5701 wxListBox *result;
5702 wxPoint temp3 ;
5703 wxSize temp4 ;
5704 bool temp5 = False ;
5705 bool temp8 = False ;
5706 PyObject * obj0 = 0 ;
5707 PyObject * obj1 = 0 ;
5708 PyObject * obj2 = 0 ;
5709 PyObject * obj3 = 0 ;
5710 PyObject * obj4 = 0 ;
5711 PyObject * obj5 = 0 ;
5712 PyObject * obj6 = 0 ;
5713 PyObject * obj7 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5721 if (obj1) {
5722 arg2 = (int)SWIG_As_int(obj1);
5723 if (PyErr_Occurred()) SWIG_fail;
5724 }
5725 if (obj2) {
5726 {
5727 arg3 = &temp3;
5728 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5729 }
5730 }
5731 if (obj3) {
5732 {
5733 arg4 = &temp4;
5734 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5735 }
5736 }
5737 if (obj4) {
5738 {
5739 if (! PySequence_Check(obj4)) {
5740 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5741 SWIG_fail;
5742 }
5743 arg5 = new wxArrayString;
5744 temp5 = True;
5745 int i, len=PySequence_Length(obj4);
5746 for (i=0; i<len; i++) {
5747 PyObject* item = PySequence_GetItem(obj4, i);
5748 #if wxUSE_UNICODE
5749 PyObject* str = PyObject_Unicode(item);
5750 #else
5751 PyObject* str = PyObject_Str(item);
5752 #endif
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg5->Add(Py2wxString(str));
5755 Py_DECREF(item);
5756 Py_DECREF(str);
5757 }
5758 }
5759 }
5760 if (obj5) {
5761 arg6 = (long)SWIG_As_long(obj5);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 if (obj6) {
5765 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5766 SWIG_POINTER_EXCEPTION | 0)) == -1)
5767 SWIG_fail;
5768 if (arg7 == NULL) {
5769 PyErr_SetString(PyExc_TypeError,"null reference");
5770 SWIG_fail;
5771 }
5772 }
5773 if (obj7) {
5774 {
5775 arg8 = wxString_in_helper(obj7);
5776 if (arg8 == NULL) SWIG_fail;
5777 temp8 = True;
5778 }
5779 }
5780 {
5781 if (!wxPyCheckForApp()) SWIG_fail;
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
5783 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5784
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5789 {
5790 if (temp5) delete arg5;
5791 }
5792 {
5793 if (temp8)
5794 delete arg8;
5795 }
5796 return resultobj;
5797 fail:
5798 {
5799 if (temp5) delete arg5;
5800 }
5801 {
5802 if (temp8)
5803 delete arg8;
5804 }
5805 return NULL;
5806 }
5807
5808
5809 static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5810 PyObject *resultobj;
5811 wxListBox *result;
5812 char *kwnames[] = {
5813 NULL
5814 };
5815
5816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5817 {
5818 if (!wxPyCheckForApp()) SWIG_fail;
5819 PyThreadState* __tstate = wxPyBeginAllowThreads();
5820 result = (wxListBox *)new wxListBox();
5821
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5826 return resultobj;
5827 fail:
5828 return NULL;
5829 }
5830
5831
5832 static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5833 PyObject *resultobj;
5834 wxListBox *arg1 = (wxListBox *) 0 ;
5835 wxWindow *arg2 = (wxWindow *) 0 ;
5836 int arg3 = (int) -1 ;
5837 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5838 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5839 wxSize const &arg5_defvalue = wxDefaultSize ;
5840 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5841 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5842 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5843 long arg7 = (long) 0 ;
5844 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5845 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5846 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5847 wxString *arg9 = (wxString *) &arg9_defvalue ;
5848 bool result;
5849 wxPoint temp4 ;
5850 wxSize temp5 ;
5851 bool temp6 = False ;
5852 bool temp9 = False ;
5853 PyObject * obj0 = 0 ;
5854 PyObject * obj1 = 0 ;
5855 PyObject * obj2 = 0 ;
5856 PyObject * obj3 = 0 ;
5857 PyObject * obj4 = 0 ;
5858 PyObject * obj5 = 0 ;
5859 PyObject * obj6 = 0 ;
5860 PyObject * obj7 = 0 ;
5861 PyObject * obj8 = 0 ;
5862 char *kwnames[] = {
5863 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5864 };
5865
5866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5871 if (obj2) {
5872 arg3 = (int)SWIG_As_int(obj2);
5873 if (PyErr_Occurred()) SWIG_fail;
5874 }
5875 if (obj3) {
5876 {
5877 arg4 = &temp4;
5878 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5879 }
5880 }
5881 if (obj4) {
5882 {
5883 arg5 = &temp5;
5884 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5885 }
5886 }
5887 if (obj5) {
5888 {
5889 if (! PySequence_Check(obj5)) {
5890 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5891 SWIG_fail;
5892 }
5893 arg6 = new wxArrayString;
5894 temp6 = True;
5895 int i, len=PySequence_Length(obj5);
5896 for (i=0; i<len; i++) {
5897 PyObject* item = PySequence_GetItem(obj5, i);
5898 #if wxUSE_UNICODE
5899 PyObject* str = PyObject_Unicode(item);
5900 #else
5901 PyObject* str = PyObject_Str(item);
5902 #endif
5903 if (PyErr_Occurred()) SWIG_fail;
5904 arg6->Add(Py2wxString(str));
5905 Py_DECREF(item);
5906 Py_DECREF(str);
5907 }
5908 }
5909 }
5910 if (obj6) {
5911 arg7 = (long)SWIG_As_long(obj6);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 if (obj7) {
5915 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5916 SWIG_POINTER_EXCEPTION | 0)) == -1)
5917 SWIG_fail;
5918 if (arg8 == NULL) {
5919 PyErr_SetString(PyExc_TypeError,"null reference");
5920 SWIG_fail;
5921 }
5922 }
5923 if (obj8) {
5924 {
5925 arg9 = wxString_in_helper(obj8);
5926 if (arg9 == NULL) SWIG_fail;
5927 temp9 = True;
5928 }
5929 }
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5933
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 {
5938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5939 }
5940 {
5941 if (temp6) delete arg6;
5942 }
5943 {
5944 if (temp9)
5945 delete arg9;
5946 }
5947 return resultobj;
5948 fail:
5949 {
5950 if (temp6) delete arg6;
5951 }
5952 {
5953 if (temp9)
5954 delete arg9;
5955 }
5956 return NULL;
5957 }
5958
5959
5960 static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
5961 PyObject *resultobj;
5962 wxListBox *arg1 = (wxListBox *) 0 ;
5963 wxString *arg2 = 0 ;
5964 int arg3 ;
5965 PyObject *arg4 = (PyObject *) NULL ;
5966 bool temp2 = False ;
5967 PyObject * obj0 = 0 ;
5968 PyObject * obj1 = 0 ;
5969 PyObject * obj2 = 0 ;
5970 PyObject * obj3 = 0 ;
5971 char *kwnames[] = {
5972 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5973 };
5974
5975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5978 {
5979 arg2 = wxString_in_helper(obj1);
5980 if (arg2 == NULL) SWIG_fail;
5981 temp2 = True;
5982 }
5983 arg3 = (int)SWIG_As_int(obj2);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 if (obj3) {
5986 arg4 = obj3;
5987 }
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5991
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 Py_INCREF(Py_None); resultobj = Py_None;
5996 {
5997 if (temp2)
5998 delete arg2;
5999 }
6000 return resultobj;
6001 fail:
6002 {
6003 if (temp2)
6004 delete arg2;
6005 }
6006 return NULL;
6007 }
6008
6009
6010 static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) {
6011 PyObject *resultobj;
6012 wxListBox *arg1 = (wxListBox *) 0 ;
6013 wxArrayString *arg2 = 0 ;
6014 int arg3 ;
6015 bool temp2 = False ;
6016 PyObject * obj0 = 0 ;
6017 PyObject * obj1 = 0 ;
6018 PyObject * obj2 = 0 ;
6019 char *kwnames[] = {
6020 (char *) "self",(char *) "items",(char *) "pos", NULL
6021 };
6022
6023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
6024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6026 {
6027 if (! PySequence_Check(obj1)) {
6028 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6029 SWIG_fail;
6030 }
6031 arg2 = new wxArrayString;
6032 temp2 = True;
6033 int i, len=PySequence_Length(obj1);
6034 for (i=0; i<len; i++) {
6035 PyObject* item = PySequence_GetItem(obj1, i);
6036 #if wxUSE_UNICODE
6037 PyObject* str = PyObject_Unicode(item);
6038 #else
6039 PyObject* str = PyObject_Str(item);
6040 #endif
6041 if (PyErr_Occurred()) SWIG_fail;
6042 arg2->Add(Py2wxString(str));
6043 Py_DECREF(item);
6044 Py_DECREF(str);
6045 }
6046 }
6047 arg3 = (int)SWIG_As_int(obj2);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 {
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
6052
6053 wxPyEndAllowThreads(__tstate);
6054 if (PyErr_Occurred()) SWIG_fail;
6055 }
6056 Py_INCREF(Py_None); resultobj = Py_None;
6057 {
6058 if (temp2) delete arg2;
6059 }
6060 return resultobj;
6061 fail:
6062 {
6063 if (temp2) delete arg2;
6064 }
6065 return NULL;
6066 }
6067
6068
6069 static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) {
6070 PyObject *resultobj;
6071 wxListBox *arg1 = (wxListBox *) 0 ;
6072 wxArrayString *arg2 = 0 ;
6073 bool temp2 = False ;
6074 PyObject * obj0 = 0 ;
6075 PyObject * obj1 = 0 ;
6076 char *kwnames[] = {
6077 (char *) "self",(char *) "items", NULL
6078 };
6079
6080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
6081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6083 {
6084 if (! PySequence_Check(obj1)) {
6085 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6086 SWIG_fail;
6087 }
6088 arg2 = new wxArrayString;
6089 temp2 = True;
6090 int i, len=PySequence_Length(obj1);
6091 for (i=0; i<len; i++) {
6092 PyObject* item = PySequence_GetItem(obj1, i);
6093 #if wxUSE_UNICODE
6094 PyObject* str = PyObject_Unicode(item);
6095 #else
6096 PyObject* str = PyObject_Str(item);
6097 #endif
6098 if (PyErr_Occurred()) SWIG_fail;
6099 arg2->Add(Py2wxString(str));
6100 Py_DECREF(item);
6101 Py_DECREF(str);
6102 }
6103 }
6104 {
6105 PyThreadState* __tstate = wxPyBeginAllowThreads();
6106 (arg1)->Set((wxArrayString const &)*arg2);
6107
6108 wxPyEndAllowThreads(__tstate);
6109 if (PyErr_Occurred()) SWIG_fail;
6110 }
6111 Py_INCREF(Py_None); resultobj = Py_None;
6112 {
6113 if (temp2) delete arg2;
6114 }
6115 return resultobj;
6116 fail:
6117 {
6118 if (temp2) delete arg2;
6119 }
6120 return NULL;
6121 }
6122
6123
6124 static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
6125 PyObject *resultobj;
6126 wxListBox *arg1 = (wxListBox *) 0 ;
6127 int arg2 ;
6128 bool result;
6129 PyObject * obj0 = 0 ;
6130 PyObject * obj1 = 0 ;
6131 char *kwnames[] = {
6132 (char *) "self",(char *) "n", NULL
6133 };
6134
6135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
6136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6138 arg2 = (int)SWIG_As_int(obj1);
6139 if (PyErr_Occurred()) SWIG_fail;
6140 {
6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
6142 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
6143
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 {
6148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6149 }
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj;
6158 wxListBox *arg1 = (wxListBox *) 0 ;
6159 int arg2 ;
6160 bool arg3 = (bool) True ;
6161 PyObject * obj0 = 0 ;
6162 PyObject * obj1 = 0 ;
6163 PyObject * obj2 = 0 ;
6164 char *kwnames[] = {
6165 (char *) "self",(char *) "n",(char *) "select", NULL
6166 };
6167
6168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6171 arg2 = (int)SWIG_As_int(obj1);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 if (obj2) {
6174 arg3 = (bool)SWIG_As_bool(obj2);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 {
6178 PyThreadState* __tstate = wxPyBeginAllowThreads();
6179 (arg1)->SetSelection(arg2,arg3);
6180
6181 wxPyEndAllowThreads(__tstate);
6182 if (PyErr_Occurred()) SWIG_fail;
6183 }
6184 Py_INCREF(Py_None); resultobj = Py_None;
6185 return resultobj;
6186 fail:
6187 return NULL;
6188 }
6189
6190
6191 static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) {
6192 PyObject *resultobj;
6193 wxListBox *arg1 = (wxListBox *) 0 ;
6194 int arg2 ;
6195 PyObject * obj0 = 0 ;
6196 PyObject * obj1 = 0 ;
6197 char *kwnames[] = {
6198 (char *) "self",(char *) "n", NULL
6199 };
6200
6201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
6202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6204 arg2 = (int)SWIG_As_int(obj1);
6205 if (PyErr_Occurred()) SWIG_fail;
6206 {
6207 PyThreadState* __tstate = wxPyBeginAllowThreads();
6208 (arg1)->Select(arg2);
6209
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 Py_INCREF(Py_None); resultobj = Py_None;
6214 return resultobj;
6215 fail:
6216 return NULL;
6217 }
6218
6219
6220 static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) {
6221 PyObject *resultobj;
6222 wxListBox *arg1 = (wxListBox *) 0 ;
6223 int arg2 ;
6224 PyObject * obj0 = 0 ;
6225 PyObject * obj1 = 0 ;
6226 char *kwnames[] = {
6227 (char *) "self",(char *) "n", NULL
6228 };
6229
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6233 arg2 = (int)SWIG_As_int(obj1);
6234 if (PyErr_Occurred()) SWIG_fail;
6235 {
6236 PyThreadState* __tstate = wxPyBeginAllowThreads();
6237 (arg1)->Deselect(arg2);
6238
6239 wxPyEndAllowThreads(__tstate);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 Py_INCREF(Py_None); resultobj = Py_None;
6243 return resultobj;
6244 fail:
6245 return NULL;
6246 }
6247
6248
6249 static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
6250 PyObject *resultobj;
6251 wxListBox *arg1 = (wxListBox *) 0 ;
6252 int arg2 = (int) -1 ;
6253 PyObject * obj0 = 0 ;
6254 PyObject * obj1 = 0 ;
6255 char *kwnames[] = {
6256 (char *) "self",(char *) "itemToLeaveSelected", NULL
6257 };
6258
6259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6262 if (obj1) {
6263 arg2 = (int)SWIG_As_int(obj1);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 {
6267 PyThreadState* __tstate = wxPyBeginAllowThreads();
6268 (arg1)->DeselectAll(arg2);
6269
6270 wxPyEndAllowThreads(__tstate);
6271 if (PyErr_Occurred()) SWIG_fail;
6272 }
6273 Py_INCREF(Py_None); resultobj = Py_None;
6274 return resultobj;
6275 fail:
6276 return NULL;
6277 }
6278
6279
6280 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6281 PyObject *resultobj;
6282 wxListBox *arg1 = (wxListBox *) 0 ;
6283 wxString *arg2 = 0 ;
6284 bool arg3 = (bool) True ;
6285 bool result;
6286 bool temp2 = False ;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6289 PyObject * obj2 = 0 ;
6290 char *kwnames[] = {
6291 (char *) "self",(char *) "s",(char *) "select", NULL
6292 };
6293
6294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6297 {
6298 arg2 = wxString_in_helper(obj1);
6299 if (arg2 == NULL) SWIG_fail;
6300 temp2 = True;
6301 }
6302 if (obj2) {
6303 arg3 = (bool)SWIG_As_bool(obj2);
6304 if (PyErr_Occurred()) SWIG_fail;
6305 }
6306 {
6307 PyThreadState* __tstate = wxPyBeginAllowThreads();
6308 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6309
6310 wxPyEndAllowThreads(__tstate);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 }
6313 {
6314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6315 }
6316 {
6317 if (temp2)
6318 delete arg2;
6319 }
6320 return resultobj;
6321 fail:
6322 {
6323 if (temp2)
6324 delete arg2;
6325 }
6326 return NULL;
6327 }
6328
6329
6330 static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
6331 PyObject *resultobj;
6332 wxListBox *arg1 = (wxListBox *) 0 ;
6333 PyObject *result;
6334 PyObject * obj0 = 0 ;
6335 char *kwnames[] = {
6336 (char *) "self", NULL
6337 };
6338
6339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6342 {
6343 PyThreadState* __tstate = wxPyBeginAllowThreads();
6344 result = (PyObject *)wxListBox_GetSelections(arg1);
6345
6346 wxPyEndAllowThreads(__tstate);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 resultobj = result;
6350 return resultobj;
6351 fail:
6352 return NULL;
6353 }
6354
6355
6356 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) {
6357 PyObject *resultobj;
6358 wxListBox *arg1 = (wxListBox *) 0 ;
6359 int arg2 ;
6360 PyObject * obj0 = 0 ;
6361 PyObject * obj1 = 0 ;
6362 char *kwnames[] = {
6363 (char *) "self",(char *) "n", NULL
6364 };
6365
6366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6369 arg2 = (int)SWIG_As_int(obj1);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 {
6372 PyThreadState* __tstate = wxPyBeginAllowThreads();
6373 (arg1)->SetFirstItem(arg2);
6374
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 Py_INCREF(Py_None); resultobj = Py_None;
6379 return resultobj;
6380 fail:
6381 return NULL;
6382 }
6383
6384
6385 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) {
6386 PyObject *resultobj;
6387 wxListBox *arg1 = (wxListBox *) 0 ;
6388 wxString *arg2 = 0 ;
6389 bool temp2 = False ;
6390 PyObject * obj0 = 0 ;
6391 PyObject * obj1 = 0 ;
6392 char *kwnames[] = {
6393 (char *) "self",(char *) "s", NULL
6394 };
6395
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6399 {
6400 arg2 = wxString_in_helper(obj1);
6401 if (arg2 == NULL) SWIG_fail;
6402 temp2 = True;
6403 }
6404 {
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 (arg1)->SetFirstItem((wxString const &)*arg2);
6407
6408 wxPyEndAllowThreads(__tstate);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 Py_INCREF(Py_None); resultobj = Py_None;
6412 {
6413 if (temp2)
6414 delete arg2;
6415 }
6416 return resultobj;
6417 fail:
6418 {
6419 if (temp2)
6420 delete arg2;
6421 }
6422 return NULL;
6423 }
6424
6425
6426 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6427 PyObject *resultobj;
6428 wxListBox *arg1 = (wxListBox *) 0 ;
6429 int arg2 ;
6430 PyObject * obj0 = 0 ;
6431 PyObject * obj1 = 0 ;
6432 char *kwnames[] = {
6433 (char *) "self",(char *) "n", NULL
6434 };
6435
6436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6439 arg2 = (int)SWIG_As_int(obj1);
6440 if (PyErr_Occurred()) SWIG_fail;
6441 {
6442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6443 (arg1)->EnsureVisible(arg2);
6444
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 Py_INCREF(Py_None); resultobj = Py_None;
6449 return resultobj;
6450 fail:
6451 return NULL;
6452 }
6453
6454
6455 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj;
6457 wxListBox *arg1 = (wxListBox *) 0 ;
6458 wxString *arg2 = 0 ;
6459 bool temp2 = False ;
6460 PyObject * obj0 = 0 ;
6461 PyObject * obj1 = 0 ;
6462 char *kwnames[] = {
6463 (char *) "self",(char *) "s", NULL
6464 };
6465
6466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6469 {
6470 arg2 = wxString_in_helper(obj1);
6471 if (arg2 == NULL) SWIG_fail;
6472 temp2 = True;
6473 }
6474 {
6475 PyThreadState* __tstate = wxPyBeginAllowThreads();
6476 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6477
6478 wxPyEndAllowThreads(__tstate);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 }
6481 Py_INCREF(Py_None); resultobj = Py_None;
6482 {
6483 if (temp2)
6484 delete arg2;
6485 }
6486 return resultobj;
6487 fail:
6488 {
6489 if (temp2)
6490 delete arg2;
6491 }
6492 return NULL;
6493 }
6494
6495
6496 static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) {
6497 PyObject *resultobj;
6498 wxListBox *arg1 = (wxListBox *) 0 ;
6499 bool result;
6500 PyObject * obj0 = 0 ;
6501 char *kwnames[] = {
6502 (char *) "self", NULL
6503 };
6504
6505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6508 {
6509 PyThreadState* __tstate = wxPyBeginAllowThreads();
6510 result = (bool)((wxListBox const *)arg1)->IsSorted();
6511
6512 wxPyEndAllowThreads(__tstate);
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 {
6516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6517 }
6518 return resultobj;
6519 fail:
6520 return NULL;
6521 }
6522
6523
6524 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6525 PyObject *resultobj;
6526 wxListBox *arg1 = (wxListBox *) 0 ;
6527 int arg2 ;
6528 wxColour *arg3 = 0 ;
6529 wxColour temp3 ;
6530 PyObject * obj0 = 0 ;
6531 PyObject * obj1 = 0 ;
6532 PyObject * obj2 = 0 ;
6533 char *kwnames[] = {
6534 (char *) "self",(char *) "item",(char *) "c", NULL
6535 };
6536
6537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6540 arg2 = (int)SWIG_As_int(obj1);
6541 if (PyErr_Occurred()) SWIG_fail;
6542 {
6543 arg3 = &temp3;
6544 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6545 }
6546 {
6547 PyThreadState* __tstate = wxPyBeginAllowThreads();
6548 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6549
6550 wxPyEndAllowThreads(__tstate);
6551 if (PyErr_Occurred()) SWIG_fail;
6552 }
6553 Py_INCREF(Py_None); resultobj = Py_None;
6554 return resultobj;
6555 fail:
6556 return NULL;
6557 }
6558
6559
6560 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6561 PyObject *resultobj;
6562 wxListBox *arg1 = (wxListBox *) 0 ;
6563 int arg2 ;
6564 wxColour *arg3 = 0 ;
6565 wxColour temp3 ;
6566 PyObject * obj0 = 0 ;
6567 PyObject * obj1 = 0 ;
6568 PyObject * obj2 = 0 ;
6569 char *kwnames[] = {
6570 (char *) "self",(char *) "item",(char *) "c", NULL
6571 };
6572
6573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6576 arg2 = (int)SWIG_As_int(obj1);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 {
6579 arg3 = &temp3;
6580 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6581 }
6582 {
6583 PyThreadState* __tstate = wxPyBeginAllowThreads();
6584 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6585
6586 wxPyEndAllowThreads(__tstate);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 Py_INCREF(Py_None); resultobj = Py_None;
6590 return resultobj;
6591 fail:
6592 return NULL;
6593 }
6594
6595
6596 static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
6597 PyObject *resultobj;
6598 wxListBox *arg1 = (wxListBox *) 0 ;
6599 int arg2 ;
6600 wxFont *arg3 = 0 ;
6601 PyObject * obj0 = 0 ;
6602 PyObject * obj1 = 0 ;
6603 PyObject * obj2 = 0 ;
6604 char *kwnames[] = {
6605 (char *) "self",(char *) "item",(char *) "f", NULL
6606 };
6607
6608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6611 arg2 = (int)SWIG_As_int(obj1);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6614 SWIG_POINTER_EXCEPTION | 0)) == -1)
6615 SWIG_fail;
6616 if (arg3 == NULL) {
6617 PyErr_SetString(PyExc_TypeError,"null reference");
6618 SWIG_fail;
6619 }
6620 {
6621 PyThreadState* __tstate = wxPyBeginAllowThreads();
6622 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6623
6624 wxPyEndAllowThreads(__tstate);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 Py_INCREF(Py_None); resultobj = Py_None;
6628 return resultobj;
6629 fail:
6630 return NULL;
6631 }
6632
6633
6634 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj;
6636 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6637 wxVisualAttributes result;
6638 PyObject * obj0 = 0 ;
6639 char *kwnames[] = {
6640 (char *) "variant", NULL
6641 };
6642
6643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6644 if (obj0) {
6645 arg1 = (int)SWIG_As_int(obj0);
6646 if (PyErr_Occurred()) SWIG_fail;
6647 }
6648 {
6649 if (!wxPyCheckForApp()) SWIG_fail;
6650 PyThreadState* __tstate = wxPyBeginAllowThreads();
6651 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6652
6653 wxPyEndAllowThreads(__tstate);
6654 if (PyErr_Occurred()) SWIG_fail;
6655 }
6656 {
6657 wxVisualAttributes * resultptr;
6658 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6659 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6660 }
6661 return resultobj;
6662 fail:
6663 return NULL;
6664 }
6665
6666
6667 static PyObject * ListBox_swigregister(PyObject *, PyObject *args) {
6668 PyObject *obj;
6669 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6670 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6671 Py_INCREF(obj);
6672 return Py_BuildValue((char *)"");
6673 }
6674 static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6675 PyObject *resultobj;
6676 wxWindow *arg1 = (wxWindow *) 0 ;
6677 int arg2 = (int) -1 ;
6678 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6679 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6680 wxSize const &arg4_defvalue = wxDefaultSize ;
6681 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6682 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6683 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6684 long arg6 = (long) 0 ;
6685 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6686 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6687 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6688 wxString *arg8 = (wxString *) &arg8_defvalue ;
6689 wxCheckListBox *result;
6690 wxPoint temp3 ;
6691 wxSize temp4 ;
6692 bool temp5 = False ;
6693 bool temp8 = False ;
6694 PyObject * obj0 = 0 ;
6695 PyObject * obj1 = 0 ;
6696 PyObject * obj2 = 0 ;
6697 PyObject * obj3 = 0 ;
6698 PyObject * obj4 = 0 ;
6699 PyObject * obj5 = 0 ;
6700 PyObject * obj6 = 0 ;
6701 PyObject * obj7 = 0 ;
6702 char *kwnames[] = {
6703 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6704 };
6705
6706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6709 if (obj1) {
6710 arg2 = (int)SWIG_As_int(obj1);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 if (obj2) {
6714 {
6715 arg3 = &temp3;
6716 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6717 }
6718 }
6719 if (obj3) {
6720 {
6721 arg4 = &temp4;
6722 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6723 }
6724 }
6725 if (obj4) {
6726 {
6727 if (! PySequence_Check(obj4)) {
6728 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6729 SWIG_fail;
6730 }
6731 arg5 = new wxArrayString;
6732 temp5 = True;
6733 int i, len=PySequence_Length(obj4);
6734 for (i=0; i<len; i++) {
6735 PyObject* item = PySequence_GetItem(obj4, i);
6736 #if wxUSE_UNICODE
6737 PyObject* str = PyObject_Unicode(item);
6738 #else
6739 PyObject* str = PyObject_Str(item);
6740 #endif
6741 if (PyErr_Occurred()) SWIG_fail;
6742 arg5->Add(Py2wxString(str));
6743 Py_DECREF(item);
6744 Py_DECREF(str);
6745 }
6746 }
6747 }
6748 if (obj5) {
6749 arg6 = (long)SWIG_As_long(obj5);
6750 if (PyErr_Occurred()) SWIG_fail;
6751 }
6752 if (obj6) {
6753 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6754 SWIG_POINTER_EXCEPTION | 0)) == -1)
6755 SWIG_fail;
6756 if (arg7 == NULL) {
6757 PyErr_SetString(PyExc_TypeError,"null reference");
6758 SWIG_fail;
6759 }
6760 }
6761 if (obj7) {
6762 {
6763 arg8 = wxString_in_helper(obj7);
6764 if (arg8 == NULL) SWIG_fail;
6765 temp8 = True;
6766 }
6767 }
6768 {
6769 if (!wxPyCheckForApp()) SWIG_fail;
6770 PyThreadState* __tstate = wxPyBeginAllowThreads();
6771 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6772
6773 wxPyEndAllowThreads(__tstate);
6774 if (PyErr_Occurred()) SWIG_fail;
6775 }
6776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6777 {
6778 if (temp5) delete arg5;
6779 }
6780 {
6781 if (temp8)
6782 delete arg8;
6783 }
6784 return resultobj;
6785 fail:
6786 {
6787 if (temp5) delete arg5;
6788 }
6789 {
6790 if (temp8)
6791 delete arg8;
6792 }
6793 return NULL;
6794 }
6795
6796
6797 static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6798 PyObject *resultobj;
6799 wxCheckListBox *result;
6800 char *kwnames[] = {
6801 NULL
6802 };
6803
6804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6805 {
6806 if (!wxPyCheckForApp()) SWIG_fail;
6807 PyThreadState* __tstate = wxPyBeginAllowThreads();
6808 result = (wxCheckListBox *)new wxCheckListBox();
6809
6810 wxPyEndAllowThreads(__tstate);
6811 if (PyErr_Occurred()) SWIG_fail;
6812 }
6813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6814 return resultobj;
6815 fail:
6816 return NULL;
6817 }
6818
6819
6820 static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6821 PyObject *resultobj;
6822 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6823 wxWindow *arg2 = (wxWindow *) 0 ;
6824 int arg3 = (int) -1 ;
6825 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6826 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6827 wxSize const &arg5_defvalue = wxDefaultSize ;
6828 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6829 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6830 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6831 long arg7 = (long) 0 ;
6832 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6833 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6834 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6835 wxString *arg9 = (wxString *) &arg9_defvalue ;
6836 bool result;
6837 wxPoint temp4 ;
6838 wxSize temp5 ;
6839 bool temp6 = False ;
6840 bool temp9 = False ;
6841 PyObject * obj0 = 0 ;
6842 PyObject * obj1 = 0 ;
6843 PyObject * obj2 = 0 ;
6844 PyObject * obj3 = 0 ;
6845 PyObject * obj4 = 0 ;
6846 PyObject * obj5 = 0 ;
6847 PyObject * obj6 = 0 ;
6848 PyObject * obj7 = 0 ;
6849 PyObject * obj8 = 0 ;
6850 char *kwnames[] = {
6851 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6852 };
6853
6854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6857 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6859 if (obj2) {
6860 arg3 = (int)SWIG_As_int(obj2);
6861 if (PyErr_Occurred()) SWIG_fail;
6862 }
6863 if (obj3) {
6864 {
6865 arg4 = &temp4;
6866 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6867 }
6868 }
6869 if (obj4) {
6870 {
6871 arg5 = &temp5;
6872 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6873 }
6874 }
6875 if (obj5) {
6876 {
6877 if (! PySequence_Check(obj5)) {
6878 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6879 SWIG_fail;
6880 }
6881 arg6 = new wxArrayString;
6882 temp6 = True;
6883 int i, len=PySequence_Length(obj5);
6884 for (i=0; i<len; i++) {
6885 PyObject* item = PySequence_GetItem(obj5, i);
6886 #if wxUSE_UNICODE
6887 PyObject* str = PyObject_Unicode(item);
6888 #else
6889 PyObject* str = PyObject_Str(item);
6890 #endif
6891 if (PyErr_Occurred()) SWIG_fail;
6892 arg6->Add(Py2wxString(str));
6893 Py_DECREF(item);
6894 Py_DECREF(str);
6895 }
6896 }
6897 }
6898 if (obj6) {
6899 arg7 = (long)SWIG_As_long(obj6);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 if (obj7) {
6903 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6904 SWIG_POINTER_EXCEPTION | 0)) == -1)
6905 SWIG_fail;
6906 if (arg8 == NULL) {
6907 PyErr_SetString(PyExc_TypeError,"null reference");
6908 SWIG_fail;
6909 }
6910 }
6911 if (obj8) {
6912 {
6913 arg9 = wxString_in_helper(obj8);
6914 if (arg9 == NULL) SWIG_fail;
6915 temp9 = True;
6916 }
6917 }
6918 {
6919 PyThreadState* __tstate = wxPyBeginAllowThreads();
6920 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6921
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 {
6926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6927 }
6928 {
6929 if (temp6) delete arg6;
6930 }
6931 {
6932 if (temp9)
6933 delete arg9;
6934 }
6935 return resultobj;
6936 fail:
6937 {
6938 if (temp6) delete arg6;
6939 }
6940 {
6941 if (temp9)
6942 delete arg9;
6943 }
6944 return NULL;
6945 }
6946
6947
6948 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
6949 PyObject *resultobj;
6950 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6951 int arg2 ;
6952 bool result;
6953 PyObject * obj0 = 0 ;
6954 PyObject * obj1 = 0 ;
6955 char *kwnames[] = {
6956 (char *) "self",(char *) "index", NULL
6957 };
6958
6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6962 arg2 = (int)SWIG_As_int(obj1);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 {
6965 PyThreadState* __tstate = wxPyBeginAllowThreads();
6966 result = (bool)(arg1)->IsChecked(arg2);
6967
6968 wxPyEndAllowThreads(__tstate);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 {
6972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6973 }
6974 return resultobj;
6975 fail:
6976 return NULL;
6977 }
6978
6979
6980 static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) {
6981 PyObject *resultobj;
6982 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6983 int arg2 ;
6984 int arg3 = (int) True ;
6985 PyObject * obj0 = 0 ;
6986 PyObject * obj1 = 0 ;
6987 PyObject * obj2 = 0 ;
6988 char *kwnames[] = {
6989 (char *) "self",(char *) "index",(char *) "check", NULL
6990 };
6991
6992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6995 arg2 = (int)SWIG_As_int(obj1);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 if (obj2) {
6998 arg3 = (int)SWIG_As_int(obj2);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 }
7001 {
7002 PyThreadState* __tstate = wxPyBeginAllowThreads();
7003 (arg1)->Check(arg2,arg3);
7004
7005 wxPyEndAllowThreads(__tstate);
7006 if (PyErr_Occurred()) SWIG_fail;
7007 }
7008 Py_INCREF(Py_None); resultobj = Py_None;
7009 return resultobj;
7010 fail:
7011 return NULL;
7012 }
7013
7014
7015 static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
7016 PyObject *resultobj;
7017 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7018 wxPoint *arg2 = 0 ;
7019 int result;
7020 wxPoint temp2 ;
7021 PyObject * obj0 = 0 ;
7022 PyObject * obj1 = 0 ;
7023 char *kwnames[] = {
7024 (char *) "self",(char *) "pt", NULL
7025 };
7026
7027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
7028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7030 {
7031 arg2 = &temp2;
7032 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7033 }
7034 {
7035 PyThreadState* __tstate = wxPyBeginAllowThreads();
7036 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
7037
7038 wxPyEndAllowThreads(__tstate);
7039 if (PyErr_Occurred()) SWIG_fail;
7040 }
7041 resultobj = SWIG_From_int((int)result);
7042 return resultobj;
7043 fail:
7044 return NULL;
7045 }
7046
7047
7048 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
7049 PyObject *resultobj;
7050 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7051 int arg2 ;
7052 int arg3 ;
7053 int result;
7054 PyObject * obj0 = 0 ;
7055 PyObject * obj1 = 0 ;
7056 PyObject * obj2 = 0 ;
7057 char *kwnames[] = {
7058 (char *) "self",(char *) "x",(char *) "y", NULL
7059 };
7060
7061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7064 arg2 = (int)SWIG_As_int(obj1);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 arg3 = (int)SWIG_As_int(obj2);
7067 if (PyErr_Occurred()) SWIG_fail;
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
7071
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 resultobj = SWIG_From_int((int)result);
7076 return resultobj;
7077 fail:
7078 return NULL;
7079 }
7080
7081
7082 static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) {
7083 PyObject *obj;
7084 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7085 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
7086 Py_INCREF(obj);
7087 return Py_BuildValue((char *)"");
7088 }
7089 static int _wrap_TextCtrlNameStr_set(PyObject *) {
7090 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
7091 return 1;
7092 }
7093
7094
7095 static PyObject *_wrap_TextCtrlNameStr_get() {
7096 PyObject *pyobj;
7097
7098 {
7099 #if wxUSE_UNICODE
7100 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7101 #else
7102 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7103 #endif
7104 }
7105 return pyobj;
7106 }
7107
7108
7109 static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7110 PyObject *resultobj;
7111 wxColour const &arg1_defvalue = wxNullColour ;
7112 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
7113 wxColour const &arg2_defvalue = wxNullColour ;
7114 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
7115 wxFont const &arg3_defvalue = wxNullFont ;
7116 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
7117 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
7118 wxTextAttr *result;
7119 wxColour temp1 ;
7120 wxColour temp2 ;
7121 PyObject * obj0 = 0 ;
7122 PyObject * obj1 = 0 ;
7123 PyObject * obj2 = 0 ;
7124 PyObject * obj3 = 0 ;
7125 char *kwnames[] = {
7126 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
7127 };
7128
7129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7130 if (obj0) {
7131 {
7132 arg1 = &temp1;
7133 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
7134 }
7135 }
7136 if (obj1) {
7137 {
7138 arg2 = &temp2;
7139 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7140 }
7141 }
7142 if (obj2) {
7143 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
7144 SWIG_POINTER_EXCEPTION | 0)) == -1)
7145 SWIG_fail;
7146 if (arg3 == NULL) {
7147 PyErr_SetString(PyExc_TypeError,"null reference");
7148 SWIG_fail;
7149 }
7150 }
7151 if (obj3) {
7152 arg4 = (int)SWIG_As_int(obj3);
7153 if (PyErr_Occurred()) SWIG_fail;
7154 }
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
7158
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
7163 return resultobj;
7164 fail:
7165 return NULL;
7166 }
7167
7168
7169 static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7170 PyObject *resultobj;
7171 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7172 PyObject * obj0 = 0 ;
7173 char *kwnames[] = {
7174 (char *) "self", NULL
7175 };
7176
7177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 delete arg1;
7183
7184 wxPyEndAllowThreads(__tstate);
7185 if (PyErr_Occurred()) SWIG_fail;
7186 }
7187 Py_INCREF(Py_None); resultobj = Py_None;
7188 return resultobj;
7189 fail:
7190 return NULL;
7191 }
7192
7193
7194 static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7195 PyObject *resultobj;
7196 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7197 PyObject * obj0 = 0 ;
7198 char *kwnames[] = {
7199 (char *) "self", NULL
7200 };
7201
7202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7205 {
7206 PyThreadState* __tstate = wxPyBeginAllowThreads();
7207 (arg1)->Init();
7208
7209 wxPyEndAllowThreads(__tstate);
7210 if (PyErr_Occurred()) SWIG_fail;
7211 }
7212 Py_INCREF(Py_None); resultobj = Py_None;
7213 return resultobj;
7214 fail:
7215 return NULL;
7216 }
7217
7218
7219 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7220 PyObject *resultobj;
7221 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7222 wxColour *arg2 = 0 ;
7223 wxColour temp2 ;
7224 PyObject * obj0 = 0 ;
7225 PyObject * obj1 = 0 ;
7226 char *kwnames[] = {
7227 (char *) "self",(char *) "colText", NULL
7228 };
7229
7230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7233 {
7234 arg2 = &temp2;
7235 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7236 }
7237 {
7238 PyThreadState* __tstate = wxPyBeginAllowThreads();
7239 (arg1)->SetTextColour((wxColour const &)*arg2);
7240
7241 wxPyEndAllowThreads(__tstate);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 Py_INCREF(Py_None); resultobj = Py_None;
7245 return resultobj;
7246 fail:
7247 return NULL;
7248 }
7249
7250
7251 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7252 PyObject *resultobj;
7253 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7254 wxColour *arg2 = 0 ;
7255 wxColour temp2 ;
7256 PyObject * obj0 = 0 ;
7257 PyObject * obj1 = 0 ;
7258 char *kwnames[] = {
7259 (char *) "self",(char *) "colBack", NULL
7260 };
7261
7262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7265 {
7266 arg2 = &temp2;
7267 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7268 }
7269 {
7270 PyThreadState* __tstate = wxPyBeginAllowThreads();
7271 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7272
7273 wxPyEndAllowThreads(__tstate);
7274 if (PyErr_Occurred()) SWIG_fail;
7275 }
7276 Py_INCREF(Py_None); resultobj = Py_None;
7277 return resultobj;
7278 fail:
7279 return NULL;
7280 }
7281
7282
7283 static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7284 PyObject *resultobj;
7285 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7286 wxFont *arg2 = 0 ;
7287 long arg3 = (long) wxTEXT_ATTR_FONT ;
7288 PyObject * obj0 = 0 ;
7289 PyObject * obj1 = 0 ;
7290 PyObject * obj2 = 0 ;
7291 char *kwnames[] = {
7292 (char *) "self",(char *) "font",(char *) "flags", NULL
7293 };
7294
7295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7298 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7299 SWIG_POINTER_EXCEPTION | 0)) == -1)
7300 SWIG_fail;
7301 if (arg2 == NULL) {
7302 PyErr_SetString(PyExc_TypeError,"null reference");
7303 SWIG_fail;
7304 }
7305 if (obj2) {
7306 arg3 = (long)SWIG_As_long(obj2);
7307 if (PyErr_Occurred()) SWIG_fail;
7308 }
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7312
7313 wxPyEndAllowThreads(__tstate);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 Py_INCREF(Py_None); resultobj = Py_None;
7317 return resultobj;
7318 fail:
7319 return NULL;
7320 }
7321
7322
7323 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7324 PyObject *resultobj;
7325 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7326 int arg2 ;
7327 PyObject * obj0 = 0 ;
7328 PyObject * obj1 = 0 ;
7329 char *kwnames[] = {
7330 (char *) "self",(char *) "alignment", NULL
7331 };
7332
7333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7336 arg2 = (int)SWIG_As_int(obj1);
7337 if (PyErr_Occurred()) SWIG_fail;
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7341
7342 wxPyEndAllowThreads(__tstate);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 Py_INCREF(Py_None); resultobj = Py_None;
7346 return resultobj;
7347 fail:
7348 return NULL;
7349 }
7350
7351
7352 static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7353 PyObject *resultobj;
7354 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7355 wxArrayInt *arg2 = 0 ;
7356 bool temp2 = False ;
7357 PyObject * obj0 = 0 ;
7358 PyObject * obj1 = 0 ;
7359 char *kwnames[] = {
7360 (char *) "self",(char *) "tabs", NULL
7361 };
7362
7363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7366 {
7367 if (! PySequence_Check(obj1)) {
7368 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7369 SWIG_fail;
7370 }
7371 arg2 = new wxArrayInt;
7372 temp2 = True;
7373 int i, len=PySequence_Length(obj1);
7374 for (i=0; i<len; i++) {
7375 PyObject* item = PySequence_GetItem(obj1, i);
7376 PyObject* number = PyNumber_Int(item);
7377 arg2->Add(PyInt_AS_LONG(number));
7378 Py_DECREF(item);
7379 Py_DECREF(number);
7380 }
7381 }
7382 {
7383 PyThreadState* __tstate = wxPyBeginAllowThreads();
7384 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7385
7386 wxPyEndAllowThreads(__tstate);
7387 if (PyErr_Occurred()) SWIG_fail;
7388 }
7389 Py_INCREF(Py_None); resultobj = Py_None;
7390 {
7391 if (temp2) delete arg2;
7392 }
7393 return resultobj;
7394 fail:
7395 {
7396 if (temp2) delete arg2;
7397 }
7398 return NULL;
7399 }
7400
7401
7402 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7403 PyObject *resultobj;
7404 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7405 int arg2 ;
7406 int arg3 = (int) 0 ;
7407 PyObject * obj0 = 0 ;
7408 PyObject * obj1 = 0 ;
7409 PyObject * obj2 = 0 ;
7410 char *kwnames[] = {
7411 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7412 };
7413
7414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7417 arg2 = (int)SWIG_As_int(obj1);
7418 if (PyErr_Occurred()) SWIG_fail;
7419 if (obj2) {
7420 arg3 = (int)SWIG_As_int(obj2);
7421 if (PyErr_Occurred()) SWIG_fail;
7422 }
7423 {
7424 PyThreadState* __tstate = wxPyBeginAllowThreads();
7425 (arg1)->SetLeftIndent(arg2,arg3);
7426
7427 wxPyEndAllowThreads(__tstate);
7428 if (PyErr_Occurred()) SWIG_fail;
7429 }
7430 Py_INCREF(Py_None); resultobj = Py_None;
7431 return resultobj;
7432 fail:
7433 return NULL;
7434 }
7435
7436
7437 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7438 PyObject *resultobj;
7439 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7440 int arg2 ;
7441 PyObject * obj0 = 0 ;
7442 PyObject * obj1 = 0 ;
7443 char *kwnames[] = {
7444 (char *) "self",(char *) "indent", NULL
7445 };
7446
7447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7450 arg2 = (int)SWIG_As_int(obj1);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 {
7453 PyThreadState* __tstate = wxPyBeginAllowThreads();
7454 (arg1)->SetRightIndent(arg2);
7455
7456 wxPyEndAllowThreads(__tstate);
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 Py_INCREF(Py_None); resultobj = Py_None;
7460 return resultobj;
7461 fail:
7462 return NULL;
7463 }
7464
7465
7466 static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7467 PyObject *resultobj;
7468 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7469 long arg2 ;
7470 PyObject * obj0 = 0 ;
7471 PyObject * obj1 = 0 ;
7472 char *kwnames[] = {
7473 (char *) "self",(char *) "flags", NULL
7474 };
7475
7476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7479 arg2 = (long)SWIG_As_long(obj1);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 {
7482 PyThreadState* __tstate = wxPyBeginAllowThreads();
7483 (arg1)->SetFlags(arg2);
7484
7485 wxPyEndAllowThreads(__tstate);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 Py_INCREF(Py_None); resultobj = Py_None;
7489 return resultobj;
7490 fail:
7491 return NULL;
7492 }
7493
7494
7495 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7496 PyObject *resultobj;
7497 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7498 bool result;
7499 PyObject * obj0 = 0 ;
7500 char *kwnames[] = {
7501 (char *) "self", NULL
7502 };
7503
7504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7507 {
7508 PyThreadState* __tstate = wxPyBeginAllowThreads();
7509 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7510
7511 wxPyEndAllowThreads(__tstate);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 {
7515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7516 }
7517 return resultobj;
7518 fail:
7519 return NULL;
7520 }
7521
7522
7523 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7524 PyObject *resultobj;
7525 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7526 bool result;
7527 PyObject * obj0 = 0 ;
7528 char *kwnames[] = {
7529 (char *) "self", NULL
7530 };
7531
7532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7535 {
7536 PyThreadState* __tstate = wxPyBeginAllowThreads();
7537 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7538
7539 wxPyEndAllowThreads(__tstate);
7540 if (PyErr_Occurred()) SWIG_fail;
7541 }
7542 {
7543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7544 }
7545 return resultobj;
7546 fail:
7547 return NULL;
7548 }
7549
7550
7551 static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
7552 PyObject *resultobj;
7553 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7554 bool result;
7555 PyObject * obj0 = 0 ;
7556 char *kwnames[] = {
7557 (char *) "self", NULL
7558 };
7559
7560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7563 {
7564 PyThreadState* __tstate = wxPyBeginAllowThreads();
7565 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7566
7567 wxPyEndAllowThreads(__tstate);
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 {
7571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7572 }
7573 return resultobj;
7574 fail:
7575 return NULL;
7576 }
7577
7578
7579 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7580 PyObject *resultobj;
7581 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7582 bool result;
7583 PyObject * obj0 = 0 ;
7584 char *kwnames[] = {
7585 (char *) "self", NULL
7586 };
7587
7588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7591 {
7592 PyThreadState* __tstate = wxPyBeginAllowThreads();
7593 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7594
7595 wxPyEndAllowThreads(__tstate);
7596 if (PyErr_Occurred()) SWIG_fail;
7597 }
7598 {
7599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7600 }
7601 return resultobj;
7602 fail:
7603 return NULL;
7604 }
7605
7606
7607 static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7608 PyObject *resultobj;
7609 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7610 bool result;
7611 PyObject * obj0 = 0 ;
7612 char *kwnames[] = {
7613 (char *) "self", NULL
7614 };
7615
7616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7619 {
7620 PyThreadState* __tstate = wxPyBeginAllowThreads();
7621 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7622
7623 wxPyEndAllowThreads(__tstate);
7624 if (PyErr_Occurred()) SWIG_fail;
7625 }
7626 {
7627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7628 }
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj;
7637 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7638 bool result;
7639 PyObject * obj0 = 0 ;
7640 char *kwnames[] = {
7641 (char *) "self", NULL
7642 };
7643
7644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7647 {
7648 PyThreadState* __tstate = wxPyBeginAllowThreads();
7649 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7650
7651 wxPyEndAllowThreads(__tstate);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 {
7655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7656 }
7657 return resultobj;
7658 fail:
7659 return NULL;
7660 }
7661
7662
7663 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7664 PyObject *resultobj;
7665 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7666 bool result;
7667 PyObject * obj0 = 0 ;
7668 char *kwnames[] = {
7669 (char *) "self", NULL
7670 };
7671
7672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7675 {
7676 PyThreadState* __tstate = wxPyBeginAllowThreads();
7677 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7678
7679 wxPyEndAllowThreads(__tstate);
7680 if (PyErr_Occurred()) SWIG_fail;
7681 }
7682 {
7683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7684 }
7685 return resultobj;
7686 fail:
7687 return NULL;
7688 }
7689
7690
7691 static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
7692 PyObject *resultobj;
7693 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7694 long arg2 ;
7695 bool result;
7696 PyObject * obj0 = 0 ;
7697 PyObject * obj1 = 0 ;
7698 char *kwnames[] = {
7699 (char *) "self",(char *) "flag", NULL
7700 };
7701
7702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7705 arg2 = (long)SWIG_As_long(obj1);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 {
7708 PyThreadState* __tstate = wxPyBeginAllowThreads();
7709 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7710
7711 wxPyEndAllowThreads(__tstate);
7712 if (PyErr_Occurred()) SWIG_fail;
7713 }
7714 {
7715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7716 }
7717 return resultobj;
7718 fail:
7719 return NULL;
7720 }
7721
7722
7723 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7724 PyObject *resultobj;
7725 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7726 wxColour *result;
7727 PyObject * obj0 = 0 ;
7728 char *kwnames[] = {
7729 (char *) "self", NULL
7730 };
7731
7732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7735 {
7736 PyThreadState* __tstate = wxPyBeginAllowThreads();
7737 {
7738 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7739 result = (wxColour *) &_result_ref;
7740 }
7741
7742 wxPyEndAllowThreads(__tstate);
7743 if (PyErr_Occurred()) SWIG_fail;
7744 }
7745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7755 wxColour *result;
7756 PyObject * obj0 = 0 ;
7757 char *kwnames[] = {
7758 (char *) "self", NULL
7759 };
7760
7761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7764 {
7765 PyThreadState* __tstate = wxPyBeginAllowThreads();
7766 {
7767 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7768 result = (wxColour *) &_result_ref;
7769 }
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7775 return resultobj;
7776 fail:
7777 return NULL;
7778 }
7779
7780
7781 static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7782 PyObject *resultobj;
7783 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7784 wxFont *result;
7785 PyObject * obj0 = 0 ;
7786 char *kwnames[] = {
7787 (char *) "self", NULL
7788 };
7789
7790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7793 {
7794 PyThreadState* __tstate = wxPyBeginAllowThreads();
7795 {
7796 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7797 result = (wxFont *) &_result_ref;
7798 }
7799
7800 wxPyEndAllowThreads(__tstate);
7801 if (PyErr_Occurred()) SWIG_fail;
7802 }
7803 {
7804 wxFont* resultptr = new wxFont(*result);
7805 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7806 }
7807 return resultobj;
7808 fail:
7809 return NULL;
7810 }
7811
7812
7813 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7814 PyObject *resultobj;
7815 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7816 int result;
7817 PyObject * obj0 = 0 ;
7818 char *kwnames[] = {
7819 (char *) "self", NULL
7820 };
7821
7822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7825 {
7826 PyThreadState* __tstate = wxPyBeginAllowThreads();
7827 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7828
7829 wxPyEndAllowThreads(__tstate);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 resultobj = SWIG_From_int((int)result);
7833 return resultobj;
7834 fail:
7835 return NULL;
7836 }
7837
7838
7839 static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7840 PyObject *resultobj;
7841 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7842 wxArrayInt *result;
7843 PyObject * obj0 = 0 ;
7844 char *kwnames[] = {
7845 (char *) "self", NULL
7846 };
7847
7848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7851 {
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 {
7854 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7855 result = (wxArrayInt *) &_result_ref;
7856 }
7857
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 {
7862 resultobj = PyList_New(0);
7863 size_t idx;
7864 for (idx = 0; idx < result->GetCount(); idx += 1) {
7865 PyObject* val = PyInt_FromLong( result->Item(idx) );
7866 PyList_Append(resultobj, val);
7867 Py_DECREF(val);
7868 }
7869 }
7870 return resultobj;
7871 fail:
7872 return NULL;
7873 }
7874
7875
7876 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7877 PyObject *resultobj;
7878 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7879 long result;
7880 PyObject * obj0 = 0 ;
7881 char *kwnames[] = {
7882 (char *) "self", NULL
7883 };
7884
7885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7888 {
7889 PyThreadState* __tstate = wxPyBeginAllowThreads();
7890 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7891
7892 wxPyEndAllowThreads(__tstate);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 resultobj = SWIG_From_long((long)result);
7896 return resultobj;
7897 fail:
7898 return NULL;
7899 }
7900
7901
7902 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7903 PyObject *resultobj;
7904 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7905 long result;
7906 PyObject * obj0 = 0 ;
7907 char *kwnames[] = {
7908 (char *) "self", NULL
7909 };
7910
7911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
7912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
7917
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
7921 resultobj = SWIG_From_long((long)result);
7922 return resultobj;
7923 fail:
7924 return NULL;
7925 }
7926
7927
7928 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7929 PyObject *resultobj;
7930 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7931 long result;
7932 PyObject * obj0 = 0 ;
7933 char *kwnames[] = {
7934 (char *) "self", NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7940 {
7941 PyThreadState* __tstate = wxPyBeginAllowThreads();
7942 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7943
7944 wxPyEndAllowThreads(__tstate);
7945 if (PyErr_Occurred()) SWIG_fail;
7946 }
7947 resultobj = SWIG_From_long((long)result);
7948 return resultobj;
7949 fail:
7950 return NULL;
7951 }
7952
7953
7954 static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7955 PyObject *resultobj;
7956 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7957 long result;
7958 PyObject * obj0 = 0 ;
7959 char *kwnames[] = {
7960 (char *) "self", NULL
7961 };
7962
7963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7966 {
7967 PyThreadState* __tstate = wxPyBeginAllowThreads();
7968 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7969
7970 wxPyEndAllowThreads(__tstate);
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 resultobj = SWIG_From_long((long)result);
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) {
7981 PyObject *resultobj;
7982 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7983 bool result;
7984 PyObject * obj0 = 0 ;
7985 char *kwnames[] = {
7986 (char *) "self", NULL
7987 };
7988
7989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7992 {
7993 PyThreadState* __tstate = wxPyBeginAllowThreads();
7994 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7995
7996 wxPyEndAllowThreads(__tstate);
7997 if (PyErr_Occurred()) SWIG_fail;
7998 }
7999 {
8000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8001 }
8002 return resultobj;
8003 fail:
8004 return NULL;
8005 }
8006
8007
8008 static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) {
8009 PyObject *resultobj;
8010 wxTextAttr *arg1 = 0 ;
8011 wxTextAttr *arg2 = 0 ;
8012 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
8013 wxTextAttr result;
8014 PyObject * obj0 = 0 ;
8015 PyObject * obj1 = 0 ;
8016 PyObject * obj2 = 0 ;
8017 char *kwnames[] = {
8018 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
8019 };
8020
8021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
8022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8023 SWIG_POINTER_EXCEPTION | 0)) == -1)
8024 SWIG_fail;
8025 if (arg1 == NULL) {
8026 PyErr_SetString(PyExc_TypeError,"null reference");
8027 SWIG_fail;
8028 }
8029 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8030 SWIG_POINTER_EXCEPTION | 0)) == -1)
8031 SWIG_fail;
8032 if (arg2 == NULL) {
8033 PyErr_SetString(PyExc_TypeError,"null reference");
8034 SWIG_fail;
8035 }
8036 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
8037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8038 {
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
8041
8042 wxPyEndAllowThreads(__tstate);
8043 if (PyErr_Occurred()) SWIG_fail;
8044 }
8045 {
8046 wxTextAttr * resultptr;
8047 resultptr = new wxTextAttr((wxTextAttr &) result);
8048 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
8049 }
8050 return resultobj;
8051 fail:
8052 return NULL;
8053 }
8054
8055
8056 static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) {
8057 PyObject *obj;
8058 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8059 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
8060 Py_INCREF(obj);
8061 return Py_BuildValue((char *)"");
8062 }
8063 static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8064 PyObject *resultobj;
8065 wxWindow *arg1 = (wxWindow *) 0 ;
8066 int arg2 = (int) -1 ;
8067 wxString const &arg3_defvalue = wxPyEmptyString ;
8068 wxString *arg3 = (wxString *) &arg3_defvalue ;
8069 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8070 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8071 wxSize const &arg5_defvalue = wxDefaultSize ;
8072 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8073 long arg6 = (long) 0 ;
8074 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8075 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8076 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
8077 wxString *arg8 = (wxString *) &arg8_defvalue ;
8078 wxTextCtrl *result;
8079 bool temp3 = False ;
8080 wxPoint temp4 ;
8081 wxSize temp5 ;
8082 bool temp8 = False ;
8083 PyObject * obj0 = 0 ;
8084 PyObject * obj1 = 0 ;
8085 PyObject * obj2 = 0 ;
8086 PyObject * obj3 = 0 ;
8087 PyObject * obj4 = 0 ;
8088 PyObject * obj5 = 0 ;
8089 PyObject * obj6 = 0 ;
8090 PyObject * obj7 = 0 ;
8091 char *kwnames[] = {
8092 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8093 };
8094
8095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
8096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
8097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8098 if (obj1) {
8099 arg2 = (int)SWIG_As_int(obj1);
8100 if (PyErr_Occurred()) SWIG_fail;
8101 }
8102 if (obj2) {
8103 {
8104 arg3 = wxString_in_helper(obj2);
8105 if (arg3 == NULL) SWIG_fail;
8106 temp3 = True;
8107 }
8108 }
8109 if (obj3) {
8110 {
8111 arg4 = &temp4;
8112 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8113 }
8114 }
8115 if (obj4) {
8116 {
8117 arg5 = &temp5;
8118 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8119 }
8120 }
8121 if (obj5) {
8122 arg6 = (long)SWIG_As_long(obj5);
8123 if (PyErr_Occurred()) SWIG_fail;
8124 }
8125 if (obj6) {
8126 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
8127 SWIG_POINTER_EXCEPTION | 0)) == -1)
8128 SWIG_fail;
8129 if (arg7 == NULL) {
8130 PyErr_SetString(PyExc_TypeError,"null reference");
8131 SWIG_fail;
8132 }
8133 }
8134 if (obj7) {
8135 {
8136 arg8 = wxString_in_helper(obj7);
8137 if (arg8 == NULL) SWIG_fail;
8138 temp8 = True;
8139 }
8140 }
8141 {
8142 if (!wxPyCheckForApp()) SWIG_fail;
8143 PyThreadState* __tstate = wxPyBeginAllowThreads();
8144 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8145
8146 wxPyEndAllowThreads(__tstate);
8147 if (PyErr_Occurred()) SWIG_fail;
8148 }
8149 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8150 {
8151 if (temp3)
8152 delete arg3;
8153 }
8154 {
8155 if (temp8)
8156 delete arg8;
8157 }
8158 return resultobj;
8159 fail:
8160 {
8161 if (temp3)
8162 delete arg3;
8163 }
8164 {
8165 if (temp8)
8166 delete arg8;
8167 }
8168 return NULL;
8169 }
8170
8171
8172 static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj;
8174 wxTextCtrl *result;
8175 char *kwnames[] = {
8176 NULL
8177 };
8178
8179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8180 {
8181 if (!wxPyCheckForApp()) SWIG_fail;
8182 PyThreadState* __tstate = wxPyBeginAllowThreads();
8183 result = (wxTextCtrl *)new wxTextCtrl();
8184
8185 wxPyEndAllowThreads(__tstate);
8186 if (PyErr_Occurred()) SWIG_fail;
8187 }
8188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8189 return resultobj;
8190 fail:
8191 return NULL;
8192 }
8193
8194
8195 static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8196 PyObject *resultobj;
8197 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8198 wxWindow *arg2 = (wxWindow *) 0 ;
8199 int arg3 = (int) -1 ;
8200 wxString const &arg4_defvalue = wxPyEmptyString ;
8201 wxString *arg4 = (wxString *) &arg4_defvalue ;
8202 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8203 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8204 wxSize const &arg6_defvalue = wxDefaultSize ;
8205 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8206 long arg7 = (long) 0 ;
8207 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8208 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8209 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8210 wxString *arg9 = (wxString *) &arg9_defvalue ;
8211 bool result;
8212 bool temp4 = False ;
8213 wxPoint temp5 ;
8214 wxSize temp6 ;
8215 bool temp9 = False ;
8216 PyObject * obj0 = 0 ;
8217 PyObject * obj1 = 0 ;
8218 PyObject * obj2 = 0 ;
8219 PyObject * obj3 = 0 ;
8220 PyObject * obj4 = 0 ;
8221 PyObject * obj5 = 0 ;
8222 PyObject * obj6 = 0 ;
8223 PyObject * obj7 = 0 ;
8224 PyObject * obj8 = 0 ;
8225 char *kwnames[] = {
8226 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8227 };
8228
8229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8234 if (obj2) {
8235 arg3 = (int)SWIG_As_int(obj2);
8236 if (PyErr_Occurred()) SWIG_fail;
8237 }
8238 if (obj3) {
8239 {
8240 arg4 = wxString_in_helper(obj3);
8241 if (arg4 == NULL) SWIG_fail;
8242 temp4 = True;
8243 }
8244 }
8245 if (obj4) {
8246 {
8247 arg5 = &temp5;
8248 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8249 }
8250 }
8251 if (obj5) {
8252 {
8253 arg6 = &temp6;
8254 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8255 }
8256 }
8257 if (obj6) {
8258 arg7 = (long)SWIG_As_long(obj6);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 if (obj7) {
8262 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8263 SWIG_POINTER_EXCEPTION | 0)) == -1)
8264 SWIG_fail;
8265 if (arg8 == NULL) {
8266 PyErr_SetString(PyExc_TypeError,"null reference");
8267 SWIG_fail;
8268 }
8269 }
8270 if (obj8) {
8271 {
8272 arg9 = wxString_in_helper(obj8);
8273 if (arg9 == NULL) SWIG_fail;
8274 temp9 = True;
8275 }
8276 }
8277 {
8278 PyThreadState* __tstate = wxPyBeginAllowThreads();
8279 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8280
8281 wxPyEndAllowThreads(__tstate);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 {
8285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8286 }
8287 {
8288 if (temp4)
8289 delete arg4;
8290 }
8291 {
8292 if (temp9)
8293 delete arg9;
8294 }
8295 return resultobj;
8296 fail:
8297 {
8298 if (temp4)
8299 delete arg4;
8300 }
8301 {
8302 if (temp9)
8303 delete arg9;
8304 }
8305 return NULL;
8306 }
8307
8308
8309 static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8310 PyObject *resultobj;
8311 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8312 wxString result;
8313 PyObject * obj0 = 0 ;
8314 char *kwnames[] = {
8315 (char *) "self", NULL
8316 };
8317
8318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8321 {
8322 PyThreadState* __tstate = wxPyBeginAllowThreads();
8323 result = ((wxTextCtrl const *)arg1)->GetValue();
8324
8325 wxPyEndAllowThreads(__tstate);
8326 if (PyErr_Occurred()) SWIG_fail;
8327 }
8328 {
8329 #if wxUSE_UNICODE
8330 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8331 #else
8332 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8333 #endif
8334 }
8335 return resultobj;
8336 fail:
8337 return NULL;
8338 }
8339
8340
8341 static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8342 PyObject *resultobj;
8343 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8344 wxString *arg2 = 0 ;
8345 bool temp2 = False ;
8346 PyObject * obj0 = 0 ;
8347 PyObject * obj1 = 0 ;
8348 char *kwnames[] = {
8349 (char *) "self",(char *) "value", NULL
8350 };
8351
8352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8355 {
8356 arg2 = wxString_in_helper(obj1);
8357 if (arg2 == NULL) SWIG_fail;
8358 temp2 = True;
8359 }
8360 {
8361 PyThreadState* __tstate = wxPyBeginAllowThreads();
8362 (arg1)->SetValue((wxString const &)*arg2);
8363
8364 wxPyEndAllowThreads(__tstate);
8365 if (PyErr_Occurred()) SWIG_fail;
8366 }
8367 Py_INCREF(Py_None); resultobj = Py_None;
8368 {
8369 if (temp2)
8370 delete arg2;
8371 }
8372 return resultobj;
8373 fail:
8374 {
8375 if (temp2)
8376 delete arg2;
8377 }
8378 return NULL;
8379 }
8380
8381
8382 static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
8383 PyObject *resultobj;
8384 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8385 long arg2 ;
8386 long arg3 ;
8387 wxString result;
8388 PyObject * obj0 = 0 ;
8389 PyObject * obj1 = 0 ;
8390 PyObject * obj2 = 0 ;
8391 char *kwnames[] = {
8392 (char *) "self",(char *) "from",(char *) "to", NULL
8393 };
8394
8395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8398 arg2 = (long)SWIG_As_long(obj1);
8399 if (PyErr_Occurred()) SWIG_fail;
8400 arg3 = (long)SWIG_As_long(obj2);
8401 if (PyErr_Occurred()) SWIG_fail;
8402 {
8403 PyThreadState* __tstate = wxPyBeginAllowThreads();
8404 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8405
8406 wxPyEndAllowThreads(__tstate);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 {
8410 #if wxUSE_UNICODE
8411 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8412 #else
8413 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8414 #endif
8415 }
8416 return resultobj;
8417 fail:
8418 return NULL;
8419 }
8420
8421
8422 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) {
8423 PyObject *resultobj;
8424 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8425 long arg2 ;
8426 int result;
8427 PyObject * obj0 = 0 ;
8428 PyObject * obj1 = 0 ;
8429 char *kwnames[] = {
8430 (char *) "self",(char *) "lineNo", NULL
8431 };
8432
8433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8436 arg2 = (long)SWIG_As_long(obj1);
8437 if (PyErr_Occurred()) SWIG_fail;
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8441
8442 wxPyEndAllowThreads(__tstate);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 resultobj = SWIG_From_int((int)result);
8446 return resultobj;
8447 fail:
8448 return NULL;
8449 }
8450
8451
8452 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) {
8453 PyObject *resultobj;
8454 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8455 long arg2 ;
8456 wxString result;
8457 PyObject * obj0 = 0 ;
8458 PyObject * obj1 = 0 ;
8459 char *kwnames[] = {
8460 (char *) "self",(char *) "lineNo", NULL
8461 };
8462
8463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8466 arg2 = (long)SWIG_As_long(obj1);
8467 if (PyErr_Occurred()) SWIG_fail;
8468 {
8469 PyThreadState* __tstate = wxPyBeginAllowThreads();
8470 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8471
8472 wxPyEndAllowThreads(__tstate);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 {
8476 #if wxUSE_UNICODE
8477 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8478 #else
8479 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8480 #endif
8481 }
8482 return resultobj;
8483 fail:
8484 return NULL;
8485 }
8486
8487
8488 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) {
8489 PyObject *resultobj;
8490 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8491 int result;
8492 PyObject * obj0 = 0 ;
8493 char *kwnames[] = {
8494 (char *) "self", NULL
8495 };
8496
8497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8500 {
8501 PyThreadState* __tstate = wxPyBeginAllowThreads();
8502 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8503
8504 wxPyEndAllowThreads(__tstate);
8505 if (PyErr_Occurred()) SWIG_fail;
8506 }
8507 resultobj = SWIG_From_int((int)result);
8508 return resultobj;
8509 fail:
8510 return NULL;
8511 }
8512
8513
8514 static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) {
8515 PyObject *resultobj;
8516 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8517 bool result;
8518 PyObject * obj0 = 0 ;
8519 char *kwnames[] = {
8520 (char *) "self", NULL
8521 };
8522
8523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8526 {
8527 PyThreadState* __tstate = wxPyBeginAllowThreads();
8528 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8529
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 {
8534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8535 }
8536 return resultobj;
8537 fail:
8538 return NULL;
8539 }
8540
8541
8542 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj;
8544 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8545 bool result;
8546 PyObject * obj0 = 0 ;
8547 char *kwnames[] = {
8548 (char *) "self", NULL
8549 };
8550
8551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8554 {
8555 PyThreadState* __tstate = wxPyBeginAllowThreads();
8556 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8557
8558 wxPyEndAllowThreads(__tstate);
8559 if (PyErr_Occurred()) SWIG_fail;
8560 }
8561 {
8562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8563 }
8564 return resultobj;
8565 fail:
8566 return NULL;
8567 }
8568
8569
8570 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) {
8571 PyObject *resultobj;
8572 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8573 bool result;
8574 PyObject * obj0 = 0 ;
8575 char *kwnames[] = {
8576 (char *) "self", NULL
8577 };
8578
8579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8582 {
8583 PyThreadState* __tstate = wxPyBeginAllowThreads();
8584 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8585
8586 wxPyEndAllowThreads(__tstate);
8587 if (PyErr_Occurred()) SWIG_fail;
8588 }
8589 {
8590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8591 }
8592 return resultobj;
8593 fail:
8594 return NULL;
8595 }
8596
8597
8598 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) {
8599 PyObject *resultobj;
8600 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8601 bool result;
8602 PyObject * obj0 = 0 ;
8603 char *kwnames[] = {
8604 (char *) "self", NULL
8605 };
8606
8607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8610 {
8611 PyThreadState* __tstate = wxPyBeginAllowThreads();
8612 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8613
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 {
8618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8619 }
8620 return resultobj;
8621 fail:
8622 return NULL;
8623 }
8624
8625
8626 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8627 PyObject *resultobj;
8628 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8629 long *arg2 = (long *) 0 ;
8630 long *arg3 = (long *) 0 ;
8631 long temp2 ;
8632 int res2 = 0 ;
8633 long temp3 ;
8634 int res3 = 0 ;
8635 PyObject * obj0 = 0 ;
8636 char *kwnames[] = {
8637 (char *) "self", NULL
8638 };
8639
8640 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8641 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8645 {
8646 PyThreadState* __tstate = wxPyBeginAllowThreads();
8647 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8648
8649 wxPyEndAllowThreads(__tstate);
8650 if (PyErr_Occurred()) SWIG_fail;
8651 }
8652 Py_INCREF(Py_None); resultobj = Py_None;
8653 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8654 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
8655 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8656 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
8657 return resultobj;
8658 fail:
8659 return NULL;
8660 }
8661
8662
8663 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8664 PyObject *resultobj;
8665 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8666 wxString result;
8667 PyObject * obj0 = 0 ;
8668 char *kwnames[] = {
8669 (char *) "self", NULL
8670 };
8671
8672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8675 {
8676 PyThreadState* __tstate = wxPyBeginAllowThreads();
8677 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8678
8679 wxPyEndAllowThreads(__tstate);
8680 if (PyErr_Occurred()) SWIG_fail;
8681 }
8682 {
8683 #if wxUSE_UNICODE
8684 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8685 #else
8686 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8687 #endif
8688 }
8689 return resultobj;
8690 fail:
8691 return NULL;
8692 }
8693
8694
8695 static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
8696 PyObject *resultobj;
8697 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8698 PyObject * obj0 = 0 ;
8699 char *kwnames[] = {
8700 (char *) "self", NULL
8701 };
8702
8703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8706 {
8707 PyThreadState* __tstate = wxPyBeginAllowThreads();
8708 (arg1)->Clear();
8709
8710 wxPyEndAllowThreads(__tstate);
8711 if (PyErr_Occurred()) SWIG_fail;
8712 }
8713 Py_INCREF(Py_None); resultobj = Py_None;
8714 return resultobj;
8715 fail:
8716 return NULL;
8717 }
8718
8719
8720 static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
8721 PyObject *resultobj;
8722 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8723 long arg2 ;
8724 long arg3 ;
8725 wxString *arg4 = 0 ;
8726 bool temp4 = False ;
8727 PyObject * obj0 = 0 ;
8728 PyObject * obj1 = 0 ;
8729 PyObject * obj2 = 0 ;
8730 PyObject * obj3 = 0 ;
8731 char *kwnames[] = {
8732 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8733 };
8734
8735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8738 arg2 = (long)SWIG_As_long(obj1);
8739 if (PyErr_Occurred()) SWIG_fail;
8740 arg3 = (long)SWIG_As_long(obj2);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 {
8743 arg4 = wxString_in_helper(obj3);
8744 if (arg4 == NULL) SWIG_fail;
8745 temp4 = True;
8746 }
8747 {
8748 PyThreadState* __tstate = wxPyBeginAllowThreads();
8749 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8750
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
8754 Py_INCREF(Py_None); resultobj = Py_None;
8755 {
8756 if (temp4)
8757 delete arg4;
8758 }
8759 return resultobj;
8760 fail:
8761 {
8762 if (temp4)
8763 delete arg4;
8764 }
8765 return NULL;
8766 }
8767
8768
8769 static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
8770 PyObject *resultobj;
8771 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8772 long arg2 ;
8773 long arg3 ;
8774 PyObject * obj0 = 0 ;
8775 PyObject * obj1 = 0 ;
8776 PyObject * obj2 = 0 ;
8777 char *kwnames[] = {
8778 (char *) "self",(char *) "from",(char *) "to", NULL
8779 };
8780
8781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8784 arg2 = (long)SWIG_As_long(obj1);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 arg3 = (long)SWIG_As_long(obj2);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 {
8789 PyThreadState* __tstate = wxPyBeginAllowThreads();
8790 (arg1)->Remove(arg2,arg3);
8791
8792 wxPyEndAllowThreads(__tstate);
8793 if (PyErr_Occurred()) SWIG_fail;
8794 }
8795 Py_INCREF(Py_None); resultobj = Py_None;
8796 return resultobj;
8797 fail:
8798 return NULL;
8799 }
8800
8801
8802 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
8803 PyObject *resultobj;
8804 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8805 wxString *arg2 = 0 ;
8806 bool result;
8807 bool temp2 = False ;
8808 PyObject * obj0 = 0 ;
8809 PyObject * obj1 = 0 ;
8810 char *kwnames[] = {
8811 (char *) "self",(char *) "file", NULL
8812 };
8813
8814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8817 {
8818 arg2 = wxString_in_helper(obj1);
8819 if (arg2 == NULL) SWIG_fail;
8820 temp2 = True;
8821 }
8822 {
8823 PyThreadState* __tstate = wxPyBeginAllowThreads();
8824 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8825
8826 wxPyEndAllowThreads(__tstate);
8827 if (PyErr_Occurred()) SWIG_fail;
8828 }
8829 {
8830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8831 }
8832 {
8833 if (temp2)
8834 delete arg2;
8835 }
8836 return resultobj;
8837 fail:
8838 {
8839 if (temp2)
8840 delete arg2;
8841 }
8842 return NULL;
8843 }
8844
8845
8846 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
8847 PyObject *resultobj;
8848 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8849 wxString const &arg2_defvalue = wxPyEmptyString ;
8850 wxString *arg2 = (wxString *) &arg2_defvalue ;
8851 bool result;
8852 bool temp2 = False ;
8853 PyObject * obj0 = 0 ;
8854 PyObject * obj1 = 0 ;
8855 char *kwnames[] = {
8856 (char *) "self",(char *) "file", NULL
8857 };
8858
8859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8862 if (obj1) {
8863 {
8864 arg2 = wxString_in_helper(obj1);
8865 if (arg2 == NULL) SWIG_fail;
8866 temp2 = True;
8867 }
8868 }
8869 {
8870 PyThreadState* __tstate = wxPyBeginAllowThreads();
8871 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8872
8873 wxPyEndAllowThreads(__tstate);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 }
8876 {
8877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8878 }
8879 {
8880 if (temp2)
8881 delete arg2;
8882 }
8883 return resultobj;
8884 fail:
8885 {
8886 if (temp2)
8887 delete arg2;
8888 }
8889 return NULL;
8890 }
8891
8892
8893 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) {
8894 PyObject *resultobj;
8895 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8896 PyObject * obj0 = 0 ;
8897 char *kwnames[] = {
8898 (char *) "self", NULL
8899 };
8900
8901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8904 {
8905 PyThreadState* __tstate = wxPyBeginAllowThreads();
8906 (arg1)->MarkDirty();
8907
8908 wxPyEndAllowThreads(__tstate);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 }
8911 Py_INCREF(Py_None); resultobj = Py_None;
8912 return resultobj;
8913 fail:
8914 return NULL;
8915 }
8916
8917
8918 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) {
8919 PyObject *resultobj;
8920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8921 PyObject * obj0 = 0 ;
8922 char *kwnames[] = {
8923 (char *) "self", NULL
8924 };
8925
8926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8929 {
8930 PyThreadState* __tstate = wxPyBeginAllowThreads();
8931 (arg1)->DiscardEdits();
8932
8933 wxPyEndAllowThreads(__tstate);
8934 if (PyErr_Occurred()) SWIG_fail;
8935 }
8936 Py_INCREF(Py_None); resultobj = Py_None;
8937 return resultobj;
8938 fail:
8939 return NULL;
8940 }
8941
8942
8943 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) {
8944 PyObject *resultobj;
8945 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8946 unsigned long arg2 ;
8947 PyObject * obj0 = 0 ;
8948 PyObject * obj1 = 0 ;
8949 char *kwnames[] = {
8950 (char *) "self",(char *) "len", NULL
8951 };
8952
8953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8956 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
8957 if (PyErr_Occurred()) SWIG_fail;
8958 {
8959 PyThreadState* __tstate = wxPyBeginAllowThreads();
8960 (arg1)->SetMaxLength(arg2);
8961
8962 wxPyEndAllowThreads(__tstate);
8963 if (PyErr_Occurred()) SWIG_fail;
8964 }
8965 Py_INCREF(Py_None); resultobj = Py_None;
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) {
8973 PyObject *resultobj;
8974 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8975 wxString *arg2 = 0 ;
8976 bool temp2 = False ;
8977 PyObject * obj0 = 0 ;
8978 PyObject * obj1 = 0 ;
8979 char *kwnames[] = {
8980 (char *) "self",(char *) "text", NULL
8981 };
8982
8983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8986 {
8987 arg2 = wxString_in_helper(obj1);
8988 if (arg2 == NULL) SWIG_fail;
8989 temp2 = True;
8990 }
8991 {
8992 PyThreadState* __tstate = wxPyBeginAllowThreads();
8993 (arg1)->WriteText((wxString const &)*arg2);
8994
8995 wxPyEndAllowThreads(__tstate);
8996 if (PyErr_Occurred()) SWIG_fail;
8997 }
8998 Py_INCREF(Py_None); resultobj = Py_None;
8999 {
9000 if (temp2)
9001 delete arg2;
9002 }
9003 return resultobj;
9004 fail:
9005 {
9006 if (temp2)
9007 delete arg2;
9008 }
9009 return NULL;
9010 }
9011
9012
9013 static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) {
9014 PyObject *resultobj;
9015 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9016 wxString *arg2 = 0 ;
9017 bool temp2 = False ;
9018 PyObject * obj0 = 0 ;
9019 PyObject * obj1 = 0 ;
9020 char *kwnames[] = {
9021 (char *) "self",(char *) "text", NULL
9022 };
9023
9024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
9025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9027 {
9028 arg2 = wxString_in_helper(obj1);
9029 if (arg2 == NULL) SWIG_fail;
9030 temp2 = True;
9031 }
9032 {
9033 PyThreadState* __tstate = wxPyBeginAllowThreads();
9034 (arg1)->AppendText((wxString const &)*arg2);
9035
9036 wxPyEndAllowThreads(__tstate);
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 Py_INCREF(Py_None); resultobj = Py_None;
9040 {
9041 if (temp2)
9042 delete arg2;
9043 }
9044 return resultobj;
9045 fail:
9046 {
9047 if (temp2)
9048 delete arg2;
9049 }
9050 return NULL;
9051 }
9052
9053
9054 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) {
9055 PyObject *resultobj;
9056 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9057 wxKeyEvent *arg2 = 0 ;
9058 bool result;
9059 PyObject * obj0 = 0 ;
9060 PyObject * obj1 = 0 ;
9061 char *kwnames[] = {
9062 (char *) "self",(char *) "event", NULL
9063 };
9064
9065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
9066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9068 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
9069 SWIG_POINTER_EXCEPTION | 0)) == -1)
9070 SWIG_fail;
9071 if (arg2 == NULL) {
9072 PyErr_SetString(PyExc_TypeError,"null reference");
9073 SWIG_fail;
9074 }
9075 {
9076 PyThreadState* __tstate = wxPyBeginAllowThreads();
9077 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
9078
9079 wxPyEndAllowThreads(__tstate);
9080 if (PyErr_Occurred()) SWIG_fail;
9081 }
9082 {
9083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9084 }
9085 return resultobj;
9086 fail:
9087 return NULL;
9088 }
9089
9090
9091 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9092 PyObject *resultobj;
9093 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9094 long arg2 ;
9095 long arg3 ;
9096 wxTextAttr *arg4 = 0 ;
9097 bool result;
9098 PyObject * obj0 = 0 ;
9099 PyObject * obj1 = 0 ;
9100 PyObject * obj2 = 0 ;
9101 PyObject * obj3 = 0 ;
9102 char *kwnames[] = {
9103 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
9104 };
9105
9106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9109 arg2 = (long)SWIG_As_long(obj1);
9110 if (PyErr_Occurred()) SWIG_fail;
9111 arg3 = (long)SWIG_As_long(obj2);
9112 if (PyErr_Occurred()) SWIG_fail;
9113 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
9114 SWIG_POINTER_EXCEPTION | 0)) == -1)
9115 SWIG_fail;
9116 if (arg4 == NULL) {
9117 PyErr_SetString(PyExc_TypeError,"null reference");
9118 SWIG_fail;
9119 }
9120 {
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
9123
9124 wxPyEndAllowThreads(__tstate);
9125 if (PyErr_Occurred()) SWIG_fail;
9126 }
9127 {
9128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9129 }
9130 return resultobj;
9131 fail:
9132 return NULL;
9133 }
9134
9135
9136 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9137 PyObject *resultobj;
9138 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9139 long arg2 ;
9140 wxTextAttr *arg3 = 0 ;
9141 bool result;
9142 PyObject * obj0 = 0 ;
9143 PyObject * obj1 = 0 ;
9144 PyObject * obj2 = 0 ;
9145 char *kwnames[] = {
9146 (char *) "self",(char *) "position",(char *) "style", NULL
9147 };
9148
9149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9152 arg2 = (long)SWIG_As_long(obj1);
9153 if (PyErr_Occurred()) SWIG_fail;
9154 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9155 SWIG_POINTER_EXCEPTION | 0)) == -1)
9156 SWIG_fail;
9157 if (arg3 == NULL) {
9158 PyErr_SetString(PyExc_TypeError,"null reference");
9159 SWIG_fail;
9160 }
9161 {
9162 PyThreadState* __tstate = wxPyBeginAllowThreads();
9163 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9164
9165 wxPyEndAllowThreads(__tstate);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 }
9168 {
9169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9170 }
9171 return resultobj;
9172 fail:
9173 return NULL;
9174 }
9175
9176
9177 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9178 PyObject *resultobj;
9179 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9180 wxTextAttr *arg2 = 0 ;
9181 bool result;
9182 PyObject * obj0 = 0 ;
9183 PyObject * obj1 = 0 ;
9184 char *kwnames[] = {
9185 (char *) "self",(char *) "style", NULL
9186 };
9187
9188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9191 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9192 SWIG_POINTER_EXCEPTION | 0)) == -1)
9193 SWIG_fail;
9194 if (arg2 == NULL) {
9195 PyErr_SetString(PyExc_TypeError,"null reference");
9196 SWIG_fail;
9197 }
9198 {
9199 PyThreadState* __tstate = wxPyBeginAllowThreads();
9200 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9201
9202 wxPyEndAllowThreads(__tstate);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 {
9206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9207 }
9208 return resultobj;
9209 fail:
9210 return NULL;
9211 }
9212
9213
9214 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9215 PyObject *resultobj;
9216 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9217 wxTextAttr *result;
9218 PyObject * obj0 = 0 ;
9219 char *kwnames[] = {
9220 (char *) "self", NULL
9221 };
9222
9223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9226 {
9227 PyThreadState* __tstate = wxPyBeginAllowThreads();
9228 {
9229 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9230 result = (wxTextAttr *) &_result_ref;
9231 }
9232
9233 wxPyEndAllowThreads(__tstate);
9234 if (PyErr_Occurred()) SWIG_fail;
9235 }
9236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9237 return resultobj;
9238 fail:
9239 return NULL;
9240 }
9241
9242
9243 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9244 PyObject *resultobj;
9245 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9246 long arg2 ;
9247 long arg3 ;
9248 long result;
9249 PyObject * obj0 = 0 ;
9250 PyObject * obj1 = 0 ;
9251 PyObject * obj2 = 0 ;
9252 char *kwnames[] = {
9253 (char *) "self",(char *) "x",(char *) "y", NULL
9254 };
9255
9256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9259 arg2 = (long)SWIG_As_long(obj1);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 arg3 = (long)SWIG_As_long(obj2);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9266
9267 wxPyEndAllowThreads(__tstate);
9268 if (PyErr_Occurred()) SWIG_fail;
9269 }
9270 resultobj = SWIG_From_long((long)result);
9271 return resultobj;
9272 fail:
9273 return NULL;
9274 }
9275
9276
9277 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) {
9278 PyObject *resultobj;
9279 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9280 long arg2 ;
9281 long *arg3 = (long *) 0 ;
9282 long *arg4 = (long *) 0 ;
9283 long temp3 ;
9284 int res3 = 0 ;
9285 long temp4 ;
9286 int res4 = 0 ;
9287 PyObject * obj0 = 0 ;
9288 PyObject * obj1 = 0 ;
9289 char *kwnames[] = {
9290 (char *) "self",(char *) "pos", NULL
9291 };
9292
9293 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9294 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9298 arg2 = (long)SWIG_As_long(obj1);
9299 if (PyErr_Occurred()) SWIG_fail;
9300 {
9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
9302 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9303
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 Py_INCREF(Py_None); resultobj = Py_None;
9308 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9309 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9310 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9311 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9312 return resultobj;
9313 fail:
9314 return NULL;
9315 }
9316
9317
9318 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9319 PyObject *resultobj;
9320 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9321 long arg2 ;
9322 PyObject * obj0 = 0 ;
9323 PyObject * obj1 = 0 ;
9324 char *kwnames[] = {
9325 (char *) "self",(char *) "pos", NULL
9326 };
9327
9328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9331 arg2 = (long)SWIG_As_long(obj1);
9332 if (PyErr_Occurred()) SWIG_fail;
9333 {
9334 PyThreadState* __tstate = wxPyBeginAllowThreads();
9335 (arg1)->ShowPosition(arg2);
9336
9337 wxPyEndAllowThreads(__tstate);
9338 if (PyErr_Occurred()) SWIG_fail;
9339 }
9340 Py_INCREF(Py_None); resultobj = Py_None;
9341 return resultobj;
9342 fail:
9343 return NULL;
9344 }
9345
9346
9347 static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
9348 PyObject *resultobj;
9349 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9350 wxPoint *arg2 = 0 ;
9351 long *arg3 = (long *) 0 ;
9352 long *arg4 = (long *) 0 ;
9353 int result;
9354 wxPoint temp2 ;
9355 long temp3 ;
9356 int res3 = 0 ;
9357 long temp4 ;
9358 int res4 = 0 ;
9359 PyObject * obj0 = 0 ;
9360 PyObject * obj1 = 0 ;
9361 char *kwnames[] = {
9362 (char *) "self",(char *) "pt", NULL
9363 };
9364
9365 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9366 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9370 {
9371 arg2 = &temp2;
9372 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9373 }
9374 {
9375 PyThreadState* __tstate = wxPyBeginAllowThreads();
9376 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9377
9378 wxPyEndAllowThreads(__tstate);
9379 if (PyErr_Occurred()) SWIG_fail;
9380 }
9381 resultobj = SWIG_From_int((int)result);
9382 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9383 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9384 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9385 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9386 return resultobj;
9387 fail:
9388 return NULL;
9389 }
9390
9391
9392 static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) {
9393 PyObject *resultobj;
9394 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9395 wxPoint *arg2 = 0 ;
9396 long *arg3 = (long *) 0 ;
9397 int result;
9398 wxPoint temp2 ;
9399 long temp3 ;
9400 int res3 = 0 ;
9401 PyObject * obj0 = 0 ;
9402 PyObject * obj1 = 0 ;
9403 char *kwnames[] = {
9404 (char *) "self",(char *) "pt", NULL
9405 };
9406
9407 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail;
9409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9411 {
9412 arg2 = &temp2;
9413 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9414 }
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
9417 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
9418
9419 wxPyEndAllowThreads(__tstate);
9420 if (PyErr_Occurred()) SWIG_fail;
9421 }
9422 resultobj = SWIG_From_int((int)result);
9423 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9424 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9425 return resultobj;
9426 fail:
9427 return NULL;
9428 }
9429
9430
9431 static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
9432 PyObject *resultobj;
9433 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9434 PyObject * obj0 = 0 ;
9435 char *kwnames[] = {
9436 (char *) "self", NULL
9437 };
9438
9439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9442 {
9443 PyThreadState* __tstate = wxPyBeginAllowThreads();
9444 (arg1)->Copy();
9445
9446 wxPyEndAllowThreads(__tstate);
9447 if (PyErr_Occurred()) SWIG_fail;
9448 }
9449 Py_INCREF(Py_None); resultobj = Py_None;
9450 return resultobj;
9451 fail:
9452 return NULL;
9453 }
9454
9455
9456 static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
9457 PyObject *resultobj;
9458 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9459 PyObject * obj0 = 0 ;
9460 char *kwnames[] = {
9461 (char *) "self", NULL
9462 };
9463
9464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9467 {
9468 PyThreadState* __tstate = wxPyBeginAllowThreads();
9469 (arg1)->Cut();
9470
9471 wxPyEndAllowThreads(__tstate);
9472 if (PyErr_Occurred()) SWIG_fail;
9473 }
9474 Py_INCREF(Py_None); resultobj = Py_None;
9475 return resultobj;
9476 fail:
9477 return NULL;
9478 }
9479
9480
9481 static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
9482 PyObject *resultobj;
9483 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9484 PyObject * obj0 = 0 ;
9485 char *kwnames[] = {
9486 (char *) "self", NULL
9487 };
9488
9489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9492 {
9493 PyThreadState* __tstate = wxPyBeginAllowThreads();
9494 (arg1)->Paste();
9495
9496 wxPyEndAllowThreads(__tstate);
9497 if (PyErr_Occurred()) SWIG_fail;
9498 }
9499 Py_INCREF(Py_None); resultobj = Py_None;
9500 return resultobj;
9501 fail:
9502 return NULL;
9503 }
9504
9505
9506 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
9507 PyObject *resultobj;
9508 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9509 bool result;
9510 PyObject * obj0 = 0 ;
9511 char *kwnames[] = {
9512 (char *) "self", NULL
9513 };
9514
9515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9518 {
9519 PyThreadState* __tstate = wxPyBeginAllowThreads();
9520 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9521
9522 wxPyEndAllowThreads(__tstate);
9523 if (PyErr_Occurred()) SWIG_fail;
9524 }
9525 {
9526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9527 }
9528 return resultobj;
9529 fail:
9530 return NULL;
9531 }
9532
9533
9534 static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
9535 PyObject *resultobj;
9536 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9537 bool result;
9538 PyObject * obj0 = 0 ;
9539 char *kwnames[] = {
9540 (char *) "self", NULL
9541 };
9542
9543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9546 {
9547 PyThreadState* __tstate = wxPyBeginAllowThreads();
9548 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9549
9550 wxPyEndAllowThreads(__tstate);
9551 if (PyErr_Occurred()) SWIG_fail;
9552 }
9553 {
9554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9555 }
9556 return resultobj;
9557 fail:
9558 return NULL;
9559 }
9560
9561
9562 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
9563 PyObject *resultobj;
9564 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9565 bool result;
9566 PyObject * obj0 = 0 ;
9567 char *kwnames[] = {
9568 (char *) "self", NULL
9569 };
9570
9571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9574 {
9575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9576 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9577
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 {
9582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9583 }
9584 return resultobj;
9585 fail:
9586 return NULL;
9587 }
9588
9589
9590 static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
9591 PyObject *resultobj;
9592 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9593 PyObject * obj0 = 0 ;
9594 char *kwnames[] = {
9595 (char *) "self", NULL
9596 };
9597
9598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",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 (arg1)->Undo();
9604
9605 wxPyEndAllowThreads(__tstate);
9606 if (PyErr_Occurred()) SWIG_fail;
9607 }
9608 Py_INCREF(Py_None); resultobj = Py_None;
9609 return resultobj;
9610 fail:
9611 return NULL;
9612 }
9613
9614
9615 static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
9616 PyObject *resultobj;
9617 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9618 PyObject * obj0 = 0 ;
9619 char *kwnames[] = {
9620 (char *) "self", NULL
9621 };
9622
9623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9626 {
9627 PyThreadState* __tstate = wxPyBeginAllowThreads();
9628 (arg1)->Redo();
9629
9630 wxPyEndAllowThreads(__tstate);
9631 if (PyErr_Occurred()) SWIG_fail;
9632 }
9633 Py_INCREF(Py_None); resultobj = Py_None;
9634 return resultobj;
9635 fail:
9636 return NULL;
9637 }
9638
9639
9640 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
9641 PyObject *resultobj;
9642 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9643 bool result;
9644 PyObject * obj0 = 0 ;
9645 char *kwnames[] = {
9646 (char *) "self", NULL
9647 };
9648
9649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9652 {
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9655
9656 wxPyEndAllowThreads(__tstate);
9657 if (PyErr_Occurred()) SWIG_fail;
9658 }
9659 {
9660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9661 }
9662 return resultobj;
9663 fail:
9664 return NULL;
9665 }
9666
9667
9668 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj;
9670 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9671 bool result;
9672 PyObject * obj0 = 0 ;
9673 char *kwnames[] = {
9674 (char *) "self", NULL
9675 };
9676
9677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9680 {
9681 PyThreadState* __tstate = wxPyBeginAllowThreads();
9682 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9683
9684 wxPyEndAllowThreads(__tstate);
9685 if (PyErr_Occurred()) SWIG_fail;
9686 }
9687 {
9688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9689 }
9690 return resultobj;
9691 fail:
9692 return NULL;
9693 }
9694
9695
9696 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9697 PyObject *resultobj;
9698 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9699 long arg2 ;
9700 PyObject * obj0 = 0 ;
9701 PyObject * obj1 = 0 ;
9702 char *kwnames[] = {
9703 (char *) "self",(char *) "pos", NULL
9704 };
9705
9706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9709 arg2 = (long)SWIG_As_long(obj1);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 {
9712 PyThreadState* __tstate = wxPyBeginAllowThreads();
9713 (arg1)->SetInsertionPoint(arg2);
9714
9715 wxPyEndAllowThreads(__tstate);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 }
9718 Py_INCREF(Py_None); resultobj = Py_None;
9719 return resultobj;
9720 fail:
9721 return NULL;
9722 }
9723
9724
9725 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
9726 PyObject *resultobj;
9727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9728 PyObject * obj0 = 0 ;
9729 char *kwnames[] = {
9730 (char *) "self", NULL
9731 };
9732
9733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9736 {
9737 PyThreadState* __tstate = wxPyBeginAllowThreads();
9738 (arg1)->SetInsertionPointEnd();
9739
9740 wxPyEndAllowThreads(__tstate);
9741 if (PyErr_Occurred()) SWIG_fail;
9742 }
9743 Py_INCREF(Py_None); resultobj = Py_None;
9744 return resultobj;
9745 fail:
9746 return NULL;
9747 }
9748
9749
9750 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9751 PyObject *resultobj;
9752 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9753 long result;
9754 PyObject * obj0 = 0 ;
9755 char *kwnames[] = {
9756 (char *) "self", NULL
9757 };
9758
9759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9765
9766 wxPyEndAllowThreads(__tstate);
9767 if (PyErr_Occurred()) SWIG_fail;
9768 }
9769 resultobj = SWIG_From_long((long)result);
9770 return resultobj;
9771 fail:
9772 return NULL;
9773 }
9774
9775
9776 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9777 PyObject *resultobj;
9778 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9779 long result;
9780 PyObject * obj0 = 0 ;
9781 char *kwnames[] = {
9782 (char *) "self", NULL
9783 };
9784
9785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9788 {
9789 PyThreadState* __tstate = wxPyBeginAllowThreads();
9790 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9791
9792 wxPyEndAllowThreads(__tstate);
9793 if (PyErr_Occurred()) SWIG_fail;
9794 }
9795 resultobj = SWIG_From_long((long)result);
9796 return resultobj;
9797 fail:
9798 return NULL;
9799 }
9800
9801
9802 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj;
9804 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9805 long arg2 ;
9806 long arg3 ;
9807 PyObject * obj0 = 0 ;
9808 PyObject * obj1 = 0 ;
9809 PyObject * obj2 = 0 ;
9810 char *kwnames[] = {
9811 (char *) "self",(char *) "from",(char *) "to", NULL
9812 };
9813
9814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9817 arg2 = (long)SWIG_As_long(obj1);
9818 if (PyErr_Occurred()) SWIG_fail;
9819 arg3 = (long)SWIG_As_long(obj2);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 {
9822 PyThreadState* __tstate = wxPyBeginAllowThreads();
9823 (arg1)->SetSelection(arg2,arg3);
9824
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 Py_INCREF(Py_None); resultobj = Py_None;
9829 return resultobj;
9830 fail:
9831 return NULL;
9832 }
9833
9834
9835 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj;
9837 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9838 PyObject * obj0 = 0 ;
9839 char *kwnames[] = {
9840 (char *) "self", NULL
9841 };
9842
9843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9846 {
9847 PyThreadState* __tstate = wxPyBeginAllowThreads();
9848 (arg1)->SelectAll();
9849
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 Py_INCREF(Py_None); resultobj = Py_None;
9854 return resultobj;
9855 fail:
9856 return NULL;
9857 }
9858
9859
9860 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj;
9862 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9863 bool arg2 ;
9864 PyObject * obj0 = 0 ;
9865 PyObject * obj1 = 0 ;
9866 char *kwnames[] = {
9867 (char *) "self",(char *) "editable", NULL
9868 };
9869
9870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9873 arg2 = (bool)SWIG_As_bool(obj1);
9874 if (PyErr_Occurred()) SWIG_fail;
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 (arg1)->SetEditable(arg2);
9878
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 Py_INCREF(Py_None); resultobj = Py_None;
9883 return resultobj;
9884 fail:
9885 return NULL;
9886 }
9887
9888
9889 static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) {
9890 PyObject *resultobj;
9891 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9892 wxString *arg2 = 0 ;
9893 bool temp2 = False ;
9894 PyObject * obj0 = 0 ;
9895 PyObject * obj1 = 0 ;
9896 char *kwnames[] = {
9897 (char *) "self",(char *) "text", NULL
9898 };
9899
9900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9903 {
9904 arg2 = wxString_in_helper(obj1);
9905 if (arg2 == NULL) SWIG_fail;
9906 temp2 = True;
9907 }
9908 {
9909 PyThreadState* __tstate = wxPyBeginAllowThreads();
9910 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9911
9912 wxPyEndAllowThreads(__tstate);
9913 if (PyErr_Occurred()) SWIG_fail;
9914 }
9915 Py_INCREF(Py_None); resultobj = Py_None;
9916 {
9917 if (temp2)
9918 delete arg2;
9919 }
9920 return resultobj;
9921 fail:
9922 {
9923 if (temp2)
9924 delete arg2;
9925 }
9926 return NULL;
9927 }
9928
9929
9930 static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
9931 PyObject *resultobj;
9932 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9933 long arg2 ;
9934 long arg3 ;
9935 wxString result;
9936 PyObject * obj0 = 0 ;
9937 PyObject * obj1 = 0 ;
9938 PyObject * obj2 = 0 ;
9939 char *kwnames[] = {
9940 (char *) "self",(char *) "from",(char *) "to", NULL
9941 };
9942
9943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9946 arg2 = (long)SWIG_As_long(obj1);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 arg3 = (long)SWIG_As_long(obj2);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9953
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 {
9958 #if wxUSE_UNICODE
9959 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9960 #else
9961 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9962 #endif
9963 }
9964 return resultobj;
9965 fail:
9966 return NULL;
9967 }
9968
9969
9970 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
9971 PyObject *resultobj;
9972 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
9973 wxVisualAttributes result;
9974 PyObject * obj0 = 0 ;
9975 char *kwnames[] = {
9976 (char *) "variant", NULL
9977 };
9978
9979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
9980 if (obj0) {
9981 arg1 = (int)SWIG_As_int(obj0);
9982 if (PyErr_Occurred()) SWIG_fail;
9983 }
9984 {
9985 if (!wxPyCheckForApp()) SWIG_fail;
9986 PyThreadState* __tstate = wxPyBeginAllowThreads();
9987 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
9988
9989 wxPyEndAllowThreads(__tstate);
9990 if (PyErr_Occurred()) SWIG_fail;
9991 }
9992 {
9993 wxVisualAttributes * resultptr;
9994 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
9995 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
9996 }
9997 return resultobj;
9998 fail:
9999 return NULL;
10000 }
10001
10002
10003 static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) {
10004 PyObject *obj;
10005 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10006 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
10007 Py_INCREF(obj);
10008 return Py_BuildValue((char *)"");
10009 }
10010 static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10011 PyObject *resultobj;
10012 int arg1 ;
10013 wxMouseEvent *arg2 = 0 ;
10014 long arg3 ;
10015 long arg4 ;
10016 wxTextUrlEvent *result;
10017 PyObject * obj0 = 0 ;
10018 PyObject * obj1 = 0 ;
10019 PyObject * obj2 = 0 ;
10020 PyObject * obj3 = 0 ;
10021 char *kwnames[] = {
10022 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
10023 };
10024
10025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10026 arg1 = (int)SWIG_As_int(obj0);
10027 if (PyErr_Occurred()) SWIG_fail;
10028 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
10029 SWIG_POINTER_EXCEPTION | 0)) == -1)
10030 SWIG_fail;
10031 if (arg2 == NULL) {
10032 PyErr_SetString(PyExc_TypeError,"null reference");
10033 SWIG_fail;
10034 }
10035 arg3 = (long)SWIG_As_long(obj2);
10036 if (PyErr_Occurred()) SWIG_fail;
10037 arg4 = (long)SWIG_As_long(obj3);
10038 if (PyErr_Occurred()) SWIG_fail;
10039 {
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
10042
10043 wxPyEndAllowThreads(__tstate);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
10047 return resultobj;
10048 fail:
10049 return NULL;
10050 }
10051
10052
10053 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10054 PyObject *resultobj;
10055 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10056 wxMouseEvent *result;
10057 PyObject * obj0 = 0 ;
10058 char *kwnames[] = {
10059 (char *) "self", NULL
10060 };
10061
10062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
10063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10065 {
10066 PyThreadState* __tstate = wxPyBeginAllowThreads();
10067 {
10068 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
10069 result = (wxMouseEvent *) &_result_ref;
10070 }
10071
10072 wxPyEndAllowThreads(__tstate);
10073 if (PyErr_Occurred()) SWIG_fail;
10074 }
10075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
10076 return resultobj;
10077 fail:
10078 return NULL;
10079 }
10080
10081
10082 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj;
10084 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10085 long result;
10086 PyObject * obj0 = 0 ;
10087 char *kwnames[] = {
10088 (char *) "self", NULL
10089 };
10090
10091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
10092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10094 {
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
10097
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
10101 resultobj = SWIG_From_long((long)result);
10102 return resultobj;
10103 fail:
10104 return NULL;
10105 }
10106
10107
10108 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj;
10110 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10111 long result;
10112 PyObject * obj0 = 0 ;
10113 char *kwnames[] = {
10114 (char *) "self", NULL
10115 };
10116
10117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
10118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10120 {
10121 PyThreadState* __tstate = wxPyBeginAllowThreads();
10122 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
10123
10124 wxPyEndAllowThreads(__tstate);
10125 if (PyErr_Occurred()) SWIG_fail;
10126 }
10127 resultobj = SWIG_From_long((long)result);
10128 return resultobj;
10129 fail:
10130 return NULL;
10131 }
10132
10133
10134 static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) {
10135 PyObject *obj;
10136 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10137 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10138 Py_INCREF(obj);
10139 return Py_BuildValue((char *)"");
10140 }
10141 static int _wrap_ScrollBarNameStr_set(PyObject *) {
10142 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10143 return 1;
10144 }
10145
10146
10147 static PyObject *_wrap_ScrollBarNameStr_get() {
10148 PyObject *pyobj;
10149
10150 {
10151 #if wxUSE_UNICODE
10152 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10153 #else
10154 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10155 #endif
10156 }
10157 return pyobj;
10158 }
10159
10160
10161 static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10162 PyObject *resultobj;
10163 wxWindow *arg1 = (wxWindow *) 0 ;
10164 int arg2 = (int) -1 ;
10165 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10166 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10167 wxSize const &arg4_defvalue = wxDefaultSize ;
10168 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10169 long arg5 = (long) wxSB_HORIZONTAL ;
10170 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10171 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10172 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10173 wxString *arg7 = (wxString *) &arg7_defvalue ;
10174 wxScrollBar *result;
10175 wxPoint temp3 ;
10176 wxSize temp4 ;
10177 bool temp7 = False ;
10178 PyObject * obj0 = 0 ;
10179 PyObject * obj1 = 0 ;
10180 PyObject * obj2 = 0 ;
10181 PyObject * obj3 = 0 ;
10182 PyObject * obj4 = 0 ;
10183 PyObject * obj5 = 0 ;
10184 PyObject * obj6 = 0 ;
10185 char *kwnames[] = {
10186 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10187 };
10188
10189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10192 if (obj1) {
10193 arg2 = (int)SWIG_As_int(obj1);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 }
10196 if (obj2) {
10197 {
10198 arg3 = &temp3;
10199 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10200 }
10201 }
10202 if (obj3) {
10203 {
10204 arg4 = &temp4;
10205 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10206 }
10207 }
10208 if (obj4) {
10209 arg5 = (long)SWIG_As_long(obj4);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 if (obj5) {
10213 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10214 SWIG_POINTER_EXCEPTION | 0)) == -1)
10215 SWIG_fail;
10216 if (arg6 == NULL) {
10217 PyErr_SetString(PyExc_TypeError,"null reference");
10218 SWIG_fail;
10219 }
10220 }
10221 if (obj6) {
10222 {
10223 arg7 = wxString_in_helper(obj6);
10224 if (arg7 == NULL) SWIG_fail;
10225 temp7 = True;
10226 }
10227 }
10228 {
10229 if (!wxPyCheckForApp()) SWIG_fail;
10230 PyThreadState* __tstate = wxPyBeginAllowThreads();
10231 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10232
10233 wxPyEndAllowThreads(__tstate);
10234 if (PyErr_Occurred()) SWIG_fail;
10235 }
10236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10237 {
10238 if (temp7)
10239 delete arg7;
10240 }
10241 return resultobj;
10242 fail:
10243 {
10244 if (temp7)
10245 delete arg7;
10246 }
10247 return NULL;
10248 }
10249
10250
10251 static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10252 PyObject *resultobj;
10253 wxScrollBar *result;
10254 char *kwnames[] = {
10255 NULL
10256 };
10257
10258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10259 {
10260 if (!wxPyCheckForApp()) SWIG_fail;
10261 PyThreadState* __tstate = wxPyBeginAllowThreads();
10262 result = (wxScrollBar *)new wxScrollBar();
10263
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10268 return resultobj;
10269 fail:
10270 return NULL;
10271 }
10272
10273
10274 static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10275 PyObject *resultobj;
10276 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10277 wxWindow *arg2 = (wxWindow *) 0 ;
10278 int arg3 = (int) -1 ;
10279 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10280 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10281 wxSize const &arg5_defvalue = wxDefaultSize ;
10282 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10283 long arg6 = (long) wxSB_HORIZONTAL ;
10284 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10285 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10286 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10287 wxString *arg8 = (wxString *) &arg8_defvalue ;
10288 bool result;
10289 wxPoint temp4 ;
10290 wxSize temp5 ;
10291 bool temp8 = False ;
10292 PyObject * obj0 = 0 ;
10293 PyObject * obj1 = 0 ;
10294 PyObject * obj2 = 0 ;
10295 PyObject * obj3 = 0 ;
10296 PyObject * obj4 = 0 ;
10297 PyObject * obj5 = 0 ;
10298 PyObject * obj6 = 0 ;
10299 PyObject * obj7 = 0 ;
10300 char *kwnames[] = {
10301 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10302 };
10303
10304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10309 if (obj2) {
10310 arg3 = (int)SWIG_As_int(obj2);
10311 if (PyErr_Occurred()) SWIG_fail;
10312 }
10313 if (obj3) {
10314 {
10315 arg4 = &temp4;
10316 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10317 }
10318 }
10319 if (obj4) {
10320 {
10321 arg5 = &temp5;
10322 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10323 }
10324 }
10325 if (obj5) {
10326 arg6 = (long)SWIG_As_long(obj5);
10327 if (PyErr_Occurred()) SWIG_fail;
10328 }
10329 if (obj6) {
10330 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10331 SWIG_POINTER_EXCEPTION | 0)) == -1)
10332 SWIG_fail;
10333 if (arg7 == NULL) {
10334 PyErr_SetString(PyExc_TypeError,"null reference");
10335 SWIG_fail;
10336 }
10337 }
10338 if (obj7) {
10339 {
10340 arg8 = wxString_in_helper(obj7);
10341 if (arg8 == NULL) SWIG_fail;
10342 temp8 = True;
10343 }
10344 }
10345 {
10346 PyThreadState* __tstate = wxPyBeginAllowThreads();
10347 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10348
10349 wxPyEndAllowThreads(__tstate);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 {
10353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10354 }
10355 {
10356 if (temp8)
10357 delete arg8;
10358 }
10359 return resultobj;
10360 fail:
10361 {
10362 if (temp8)
10363 delete arg8;
10364 }
10365 return NULL;
10366 }
10367
10368
10369 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10370 PyObject *resultobj;
10371 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10372 int result;
10373 PyObject * obj0 = 0 ;
10374 char *kwnames[] = {
10375 (char *) "self", NULL
10376 };
10377
10378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10381 {
10382 PyThreadState* __tstate = wxPyBeginAllowThreads();
10383 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10384
10385 wxPyEndAllowThreads(__tstate);
10386 if (PyErr_Occurred()) SWIG_fail;
10387 }
10388 resultobj = SWIG_From_int((int)result);
10389 return resultobj;
10390 fail:
10391 return NULL;
10392 }
10393
10394
10395 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) {
10396 PyObject *resultobj;
10397 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10398 int result;
10399 PyObject * obj0 = 0 ;
10400 char *kwnames[] = {
10401 (char *) "self", NULL
10402 };
10403
10404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10407 {
10408 PyThreadState* __tstate = wxPyBeginAllowThreads();
10409 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10410
10411 wxPyEndAllowThreads(__tstate);
10412 if (PyErr_Occurred()) SWIG_fail;
10413 }
10414 resultobj = SWIG_From_int((int)result);
10415 return resultobj;
10416 fail:
10417 return NULL;
10418 }
10419
10420
10421 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
10422 PyObject *resultobj;
10423 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10424 int result;
10425 PyObject * obj0 = 0 ;
10426 char *kwnames[] = {
10427 (char *) "self", NULL
10428 };
10429
10430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10436
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_From_int((int)result);
10441 return resultobj;
10442 fail:
10443 return NULL;
10444 }
10445
10446
10447 static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10448 PyObject *resultobj;
10449 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10450 int result;
10451 PyObject * obj0 = 0 ;
10452 char *kwnames[] = {
10453 (char *) "self", NULL
10454 };
10455
10456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10459 {
10460 PyThreadState* __tstate = wxPyBeginAllowThreads();
10461 result = (int)((wxScrollBar const *)arg1)->GetRange();
10462
10463 wxPyEndAllowThreads(__tstate);
10464 if (PyErr_Occurred()) SWIG_fail;
10465 }
10466 resultobj = SWIG_From_int((int)result);
10467 return resultobj;
10468 fail:
10469 return NULL;
10470 }
10471
10472
10473 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
10474 PyObject *resultobj;
10475 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10476 bool result;
10477 PyObject * obj0 = 0 ;
10478 char *kwnames[] = {
10479 (char *) "self", NULL
10480 };
10481
10482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10488
10489 wxPyEndAllowThreads(__tstate);
10490 if (PyErr_Occurred()) SWIG_fail;
10491 }
10492 {
10493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10494 }
10495 return resultobj;
10496 fail:
10497 return NULL;
10498 }
10499
10500
10501 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10502 PyObject *resultobj;
10503 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10504 int arg2 ;
10505 PyObject * obj0 = 0 ;
10506 PyObject * obj1 = 0 ;
10507 char *kwnames[] = {
10508 (char *) "self",(char *) "viewStart", NULL
10509 };
10510
10511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10514 arg2 = (int)SWIG_As_int(obj1);
10515 if (PyErr_Occurred()) SWIG_fail;
10516 {
10517 PyThreadState* __tstate = wxPyBeginAllowThreads();
10518 (arg1)->SetThumbPosition(arg2);
10519
10520 wxPyEndAllowThreads(__tstate);
10521 if (PyErr_Occurred()) SWIG_fail;
10522 }
10523 Py_INCREF(Py_None); resultobj = Py_None;
10524 return resultobj;
10525 fail:
10526 return NULL;
10527 }
10528
10529
10530 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
10531 PyObject *resultobj;
10532 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10533 int arg2 ;
10534 int arg3 ;
10535 int arg4 ;
10536 int arg5 ;
10537 bool arg6 = (bool) True ;
10538 PyObject * obj0 = 0 ;
10539 PyObject * obj1 = 0 ;
10540 PyObject * obj2 = 0 ;
10541 PyObject * obj3 = 0 ;
10542 PyObject * obj4 = 0 ;
10543 PyObject * obj5 = 0 ;
10544 char *kwnames[] = {
10545 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10546 };
10547
10548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10551 arg2 = (int)SWIG_As_int(obj1);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 arg3 = (int)SWIG_As_int(obj2);
10554 if (PyErr_Occurred()) SWIG_fail;
10555 arg4 = (int)SWIG_As_int(obj3);
10556 if (PyErr_Occurred()) SWIG_fail;
10557 arg5 = (int)SWIG_As_int(obj4);
10558 if (PyErr_Occurred()) SWIG_fail;
10559 if (obj5) {
10560 arg6 = (bool)SWIG_As_bool(obj5);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 {
10564 PyThreadState* __tstate = wxPyBeginAllowThreads();
10565 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10566
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 Py_INCREF(Py_None); resultobj = Py_None;
10571 return resultobj;
10572 fail:
10573 return NULL;
10574 }
10575
10576
10577 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10578 PyObject *resultobj;
10579 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10580 wxVisualAttributes result;
10581 PyObject * obj0 = 0 ;
10582 char *kwnames[] = {
10583 (char *) "variant", NULL
10584 };
10585
10586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10587 if (obj0) {
10588 arg1 = (int)SWIG_As_int(obj0);
10589 if (PyErr_Occurred()) SWIG_fail;
10590 }
10591 {
10592 if (!wxPyCheckForApp()) SWIG_fail;
10593 PyThreadState* __tstate = wxPyBeginAllowThreads();
10594 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10595
10596 wxPyEndAllowThreads(__tstate);
10597 if (PyErr_Occurred()) SWIG_fail;
10598 }
10599 {
10600 wxVisualAttributes * resultptr;
10601 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10602 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10603 }
10604 return resultobj;
10605 fail:
10606 return NULL;
10607 }
10608
10609
10610 static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) {
10611 PyObject *obj;
10612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10613 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10614 Py_INCREF(obj);
10615 return Py_BuildValue((char *)"");
10616 }
10617 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
10618 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10619 return 1;
10620 }
10621
10622
10623 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10624 PyObject *pyobj;
10625
10626 {
10627 #if wxUSE_UNICODE
10628 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10629 #else
10630 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10631 #endif
10632 }
10633 return pyobj;
10634 }
10635
10636
10637 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
10638 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10639 return 1;
10640 }
10641
10642
10643 static PyObject *_wrap_SpinCtrlNameStr_get() {
10644 PyObject *pyobj;
10645
10646 {
10647 #if wxUSE_UNICODE
10648 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10649 #else
10650 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10651 #endif
10652 }
10653 return pyobj;
10654 }
10655
10656
10657 static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10658 PyObject *resultobj;
10659 wxWindow *arg1 = (wxWindow *) 0 ;
10660 int arg2 = (int) -1 ;
10661 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10662 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10663 wxSize const &arg4_defvalue = wxDefaultSize ;
10664 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10665 long arg5 = (long) wxSP_HORIZONTAL ;
10666 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10667 wxString *arg6 = (wxString *) &arg6_defvalue ;
10668 wxSpinButton *result;
10669 wxPoint temp3 ;
10670 wxSize temp4 ;
10671 bool temp6 = False ;
10672 PyObject * obj0 = 0 ;
10673 PyObject * obj1 = 0 ;
10674 PyObject * obj2 = 0 ;
10675 PyObject * obj3 = 0 ;
10676 PyObject * obj4 = 0 ;
10677 PyObject * obj5 = 0 ;
10678 char *kwnames[] = {
10679 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10680 };
10681
10682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10685 if (obj1) {
10686 arg2 = (int)SWIG_As_int(obj1);
10687 if (PyErr_Occurred()) SWIG_fail;
10688 }
10689 if (obj2) {
10690 {
10691 arg3 = &temp3;
10692 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10693 }
10694 }
10695 if (obj3) {
10696 {
10697 arg4 = &temp4;
10698 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10699 }
10700 }
10701 if (obj4) {
10702 arg5 = (long)SWIG_As_long(obj4);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 if (obj5) {
10706 {
10707 arg6 = wxString_in_helper(obj5);
10708 if (arg6 == NULL) SWIG_fail;
10709 temp6 = True;
10710 }
10711 }
10712 {
10713 if (!wxPyCheckForApp()) SWIG_fail;
10714 PyThreadState* __tstate = wxPyBeginAllowThreads();
10715 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10716
10717 wxPyEndAllowThreads(__tstate);
10718 if (PyErr_Occurred()) SWIG_fail;
10719 }
10720 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10721 {
10722 if (temp6)
10723 delete arg6;
10724 }
10725 return resultobj;
10726 fail:
10727 {
10728 if (temp6)
10729 delete arg6;
10730 }
10731 return NULL;
10732 }
10733
10734
10735 static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10736 PyObject *resultobj;
10737 wxSpinButton *result;
10738 char *kwnames[] = {
10739 NULL
10740 };
10741
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10743 {
10744 if (!wxPyCheckForApp()) SWIG_fail;
10745 PyThreadState* __tstate = wxPyBeginAllowThreads();
10746 result = (wxSpinButton *)new wxSpinButton();
10747
10748 wxPyEndAllowThreads(__tstate);
10749 if (PyErr_Occurred()) SWIG_fail;
10750 }
10751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10752 return resultobj;
10753 fail:
10754 return NULL;
10755 }
10756
10757
10758 static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10759 PyObject *resultobj;
10760 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10761 wxWindow *arg2 = (wxWindow *) 0 ;
10762 int arg3 = (int) -1 ;
10763 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10764 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10765 wxSize const &arg5_defvalue = wxDefaultSize ;
10766 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10767 long arg6 = (long) wxSP_HORIZONTAL ;
10768 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10769 wxString *arg7 = (wxString *) &arg7_defvalue ;
10770 bool result;
10771 wxPoint temp4 ;
10772 wxSize temp5 ;
10773 bool temp7 = False ;
10774 PyObject * obj0 = 0 ;
10775 PyObject * obj1 = 0 ;
10776 PyObject * obj2 = 0 ;
10777 PyObject * obj3 = 0 ;
10778 PyObject * obj4 = 0 ;
10779 PyObject * obj5 = 0 ;
10780 PyObject * obj6 = 0 ;
10781 char *kwnames[] = {
10782 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10783 };
10784
10785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10790 if (obj2) {
10791 arg3 = (int)SWIG_As_int(obj2);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 }
10794 if (obj3) {
10795 {
10796 arg4 = &temp4;
10797 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10798 }
10799 }
10800 if (obj4) {
10801 {
10802 arg5 = &temp5;
10803 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10804 }
10805 }
10806 if (obj5) {
10807 arg6 = (long)SWIG_As_long(obj5);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 if (obj6) {
10811 {
10812 arg7 = wxString_in_helper(obj6);
10813 if (arg7 == NULL) SWIG_fail;
10814 temp7 = True;
10815 }
10816 }
10817 {
10818 PyThreadState* __tstate = wxPyBeginAllowThreads();
10819 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10820
10821 wxPyEndAllowThreads(__tstate);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 {
10825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10826 }
10827 {
10828 if (temp7)
10829 delete arg7;
10830 }
10831 return resultobj;
10832 fail:
10833 {
10834 if (temp7)
10835 delete arg7;
10836 }
10837 return NULL;
10838 }
10839
10840
10841 static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj;
10843 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10844 int result;
10845 PyObject * obj0 = 0 ;
10846 char *kwnames[] = {
10847 (char *) "self", NULL
10848 };
10849
10850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10853 {
10854 PyThreadState* __tstate = wxPyBeginAllowThreads();
10855 result = (int)((wxSpinButton const *)arg1)->GetValue();
10856
10857 wxPyEndAllowThreads(__tstate);
10858 if (PyErr_Occurred()) SWIG_fail;
10859 }
10860 resultobj = SWIG_From_int((int)result);
10861 return resultobj;
10862 fail:
10863 return NULL;
10864 }
10865
10866
10867 static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10868 PyObject *resultobj;
10869 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10870 int result;
10871 PyObject * obj0 = 0 ;
10872 char *kwnames[] = {
10873 (char *) "self", NULL
10874 };
10875
10876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10879 {
10880 PyThreadState* __tstate = wxPyBeginAllowThreads();
10881 result = (int)((wxSpinButton const *)arg1)->GetMin();
10882
10883 wxPyEndAllowThreads(__tstate);
10884 if (PyErr_Occurred()) SWIG_fail;
10885 }
10886 resultobj = SWIG_From_int((int)result);
10887 return resultobj;
10888 fail:
10889 return NULL;
10890 }
10891
10892
10893 static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
10894 PyObject *resultobj;
10895 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10896 int result;
10897 PyObject * obj0 = 0 ;
10898 char *kwnames[] = {
10899 (char *) "self", NULL
10900 };
10901
10902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (int)((wxSpinButton const *)arg1)->GetMax();
10908
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 resultobj = SWIG_From_int((int)result);
10913 return resultobj;
10914 fail:
10915 return NULL;
10916 }
10917
10918
10919 static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10920 PyObject *resultobj;
10921 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10922 int arg2 ;
10923 PyObject * obj0 = 0 ;
10924 PyObject * obj1 = 0 ;
10925 char *kwnames[] = {
10926 (char *) "self",(char *) "val", NULL
10927 };
10928
10929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10932 arg2 = (int)SWIG_As_int(obj1);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 {
10935 PyThreadState* __tstate = wxPyBeginAllowThreads();
10936 (arg1)->SetValue(arg2);
10937
10938 wxPyEndAllowThreads(__tstate);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 Py_INCREF(Py_None); resultobj = Py_None;
10942 return resultobj;
10943 fail:
10944 return NULL;
10945 }
10946
10947
10948 static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10949 PyObject *resultobj;
10950 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10951 int arg2 ;
10952 PyObject * obj0 = 0 ;
10953 PyObject * obj1 = 0 ;
10954 char *kwnames[] = {
10955 (char *) "self",(char *) "minVal", NULL
10956 };
10957
10958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10961 arg2 = (int)SWIG_As_int(obj1);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 {
10964 PyThreadState* __tstate = wxPyBeginAllowThreads();
10965 (arg1)->SetMin(arg2);
10966
10967 wxPyEndAllowThreads(__tstate);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 }
10970 Py_INCREF(Py_None); resultobj = Py_None;
10971 return resultobj;
10972 fail:
10973 return NULL;
10974 }
10975
10976
10977 static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
10978 PyObject *resultobj;
10979 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10980 int arg2 ;
10981 PyObject * obj0 = 0 ;
10982 PyObject * obj1 = 0 ;
10983 char *kwnames[] = {
10984 (char *) "self",(char *) "maxVal", NULL
10985 };
10986
10987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10990 arg2 = (int)SWIG_As_int(obj1);
10991 if (PyErr_Occurred()) SWIG_fail;
10992 {
10993 PyThreadState* __tstate = wxPyBeginAllowThreads();
10994 (arg1)->SetMax(arg2);
10995
10996 wxPyEndAllowThreads(__tstate);
10997 if (PyErr_Occurred()) SWIG_fail;
10998 }
10999 Py_INCREF(Py_None); resultobj = Py_None;
11000 return resultobj;
11001 fail:
11002 return NULL;
11003 }
11004
11005
11006 static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11007 PyObject *resultobj;
11008 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11009 int arg2 ;
11010 int arg3 ;
11011 PyObject * obj0 = 0 ;
11012 PyObject * obj1 = 0 ;
11013 PyObject * obj2 = 0 ;
11014 char *kwnames[] = {
11015 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11016 };
11017
11018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) 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 arg3 = (int)SWIG_As_int(obj2);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 {
11026 PyThreadState* __tstate = wxPyBeginAllowThreads();
11027 (arg1)->SetRange(arg2,arg3);
11028
11029 wxPyEndAllowThreads(__tstate);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 Py_INCREF(Py_None); resultobj = Py_None;
11033 return resultobj;
11034 fail:
11035 return NULL;
11036 }
11037
11038
11039 static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
11040 PyObject *resultobj;
11041 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11042 bool result;
11043 PyObject * obj0 = 0 ;
11044 char *kwnames[] = {
11045 (char *) "self", NULL
11046 };
11047
11048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
11049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
11054
11055 wxPyEndAllowThreads(__tstate);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 {
11059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11060 }
11061 return resultobj;
11062 fail:
11063 return NULL;
11064 }
11065
11066
11067 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11068 PyObject *resultobj;
11069 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11070 wxVisualAttributes result;
11071 PyObject * obj0 = 0 ;
11072 char *kwnames[] = {
11073 (char *) "variant", NULL
11074 };
11075
11076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11077 if (obj0) {
11078 arg1 = (int)SWIG_As_int(obj0);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 {
11082 if (!wxPyCheckForApp()) SWIG_fail;
11083 PyThreadState* __tstate = wxPyBeginAllowThreads();
11084 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
11085
11086 wxPyEndAllowThreads(__tstate);
11087 if (PyErr_Occurred()) SWIG_fail;
11088 }
11089 {
11090 wxVisualAttributes * resultptr;
11091 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11092 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11093 }
11094 return resultobj;
11095 fail:
11096 return NULL;
11097 }
11098
11099
11100 static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) {
11101 PyObject *obj;
11102 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11103 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
11104 Py_INCREF(obj);
11105 return Py_BuildValue((char *)"");
11106 }
11107 static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11108 PyObject *resultobj;
11109 wxWindow *arg1 = (wxWindow *) 0 ;
11110 int arg2 = (int) -1 ;
11111 wxString const &arg3_defvalue = wxPyEmptyString ;
11112 wxString *arg3 = (wxString *) &arg3_defvalue ;
11113 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11114 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11115 wxSize const &arg5_defvalue = wxDefaultSize ;
11116 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11117 long arg6 = (long) wxSP_ARROW_KEYS ;
11118 int arg7 = (int) 0 ;
11119 int arg8 = (int) 100 ;
11120 int arg9 = (int) 0 ;
11121 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
11122 wxString *arg10 = (wxString *) &arg10_defvalue ;
11123 wxSpinCtrl *result;
11124 bool temp3 = False ;
11125 wxPoint temp4 ;
11126 wxSize temp5 ;
11127 bool temp10 = False ;
11128 PyObject * obj0 = 0 ;
11129 PyObject * obj1 = 0 ;
11130 PyObject * obj2 = 0 ;
11131 PyObject * obj3 = 0 ;
11132 PyObject * obj4 = 0 ;
11133 PyObject * obj5 = 0 ;
11134 PyObject * obj6 = 0 ;
11135 PyObject * obj7 = 0 ;
11136 PyObject * obj8 = 0 ;
11137 PyObject * obj9 = 0 ;
11138 char *kwnames[] = {
11139 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11140 };
11141
11142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11145 if (obj1) {
11146 arg2 = (int)SWIG_As_int(obj1);
11147 if (PyErr_Occurred()) SWIG_fail;
11148 }
11149 if (obj2) {
11150 {
11151 arg3 = wxString_in_helper(obj2);
11152 if (arg3 == NULL) SWIG_fail;
11153 temp3 = True;
11154 }
11155 }
11156 if (obj3) {
11157 {
11158 arg4 = &temp4;
11159 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11160 }
11161 }
11162 if (obj4) {
11163 {
11164 arg5 = &temp5;
11165 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11166 }
11167 }
11168 if (obj5) {
11169 arg6 = (long)SWIG_As_long(obj5);
11170 if (PyErr_Occurred()) SWIG_fail;
11171 }
11172 if (obj6) {
11173 arg7 = (int)SWIG_As_int(obj6);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 if (obj7) {
11177 arg8 = (int)SWIG_As_int(obj7);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 if (obj8) {
11181 arg9 = (int)SWIG_As_int(obj8);
11182 if (PyErr_Occurred()) SWIG_fail;
11183 }
11184 if (obj9) {
11185 {
11186 arg10 = wxString_in_helper(obj9);
11187 if (arg10 == NULL) SWIG_fail;
11188 temp10 = True;
11189 }
11190 }
11191 {
11192 if (!wxPyCheckForApp()) SWIG_fail;
11193 PyThreadState* __tstate = wxPyBeginAllowThreads();
11194 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11195
11196 wxPyEndAllowThreads(__tstate);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 }
11199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11200 {
11201 if (temp3)
11202 delete arg3;
11203 }
11204 {
11205 if (temp10)
11206 delete arg10;
11207 }
11208 return resultobj;
11209 fail:
11210 {
11211 if (temp3)
11212 delete arg3;
11213 }
11214 {
11215 if (temp10)
11216 delete arg10;
11217 }
11218 return NULL;
11219 }
11220
11221
11222 static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11223 PyObject *resultobj;
11224 wxSpinCtrl *result;
11225 char *kwnames[] = {
11226 NULL
11227 };
11228
11229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11230 {
11231 if (!wxPyCheckForApp()) SWIG_fail;
11232 PyThreadState* __tstate = wxPyBeginAllowThreads();
11233 result = (wxSpinCtrl *)new wxSpinCtrl();
11234
11235 wxPyEndAllowThreads(__tstate);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11239 return resultobj;
11240 fail:
11241 return NULL;
11242 }
11243
11244
11245 static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11246 PyObject *resultobj;
11247 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11248 wxWindow *arg2 = (wxWindow *) 0 ;
11249 int arg3 = (int) -1 ;
11250 wxString const &arg4_defvalue = wxPyEmptyString ;
11251 wxString *arg4 = (wxString *) &arg4_defvalue ;
11252 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11253 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11254 wxSize const &arg6_defvalue = wxDefaultSize ;
11255 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11256 long arg7 = (long) wxSP_ARROW_KEYS ;
11257 int arg8 = (int) 0 ;
11258 int arg9 = (int) 100 ;
11259 int arg10 = (int) 0 ;
11260 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11261 wxString *arg11 = (wxString *) &arg11_defvalue ;
11262 bool result;
11263 bool temp4 = False ;
11264 wxPoint temp5 ;
11265 wxSize temp6 ;
11266 bool temp11 = False ;
11267 PyObject * obj0 = 0 ;
11268 PyObject * obj1 = 0 ;
11269 PyObject * obj2 = 0 ;
11270 PyObject * obj3 = 0 ;
11271 PyObject * obj4 = 0 ;
11272 PyObject * obj5 = 0 ;
11273 PyObject * obj6 = 0 ;
11274 PyObject * obj7 = 0 ;
11275 PyObject * obj8 = 0 ;
11276 PyObject * obj9 = 0 ;
11277 PyObject * obj10 = 0 ;
11278 char *kwnames[] = {
11279 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11280 };
11281
11282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11285 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11287 if (obj2) {
11288 arg3 = (int)SWIG_As_int(obj2);
11289 if (PyErr_Occurred()) SWIG_fail;
11290 }
11291 if (obj3) {
11292 {
11293 arg4 = wxString_in_helper(obj3);
11294 if (arg4 == NULL) SWIG_fail;
11295 temp4 = True;
11296 }
11297 }
11298 if (obj4) {
11299 {
11300 arg5 = &temp5;
11301 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11302 }
11303 }
11304 if (obj5) {
11305 {
11306 arg6 = &temp6;
11307 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11308 }
11309 }
11310 if (obj6) {
11311 arg7 = (long)SWIG_As_long(obj6);
11312 if (PyErr_Occurred()) SWIG_fail;
11313 }
11314 if (obj7) {
11315 arg8 = (int)SWIG_As_int(obj7);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 }
11318 if (obj8) {
11319 arg9 = (int)SWIG_As_int(obj8);
11320 if (PyErr_Occurred()) SWIG_fail;
11321 }
11322 if (obj9) {
11323 arg10 = (int)SWIG_As_int(obj9);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 }
11326 if (obj10) {
11327 {
11328 arg11 = wxString_in_helper(obj10);
11329 if (arg11 == NULL) SWIG_fail;
11330 temp11 = True;
11331 }
11332 }
11333 {
11334 PyThreadState* __tstate = wxPyBeginAllowThreads();
11335 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11336
11337 wxPyEndAllowThreads(__tstate);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 }
11340 {
11341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11342 }
11343 {
11344 if (temp4)
11345 delete arg4;
11346 }
11347 {
11348 if (temp11)
11349 delete arg11;
11350 }
11351 return resultobj;
11352 fail:
11353 {
11354 if (temp4)
11355 delete arg4;
11356 }
11357 {
11358 if (temp11)
11359 delete arg11;
11360 }
11361 return NULL;
11362 }
11363
11364
11365 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11366 PyObject *resultobj;
11367 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11368 int result;
11369 PyObject * obj0 = 0 ;
11370 char *kwnames[] = {
11371 (char *) "self", NULL
11372 };
11373
11374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11377 {
11378 PyThreadState* __tstate = wxPyBeginAllowThreads();
11379 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11380
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 resultobj = SWIG_From_int((int)result);
11385 return resultobj;
11386 fail:
11387 return NULL;
11388 }
11389
11390
11391 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11392 PyObject *resultobj;
11393 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11394 int arg2 ;
11395 PyObject * obj0 = 0 ;
11396 PyObject * obj1 = 0 ;
11397 char *kwnames[] = {
11398 (char *) "self",(char *) "value", NULL
11399 };
11400
11401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11404 arg2 = (int)SWIG_As_int(obj1);
11405 if (PyErr_Occurred()) SWIG_fail;
11406 {
11407 PyThreadState* __tstate = wxPyBeginAllowThreads();
11408 (arg1)->SetValue(arg2);
11409
11410 wxPyEndAllowThreads(__tstate);
11411 if (PyErr_Occurred()) SWIG_fail;
11412 }
11413 Py_INCREF(Py_None); resultobj = Py_None;
11414 return resultobj;
11415 fail:
11416 return NULL;
11417 }
11418
11419
11420 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) {
11421 PyObject *resultobj;
11422 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11423 wxString *arg2 = 0 ;
11424 bool temp2 = False ;
11425 PyObject * obj0 = 0 ;
11426 PyObject * obj1 = 0 ;
11427 char *kwnames[] = {
11428 (char *) "self",(char *) "text", NULL
11429 };
11430
11431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11434 {
11435 arg2 = wxString_in_helper(obj1);
11436 if (arg2 == NULL) SWIG_fail;
11437 temp2 = True;
11438 }
11439 {
11440 PyThreadState* __tstate = wxPyBeginAllowThreads();
11441 (arg1)->SetValue((wxString const &)*arg2);
11442
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 Py_INCREF(Py_None); resultobj = Py_None;
11447 {
11448 if (temp2)
11449 delete arg2;
11450 }
11451 return resultobj;
11452 fail:
11453 {
11454 if (temp2)
11455 delete arg2;
11456 }
11457 return NULL;
11458 }
11459
11460
11461 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11462 PyObject *resultobj;
11463 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11464 int arg2 ;
11465 int arg3 ;
11466 PyObject * obj0 = 0 ;
11467 PyObject * obj1 = 0 ;
11468 PyObject * obj2 = 0 ;
11469 char *kwnames[] = {
11470 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11471 };
11472
11473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11476 arg2 = (int)SWIG_As_int(obj1);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 arg3 = (int)SWIG_As_int(obj2);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 {
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 (arg1)->SetRange(arg2,arg3);
11483
11484 wxPyEndAllowThreads(__tstate);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 Py_INCREF(Py_None); resultobj = Py_None;
11488 return resultobj;
11489 fail:
11490 return NULL;
11491 }
11492
11493
11494 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11495 PyObject *resultobj;
11496 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11497 int result;
11498 PyObject * obj0 = 0 ;
11499 char *kwnames[] = {
11500 (char *) "self", NULL
11501 };
11502
11503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11506 {
11507 PyThreadState* __tstate = wxPyBeginAllowThreads();
11508 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11509
11510 wxPyEndAllowThreads(__tstate);
11511 if (PyErr_Occurred()) SWIG_fail;
11512 }
11513 resultobj = SWIG_From_int((int)result);
11514 return resultobj;
11515 fail:
11516 return NULL;
11517 }
11518
11519
11520 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11521 PyObject *resultobj;
11522 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11523 int result;
11524 PyObject * obj0 = 0 ;
11525 char *kwnames[] = {
11526 (char *) "self", NULL
11527 };
11528
11529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11532 {
11533 PyThreadState* __tstate = wxPyBeginAllowThreads();
11534 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11535
11536 wxPyEndAllowThreads(__tstate);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 }
11539 resultobj = SWIG_From_int((int)result);
11540 return resultobj;
11541 fail:
11542 return NULL;
11543 }
11544
11545
11546 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11547 PyObject *resultobj;
11548 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11549 long arg2 ;
11550 long arg3 ;
11551 PyObject * obj0 = 0 ;
11552 PyObject * obj1 = 0 ;
11553 PyObject * obj2 = 0 ;
11554 char *kwnames[] = {
11555 (char *) "self",(char *) "from",(char *) "to", NULL
11556 };
11557
11558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11561 arg2 = (long)SWIG_As_long(obj1);
11562 if (PyErr_Occurred()) SWIG_fail;
11563 arg3 = (long)SWIG_As_long(obj2);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 {
11566 PyThreadState* __tstate = wxPyBeginAllowThreads();
11567 (arg1)->SetSelection(arg2,arg3);
11568
11569 wxPyEndAllowThreads(__tstate);
11570 if (PyErr_Occurred()) SWIG_fail;
11571 }
11572 Py_INCREF(Py_None); resultobj = Py_None;
11573 return resultobj;
11574 fail:
11575 return NULL;
11576 }
11577
11578
11579 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11580 PyObject *resultobj;
11581 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11582 wxVisualAttributes result;
11583 PyObject * obj0 = 0 ;
11584 char *kwnames[] = {
11585 (char *) "variant", NULL
11586 };
11587
11588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11589 if (obj0) {
11590 arg1 = (int)SWIG_As_int(obj0);
11591 if (PyErr_Occurred()) SWIG_fail;
11592 }
11593 {
11594 if (!wxPyCheckForApp()) SWIG_fail;
11595 PyThreadState* __tstate = wxPyBeginAllowThreads();
11596 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11597
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 {
11602 wxVisualAttributes * resultptr;
11603 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11604 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11605 }
11606 return resultobj;
11607 fail:
11608 return NULL;
11609 }
11610
11611
11612 static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) {
11613 PyObject *obj;
11614 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11615 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11616 Py_INCREF(obj);
11617 return Py_BuildValue((char *)"");
11618 }
11619 static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11620 PyObject *resultobj;
11621 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11622 int arg2 = (int) 0 ;
11623 wxSpinEvent *result;
11624 PyObject * obj0 = 0 ;
11625 PyObject * obj1 = 0 ;
11626 char *kwnames[] = {
11627 (char *) "commandType",(char *) "winid", NULL
11628 };
11629
11630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11631 if (obj0) {
11632 arg1 = (wxEventType)SWIG_As_int(obj0);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 }
11635 if (obj1) {
11636 arg2 = (int)SWIG_As_int(obj1);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 {
11640 PyThreadState* __tstate = wxPyBeginAllowThreads();
11641 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11642
11643 wxPyEndAllowThreads(__tstate);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11647 return resultobj;
11648 fail:
11649 return NULL;
11650 }
11651
11652
11653 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11654 PyObject *resultobj;
11655 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11656 int result;
11657 PyObject * obj0 = 0 ;
11658 char *kwnames[] = {
11659 (char *) "self", NULL
11660 };
11661
11662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11665 {
11666 PyThreadState* __tstate = wxPyBeginAllowThreads();
11667 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11668
11669 wxPyEndAllowThreads(__tstate);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 }
11672 resultobj = SWIG_From_int((int)result);
11673 return resultobj;
11674 fail:
11675 return NULL;
11676 }
11677
11678
11679 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11680 PyObject *resultobj;
11681 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11682 int arg2 ;
11683 PyObject * obj0 = 0 ;
11684 PyObject * obj1 = 0 ;
11685 char *kwnames[] = {
11686 (char *) "self",(char *) "pos", NULL
11687 };
11688
11689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11692 arg2 = (int)SWIG_As_int(obj1);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 {
11695 PyThreadState* __tstate = wxPyBeginAllowThreads();
11696 (arg1)->SetPosition(arg2);
11697
11698 wxPyEndAllowThreads(__tstate);
11699 if (PyErr_Occurred()) SWIG_fail;
11700 }
11701 Py_INCREF(Py_None); resultobj = Py_None;
11702 return resultobj;
11703 fail:
11704 return NULL;
11705 }
11706
11707
11708 static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) {
11709 PyObject *obj;
11710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11711 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11712 Py_INCREF(obj);
11713 return Py_BuildValue((char *)"");
11714 }
11715 static int _wrap_RadioBoxNameStr_set(PyObject *) {
11716 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11717 return 1;
11718 }
11719
11720
11721 static PyObject *_wrap_RadioBoxNameStr_get() {
11722 PyObject *pyobj;
11723
11724 {
11725 #if wxUSE_UNICODE
11726 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11727 #else
11728 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11729 #endif
11730 }
11731 return pyobj;
11732 }
11733
11734
11735 static int _wrap_RadioButtonNameStr_set(PyObject *) {
11736 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11737 return 1;
11738 }
11739
11740
11741 static PyObject *_wrap_RadioButtonNameStr_get() {
11742 PyObject *pyobj;
11743
11744 {
11745 #if wxUSE_UNICODE
11746 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11747 #else
11748 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11749 #endif
11750 }
11751 return pyobj;
11752 }
11753
11754
11755 static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11756 PyObject *resultobj;
11757 wxWindow *arg1 = (wxWindow *) 0 ;
11758 int arg2 = (int) -1 ;
11759 wxString const &arg3_defvalue = wxPyEmptyString ;
11760 wxString *arg3 = (wxString *) &arg3_defvalue ;
11761 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11762 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11763 wxSize const &arg5_defvalue = wxDefaultSize ;
11764 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11765 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11766 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11767 int arg7 = (int) 0 ;
11768 long arg8 = (long) wxRA_HORIZONTAL ;
11769 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11770 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11771 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11772 wxString *arg10 = (wxString *) &arg10_defvalue ;
11773 wxRadioBox *result;
11774 bool temp3 = False ;
11775 wxPoint temp4 ;
11776 wxSize temp5 ;
11777 bool temp6 = False ;
11778 bool temp10 = False ;
11779 PyObject * obj0 = 0 ;
11780 PyObject * obj1 = 0 ;
11781 PyObject * obj2 = 0 ;
11782 PyObject * obj3 = 0 ;
11783 PyObject * obj4 = 0 ;
11784 PyObject * obj5 = 0 ;
11785 PyObject * obj6 = 0 ;
11786 PyObject * obj7 = 0 ;
11787 PyObject * obj8 = 0 ;
11788 PyObject * obj9 = 0 ;
11789 char *kwnames[] = {
11790 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11791 };
11792
11793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11796 if (obj1) {
11797 arg2 = (int)SWIG_As_int(obj1);
11798 if (PyErr_Occurred()) SWIG_fail;
11799 }
11800 if (obj2) {
11801 {
11802 arg3 = wxString_in_helper(obj2);
11803 if (arg3 == NULL) SWIG_fail;
11804 temp3 = True;
11805 }
11806 }
11807 if (obj3) {
11808 {
11809 arg4 = &temp4;
11810 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11811 }
11812 }
11813 if (obj4) {
11814 {
11815 arg5 = &temp5;
11816 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11817 }
11818 }
11819 if (obj5) {
11820 {
11821 if (! PySequence_Check(obj5)) {
11822 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11823 SWIG_fail;
11824 }
11825 arg6 = new wxArrayString;
11826 temp6 = True;
11827 int i, len=PySequence_Length(obj5);
11828 for (i=0; i<len; i++) {
11829 PyObject* item = PySequence_GetItem(obj5, i);
11830 #if wxUSE_UNICODE
11831 PyObject* str = PyObject_Unicode(item);
11832 #else
11833 PyObject* str = PyObject_Str(item);
11834 #endif
11835 if (PyErr_Occurred()) SWIG_fail;
11836 arg6->Add(Py2wxString(str));
11837 Py_DECREF(item);
11838 Py_DECREF(str);
11839 }
11840 }
11841 }
11842 if (obj6) {
11843 arg7 = (int)SWIG_As_int(obj6);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 }
11846 if (obj7) {
11847 arg8 = (long)SWIG_As_long(obj7);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 if (obj8) {
11851 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11852 SWIG_POINTER_EXCEPTION | 0)) == -1)
11853 SWIG_fail;
11854 if (arg9 == NULL) {
11855 PyErr_SetString(PyExc_TypeError,"null reference");
11856 SWIG_fail;
11857 }
11858 }
11859 if (obj9) {
11860 {
11861 arg10 = wxString_in_helper(obj9);
11862 if (arg10 == NULL) SWIG_fail;
11863 temp10 = True;
11864 }
11865 }
11866 {
11867 if (!wxPyCheckForApp()) SWIG_fail;
11868 PyThreadState* __tstate = wxPyBeginAllowThreads();
11869 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);
11870
11871 wxPyEndAllowThreads(__tstate);
11872 if (PyErr_Occurred()) SWIG_fail;
11873 }
11874 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11875 {
11876 if (temp3)
11877 delete arg3;
11878 }
11879 {
11880 if (temp6) delete arg6;
11881 }
11882 {
11883 if (temp10)
11884 delete arg10;
11885 }
11886 return resultobj;
11887 fail:
11888 {
11889 if (temp3)
11890 delete arg3;
11891 }
11892 {
11893 if (temp6) delete arg6;
11894 }
11895 {
11896 if (temp10)
11897 delete arg10;
11898 }
11899 return NULL;
11900 }
11901
11902
11903 static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11904 PyObject *resultobj;
11905 wxRadioBox *result;
11906 char *kwnames[] = {
11907 NULL
11908 };
11909
11910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11911 {
11912 if (!wxPyCheckForApp()) SWIG_fail;
11913 PyThreadState* __tstate = wxPyBeginAllowThreads();
11914 result = (wxRadioBox *)new wxRadioBox();
11915
11916 wxPyEndAllowThreads(__tstate);
11917 if (PyErr_Occurred()) SWIG_fail;
11918 }
11919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11920 return resultobj;
11921 fail:
11922 return NULL;
11923 }
11924
11925
11926 static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11927 PyObject *resultobj;
11928 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11929 wxWindow *arg2 = (wxWindow *) 0 ;
11930 int arg3 = (int) -1 ;
11931 wxString const &arg4_defvalue = wxPyEmptyString ;
11932 wxString *arg4 = (wxString *) &arg4_defvalue ;
11933 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11934 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11935 wxSize const &arg6_defvalue = wxDefaultSize ;
11936 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11937 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11938 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11939 int arg8 = (int) 0 ;
11940 long arg9 = (long) wxRA_HORIZONTAL ;
11941 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11942 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11943 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11944 wxString *arg11 = (wxString *) &arg11_defvalue ;
11945 bool result;
11946 bool temp4 = False ;
11947 wxPoint temp5 ;
11948 wxSize temp6 ;
11949 bool temp7 = False ;
11950 bool temp11 = False ;
11951 PyObject * obj0 = 0 ;
11952 PyObject * obj1 = 0 ;
11953 PyObject * obj2 = 0 ;
11954 PyObject * obj3 = 0 ;
11955 PyObject * obj4 = 0 ;
11956 PyObject * obj5 = 0 ;
11957 PyObject * obj6 = 0 ;
11958 PyObject * obj7 = 0 ;
11959 PyObject * obj8 = 0 ;
11960 PyObject * obj9 = 0 ;
11961 PyObject * obj10 = 0 ;
11962 char *kwnames[] = {
11963 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11964 };
11965
11966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11969 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11971 if (obj2) {
11972 arg3 = (int)SWIG_As_int(obj2);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 if (obj3) {
11976 {
11977 arg4 = wxString_in_helper(obj3);
11978 if (arg4 == NULL) SWIG_fail;
11979 temp4 = True;
11980 }
11981 }
11982 if (obj4) {
11983 {
11984 arg5 = &temp5;
11985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11986 }
11987 }
11988 if (obj5) {
11989 {
11990 arg6 = &temp6;
11991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11992 }
11993 }
11994 if (obj6) {
11995 {
11996 if (! PySequence_Check(obj6)) {
11997 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11998 SWIG_fail;
11999 }
12000 arg7 = new wxArrayString;
12001 temp7 = True;
12002 int i, len=PySequence_Length(obj6);
12003 for (i=0; i<len; i++) {
12004 PyObject* item = PySequence_GetItem(obj6, i);
12005 #if wxUSE_UNICODE
12006 PyObject* str = PyObject_Unicode(item);
12007 #else
12008 PyObject* str = PyObject_Str(item);
12009 #endif
12010 if (PyErr_Occurred()) SWIG_fail;
12011 arg7->Add(Py2wxString(str));
12012 Py_DECREF(item);
12013 Py_DECREF(str);
12014 }
12015 }
12016 }
12017 if (obj7) {
12018 arg8 = (int)SWIG_As_int(obj7);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 if (obj8) {
12022 arg9 = (long)SWIG_As_long(obj8);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 if (obj9) {
12026 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12027 SWIG_POINTER_EXCEPTION | 0)) == -1)
12028 SWIG_fail;
12029 if (arg10 == NULL) {
12030 PyErr_SetString(PyExc_TypeError,"null reference");
12031 SWIG_fail;
12032 }
12033 }
12034 if (obj10) {
12035 {
12036 arg11 = wxString_in_helper(obj10);
12037 if (arg11 == NULL) SWIG_fail;
12038 temp11 = True;
12039 }
12040 }
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
12043 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);
12044
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 {
12049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12050 }
12051 {
12052 if (temp4)
12053 delete arg4;
12054 }
12055 {
12056 if (temp7) delete arg7;
12057 }
12058 {
12059 if (temp11)
12060 delete arg11;
12061 }
12062 return resultobj;
12063 fail:
12064 {
12065 if (temp4)
12066 delete arg4;
12067 }
12068 {
12069 if (temp7) delete arg7;
12070 }
12071 {
12072 if (temp11)
12073 delete arg11;
12074 }
12075 return NULL;
12076 }
12077
12078
12079 static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12080 PyObject *resultobj;
12081 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12082 int arg2 ;
12083 PyObject * obj0 = 0 ;
12084 PyObject * obj1 = 0 ;
12085 char *kwnames[] = {
12086 (char *) "self",(char *) "n", NULL
12087 };
12088
12089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
12090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12092 arg2 = (int)SWIG_As_int(obj1);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 {
12095 PyThreadState* __tstate = wxPyBeginAllowThreads();
12096 (arg1)->SetSelection(arg2);
12097
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 Py_INCREF(Py_None); resultobj = Py_None;
12102 return resultobj;
12103 fail:
12104 return NULL;
12105 }
12106
12107
12108 static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12109 PyObject *resultobj;
12110 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12111 int result;
12112 PyObject * obj0 = 0 ;
12113 char *kwnames[] = {
12114 (char *) "self", NULL
12115 };
12116
12117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
12118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 result = (int)((wxRadioBox const *)arg1)->GetSelection();
12123
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 resultobj = SWIG_From_int((int)result);
12128 return resultobj;
12129 fail:
12130 return NULL;
12131 }
12132
12133
12134 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12135 PyObject *resultobj;
12136 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12137 wxString result;
12138 PyObject * obj0 = 0 ;
12139 char *kwnames[] = {
12140 (char *) "self", NULL
12141 };
12142
12143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12146 {
12147 PyThreadState* __tstate = wxPyBeginAllowThreads();
12148 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12149
12150 wxPyEndAllowThreads(__tstate);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 {
12154 #if wxUSE_UNICODE
12155 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12156 #else
12157 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12158 #endif
12159 }
12160 return resultobj;
12161 fail:
12162 return NULL;
12163 }
12164
12165
12166 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12167 PyObject *resultobj;
12168 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12169 wxString *arg2 = 0 ;
12170 bool result;
12171 bool temp2 = False ;
12172 PyObject * obj0 = 0 ;
12173 PyObject * obj1 = 0 ;
12174 char *kwnames[] = {
12175 (char *) "self",(char *) "s", NULL
12176 };
12177
12178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12181 {
12182 arg2 = wxString_in_helper(obj1);
12183 if (arg2 == NULL) SWIG_fail;
12184 temp2 = True;
12185 }
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 {
12194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12195 }
12196 {
12197 if (temp2)
12198 delete arg2;
12199 }
12200 return resultobj;
12201 fail:
12202 {
12203 if (temp2)
12204 delete arg2;
12205 }
12206 return NULL;
12207 }
12208
12209
12210 static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
12211 PyObject *resultobj;
12212 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12213 int result;
12214 PyObject * obj0 = 0 ;
12215 char *kwnames[] = {
12216 (char *) "self", NULL
12217 };
12218
12219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12222 {
12223 PyThreadState* __tstate = wxPyBeginAllowThreads();
12224 result = (int)((wxRadioBox const *)arg1)->GetCount();
12225
12226 wxPyEndAllowThreads(__tstate);
12227 if (PyErr_Occurred()) SWIG_fail;
12228 }
12229 resultobj = SWIG_From_int((int)result);
12230 return resultobj;
12231 fail:
12232 return NULL;
12233 }
12234
12235
12236 static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
12237 PyObject *resultobj;
12238 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12239 wxString *arg2 = 0 ;
12240 int result;
12241 bool temp2 = False ;
12242 PyObject * obj0 = 0 ;
12243 PyObject * obj1 = 0 ;
12244 char *kwnames[] = {
12245 (char *) "self",(char *) "s", NULL
12246 };
12247
12248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12251 {
12252 arg2 = wxString_in_helper(obj1);
12253 if (arg2 == NULL) SWIG_fail;
12254 temp2 = True;
12255 }
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12259
12260 wxPyEndAllowThreads(__tstate);
12261 if (PyErr_Occurred()) SWIG_fail;
12262 }
12263 resultobj = SWIG_From_int((int)result);
12264 {
12265 if (temp2)
12266 delete arg2;
12267 }
12268 return resultobj;
12269 fail:
12270 {
12271 if (temp2)
12272 delete arg2;
12273 }
12274 return NULL;
12275 }
12276
12277
12278 static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12279 PyObject *resultobj;
12280 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12281 int arg2 ;
12282 wxString result;
12283 PyObject * obj0 = 0 ;
12284 PyObject * obj1 = 0 ;
12285 char *kwnames[] = {
12286 (char *) "self",(char *) "n", NULL
12287 };
12288
12289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12292 arg2 = (int)SWIG_As_int(obj1);
12293 if (PyErr_Occurred()) SWIG_fail;
12294 {
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12297
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 {
12302 #if wxUSE_UNICODE
12303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12304 #else
12305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12306 #endif
12307 }
12308 return resultobj;
12309 fail:
12310 return NULL;
12311 }
12312
12313
12314 static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
12315 PyObject *resultobj;
12316 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12317 int arg2 ;
12318 wxString *arg3 = 0 ;
12319 bool temp3 = False ;
12320 PyObject * obj0 = 0 ;
12321 PyObject * obj1 = 0 ;
12322 PyObject * obj2 = 0 ;
12323 char *kwnames[] = {
12324 (char *) "self",(char *) "n",(char *) "label", NULL
12325 };
12326
12327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12330 arg2 = (int)SWIG_As_int(obj1);
12331 if (PyErr_Occurred()) SWIG_fail;
12332 {
12333 arg3 = wxString_in_helper(obj2);
12334 if (arg3 == NULL) SWIG_fail;
12335 temp3 = True;
12336 }
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 (arg1)->SetString(arg2,(wxString const &)*arg3);
12340
12341 wxPyEndAllowThreads(__tstate);
12342 if (PyErr_Occurred()) SWIG_fail;
12343 }
12344 Py_INCREF(Py_None); resultobj = Py_None;
12345 {
12346 if (temp3)
12347 delete arg3;
12348 }
12349 return resultobj;
12350 fail:
12351 {
12352 if (temp3)
12353 delete arg3;
12354 }
12355 return NULL;
12356 }
12357
12358
12359 static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) {
12360 PyObject *resultobj;
12361 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12362 int arg2 ;
12363 bool arg3 = (bool) True ;
12364 PyObject * obj0 = 0 ;
12365 PyObject * obj1 = 0 ;
12366 PyObject * obj2 = 0 ;
12367 char *kwnames[] = {
12368 (char *) "self",(char *) "n",(char *) "enable", NULL
12369 };
12370
12371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12374 arg2 = (int)SWIG_As_int(obj1);
12375 if (PyErr_Occurred()) SWIG_fail;
12376 if (obj2) {
12377 arg3 = (bool)SWIG_As_bool(obj2);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 }
12380 {
12381 PyThreadState* __tstate = wxPyBeginAllowThreads();
12382 (arg1)->Enable(arg2,arg3);
12383
12384 wxPyEndAllowThreads(__tstate);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 Py_INCREF(Py_None); resultobj = Py_None;
12388 return resultobj;
12389 fail:
12390 return NULL;
12391 }
12392
12393
12394 static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) {
12395 PyObject *resultobj;
12396 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12397 int arg2 ;
12398 bool arg3 = (bool) True ;
12399 PyObject * obj0 = 0 ;
12400 PyObject * obj1 = 0 ;
12401 PyObject * obj2 = 0 ;
12402 char *kwnames[] = {
12403 (char *) "self",(char *) "n",(char *) "show", NULL
12404 };
12405
12406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12409 arg2 = (int)SWIG_As_int(obj1);
12410 if (PyErr_Occurred()) SWIG_fail;
12411 if (obj2) {
12412 arg3 = (bool)SWIG_As_bool(obj2);
12413 if (PyErr_Occurred()) SWIG_fail;
12414 }
12415 {
12416 PyThreadState* __tstate = wxPyBeginAllowThreads();
12417 (arg1)->Show(arg2,arg3);
12418
12419 wxPyEndAllowThreads(__tstate);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 }
12422 Py_INCREF(Py_None); resultobj = Py_None;
12423 return resultobj;
12424 fail:
12425 return NULL;
12426 }
12427
12428
12429 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
12430 PyObject *resultobj;
12431 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12432 int result;
12433 PyObject * obj0 = 0 ;
12434 char *kwnames[] = {
12435 (char *) "self", NULL
12436 };
12437
12438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12441 {
12442 PyThreadState* __tstate = wxPyBeginAllowThreads();
12443 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12444
12445 wxPyEndAllowThreads(__tstate);
12446 if (PyErr_Occurred()) SWIG_fail;
12447 }
12448 resultobj = SWIG_From_int((int)result);
12449 return resultobj;
12450 fail:
12451 return NULL;
12452 }
12453
12454
12455 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
12456 PyObject *resultobj;
12457 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12458 int result;
12459 PyObject * obj0 = 0 ;
12460 char *kwnames[] = {
12461 (char *) "self", NULL
12462 };
12463
12464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12467 {
12468 PyThreadState* __tstate = wxPyBeginAllowThreads();
12469 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12470
12471 wxPyEndAllowThreads(__tstate);
12472 if (PyErr_Occurred()) SWIG_fail;
12473 }
12474 resultobj = SWIG_From_int((int)result);
12475 return resultobj;
12476 fail:
12477 return NULL;
12478 }
12479
12480
12481 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
12482 PyObject *resultobj;
12483 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12484 int arg2 ;
12485 int arg3 ;
12486 long arg4 ;
12487 int result;
12488 PyObject * obj0 = 0 ;
12489 PyObject * obj1 = 0 ;
12490 PyObject * obj2 = 0 ;
12491 PyObject * obj3 = 0 ;
12492 char *kwnames[] = {
12493 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12494 };
12495
12496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12499 arg2 = (int)SWIG_As_int(obj1);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 arg3 = (int)SWIG_As_int(obj2);
12502 if (PyErr_Occurred()) SWIG_fail;
12503 arg4 = (long)SWIG_As_long(obj3);
12504 if (PyErr_Occurred()) SWIG_fail;
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12508
12509 wxPyEndAllowThreads(__tstate);
12510 if (PyErr_Occurred()) SWIG_fail;
12511 }
12512 resultobj = SWIG_From_int((int)result);
12513 return resultobj;
12514 fail:
12515 return NULL;
12516 }
12517
12518
12519 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12520 PyObject *resultobj;
12521 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12522 wxVisualAttributes result;
12523 PyObject * obj0 = 0 ;
12524 char *kwnames[] = {
12525 (char *) "variant", NULL
12526 };
12527
12528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12529 if (obj0) {
12530 arg1 = (int)SWIG_As_int(obj0);
12531 if (PyErr_Occurred()) SWIG_fail;
12532 }
12533 {
12534 if (!wxPyCheckForApp()) SWIG_fail;
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12537
12538 wxPyEndAllowThreads(__tstate);
12539 if (PyErr_Occurred()) SWIG_fail;
12540 }
12541 {
12542 wxVisualAttributes * resultptr;
12543 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12544 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12545 }
12546 return resultobj;
12547 fail:
12548 return NULL;
12549 }
12550
12551
12552 static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) {
12553 PyObject *obj;
12554 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12555 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12556 Py_INCREF(obj);
12557 return Py_BuildValue((char *)"");
12558 }
12559 static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12560 PyObject *resultobj;
12561 wxWindow *arg1 = (wxWindow *) 0 ;
12562 int arg2 = (int) -1 ;
12563 wxString const &arg3_defvalue = wxPyEmptyString ;
12564 wxString *arg3 = (wxString *) &arg3_defvalue ;
12565 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12566 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12567 wxSize const &arg5_defvalue = wxDefaultSize ;
12568 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12569 long arg6 = (long) 0 ;
12570 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12571 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12572 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12573 wxString *arg8 = (wxString *) &arg8_defvalue ;
12574 wxRadioButton *result;
12575 bool temp3 = False ;
12576 wxPoint temp4 ;
12577 wxSize temp5 ;
12578 bool temp8 = False ;
12579 PyObject * obj0 = 0 ;
12580 PyObject * obj1 = 0 ;
12581 PyObject * obj2 = 0 ;
12582 PyObject * obj3 = 0 ;
12583 PyObject * obj4 = 0 ;
12584 PyObject * obj5 = 0 ;
12585 PyObject * obj6 = 0 ;
12586 PyObject * obj7 = 0 ;
12587 char *kwnames[] = {
12588 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12589 };
12590
12591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12594 if (obj1) {
12595 arg2 = (int)SWIG_As_int(obj1);
12596 if (PyErr_Occurred()) SWIG_fail;
12597 }
12598 if (obj2) {
12599 {
12600 arg3 = wxString_in_helper(obj2);
12601 if (arg3 == NULL) SWIG_fail;
12602 temp3 = True;
12603 }
12604 }
12605 if (obj3) {
12606 {
12607 arg4 = &temp4;
12608 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12609 }
12610 }
12611 if (obj4) {
12612 {
12613 arg5 = &temp5;
12614 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12615 }
12616 }
12617 if (obj5) {
12618 arg6 = (long)SWIG_As_long(obj5);
12619 if (PyErr_Occurred()) SWIG_fail;
12620 }
12621 if (obj6) {
12622 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12623 SWIG_POINTER_EXCEPTION | 0)) == -1)
12624 SWIG_fail;
12625 if (arg7 == NULL) {
12626 PyErr_SetString(PyExc_TypeError,"null reference");
12627 SWIG_fail;
12628 }
12629 }
12630 if (obj7) {
12631 {
12632 arg8 = wxString_in_helper(obj7);
12633 if (arg8 == NULL) SWIG_fail;
12634 temp8 = True;
12635 }
12636 }
12637 {
12638 if (!wxPyCheckForApp()) SWIG_fail;
12639 PyThreadState* __tstate = wxPyBeginAllowThreads();
12640 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12641
12642 wxPyEndAllowThreads(__tstate);
12643 if (PyErr_Occurred()) SWIG_fail;
12644 }
12645 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12646 {
12647 if (temp3)
12648 delete arg3;
12649 }
12650 {
12651 if (temp8)
12652 delete arg8;
12653 }
12654 return resultobj;
12655 fail:
12656 {
12657 if (temp3)
12658 delete arg3;
12659 }
12660 {
12661 if (temp8)
12662 delete arg8;
12663 }
12664 return NULL;
12665 }
12666
12667
12668 static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12669 PyObject *resultobj;
12670 wxRadioButton *result;
12671 char *kwnames[] = {
12672 NULL
12673 };
12674
12675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12676 {
12677 if (!wxPyCheckForApp()) SWIG_fail;
12678 PyThreadState* __tstate = wxPyBeginAllowThreads();
12679 result = (wxRadioButton *)new wxRadioButton();
12680
12681 wxPyEndAllowThreads(__tstate);
12682 if (PyErr_Occurred()) SWIG_fail;
12683 }
12684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12685 return resultobj;
12686 fail:
12687 return NULL;
12688 }
12689
12690
12691 static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12692 PyObject *resultobj;
12693 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12694 wxWindow *arg2 = (wxWindow *) 0 ;
12695 int arg3 = (int) -1 ;
12696 wxString const &arg4_defvalue = wxPyEmptyString ;
12697 wxString *arg4 = (wxString *) &arg4_defvalue ;
12698 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12699 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12700 wxSize const &arg6_defvalue = wxDefaultSize ;
12701 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12702 long arg7 = (long) 0 ;
12703 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12704 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12705 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12706 wxString *arg9 = (wxString *) &arg9_defvalue ;
12707 bool result;
12708 bool temp4 = False ;
12709 wxPoint temp5 ;
12710 wxSize temp6 ;
12711 bool temp9 = False ;
12712 PyObject * obj0 = 0 ;
12713 PyObject * obj1 = 0 ;
12714 PyObject * obj2 = 0 ;
12715 PyObject * obj3 = 0 ;
12716 PyObject * obj4 = 0 ;
12717 PyObject * obj5 = 0 ;
12718 PyObject * obj6 = 0 ;
12719 PyObject * obj7 = 0 ;
12720 PyObject * obj8 = 0 ;
12721 char *kwnames[] = {
12722 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12723 };
12724
12725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12728 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12730 if (obj2) {
12731 arg3 = (int)SWIG_As_int(obj2);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 if (obj3) {
12735 {
12736 arg4 = wxString_in_helper(obj3);
12737 if (arg4 == NULL) SWIG_fail;
12738 temp4 = True;
12739 }
12740 }
12741 if (obj4) {
12742 {
12743 arg5 = &temp5;
12744 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12745 }
12746 }
12747 if (obj5) {
12748 {
12749 arg6 = &temp6;
12750 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12751 }
12752 }
12753 if (obj6) {
12754 arg7 = (long)SWIG_As_long(obj6);
12755 if (PyErr_Occurred()) SWIG_fail;
12756 }
12757 if (obj7) {
12758 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12759 SWIG_POINTER_EXCEPTION | 0)) == -1)
12760 SWIG_fail;
12761 if (arg8 == NULL) {
12762 PyErr_SetString(PyExc_TypeError,"null reference");
12763 SWIG_fail;
12764 }
12765 }
12766 if (obj8) {
12767 {
12768 arg9 = wxString_in_helper(obj8);
12769 if (arg9 == NULL) SWIG_fail;
12770 temp9 = True;
12771 }
12772 }
12773 {
12774 PyThreadState* __tstate = wxPyBeginAllowThreads();
12775 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12776
12777 wxPyEndAllowThreads(__tstate);
12778 if (PyErr_Occurred()) SWIG_fail;
12779 }
12780 {
12781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12782 }
12783 {
12784 if (temp4)
12785 delete arg4;
12786 }
12787 {
12788 if (temp9)
12789 delete arg9;
12790 }
12791 return resultobj;
12792 fail:
12793 {
12794 if (temp4)
12795 delete arg4;
12796 }
12797 {
12798 if (temp9)
12799 delete arg9;
12800 }
12801 return NULL;
12802 }
12803
12804
12805 static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12806 PyObject *resultobj;
12807 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12808 bool result;
12809 PyObject * obj0 = 0 ;
12810 char *kwnames[] = {
12811 (char *) "self", NULL
12812 };
12813
12814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12817 {
12818 PyThreadState* __tstate = wxPyBeginAllowThreads();
12819 result = (bool)(arg1)->GetValue();
12820
12821 wxPyEndAllowThreads(__tstate);
12822 if (PyErr_Occurred()) SWIG_fail;
12823 }
12824 {
12825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12826 }
12827 return resultobj;
12828 fail:
12829 return NULL;
12830 }
12831
12832
12833 static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12834 PyObject *resultobj;
12835 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12836 bool arg2 ;
12837 PyObject * obj0 = 0 ;
12838 PyObject * obj1 = 0 ;
12839 char *kwnames[] = {
12840 (char *) "self",(char *) "value", NULL
12841 };
12842
12843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12846 arg2 = (bool)SWIG_As_bool(obj1);
12847 if (PyErr_Occurred()) SWIG_fail;
12848 {
12849 PyThreadState* __tstate = wxPyBeginAllowThreads();
12850 (arg1)->SetValue(arg2);
12851
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 Py_INCREF(Py_None); resultobj = Py_None;
12856 return resultobj;
12857 fail:
12858 return NULL;
12859 }
12860
12861
12862 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12863 PyObject *resultobj;
12864 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12865 wxVisualAttributes result;
12866 PyObject * obj0 = 0 ;
12867 char *kwnames[] = {
12868 (char *) "variant", NULL
12869 };
12870
12871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12872 if (obj0) {
12873 arg1 = (int)SWIG_As_int(obj0);
12874 if (PyErr_Occurred()) SWIG_fail;
12875 }
12876 {
12877 if (!wxPyCheckForApp()) SWIG_fail;
12878 PyThreadState* __tstate = wxPyBeginAllowThreads();
12879 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12880
12881 wxPyEndAllowThreads(__tstate);
12882 if (PyErr_Occurred()) SWIG_fail;
12883 }
12884 {
12885 wxVisualAttributes * resultptr;
12886 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12887 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12888 }
12889 return resultobj;
12890 fail:
12891 return NULL;
12892 }
12893
12894
12895 static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) {
12896 PyObject *obj;
12897 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12898 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12899 Py_INCREF(obj);
12900 return Py_BuildValue((char *)"");
12901 }
12902 static int _wrap_SliderNameStr_set(PyObject *) {
12903 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12904 return 1;
12905 }
12906
12907
12908 static PyObject *_wrap_SliderNameStr_get() {
12909 PyObject *pyobj;
12910
12911 {
12912 #if wxUSE_UNICODE
12913 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12914 #else
12915 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12916 #endif
12917 }
12918 return pyobj;
12919 }
12920
12921
12922 static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) {
12923 PyObject *resultobj;
12924 wxWindow *arg1 = (wxWindow *) 0 ;
12925 int arg2 = (int) -1 ;
12926 int arg3 = (int) 0 ;
12927 int arg4 = (int) 0 ;
12928 int arg5 = (int) 100 ;
12929 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12930 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12931 wxSize const &arg7_defvalue = wxDefaultSize ;
12932 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12933 long arg8 = (long) wxSL_HORIZONTAL ;
12934 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12935 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12936 wxString const &arg10_defvalue = wxPySliderNameStr ;
12937 wxString *arg10 = (wxString *) &arg10_defvalue ;
12938 wxSlider *result;
12939 wxPoint temp6 ;
12940 wxSize temp7 ;
12941 bool temp10 = False ;
12942 PyObject * obj0 = 0 ;
12943 PyObject * obj1 = 0 ;
12944 PyObject * obj2 = 0 ;
12945 PyObject * obj3 = 0 ;
12946 PyObject * obj4 = 0 ;
12947 PyObject * obj5 = 0 ;
12948 PyObject * obj6 = 0 ;
12949 PyObject * obj7 = 0 ;
12950 PyObject * obj8 = 0 ;
12951 PyObject * obj9 = 0 ;
12952 char *kwnames[] = {
12953 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12954 };
12955
12956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12959 if (obj1) {
12960 arg2 = (int)SWIG_As_int(obj1);
12961 if (PyErr_Occurred()) SWIG_fail;
12962 }
12963 if (obj2) {
12964 arg3 = (int)SWIG_As_int(obj2);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 if (obj3) {
12968 arg4 = (int)SWIG_As_int(obj3);
12969 if (PyErr_Occurred()) SWIG_fail;
12970 }
12971 if (obj4) {
12972 arg5 = (int)SWIG_As_int(obj4);
12973 if (PyErr_Occurred()) SWIG_fail;
12974 }
12975 if (obj5) {
12976 {
12977 arg6 = &temp6;
12978 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12979 }
12980 }
12981 if (obj6) {
12982 {
12983 arg7 = &temp7;
12984 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12985 }
12986 }
12987 if (obj7) {
12988 arg8 = (long)SWIG_As_long(obj7);
12989 if (PyErr_Occurred()) SWIG_fail;
12990 }
12991 if (obj8) {
12992 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12993 SWIG_POINTER_EXCEPTION | 0)) == -1)
12994 SWIG_fail;
12995 if (arg9 == NULL) {
12996 PyErr_SetString(PyExc_TypeError,"null reference");
12997 SWIG_fail;
12998 }
12999 }
13000 if (obj9) {
13001 {
13002 arg10 = wxString_in_helper(obj9);
13003 if (arg10 == NULL) SWIG_fail;
13004 temp10 = True;
13005 }
13006 }
13007 {
13008 if (!wxPyCheckForApp()) SWIG_fail;
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
13010 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
13011
13012 wxPyEndAllowThreads(__tstate);
13013 if (PyErr_Occurred()) SWIG_fail;
13014 }
13015 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13016 {
13017 if (temp10)
13018 delete arg10;
13019 }
13020 return resultobj;
13021 fail:
13022 {
13023 if (temp10)
13024 delete arg10;
13025 }
13026 return NULL;
13027 }
13028
13029
13030 static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) {
13031 PyObject *resultobj;
13032 wxSlider *result;
13033 char *kwnames[] = {
13034 NULL
13035 };
13036
13037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
13038 {
13039 if (!wxPyCheckForApp()) SWIG_fail;
13040 PyThreadState* __tstate = wxPyBeginAllowThreads();
13041 result = (wxSlider *)new wxSlider();
13042
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13047 return resultobj;
13048 fail:
13049 return NULL;
13050 }
13051
13052
13053 static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13054 PyObject *resultobj;
13055 wxSlider *arg1 = (wxSlider *) 0 ;
13056 wxWindow *arg2 = (wxWindow *) 0 ;
13057 int arg3 = (int) -1 ;
13058 int arg4 = (int) 0 ;
13059 int arg5 = (int) 0 ;
13060 int arg6 = (int) 100 ;
13061 wxPoint const &arg7_defvalue = wxDefaultPosition ;
13062 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
13063 wxSize const &arg8_defvalue = wxDefaultSize ;
13064 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
13065 long arg9 = (long) wxSL_HORIZONTAL ;
13066 wxValidator const &arg10_defvalue = wxDefaultValidator ;
13067 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
13068 wxString const &arg11_defvalue = wxPySliderNameStr ;
13069 wxString *arg11 = (wxString *) &arg11_defvalue ;
13070 bool result;
13071 wxPoint temp7 ;
13072 wxSize temp8 ;
13073 bool temp11 = False ;
13074 PyObject * obj0 = 0 ;
13075 PyObject * obj1 = 0 ;
13076 PyObject * obj2 = 0 ;
13077 PyObject * obj3 = 0 ;
13078 PyObject * obj4 = 0 ;
13079 PyObject * obj5 = 0 ;
13080 PyObject * obj6 = 0 ;
13081 PyObject * obj7 = 0 ;
13082 PyObject * obj8 = 0 ;
13083 PyObject * obj9 = 0 ;
13084 PyObject * obj10 = 0 ;
13085 char *kwnames[] = {
13086 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13087 };
13088
13089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
13090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13092 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13094 if (obj2) {
13095 arg3 = (int)SWIG_As_int(obj2);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 }
13098 if (obj3) {
13099 arg4 = (int)SWIG_As_int(obj3);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 if (obj4) {
13103 arg5 = (int)SWIG_As_int(obj4);
13104 if (PyErr_Occurred()) SWIG_fail;
13105 }
13106 if (obj5) {
13107 arg6 = (int)SWIG_As_int(obj5);
13108 if (PyErr_Occurred()) SWIG_fail;
13109 }
13110 if (obj6) {
13111 {
13112 arg7 = &temp7;
13113 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
13114 }
13115 }
13116 if (obj7) {
13117 {
13118 arg8 = &temp8;
13119 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
13120 }
13121 }
13122 if (obj8) {
13123 arg9 = (long)SWIG_As_long(obj8);
13124 if (PyErr_Occurred()) SWIG_fail;
13125 }
13126 if (obj9) {
13127 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
13128 SWIG_POINTER_EXCEPTION | 0)) == -1)
13129 SWIG_fail;
13130 if (arg10 == NULL) {
13131 PyErr_SetString(PyExc_TypeError,"null reference");
13132 SWIG_fail;
13133 }
13134 }
13135 if (obj10) {
13136 {
13137 arg11 = wxString_in_helper(obj10);
13138 if (arg11 == NULL) SWIG_fail;
13139 temp11 = True;
13140 }
13141 }
13142 {
13143 PyThreadState* __tstate = wxPyBeginAllowThreads();
13144 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
13145
13146 wxPyEndAllowThreads(__tstate);
13147 if (PyErr_Occurred()) SWIG_fail;
13148 }
13149 {
13150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13151 }
13152 {
13153 if (temp11)
13154 delete arg11;
13155 }
13156 return resultobj;
13157 fail:
13158 {
13159 if (temp11)
13160 delete arg11;
13161 }
13162 return NULL;
13163 }
13164
13165
13166 static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13167 PyObject *resultobj;
13168 wxSlider *arg1 = (wxSlider *) 0 ;
13169 int result;
13170 PyObject * obj0 = 0 ;
13171 char *kwnames[] = {
13172 (char *) "self", NULL
13173 };
13174
13175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13178 {
13179 PyThreadState* __tstate = wxPyBeginAllowThreads();
13180 result = (int)((wxSlider const *)arg1)->GetValue();
13181
13182 wxPyEndAllowThreads(__tstate);
13183 if (PyErr_Occurred()) SWIG_fail;
13184 }
13185 resultobj = SWIG_From_int((int)result);
13186 return resultobj;
13187 fail:
13188 return NULL;
13189 }
13190
13191
13192 static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13193 PyObject *resultobj;
13194 wxSlider *arg1 = (wxSlider *) 0 ;
13195 int arg2 ;
13196 PyObject * obj0 = 0 ;
13197 PyObject * obj1 = 0 ;
13198 char *kwnames[] = {
13199 (char *) "self",(char *) "value", NULL
13200 };
13201
13202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13205 arg2 = (int)SWIG_As_int(obj1);
13206 if (PyErr_Occurred()) SWIG_fail;
13207 {
13208 PyThreadState* __tstate = wxPyBeginAllowThreads();
13209 (arg1)->SetValue(arg2);
13210
13211 wxPyEndAllowThreads(__tstate);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 Py_INCREF(Py_None); resultobj = Py_None;
13215 return resultobj;
13216 fail:
13217 return NULL;
13218 }
13219
13220
13221 static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
13222 PyObject *resultobj;
13223 wxSlider *arg1 = (wxSlider *) 0 ;
13224 int arg2 ;
13225 int arg3 ;
13226 PyObject * obj0 = 0 ;
13227 PyObject * obj1 = 0 ;
13228 PyObject * obj2 = 0 ;
13229 char *kwnames[] = {
13230 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13231 };
13232
13233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13236 arg2 = (int)SWIG_As_int(obj1);
13237 if (PyErr_Occurred()) SWIG_fail;
13238 arg3 = (int)SWIG_As_int(obj2);
13239 if (PyErr_Occurred()) SWIG_fail;
13240 {
13241 PyThreadState* __tstate = wxPyBeginAllowThreads();
13242 (arg1)->SetRange(arg2,arg3);
13243
13244 wxPyEndAllowThreads(__tstate);
13245 if (PyErr_Occurred()) SWIG_fail;
13246 }
13247 Py_INCREF(Py_None); resultobj = Py_None;
13248 return resultobj;
13249 fail:
13250 return NULL;
13251 }
13252
13253
13254 static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13255 PyObject *resultobj;
13256 wxSlider *arg1 = (wxSlider *) 0 ;
13257 int result;
13258 PyObject * obj0 = 0 ;
13259 char *kwnames[] = {
13260 (char *) "self", NULL
13261 };
13262
13263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 result = (int)((wxSlider const *)arg1)->GetMin();
13269
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 resultobj = SWIG_From_int((int)result);
13274 return resultobj;
13275 fail:
13276 return NULL;
13277 }
13278
13279
13280 static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13281 PyObject *resultobj;
13282 wxSlider *arg1 = (wxSlider *) 0 ;
13283 int result;
13284 PyObject * obj0 = 0 ;
13285 char *kwnames[] = {
13286 (char *) "self", NULL
13287 };
13288
13289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13292 {
13293 PyThreadState* __tstate = wxPyBeginAllowThreads();
13294 result = (int)((wxSlider const *)arg1)->GetMax();
13295
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_From_int((int)result);
13300 return resultobj;
13301 fail:
13302 return NULL;
13303 }
13304
13305
13306 static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj;
13308 wxSlider *arg1 = (wxSlider *) 0 ;
13309 int arg2 ;
13310 PyObject * obj0 = 0 ;
13311 PyObject * obj1 = 0 ;
13312 char *kwnames[] = {
13313 (char *) "self",(char *) "minValue", NULL
13314 };
13315
13316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13319 arg2 = (int)SWIG_As_int(obj1);
13320 if (PyErr_Occurred()) SWIG_fail;
13321 {
13322 PyThreadState* __tstate = wxPyBeginAllowThreads();
13323 (arg1)->SetMin(arg2);
13324
13325 wxPyEndAllowThreads(__tstate);
13326 if (PyErr_Occurred()) SWIG_fail;
13327 }
13328 Py_INCREF(Py_None); resultobj = Py_None;
13329 return resultobj;
13330 fail:
13331 return NULL;
13332 }
13333
13334
13335 static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13336 PyObject *resultobj;
13337 wxSlider *arg1 = (wxSlider *) 0 ;
13338 int arg2 ;
13339 PyObject * obj0 = 0 ;
13340 PyObject * obj1 = 0 ;
13341 char *kwnames[] = {
13342 (char *) "self",(char *) "maxValue", NULL
13343 };
13344
13345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13348 arg2 = (int)SWIG_As_int(obj1);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 {
13351 PyThreadState* __tstate = wxPyBeginAllowThreads();
13352 (arg1)->SetMax(arg2);
13353
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 Py_INCREF(Py_None); resultobj = Py_None;
13358 return resultobj;
13359 fail:
13360 return NULL;
13361 }
13362
13363
13364 static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13365 PyObject *resultobj;
13366 wxSlider *arg1 = (wxSlider *) 0 ;
13367 int arg2 ;
13368 PyObject * obj0 = 0 ;
13369 PyObject * obj1 = 0 ;
13370 char *kwnames[] = {
13371 (char *) "self",(char *) "lineSize", NULL
13372 };
13373
13374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13377 arg2 = (int)SWIG_As_int(obj1);
13378 if (PyErr_Occurred()) SWIG_fail;
13379 {
13380 PyThreadState* __tstate = wxPyBeginAllowThreads();
13381 (arg1)->SetLineSize(arg2);
13382
13383 wxPyEndAllowThreads(__tstate);
13384 if (PyErr_Occurred()) SWIG_fail;
13385 }
13386 Py_INCREF(Py_None); resultobj = Py_None;
13387 return resultobj;
13388 fail:
13389 return NULL;
13390 }
13391
13392
13393 static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13394 PyObject *resultobj;
13395 wxSlider *arg1 = (wxSlider *) 0 ;
13396 int arg2 ;
13397 PyObject * obj0 = 0 ;
13398 PyObject * obj1 = 0 ;
13399 char *kwnames[] = {
13400 (char *) "self",(char *) "pageSize", NULL
13401 };
13402
13403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13406 arg2 = (int)SWIG_As_int(obj1);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 {
13409 PyThreadState* __tstate = wxPyBeginAllowThreads();
13410 (arg1)->SetPageSize(arg2);
13411
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 Py_INCREF(Py_None); resultobj = Py_None;
13416 return resultobj;
13417 fail:
13418 return NULL;
13419 }
13420
13421
13422 static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13423 PyObject *resultobj;
13424 wxSlider *arg1 = (wxSlider *) 0 ;
13425 int result;
13426 PyObject * obj0 = 0 ;
13427 char *kwnames[] = {
13428 (char *) "self", NULL
13429 };
13430
13431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13434 {
13435 PyThreadState* __tstate = wxPyBeginAllowThreads();
13436 result = (int)((wxSlider const *)arg1)->GetLineSize();
13437
13438 wxPyEndAllowThreads(__tstate);
13439 if (PyErr_Occurred()) SWIG_fail;
13440 }
13441 resultobj = SWIG_From_int((int)result);
13442 return resultobj;
13443 fail:
13444 return NULL;
13445 }
13446
13447
13448 static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13449 PyObject *resultobj;
13450 wxSlider *arg1 = (wxSlider *) 0 ;
13451 int result;
13452 PyObject * obj0 = 0 ;
13453 char *kwnames[] = {
13454 (char *) "self", NULL
13455 };
13456
13457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 result = (int)((wxSlider const *)arg1)->GetPageSize();
13463
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 resultobj = SWIG_From_int((int)result);
13468 return resultobj;
13469 fail:
13470 return NULL;
13471 }
13472
13473
13474 static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13475 PyObject *resultobj;
13476 wxSlider *arg1 = (wxSlider *) 0 ;
13477 int arg2 ;
13478 PyObject * obj0 = 0 ;
13479 PyObject * obj1 = 0 ;
13480 char *kwnames[] = {
13481 (char *) "self",(char *) "lenPixels", NULL
13482 };
13483
13484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13487 arg2 = (int)SWIG_As_int(obj1);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 {
13490 PyThreadState* __tstate = wxPyBeginAllowThreads();
13491 (arg1)->SetThumbLength(arg2);
13492
13493 wxPyEndAllowThreads(__tstate);
13494 if (PyErr_Occurred()) SWIG_fail;
13495 }
13496 Py_INCREF(Py_None); resultobj = Py_None;
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13504 PyObject *resultobj;
13505 wxSlider *arg1 = (wxSlider *) 0 ;
13506 int result;
13507 PyObject * obj0 = 0 ;
13508 char *kwnames[] = {
13509 (char *) "self", NULL
13510 };
13511
13512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13515 {
13516 PyThreadState* __tstate = wxPyBeginAllowThreads();
13517 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13518
13519 wxPyEndAllowThreads(__tstate);
13520 if (PyErr_Occurred()) SWIG_fail;
13521 }
13522 resultobj = SWIG_From_int((int)result);
13523 return resultobj;
13524 fail:
13525 return NULL;
13526 }
13527
13528
13529 static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13530 PyObject *resultobj;
13531 wxSlider *arg1 = (wxSlider *) 0 ;
13532 int arg2 ;
13533 int arg3 = (int) 1 ;
13534 PyObject * obj0 = 0 ;
13535 PyObject * obj1 = 0 ;
13536 PyObject * obj2 = 0 ;
13537 char *kwnames[] = {
13538 (char *) "self",(char *) "n",(char *) "pos", NULL
13539 };
13540
13541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13544 arg2 = (int)SWIG_As_int(obj1);
13545 if (PyErr_Occurred()) SWIG_fail;
13546 if (obj2) {
13547 arg3 = (int)SWIG_As_int(obj2);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 }
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
13552 (arg1)->SetTickFreq(arg2,arg3);
13553
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 Py_INCREF(Py_None); resultobj = Py_None;
13558 return resultobj;
13559 fail:
13560 return NULL;
13561 }
13562
13563
13564 static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13565 PyObject *resultobj;
13566 wxSlider *arg1 = (wxSlider *) 0 ;
13567 int result;
13568 PyObject * obj0 = 0 ;
13569 char *kwnames[] = {
13570 (char *) "self", NULL
13571 };
13572
13573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13576 {
13577 PyThreadState* __tstate = wxPyBeginAllowThreads();
13578 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13579
13580 wxPyEndAllowThreads(__tstate);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 resultobj = SWIG_From_int((int)result);
13584 return resultobj;
13585 fail:
13586 return NULL;
13587 }
13588
13589
13590 static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) {
13591 PyObject *resultobj;
13592 wxSlider *arg1 = (wxSlider *) 0 ;
13593 PyObject * obj0 = 0 ;
13594 char *kwnames[] = {
13595 (char *) "self", NULL
13596 };
13597
13598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13601 {
13602 PyThreadState* __tstate = wxPyBeginAllowThreads();
13603 (arg1)->ClearTicks();
13604
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 Py_INCREF(Py_None); resultobj = Py_None;
13609 return resultobj;
13610 fail:
13611 return NULL;
13612 }
13613
13614
13615 static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) {
13616 PyObject *resultobj;
13617 wxSlider *arg1 = (wxSlider *) 0 ;
13618 int arg2 ;
13619 PyObject * obj0 = 0 ;
13620 PyObject * obj1 = 0 ;
13621 char *kwnames[] = {
13622 (char *) "self",(char *) "tickPos", NULL
13623 };
13624
13625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13628 arg2 = (int)SWIG_As_int(obj1);
13629 if (PyErr_Occurred()) SWIG_fail;
13630 {
13631 PyThreadState* __tstate = wxPyBeginAllowThreads();
13632 (arg1)->SetTick(arg2);
13633
13634 wxPyEndAllowThreads(__tstate);
13635 if (PyErr_Occurred()) SWIG_fail;
13636 }
13637 Py_INCREF(Py_None); resultobj = Py_None;
13638 return resultobj;
13639 fail:
13640 return NULL;
13641 }
13642
13643
13644 static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) {
13645 PyObject *resultobj;
13646 wxSlider *arg1 = (wxSlider *) 0 ;
13647 PyObject * obj0 = 0 ;
13648 char *kwnames[] = {
13649 (char *) "self", NULL
13650 };
13651
13652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13655 {
13656 PyThreadState* __tstate = wxPyBeginAllowThreads();
13657 (arg1)->ClearSel();
13658
13659 wxPyEndAllowThreads(__tstate);
13660 if (PyErr_Occurred()) SWIG_fail;
13661 }
13662 Py_INCREF(Py_None); resultobj = Py_None;
13663 return resultobj;
13664 fail:
13665 return NULL;
13666 }
13667
13668
13669 static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) {
13670 PyObject *resultobj;
13671 wxSlider *arg1 = (wxSlider *) 0 ;
13672 int result;
13673 PyObject * obj0 = 0 ;
13674 char *kwnames[] = {
13675 (char *) "self", NULL
13676 };
13677
13678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13684
13685 wxPyEndAllowThreads(__tstate);
13686 if (PyErr_Occurred()) SWIG_fail;
13687 }
13688 resultobj = SWIG_From_int((int)result);
13689 return resultobj;
13690 fail:
13691 return NULL;
13692 }
13693
13694
13695 static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) {
13696 PyObject *resultobj;
13697 wxSlider *arg1 = (wxSlider *) 0 ;
13698 int result;
13699 PyObject * obj0 = 0 ;
13700 char *kwnames[] = {
13701 (char *) "self", NULL
13702 };
13703
13704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13707 {
13708 PyThreadState* __tstate = wxPyBeginAllowThreads();
13709 result = (int)((wxSlider const *)arg1)->GetSelStart();
13710
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 resultobj = SWIG_From_int((int)result);
13715 return resultobj;
13716 fail:
13717 return NULL;
13718 }
13719
13720
13721 static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj;
13723 wxSlider *arg1 = (wxSlider *) 0 ;
13724 int arg2 ;
13725 int arg3 ;
13726 PyObject * obj0 = 0 ;
13727 PyObject * obj1 = 0 ;
13728 PyObject * obj2 = 0 ;
13729 char *kwnames[] = {
13730 (char *) "self",(char *) "min",(char *) "max", NULL
13731 };
13732
13733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13736 arg2 = (int)SWIG_As_int(obj1);
13737 if (PyErr_Occurred()) SWIG_fail;
13738 arg3 = (int)SWIG_As_int(obj2);
13739 if (PyErr_Occurred()) SWIG_fail;
13740 {
13741 PyThreadState* __tstate = wxPyBeginAllowThreads();
13742 (arg1)->SetSelection(arg2,arg3);
13743
13744 wxPyEndAllowThreads(__tstate);
13745 if (PyErr_Occurred()) SWIG_fail;
13746 }
13747 Py_INCREF(Py_None); resultobj = Py_None;
13748 return resultobj;
13749 fail:
13750 return NULL;
13751 }
13752
13753
13754 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
13755 PyObject *resultobj;
13756 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13757 wxVisualAttributes result;
13758 PyObject * obj0 = 0 ;
13759 char *kwnames[] = {
13760 (char *) "variant", NULL
13761 };
13762
13763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13764 if (obj0) {
13765 arg1 = (int)SWIG_As_int(obj0);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
13768 {
13769 if (!wxPyCheckForApp()) SWIG_fail;
13770 PyThreadState* __tstate = wxPyBeginAllowThreads();
13771 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13772
13773 wxPyEndAllowThreads(__tstate);
13774 if (PyErr_Occurred()) SWIG_fail;
13775 }
13776 {
13777 wxVisualAttributes * resultptr;
13778 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13779 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13780 }
13781 return resultobj;
13782 fail:
13783 return NULL;
13784 }
13785
13786
13787 static PyObject * Slider_swigregister(PyObject *, PyObject *args) {
13788 PyObject *obj;
13789 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13790 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13791 Py_INCREF(obj);
13792 return Py_BuildValue((char *)"");
13793 }
13794 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
13795 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13796 return 1;
13797 }
13798
13799
13800 static PyObject *_wrap_ToggleButtonNameStr_get() {
13801 PyObject *pyobj;
13802
13803 {
13804 #if wxUSE_UNICODE
13805 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13806 #else
13807 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13808 #endif
13809 }
13810 return pyobj;
13811 }
13812
13813
13814 static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
13815 PyObject *resultobj;
13816 wxWindow *arg1 = (wxWindow *) 0 ;
13817 int arg2 = (int) -1 ;
13818 wxString const &arg3_defvalue = wxPyEmptyString ;
13819 wxString *arg3 = (wxString *) &arg3_defvalue ;
13820 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13821 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13822 wxSize const &arg5_defvalue = wxDefaultSize ;
13823 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13824 long arg6 = (long) 0 ;
13825 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13826 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13827 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13828 wxString *arg8 = (wxString *) &arg8_defvalue ;
13829 wxToggleButton *result;
13830 bool temp3 = False ;
13831 wxPoint temp4 ;
13832 wxSize temp5 ;
13833 bool temp8 = False ;
13834 PyObject * obj0 = 0 ;
13835 PyObject * obj1 = 0 ;
13836 PyObject * obj2 = 0 ;
13837 PyObject * obj3 = 0 ;
13838 PyObject * obj4 = 0 ;
13839 PyObject * obj5 = 0 ;
13840 PyObject * obj6 = 0 ;
13841 PyObject * obj7 = 0 ;
13842 char *kwnames[] = {
13843 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13844 };
13845
13846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13849 if (obj1) {
13850 arg2 = (int)SWIG_As_int(obj1);
13851 if (PyErr_Occurred()) SWIG_fail;
13852 }
13853 if (obj2) {
13854 {
13855 arg3 = wxString_in_helper(obj2);
13856 if (arg3 == NULL) SWIG_fail;
13857 temp3 = True;
13858 }
13859 }
13860 if (obj3) {
13861 {
13862 arg4 = &temp4;
13863 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13864 }
13865 }
13866 if (obj4) {
13867 {
13868 arg5 = &temp5;
13869 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13870 }
13871 }
13872 if (obj5) {
13873 arg6 = (long)SWIG_As_long(obj5);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 if (obj6) {
13877 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13878 SWIG_POINTER_EXCEPTION | 0)) == -1)
13879 SWIG_fail;
13880 if (arg7 == NULL) {
13881 PyErr_SetString(PyExc_TypeError,"null reference");
13882 SWIG_fail;
13883 }
13884 }
13885 if (obj7) {
13886 {
13887 arg8 = wxString_in_helper(obj7);
13888 if (arg8 == NULL) SWIG_fail;
13889 temp8 = True;
13890 }
13891 }
13892 {
13893 if (!wxPyCheckForApp()) SWIG_fail;
13894 PyThreadState* __tstate = wxPyBeginAllowThreads();
13895 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13896
13897 wxPyEndAllowThreads(__tstate);
13898 if (PyErr_Occurred()) SWIG_fail;
13899 }
13900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13901 {
13902 if (temp3)
13903 delete arg3;
13904 }
13905 {
13906 if (temp8)
13907 delete arg8;
13908 }
13909 return resultobj;
13910 fail:
13911 {
13912 if (temp3)
13913 delete arg3;
13914 }
13915 {
13916 if (temp8)
13917 delete arg8;
13918 }
13919 return NULL;
13920 }
13921
13922
13923 static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
13924 PyObject *resultobj;
13925 wxToggleButton *result;
13926 char *kwnames[] = {
13927 NULL
13928 };
13929
13930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
13931 {
13932 if (!wxPyCheckForApp()) SWIG_fail;
13933 PyThreadState* __tstate = wxPyBeginAllowThreads();
13934 result = (wxToggleButton *)new wxToggleButton();
13935
13936 wxPyEndAllowThreads(__tstate);
13937 if (PyErr_Occurred()) SWIG_fail;
13938 }
13939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13940 return resultobj;
13941 fail:
13942 return NULL;
13943 }
13944
13945
13946 static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13947 PyObject *resultobj;
13948 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13949 wxWindow *arg2 = (wxWindow *) 0 ;
13950 int arg3 = (int) -1 ;
13951 wxString const &arg4_defvalue = wxPyEmptyString ;
13952 wxString *arg4 = (wxString *) &arg4_defvalue ;
13953 wxPoint const &arg5_defvalue = wxDefaultPosition ;
13954 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
13955 wxSize const &arg6_defvalue = wxDefaultSize ;
13956 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
13957 long arg7 = (long) 0 ;
13958 wxValidator const &arg8_defvalue = wxDefaultValidator ;
13959 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
13960 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
13961 wxString *arg9 = (wxString *) &arg9_defvalue ;
13962 bool result;
13963 bool temp4 = False ;
13964 wxPoint temp5 ;
13965 wxSize temp6 ;
13966 bool temp9 = False ;
13967 PyObject * obj0 = 0 ;
13968 PyObject * obj1 = 0 ;
13969 PyObject * obj2 = 0 ;
13970 PyObject * obj3 = 0 ;
13971 PyObject * obj4 = 0 ;
13972 PyObject * obj5 = 0 ;
13973 PyObject * obj6 = 0 ;
13974 PyObject * obj7 = 0 ;
13975 PyObject * obj8 = 0 ;
13976 char *kwnames[] = {
13977 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13978 };
13979
13980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
13981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13983 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13985 if (obj2) {
13986 arg3 = (int)SWIG_As_int(obj2);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 if (obj3) {
13990 {
13991 arg4 = wxString_in_helper(obj3);
13992 if (arg4 == NULL) SWIG_fail;
13993 temp4 = True;
13994 }
13995 }
13996 if (obj4) {
13997 {
13998 arg5 = &temp5;
13999 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14000 }
14001 }
14002 if (obj5) {
14003 {
14004 arg6 = &temp6;
14005 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
14006 }
14007 }
14008 if (obj6) {
14009 arg7 = (long)SWIG_As_long(obj6);
14010 if (PyErr_Occurred()) SWIG_fail;
14011 }
14012 if (obj7) {
14013 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
14014 SWIG_POINTER_EXCEPTION | 0)) == -1)
14015 SWIG_fail;
14016 if (arg8 == NULL) {
14017 PyErr_SetString(PyExc_TypeError,"null reference");
14018 SWIG_fail;
14019 }
14020 }
14021 if (obj8) {
14022 {
14023 arg9 = wxString_in_helper(obj8);
14024 if (arg9 == NULL) SWIG_fail;
14025 temp9 = True;
14026 }
14027 }
14028 {
14029 PyThreadState* __tstate = wxPyBeginAllowThreads();
14030 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
14031
14032 wxPyEndAllowThreads(__tstate);
14033 if (PyErr_Occurred()) SWIG_fail;
14034 }
14035 {
14036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14037 }
14038 {
14039 if (temp4)
14040 delete arg4;
14041 }
14042 {
14043 if (temp9)
14044 delete arg9;
14045 }
14046 return resultobj;
14047 fail:
14048 {
14049 if (temp4)
14050 delete arg4;
14051 }
14052 {
14053 if (temp9)
14054 delete arg9;
14055 }
14056 return NULL;
14057 }
14058
14059
14060 static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14061 PyObject *resultobj;
14062 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14063 bool arg2 ;
14064 PyObject * obj0 = 0 ;
14065 PyObject * obj1 = 0 ;
14066 char *kwnames[] = {
14067 (char *) "self",(char *) "value", NULL
14068 };
14069
14070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
14071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14073 arg2 = (bool)SWIG_As_bool(obj1);
14074 if (PyErr_Occurred()) SWIG_fail;
14075 {
14076 PyThreadState* __tstate = wxPyBeginAllowThreads();
14077 (arg1)->SetValue(arg2);
14078
14079 wxPyEndAllowThreads(__tstate);
14080 if (PyErr_Occurred()) SWIG_fail;
14081 }
14082 Py_INCREF(Py_None); resultobj = Py_None;
14083 return resultobj;
14084 fail:
14085 return NULL;
14086 }
14087
14088
14089 static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14090 PyObject *resultobj;
14091 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14092 bool result;
14093 PyObject * obj0 = 0 ;
14094 char *kwnames[] = {
14095 (char *) "self", NULL
14096 };
14097
14098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
14099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14101 {
14102 PyThreadState* __tstate = wxPyBeginAllowThreads();
14103 result = (bool)((wxToggleButton const *)arg1)->GetValue();
14104
14105 wxPyEndAllowThreads(__tstate);
14106 if (PyErr_Occurred()) SWIG_fail;
14107 }
14108 {
14109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14110 }
14111 return resultobj;
14112 fail:
14113 return NULL;
14114 }
14115
14116
14117 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14118 PyObject *resultobj;
14119 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14120 wxString *arg2 = 0 ;
14121 bool temp2 = False ;
14122 PyObject * obj0 = 0 ;
14123 PyObject * obj1 = 0 ;
14124 char *kwnames[] = {
14125 (char *) "self",(char *) "label", NULL
14126 };
14127
14128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
14129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14131 {
14132 arg2 = wxString_in_helper(obj1);
14133 if (arg2 == NULL) SWIG_fail;
14134 temp2 = True;
14135 }
14136 {
14137 PyThreadState* __tstate = wxPyBeginAllowThreads();
14138 (arg1)->SetLabel((wxString const &)*arg2);
14139
14140 wxPyEndAllowThreads(__tstate);
14141 if (PyErr_Occurred()) SWIG_fail;
14142 }
14143 Py_INCREF(Py_None); resultobj = Py_None;
14144 {
14145 if (temp2)
14146 delete arg2;
14147 }
14148 return resultobj;
14149 fail:
14150 {
14151 if (temp2)
14152 delete arg2;
14153 }
14154 return NULL;
14155 }
14156
14157
14158 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14159 PyObject *resultobj;
14160 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14161 wxVisualAttributes result;
14162 PyObject * obj0 = 0 ;
14163 char *kwnames[] = {
14164 (char *) "variant", NULL
14165 };
14166
14167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14168 if (obj0) {
14169 arg1 = (int)SWIG_As_int(obj0);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 {
14173 if (!wxPyCheckForApp()) SWIG_fail;
14174 PyThreadState* __tstate = wxPyBeginAllowThreads();
14175 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
14176
14177 wxPyEndAllowThreads(__tstate);
14178 if (PyErr_Occurred()) SWIG_fail;
14179 }
14180 {
14181 wxVisualAttributes * resultptr;
14182 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14183 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14184 }
14185 return resultobj;
14186 fail:
14187 return NULL;
14188 }
14189
14190
14191 static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
14192 PyObject *obj;
14193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14194 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14195 Py_INCREF(obj);
14196 return Py_BuildValue((char *)"");
14197 }
14198 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
14199 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14200 return 1;
14201 }
14202
14203
14204 static PyObject *_wrap_NOTEBOOK_NAME_get() {
14205 PyObject *pyobj;
14206
14207 {
14208 #if wxUSE_UNICODE
14209 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14210 #else
14211 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14212 #endif
14213 }
14214 return pyobj;
14215 }
14216
14217
14218 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) {
14219 PyObject *resultobj;
14220 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14221 size_t result;
14222 PyObject * obj0 = 0 ;
14223 char *kwnames[] = {
14224 (char *) "self", NULL
14225 };
14226
14227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
14228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14230 {
14231 PyThreadState* __tstate = wxPyBeginAllowThreads();
14232 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
14233
14234 wxPyEndAllowThreads(__tstate);
14235 if (PyErr_Occurred()) SWIG_fail;
14236 }
14237 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
14238 return resultobj;
14239 fail:
14240 return NULL;
14241 }
14242
14243
14244 static PyObject *_wrap_BookCtrl_GetPage(PyObject *, PyObject *args, PyObject *kwargs) {
14245 PyObject *resultobj;
14246 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14247 size_t arg2 ;
14248 wxWindow *result;
14249 PyObject * obj0 = 0 ;
14250 PyObject * obj1 = 0 ;
14251 char *kwnames[] = {
14252 (char *) "self",(char *) "n", NULL
14253 };
14254
14255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
14256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14258 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14259 if (PyErr_Occurred()) SWIG_fail;
14260 {
14261 PyThreadState* __tstate = wxPyBeginAllowThreads();
14262 result = (wxWindow *)(arg1)->GetPage(arg2);
14263
14264 wxPyEndAllowThreads(__tstate);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 }
14267 {
14268 resultobj = wxPyMake_wxObject(result, 0);
14269 }
14270 return resultobj;
14271 fail:
14272 return NULL;
14273 }
14274
14275
14276 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14277 PyObject *resultobj;
14278 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14279 int result;
14280 PyObject * obj0 = 0 ;
14281 char *kwnames[] = {
14282 (char *) "self", NULL
14283 };
14284
14285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14288 {
14289 PyThreadState* __tstate = wxPyBeginAllowThreads();
14290 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14291
14292 wxPyEndAllowThreads(__tstate);
14293 if (PyErr_Occurred()) SWIG_fail;
14294 }
14295 resultobj = SWIG_From_int((int)result);
14296 return resultobj;
14297 fail:
14298 return NULL;
14299 }
14300
14301
14302 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14303 PyObject *resultobj;
14304 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14305 size_t arg2 ;
14306 wxString *arg3 = 0 ;
14307 bool result;
14308 bool temp3 = False ;
14309 PyObject * obj0 = 0 ;
14310 PyObject * obj1 = 0 ;
14311 PyObject * obj2 = 0 ;
14312 char *kwnames[] = {
14313 (char *) "self",(char *) "n",(char *) "strText", NULL
14314 };
14315
14316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14319 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 {
14322 arg3 = wxString_in_helper(obj2);
14323 if (arg3 == NULL) SWIG_fail;
14324 temp3 = True;
14325 }
14326 {
14327 PyThreadState* __tstate = wxPyBeginAllowThreads();
14328 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14329
14330 wxPyEndAllowThreads(__tstate);
14331 if (PyErr_Occurred()) SWIG_fail;
14332 }
14333 {
14334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14335 }
14336 {
14337 if (temp3)
14338 delete arg3;
14339 }
14340 return resultobj;
14341 fail:
14342 {
14343 if (temp3)
14344 delete arg3;
14345 }
14346 return NULL;
14347 }
14348
14349
14350 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14351 PyObject *resultobj;
14352 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14353 size_t arg2 ;
14354 wxString result;
14355 PyObject * obj0 = 0 ;
14356 PyObject * obj1 = 0 ;
14357 char *kwnames[] = {
14358 (char *) "self",(char *) "n", NULL
14359 };
14360
14361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14364 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14369
14370 wxPyEndAllowThreads(__tstate);
14371 if (PyErr_Occurred()) SWIG_fail;
14372 }
14373 {
14374 #if wxUSE_UNICODE
14375 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14376 #else
14377 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14378 #endif
14379 }
14380 return resultobj;
14381 fail:
14382 return NULL;
14383 }
14384
14385
14386 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14387 PyObject *resultobj;
14388 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14389 wxImageList *arg2 = (wxImageList *) 0 ;
14390 PyObject * obj0 = 0 ;
14391 PyObject * obj1 = 0 ;
14392 char *kwnames[] = {
14393 (char *) "self",(char *) "imageList", NULL
14394 };
14395
14396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14401 {
14402 PyThreadState* __tstate = wxPyBeginAllowThreads();
14403 (arg1)->SetImageList(arg2);
14404
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 Py_INCREF(Py_None); resultobj = Py_None;
14409 return resultobj;
14410 fail:
14411 return NULL;
14412 }
14413
14414
14415 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14416 PyObject *resultobj;
14417 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14418 wxImageList *arg2 = (wxImageList *) 0 ;
14419 PyObject * obj0 = 0 ;
14420 PyObject * obj1 = 0 ;
14421 char *kwnames[] = {
14422 (char *) "self",(char *) "imageList", NULL
14423 };
14424
14425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14428 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14429 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14430 {
14431 PyThreadState* __tstate = wxPyBeginAllowThreads();
14432 (arg1)->AssignImageList(arg2);
14433
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 Py_INCREF(Py_None); resultobj = Py_None;
14438 return resultobj;
14439 fail:
14440 return NULL;
14441 }
14442
14443
14444 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14445 PyObject *resultobj;
14446 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14447 wxImageList *result;
14448 PyObject * obj0 = 0 ;
14449 char *kwnames[] = {
14450 (char *) "self", NULL
14451 };
14452
14453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14456 {
14457 PyThreadState* __tstate = wxPyBeginAllowThreads();
14458 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14459
14460 wxPyEndAllowThreads(__tstate);
14461 if (PyErr_Occurred()) SWIG_fail;
14462 }
14463 {
14464 resultobj = wxPyMake_wxObject(result, 0);
14465 }
14466 return resultobj;
14467 fail:
14468 return NULL;
14469 }
14470
14471
14472 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14473 PyObject *resultobj;
14474 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14475 size_t arg2 ;
14476 int result;
14477 PyObject * obj0 = 0 ;
14478 PyObject * obj1 = 0 ;
14479 char *kwnames[] = {
14480 (char *) "self",(char *) "n", NULL
14481 };
14482
14483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14486 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 {
14489 PyThreadState* __tstate = wxPyBeginAllowThreads();
14490 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14491
14492 wxPyEndAllowThreads(__tstate);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 resultobj = SWIG_From_int((int)result);
14496 return resultobj;
14497 fail:
14498 return NULL;
14499 }
14500
14501
14502 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14503 PyObject *resultobj;
14504 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14505 size_t arg2 ;
14506 int arg3 ;
14507 bool result;
14508 PyObject * obj0 = 0 ;
14509 PyObject * obj1 = 0 ;
14510 PyObject * obj2 = 0 ;
14511 char *kwnames[] = {
14512 (char *) "self",(char *) "n",(char *) "imageId", NULL
14513 };
14514
14515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14518 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 arg3 = (int)SWIG_As_int(obj2);
14521 if (PyErr_Occurred()) SWIG_fail;
14522 {
14523 PyThreadState* __tstate = wxPyBeginAllowThreads();
14524 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14525
14526 wxPyEndAllowThreads(__tstate);
14527 if (PyErr_Occurred()) SWIG_fail;
14528 }
14529 {
14530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14531 }
14532 return resultobj;
14533 fail:
14534 return NULL;
14535 }
14536
14537
14538 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
14539 PyObject *resultobj;
14540 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14541 wxSize *arg2 = 0 ;
14542 wxSize temp2 ;
14543 PyObject * obj0 = 0 ;
14544 PyObject * obj1 = 0 ;
14545 char *kwnames[] = {
14546 (char *) "self",(char *) "size", NULL
14547 };
14548
14549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14552 {
14553 arg2 = &temp2;
14554 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14555 }
14556 {
14557 PyThreadState* __tstate = wxPyBeginAllowThreads();
14558 (arg1)->SetPageSize((wxSize const &)*arg2);
14559
14560 wxPyEndAllowThreads(__tstate);
14561 if (PyErr_Occurred()) SWIG_fail;
14562 }
14563 Py_INCREF(Py_None); resultobj = Py_None;
14564 return resultobj;
14565 fail:
14566 return NULL;
14567 }
14568
14569
14570 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
14571 PyObject *resultobj;
14572 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14573 wxSize *arg2 = 0 ;
14574 wxSize result;
14575 wxSize temp2 ;
14576 PyObject * obj0 = 0 ;
14577 PyObject * obj1 = 0 ;
14578 char *kwnames[] = {
14579 (char *) "self",(char *) "sizePage", NULL
14580 };
14581
14582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14585 {
14586 arg2 = &temp2;
14587 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14588 }
14589 {
14590 PyThreadState* __tstate = wxPyBeginAllowThreads();
14591 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14592
14593 wxPyEndAllowThreads(__tstate);
14594 if (PyErr_Occurred()) SWIG_fail;
14595 }
14596 {
14597 wxSize * resultptr;
14598 resultptr = new wxSize((wxSize &) result);
14599 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14600 }
14601 return resultobj;
14602 fail:
14603 return NULL;
14604 }
14605
14606
14607 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj;
14609 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14610 size_t arg2 ;
14611 bool result;
14612 PyObject * obj0 = 0 ;
14613 PyObject * obj1 = 0 ;
14614 char *kwnames[] = {
14615 (char *) "self",(char *) "n", NULL
14616 };
14617
14618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14621 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14622 if (PyErr_Occurred()) SWIG_fail;
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 result = (bool)(arg1)->DeletePage(arg2);
14626
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
14630 {
14631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14632 }
14633 return resultobj;
14634 fail:
14635 return NULL;
14636 }
14637
14638
14639 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) {
14640 PyObject *resultobj;
14641 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14642 size_t arg2 ;
14643 bool result;
14644 PyObject * obj0 = 0 ;
14645 PyObject * obj1 = 0 ;
14646 char *kwnames[] = {
14647 (char *) "self",(char *) "n", NULL
14648 };
14649
14650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14653 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14654 if (PyErr_Occurred()) SWIG_fail;
14655 {
14656 PyThreadState* __tstate = wxPyBeginAllowThreads();
14657 result = (bool)(arg1)->RemovePage(arg2);
14658
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 {
14663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14664 }
14665 return resultobj;
14666 fail:
14667 return NULL;
14668 }
14669
14670
14671 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
14672 PyObject *resultobj;
14673 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14674 bool result;
14675 PyObject * obj0 = 0 ;
14676 char *kwnames[] = {
14677 (char *) "self", NULL
14678 };
14679
14680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14683 {
14684 PyThreadState* __tstate = wxPyBeginAllowThreads();
14685 result = (bool)(arg1)->DeleteAllPages();
14686
14687 wxPyEndAllowThreads(__tstate);
14688 if (PyErr_Occurred()) SWIG_fail;
14689 }
14690 {
14691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14692 }
14693 return resultobj;
14694 fail:
14695 return NULL;
14696 }
14697
14698
14699 static PyObject *_wrap_BookCtrl_AddPage(PyObject *, PyObject *args, PyObject *kwargs) {
14700 PyObject *resultobj;
14701 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14702 wxWindow *arg2 = (wxWindow *) 0 ;
14703 wxString *arg3 = 0 ;
14704 bool arg4 = (bool) False ;
14705 int arg5 = (int) -1 ;
14706 bool result;
14707 bool temp3 = False ;
14708 PyObject * obj0 = 0 ;
14709 PyObject * obj1 = 0 ;
14710 PyObject * obj2 = 0 ;
14711 PyObject * obj3 = 0 ;
14712 PyObject * obj4 = 0 ;
14713 char *kwnames[] = {
14714 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14715 };
14716
14717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14720 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14722 {
14723 arg3 = wxString_in_helper(obj2);
14724 if (arg3 == NULL) SWIG_fail;
14725 temp3 = True;
14726 }
14727 if (obj3) {
14728 arg4 = (bool)SWIG_As_bool(obj3);
14729 if (PyErr_Occurred()) SWIG_fail;
14730 }
14731 if (obj4) {
14732 arg5 = (int)SWIG_As_int(obj4);
14733 if (PyErr_Occurred()) SWIG_fail;
14734 }
14735 {
14736 PyThreadState* __tstate = wxPyBeginAllowThreads();
14737 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14738
14739 wxPyEndAllowThreads(__tstate);
14740 if (PyErr_Occurred()) SWIG_fail;
14741 }
14742 {
14743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14744 }
14745 {
14746 if (temp3)
14747 delete arg3;
14748 }
14749 return resultobj;
14750 fail:
14751 {
14752 if (temp3)
14753 delete arg3;
14754 }
14755 return NULL;
14756 }
14757
14758
14759 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) {
14760 PyObject *resultobj;
14761 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14762 size_t arg2 ;
14763 wxWindow *arg3 = (wxWindow *) 0 ;
14764 wxString *arg4 = 0 ;
14765 bool arg5 = (bool) False ;
14766 int arg6 = (int) -1 ;
14767 bool result;
14768 bool temp4 = False ;
14769 PyObject * obj0 = 0 ;
14770 PyObject * obj1 = 0 ;
14771 PyObject * obj2 = 0 ;
14772 PyObject * obj3 = 0 ;
14773 PyObject * obj4 = 0 ;
14774 PyObject * obj5 = 0 ;
14775 char *kwnames[] = {
14776 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14777 };
14778
14779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14782 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14783 if (PyErr_Occurred()) SWIG_fail;
14784 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14786 {
14787 arg4 = wxString_in_helper(obj3);
14788 if (arg4 == NULL) SWIG_fail;
14789 temp4 = True;
14790 }
14791 if (obj4) {
14792 arg5 = (bool)SWIG_As_bool(obj4);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 }
14795 if (obj5) {
14796 arg6 = (int)SWIG_As_int(obj5);
14797 if (PyErr_Occurred()) SWIG_fail;
14798 }
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14802
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 {
14807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14808 }
14809 {
14810 if (temp4)
14811 delete arg4;
14812 }
14813 return resultobj;
14814 fail:
14815 {
14816 if (temp4)
14817 delete arg4;
14818 }
14819 return NULL;
14820 }
14821
14822
14823 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14824 PyObject *resultobj;
14825 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14826 size_t arg2 ;
14827 int result;
14828 PyObject * obj0 = 0 ;
14829 PyObject * obj1 = 0 ;
14830 char *kwnames[] = {
14831 (char *) "self",(char *) "n", NULL
14832 };
14833
14834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14837 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 {
14840 PyThreadState* __tstate = wxPyBeginAllowThreads();
14841 result = (int)(arg1)->SetSelection(arg2);
14842
14843 wxPyEndAllowThreads(__tstate);
14844 if (PyErr_Occurred()) SWIG_fail;
14845 }
14846 resultobj = SWIG_From_int((int)result);
14847 return resultobj;
14848 fail:
14849 return NULL;
14850 }
14851
14852
14853 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14854 PyObject *resultobj;
14855 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14856 bool arg2 = (bool) True ;
14857 PyObject * obj0 = 0 ;
14858 PyObject * obj1 = 0 ;
14859 char *kwnames[] = {
14860 (char *) "self",(char *) "forward", NULL
14861 };
14862
14863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14866 if (obj1) {
14867 arg2 = (bool)SWIG_As_bool(obj1);
14868 if (PyErr_Occurred()) SWIG_fail;
14869 }
14870 {
14871 PyThreadState* __tstate = wxPyBeginAllowThreads();
14872 (arg1)->AdvanceSelection(arg2);
14873
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 Py_INCREF(Py_None); resultobj = Py_None;
14878 return resultobj;
14879 fail:
14880 return NULL;
14881 }
14882
14883
14884 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14885 PyObject *resultobj;
14886 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14887 wxVisualAttributes result;
14888 PyObject * obj0 = 0 ;
14889 char *kwnames[] = {
14890 (char *) "variant", NULL
14891 };
14892
14893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14894 if (obj0) {
14895 arg1 = (int)SWIG_As_int(obj0);
14896 if (PyErr_Occurred()) SWIG_fail;
14897 }
14898 {
14899 if (!wxPyCheckForApp()) SWIG_fail;
14900 PyThreadState* __tstate = wxPyBeginAllowThreads();
14901 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14902
14903 wxPyEndAllowThreads(__tstate);
14904 if (PyErr_Occurred()) SWIG_fail;
14905 }
14906 {
14907 wxVisualAttributes * resultptr;
14908 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14909 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14910 }
14911 return resultobj;
14912 fail:
14913 return NULL;
14914 }
14915
14916
14917 static PyObject * BookCtrl_swigregister(PyObject *, PyObject *args) {
14918 PyObject *obj;
14919 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14920 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
14921 Py_INCREF(obj);
14922 return Py_BuildValue((char *)"");
14923 }
14924 static PyObject *_wrap_new_BookCtrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
14925 PyObject *resultobj;
14926 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14927 int arg2 = (int) 0 ;
14928 int arg3 = (int) -1 ;
14929 int arg4 = (int) -1 ;
14930 wxBookCtrlEvent *result;
14931 PyObject * obj0 = 0 ;
14932 PyObject * obj1 = 0 ;
14933 PyObject * obj2 = 0 ;
14934 PyObject * obj3 = 0 ;
14935 char *kwnames[] = {
14936 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14937 };
14938
14939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14940 if (obj0) {
14941 arg1 = (wxEventType)SWIG_As_int(obj0);
14942 if (PyErr_Occurred()) SWIG_fail;
14943 }
14944 if (obj1) {
14945 arg2 = (int)SWIG_As_int(obj1);
14946 if (PyErr_Occurred()) SWIG_fail;
14947 }
14948 if (obj2) {
14949 arg3 = (int)SWIG_As_int(obj2);
14950 if (PyErr_Occurred()) SWIG_fail;
14951 }
14952 if (obj3) {
14953 arg4 = (int)SWIG_As_int(obj3);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 {
14957 PyThreadState* __tstate = wxPyBeginAllowThreads();
14958 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
14959
14960 wxPyEndAllowThreads(__tstate);
14961 if (PyErr_Occurred()) SWIG_fail;
14962 }
14963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
14964 return resultobj;
14965 fail:
14966 return NULL;
14967 }
14968
14969
14970 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14971 PyObject *resultobj;
14972 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14973 int result;
14974 PyObject * obj0 = 0 ;
14975 char *kwnames[] = {
14976 (char *) "self", NULL
14977 };
14978
14979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
14980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14982 {
14983 PyThreadState* __tstate = wxPyBeginAllowThreads();
14984 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
14985
14986 wxPyEndAllowThreads(__tstate);
14987 if (PyErr_Occurred()) SWIG_fail;
14988 }
14989 resultobj = SWIG_From_int((int)result);
14990 return resultobj;
14991 fail:
14992 return NULL;
14993 }
14994
14995
14996 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14997 PyObject *resultobj;
14998 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14999 int arg2 ;
15000 PyObject * obj0 = 0 ;
15001 PyObject * obj1 = 0 ;
15002 char *kwnames[] = {
15003 (char *) "self",(char *) "nSel", NULL
15004 };
15005
15006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15009 arg2 = (int)SWIG_As_int(obj1);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 {
15012 PyThreadState* __tstate = wxPyBeginAllowThreads();
15013 (arg1)->SetSelection(arg2);
15014
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 Py_INCREF(Py_None); resultobj = Py_None;
15019 return resultobj;
15020 fail:
15021 return NULL;
15022 }
15023
15024
15025 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15026 PyObject *resultobj;
15027 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15028 int result;
15029 PyObject * obj0 = 0 ;
15030 char *kwnames[] = {
15031 (char *) "self", NULL
15032 };
15033
15034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
15035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15037 {
15038 PyThreadState* __tstate = wxPyBeginAllowThreads();
15039 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
15040
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 resultobj = SWIG_From_int((int)result);
15045 return resultobj;
15046 fail:
15047 return NULL;
15048 }
15049
15050
15051 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj;
15053 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15054 int arg2 ;
15055 PyObject * obj0 = 0 ;
15056 PyObject * obj1 = 0 ;
15057 char *kwnames[] = {
15058 (char *) "self",(char *) "nOldSel", NULL
15059 };
15060
15061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
15062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15064 arg2 = (int)SWIG_As_int(obj1);
15065 if (PyErr_Occurred()) SWIG_fail;
15066 {
15067 PyThreadState* __tstate = wxPyBeginAllowThreads();
15068 (arg1)->SetOldSelection(arg2);
15069
15070 wxPyEndAllowThreads(__tstate);
15071 if (PyErr_Occurred()) SWIG_fail;
15072 }
15073 Py_INCREF(Py_None); resultobj = Py_None;
15074 return resultobj;
15075 fail:
15076 return NULL;
15077 }
15078
15079
15080 static PyObject * BookCtrlEvent_swigregister(PyObject *, PyObject *args) {
15081 PyObject *obj;
15082 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15083 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
15084 Py_INCREF(obj);
15085 return Py_BuildValue((char *)"");
15086 }
15087 static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) {
15088 PyObject *resultobj;
15089 wxWindow *arg1 = (wxWindow *) 0 ;
15090 int arg2 = (int) -1 ;
15091 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15092 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15093 wxSize const &arg4_defvalue = wxDefaultSize ;
15094 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15095 long arg5 = (long) 0 ;
15096 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
15097 wxString *arg6 = (wxString *) &arg6_defvalue ;
15098 wxNotebook *result;
15099 wxPoint temp3 ;
15100 wxSize temp4 ;
15101 bool temp6 = False ;
15102 PyObject * obj0 = 0 ;
15103 PyObject * obj1 = 0 ;
15104 PyObject * obj2 = 0 ;
15105 PyObject * obj3 = 0 ;
15106 PyObject * obj4 = 0 ;
15107 PyObject * obj5 = 0 ;
15108 char *kwnames[] = {
15109 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15110 };
15111
15112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15115 if (obj1) {
15116 arg2 = (int)SWIG_As_int(obj1);
15117 if (PyErr_Occurred()) SWIG_fail;
15118 }
15119 if (obj2) {
15120 {
15121 arg3 = &temp3;
15122 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15123 }
15124 }
15125 if (obj3) {
15126 {
15127 arg4 = &temp4;
15128 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15129 }
15130 }
15131 if (obj4) {
15132 arg5 = (long)SWIG_As_long(obj4);
15133 if (PyErr_Occurred()) SWIG_fail;
15134 }
15135 if (obj5) {
15136 {
15137 arg6 = wxString_in_helper(obj5);
15138 if (arg6 == NULL) SWIG_fail;
15139 temp6 = True;
15140 }
15141 }
15142 {
15143 if (!wxPyCheckForApp()) SWIG_fail;
15144 PyThreadState* __tstate = wxPyBeginAllowThreads();
15145 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15146
15147 wxPyEndAllowThreads(__tstate);
15148 if (PyErr_Occurred()) SWIG_fail;
15149 }
15150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15151 {
15152 if (temp6)
15153 delete arg6;
15154 }
15155 return resultobj;
15156 fail:
15157 {
15158 if (temp6)
15159 delete arg6;
15160 }
15161 return NULL;
15162 }
15163
15164
15165 static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
15166 PyObject *resultobj;
15167 wxNotebook *result;
15168 char *kwnames[] = {
15169 NULL
15170 };
15171
15172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
15173 {
15174 if (!wxPyCheckForApp()) SWIG_fail;
15175 PyThreadState* __tstate = wxPyBeginAllowThreads();
15176 result = (wxNotebook *)new wxNotebook();
15177
15178 wxPyEndAllowThreads(__tstate);
15179 if (PyErr_Occurred()) SWIG_fail;
15180 }
15181 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15182 return resultobj;
15183 fail:
15184 return NULL;
15185 }
15186
15187
15188 static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15189 PyObject *resultobj;
15190 wxNotebook *arg1 = (wxNotebook *) 0 ;
15191 wxWindow *arg2 = (wxWindow *) 0 ;
15192 int arg3 = (int) -1 ;
15193 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15194 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15195 wxSize const &arg5_defvalue = wxDefaultSize ;
15196 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15197 long arg6 = (long) 0 ;
15198 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15199 wxString *arg7 = (wxString *) &arg7_defvalue ;
15200 bool result;
15201 wxPoint temp4 ;
15202 wxSize temp5 ;
15203 bool temp7 = False ;
15204 PyObject * obj0 = 0 ;
15205 PyObject * obj1 = 0 ;
15206 PyObject * obj2 = 0 ;
15207 PyObject * obj3 = 0 ;
15208 PyObject * obj4 = 0 ;
15209 PyObject * obj5 = 0 ;
15210 PyObject * obj6 = 0 ;
15211 char *kwnames[] = {
15212 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15213 };
15214
15215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15218 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15220 if (obj2) {
15221 arg3 = (int)SWIG_As_int(obj2);
15222 if (PyErr_Occurred()) SWIG_fail;
15223 }
15224 if (obj3) {
15225 {
15226 arg4 = &temp4;
15227 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15228 }
15229 }
15230 if (obj4) {
15231 {
15232 arg5 = &temp5;
15233 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15234 }
15235 }
15236 if (obj5) {
15237 arg6 = (long)SWIG_As_long(obj5);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 if (obj6) {
15241 {
15242 arg7 = wxString_in_helper(obj6);
15243 if (arg7 == NULL) SWIG_fail;
15244 temp7 = True;
15245 }
15246 }
15247 {
15248 PyThreadState* __tstate = wxPyBeginAllowThreads();
15249 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15250
15251 wxPyEndAllowThreads(__tstate);
15252 if (PyErr_Occurred()) SWIG_fail;
15253 }
15254 {
15255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15256 }
15257 {
15258 if (temp7)
15259 delete arg7;
15260 }
15261 return resultobj;
15262 fail:
15263 {
15264 if (temp7)
15265 delete arg7;
15266 }
15267 return NULL;
15268 }
15269
15270
15271 static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
15272 PyObject *resultobj;
15273 wxNotebook *arg1 = (wxNotebook *) 0 ;
15274 int result;
15275 PyObject * obj0 = 0 ;
15276 char *kwnames[] = {
15277 (char *) "self", NULL
15278 };
15279
15280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15283 {
15284 PyThreadState* __tstate = wxPyBeginAllowThreads();
15285 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15286
15287 wxPyEndAllowThreads(__tstate);
15288 if (PyErr_Occurred()) SWIG_fail;
15289 }
15290 resultobj = SWIG_From_int((int)result);
15291 return resultobj;
15292 fail:
15293 return NULL;
15294 }
15295
15296
15297 static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) {
15298 PyObject *resultobj;
15299 wxNotebook *arg1 = (wxNotebook *) 0 ;
15300 wxSize *arg2 = 0 ;
15301 wxSize temp2 ;
15302 PyObject * obj0 = 0 ;
15303 PyObject * obj1 = 0 ;
15304 char *kwnames[] = {
15305 (char *) "self",(char *) "padding", NULL
15306 };
15307
15308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15311 {
15312 arg2 = &temp2;
15313 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15314 }
15315 {
15316 PyThreadState* __tstate = wxPyBeginAllowThreads();
15317 (arg1)->SetPadding((wxSize const &)*arg2);
15318
15319 wxPyEndAllowThreads(__tstate);
15320 if (PyErr_Occurred()) SWIG_fail;
15321 }
15322 Py_INCREF(Py_None); resultobj = Py_None;
15323 return resultobj;
15324 fail:
15325 return NULL;
15326 }
15327
15328
15329 static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) {
15330 PyObject *resultobj;
15331 wxNotebook *arg1 = (wxNotebook *) 0 ;
15332 wxSize *arg2 = 0 ;
15333 wxSize temp2 ;
15334 PyObject * obj0 = 0 ;
15335 PyObject * obj1 = 0 ;
15336 char *kwnames[] = {
15337 (char *) "self",(char *) "sz", NULL
15338 };
15339
15340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15343 {
15344 arg2 = &temp2;
15345 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15346 }
15347 {
15348 PyThreadState* __tstate = wxPyBeginAllowThreads();
15349 (arg1)->SetTabSize((wxSize const &)*arg2);
15350
15351 wxPyEndAllowThreads(__tstate);
15352 if (PyErr_Occurred()) SWIG_fail;
15353 }
15354 Py_INCREF(Py_None); resultobj = Py_None;
15355 return resultobj;
15356 fail:
15357 return NULL;
15358 }
15359
15360
15361 static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
15362 PyObject *resultobj;
15363 wxNotebook *arg1 = (wxNotebook *) 0 ;
15364 wxPoint *arg2 = 0 ;
15365 long *arg3 = (long *) 0 ;
15366 int result;
15367 wxPoint temp2 ;
15368 long temp3 ;
15369 int res3 = 0 ;
15370 PyObject * obj0 = 0 ;
15371 PyObject * obj1 = 0 ;
15372 char *kwnames[] = {
15373 (char *) "self",(char *) "pt", NULL
15374 };
15375
15376 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15380 {
15381 arg2 = &temp2;
15382 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15383 }
15384 {
15385 PyThreadState* __tstate = wxPyBeginAllowThreads();
15386 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15387
15388 wxPyEndAllowThreads(__tstate);
15389 if (PyErr_Occurred()) SWIG_fail;
15390 }
15391 resultobj = SWIG_From_int((int)result);
15392 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15393 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
15394 return resultobj;
15395 fail:
15396 return NULL;
15397 }
15398
15399
15400 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
15401 PyObject *resultobj;
15402 wxNotebook *arg1 = (wxNotebook *) 0 ;
15403 wxSize *arg2 = 0 ;
15404 wxSize result;
15405 wxSize temp2 ;
15406 PyObject * obj0 = 0 ;
15407 PyObject * obj1 = 0 ;
15408 char *kwnames[] = {
15409 (char *) "self",(char *) "sizePage", NULL
15410 };
15411
15412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15415 {
15416 arg2 = &temp2;
15417 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15418 }
15419 {
15420 PyThreadState* __tstate = wxPyBeginAllowThreads();
15421 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15422
15423 wxPyEndAllowThreads(__tstate);
15424 if (PyErr_Occurred()) SWIG_fail;
15425 }
15426 {
15427 wxSize * resultptr;
15428 resultptr = new wxSize((wxSize &) result);
15429 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15430 }
15431 return resultobj;
15432 fail:
15433 return NULL;
15434 }
15435
15436
15437 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15438 PyObject *resultobj;
15439 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15440 wxVisualAttributes result;
15441 PyObject * obj0 = 0 ;
15442 char *kwnames[] = {
15443 (char *) "variant", NULL
15444 };
15445
15446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15447 if (obj0) {
15448 arg1 = (int)SWIG_As_int(obj0);
15449 if (PyErr_Occurred()) SWIG_fail;
15450 }
15451 {
15452 if (!wxPyCheckForApp()) SWIG_fail;
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15455
15456 wxPyEndAllowThreads(__tstate);
15457 if (PyErr_Occurred()) SWIG_fail;
15458 }
15459 {
15460 wxVisualAttributes * resultptr;
15461 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15462 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15463 }
15464 return resultobj;
15465 fail:
15466 return NULL;
15467 }
15468
15469
15470 static PyObject * Notebook_swigregister(PyObject *, PyObject *args) {
15471 PyObject *obj;
15472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15473 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15474 Py_INCREF(obj);
15475 return Py_BuildValue((char *)"");
15476 }
15477 static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15478 PyObject *resultobj;
15479 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15480 int arg2 = (int) 0 ;
15481 int arg3 = (int) -1 ;
15482 int arg4 = (int) -1 ;
15483 wxNotebookEvent *result;
15484 PyObject * obj0 = 0 ;
15485 PyObject * obj1 = 0 ;
15486 PyObject * obj2 = 0 ;
15487 PyObject * obj3 = 0 ;
15488 char *kwnames[] = {
15489 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15490 };
15491
15492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15493 if (obj0) {
15494 arg1 = (wxEventType)SWIG_As_int(obj0);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 if (obj1) {
15498 arg2 = (int)SWIG_As_int(obj1);
15499 if (PyErr_Occurred()) SWIG_fail;
15500 }
15501 if (obj2) {
15502 arg3 = (int)SWIG_As_int(obj2);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 if (obj3) {
15506 arg4 = (int)SWIG_As_int(obj3);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 {
15510 PyThreadState* __tstate = wxPyBeginAllowThreads();
15511 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15512
15513 wxPyEndAllowThreads(__tstate);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 }
15516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15517 return resultobj;
15518 fail:
15519 return NULL;
15520 }
15521
15522
15523 static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) {
15524 PyObject *obj;
15525 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15526 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15527 Py_INCREF(obj);
15528 return Py_BuildValue((char *)"");
15529 }
15530 static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) {
15531 PyObject *resultobj;
15532 wxWindow *arg1 = (wxWindow *) 0 ;
15533 int arg2 = (int) -1 ;
15534 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15535 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15536 wxSize const &arg4_defvalue = wxDefaultSize ;
15537 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15538 long arg5 = (long) 0 ;
15539 wxString const &arg6_defvalue = wxPyEmptyString ;
15540 wxString *arg6 = (wxString *) &arg6_defvalue ;
15541 wxListbook *result;
15542 wxPoint temp3 ;
15543 wxSize temp4 ;
15544 bool temp6 = False ;
15545 PyObject * obj0 = 0 ;
15546 PyObject * obj1 = 0 ;
15547 PyObject * obj2 = 0 ;
15548 PyObject * obj3 = 0 ;
15549 PyObject * obj4 = 0 ;
15550 PyObject * obj5 = 0 ;
15551 char *kwnames[] = {
15552 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15553 };
15554
15555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15558 if (obj1) {
15559 arg2 = (int)SWIG_As_int(obj1);
15560 if (PyErr_Occurred()) SWIG_fail;
15561 }
15562 if (obj2) {
15563 {
15564 arg3 = &temp3;
15565 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15566 }
15567 }
15568 if (obj3) {
15569 {
15570 arg4 = &temp4;
15571 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15572 }
15573 }
15574 if (obj4) {
15575 arg5 = (long)SWIG_As_long(obj4);
15576 if (PyErr_Occurred()) SWIG_fail;
15577 }
15578 if (obj5) {
15579 {
15580 arg6 = wxString_in_helper(obj5);
15581 if (arg6 == NULL) SWIG_fail;
15582 temp6 = True;
15583 }
15584 }
15585 {
15586 if (!wxPyCheckForApp()) SWIG_fail;
15587 PyThreadState* __tstate = wxPyBeginAllowThreads();
15588 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15589
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15594 {
15595 if (temp6)
15596 delete arg6;
15597 }
15598 return resultobj;
15599 fail:
15600 {
15601 if (temp6)
15602 delete arg6;
15603 }
15604 return NULL;
15605 }
15606
15607
15608 static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) {
15609 PyObject *resultobj;
15610 wxListbook *result;
15611 char *kwnames[] = {
15612 NULL
15613 };
15614
15615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15616 {
15617 if (!wxPyCheckForApp()) SWIG_fail;
15618 PyThreadState* __tstate = wxPyBeginAllowThreads();
15619 result = (wxListbook *)new wxListbook();
15620
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15625 return resultobj;
15626 fail:
15627 return NULL;
15628 }
15629
15630
15631 static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj;
15633 wxListbook *arg1 = (wxListbook *) 0 ;
15634 wxWindow *arg2 = (wxWindow *) 0 ;
15635 int arg3 = (int) -1 ;
15636 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15637 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15638 wxSize const &arg5_defvalue = wxDefaultSize ;
15639 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15640 long arg6 = (long) 0 ;
15641 wxString const &arg7_defvalue = wxPyEmptyString ;
15642 wxString *arg7 = (wxString *) &arg7_defvalue ;
15643 bool result;
15644 wxPoint temp4 ;
15645 wxSize temp5 ;
15646 bool temp7 = False ;
15647 PyObject * obj0 = 0 ;
15648 PyObject * obj1 = 0 ;
15649 PyObject * obj2 = 0 ;
15650 PyObject * obj3 = 0 ;
15651 PyObject * obj4 = 0 ;
15652 PyObject * obj5 = 0 ;
15653 PyObject * obj6 = 0 ;
15654 char *kwnames[] = {
15655 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15656 };
15657
15658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15663 if (obj2) {
15664 arg3 = (int)SWIG_As_int(obj2);
15665 if (PyErr_Occurred()) SWIG_fail;
15666 }
15667 if (obj3) {
15668 {
15669 arg4 = &temp4;
15670 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15671 }
15672 }
15673 if (obj4) {
15674 {
15675 arg5 = &temp5;
15676 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15677 }
15678 }
15679 if (obj5) {
15680 arg6 = (long)SWIG_As_long(obj5);
15681 if (PyErr_Occurred()) SWIG_fail;
15682 }
15683 if (obj6) {
15684 {
15685 arg7 = wxString_in_helper(obj6);
15686 if (arg7 == NULL) SWIG_fail;
15687 temp7 = True;
15688 }
15689 }
15690 {
15691 PyThreadState* __tstate = wxPyBeginAllowThreads();
15692 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15693
15694 wxPyEndAllowThreads(__tstate);
15695 if (PyErr_Occurred()) SWIG_fail;
15696 }
15697 {
15698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15699 }
15700 {
15701 if (temp7)
15702 delete arg7;
15703 }
15704 return resultobj;
15705 fail:
15706 {
15707 if (temp7)
15708 delete arg7;
15709 }
15710 return NULL;
15711 }
15712
15713
15714 static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
15715 PyObject *resultobj;
15716 wxListbook *arg1 = (wxListbook *) 0 ;
15717 bool result;
15718 PyObject * obj0 = 0 ;
15719 char *kwnames[] = {
15720 (char *) "self", NULL
15721 };
15722
15723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15726 {
15727 PyThreadState* __tstate = wxPyBeginAllowThreads();
15728 result = (bool)((wxListbook const *)arg1)->IsVertical();
15729
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 {
15734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15735 }
15736 return resultobj;
15737 fail:
15738 return NULL;
15739 }
15740
15741
15742 static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) {
15743 PyObject *resultobj;
15744 wxListbook *arg1 = (wxListbook *) 0 ;
15745 wxListView *result;
15746 PyObject * obj0 = 0 ;
15747 char *kwnames[] = {
15748 (char *) "self", NULL
15749 };
15750
15751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail;
15752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15754 {
15755 PyThreadState* __tstate = wxPyBeginAllowThreads();
15756 result = (wxListView *)(arg1)->GetListView();
15757
15758 wxPyEndAllowThreads(__tstate);
15759 if (PyErr_Occurred()) SWIG_fail;
15760 }
15761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0);
15762 return resultobj;
15763 fail:
15764 return NULL;
15765 }
15766
15767
15768 static PyObject * Listbook_swigregister(PyObject *, PyObject *args) {
15769 PyObject *obj;
15770 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15771 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15772 Py_INCREF(obj);
15773 return Py_BuildValue((char *)"");
15774 }
15775 static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15776 PyObject *resultobj;
15777 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15778 int arg2 = (int) 0 ;
15779 int arg3 = (int) -1 ;
15780 int arg4 = (int) -1 ;
15781 wxListbookEvent *result;
15782 PyObject * obj0 = 0 ;
15783 PyObject * obj1 = 0 ;
15784 PyObject * obj2 = 0 ;
15785 PyObject * obj3 = 0 ;
15786 char *kwnames[] = {
15787 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15788 };
15789
15790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15791 if (obj0) {
15792 arg1 = (wxEventType)SWIG_As_int(obj0);
15793 if (PyErr_Occurred()) SWIG_fail;
15794 }
15795 if (obj1) {
15796 arg2 = (int)SWIG_As_int(obj1);
15797 if (PyErr_Occurred()) SWIG_fail;
15798 }
15799 if (obj2) {
15800 arg3 = (int)SWIG_As_int(obj2);
15801 if (PyErr_Occurred()) SWIG_fail;
15802 }
15803 if (obj3) {
15804 arg4 = (int)SWIG_As_int(obj3);
15805 if (PyErr_Occurred()) SWIG_fail;
15806 }
15807 {
15808 PyThreadState* __tstate = wxPyBeginAllowThreads();
15809 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15810
15811 wxPyEndAllowThreads(__tstate);
15812 if (PyErr_Occurred()) SWIG_fail;
15813 }
15814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15815 return resultobj;
15816 fail:
15817 return NULL;
15818 }
15819
15820
15821 static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) {
15822 PyObject *obj;
15823 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15824 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15825 Py_INCREF(obj);
15826 return Py_BuildValue((char *)"");
15827 }
15828 static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) {
15829 PyObject *resultobj;
15830 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15831 wxBookCtrlSizer *result;
15832 PyObject * obj0 = 0 ;
15833 char *kwnames[] = {
15834 (char *) "nb", NULL
15835 };
15836
15837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15840 {
15841 PyThreadState* __tstate = wxPyBeginAllowThreads();
15842 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15843
15844 wxPyEndAllowThreads(__tstate);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15848 return resultobj;
15849 fail:
15850 return NULL;
15851 }
15852
15853
15854 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
15855 PyObject *resultobj;
15856 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15857 PyObject * obj0 = 0 ;
15858 char *kwnames[] = {
15859 (char *) "self", NULL
15860 };
15861
15862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15865 {
15866 PyThreadState* __tstate = wxPyBeginAllowThreads();
15867 (arg1)->RecalcSizes();
15868
15869 wxPyEndAllowThreads(__tstate);
15870 if (PyErr_Occurred()) SWIG_fail;
15871 }
15872 Py_INCREF(Py_None); resultobj = Py_None;
15873 return resultobj;
15874 fail:
15875 return NULL;
15876 }
15877
15878
15879 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
15880 PyObject *resultobj;
15881 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15882 wxSize result;
15883 PyObject * obj0 = 0 ;
15884 char *kwnames[] = {
15885 (char *) "self", NULL
15886 };
15887
15888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
15889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15891 {
15892 PyThreadState* __tstate = wxPyBeginAllowThreads();
15893 result = (arg1)->CalcMin();
15894
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 {
15899 wxSize * resultptr;
15900 resultptr = new wxSize((wxSize &) result);
15901 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15902 }
15903 return resultobj;
15904 fail:
15905 return NULL;
15906 }
15907
15908
15909 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
15910 PyObject *resultobj;
15911 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15912 wxBookCtrl *result;
15913 PyObject * obj0 = 0 ;
15914 char *kwnames[] = {
15915 (char *) "self", NULL
15916 };
15917
15918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
15919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15921 {
15922 PyThreadState* __tstate = wxPyBeginAllowThreads();
15923 result = (wxBookCtrl *)(arg1)->GetControl();
15924
15925 wxPyEndAllowThreads(__tstate);
15926 if (PyErr_Occurred()) SWIG_fail;
15927 }
15928 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
15929 return resultobj;
15930 fail:
15931 return NULL;
15932 }
15933
15934
15935 static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) {
15936 PyObject *obj;
15937 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15938 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
15939 Py_INCREF(obj);
15940 return Py_BuildValue((char *)"");
15941 }
15942 static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) {
15943 PyObject *resultobj;
15944 wxNotebook *arg1 = (wxNotebook *) 0 ;
15945 wxNotebookSizer *result;
15946 PyObject * obj0 = 0 ;
15947 char *kwnames[] = {
15948 (char *) "nb", NULL
15949 };
15950
15951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
15952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15954 {
15955 PyThreadState* __tstate = wxPyBeginAllowThreads();
15956 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
15957
15958 wxPyEndAllowThreads(__tstate);
15959 if (PyErr_Occurred()) SWIG_fail;
15960 }
15961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
15962 return resultobj;
15963 fail:
15964 return NULL;
15965 }
15966
15967
15968 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
15969 PyObject *resultobj;
15970 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15971 PyObject * obj0 = 0 ;
15972 char *kwnames[] = {
15973 (char *) "self", NULL
15974 };
15975
15976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15979 {
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 (arg1)->RecalcSizes();
15982
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 Py_INCREF(Py_None); resultobj = Py_None;
15987 return resultobj;
15988 fail:
15989 return NULL;
15990 }
15991
15992
15993 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
15994 PyObject *resultobj;
15995 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15996 wxSize result;
15997 PyObject * obj0 = 0 ;
15998 char *kwnames[] = {
15999 (char *) "self", NULL
16000 };
16001
16002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
16003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16005 {
16006 PyThreadState* __tstate = wxPyBeginAllowThreads();
16007 result = (arg1)->CalcMin();
16008
16009 wxPyEndAllowThreads(__tstate);
16010 if (PyErr_Occurred()) SWIG_fail;
16011 }
16012 {
16013 wxSize * resultptr;
16014 resultptr = new wxSize((wxSize &) result);
16015 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16016 }
16017 return resultobj;
16018 fail:
16019 return NULL;
16020 }
16021
16022
16023 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
16024 PyObject *resultobj;
16025 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16026 wxNotebook *result;
16027 PyObject * obj0 = 0 ;
16028 char *kwnames[] = {
16029 (char *) "self", NULL
16030 };
16031
16032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
16033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16035 {
16036 PyThreadState* __tstate = wxPyBeginAllowThreads();
16037 result = (wxNotebook *)(arg1)->GetNotebook();
16038
16039 wxPyEndAllowThreads(__tstate);
16040 if (PyErr_Occurred()) SWIG_fail;
16041 }
16042 {
16043 resultobj = wxPyMake_wxObject(result, 0);
16044 }
16045 return resultobj;
16046 fail:
16047 return NULL;
16048 }
16049
16050
16051 static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) {
16052 PyObject *obj;
16053 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16054 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
16055 Py_INCREF(obj);
16056 return Py_BuildValue((char *)"");
16057 }
16058 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
16059 PyObject *resultobj;
16060 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16061 int result;
16062 PyObject * obj0 = 0 ;
16063 char *kwnames[] = {
16064 (char *) "self", NULL
16065 };
16066
16067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
16068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16070 {
16071 PyThreadState* __tstate = wxPyBeginAllowThreads();
16072 result = (int)(arg1)->GetId();
16073
16074 wxPyEndAllowThreads(__tstate);
16075 if (PyErr_Occurred()) SWIG_fail;
16076 }
16077 resultobj = SWIG_From_int((int)result);
16078 return resultobj;
16079 fail:
16080 return NULL;
16081 }
16082
16083
16084 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16085 PyObject *resultobj;
16086 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16087 wxControl *result;
16088 PyObject * obj0 = 0 ;
16089 char *kwnames[] = {
16090 (char *) "self", NULL
16091 };
16092
16093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
16094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16096 {
16097 PyThreadState* __tstate = wxPyBeginAllowThreads();
16098 result = (wxControl *)(arg1)->GetControl();
16099
16100 wxPyEndAllowThreads(__tstate);
16101 if (PyErr_Occurred()) SWIG_fail;
16102 }
16103 {
16104 resultobj = wxPyMake_wxObject(result, 0);
16105 }
16106 return resultobj;
16107 fail:
16108 return NULL;
16109 }
16110
16111
16112 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
16113 PyObject *resultobj;
16114 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16115 wxToolBarBase *result;
16116 PyObject * obj0 = 0 ;
16117 char *kwnames[] = {
16118 (char *) "self", NULL
16119 };
16120
16121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
16122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16124 {
16125 PyThreadState* __tstate = wxPyBeginAllowThreads();
16126 result = (wxToolBarBase *)(arg1)->GetToolBar();
16127
16128 wxPyEndAllowThreads(__tstate);
16129 if (PyErr_Occurred()) SWIG_fail;
16130 }
16131 {
16132 resultobj = wxPyMake_wxObject(result, 0);
16133 }
16134 return resultobj;
16135 fail:
16136 return NULL;
16137 }
16138
16139
16140 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
16141 PyObject *resultobj;
16142 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16143 int result;
16144 PyObject * obj0 = 0 ;
16145 char *kwnames[] = {
16146 (char *) "self", NULL
16147 };
16148
16149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
16150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16152 {
16153 PyThreadState* __tstate = wxPyBeginAllowThreads();
16154 result = (int)(arg1)->IsButton();
16155
16156 wxPyEndAllowThreads(__tstate);
16157 if (PyErr_Occurred()) SWIG_fail;
16158 }
16159 resultobj = SWIG_From_int((int)result);
16160 return resultobj;
16161 fail:
16162 return NULL;
16163 }
16164
16165
16166 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) {
16167 PyObject *resultobj;
16168 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16169 int result;
16170 PyObject * obj0 = 0 ;
16171 char *kwnames[] = {
16172 (char *) "self", NULL
16173 };
16174
16175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
16176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16178 {
16179 PyThreadState* __tstate = wxPyBeginAllowThreads();
16180 result = (int)(arg1)->IsControl();
16181
16182 wxPyEndAllowThreads(__tstate);
16183 if (PyErr_Occurred()) SWIG_fail;
16184 }
16185 resultobj = SWIG_From_int((int)result);
16186 return resultobj;
16187 fail:
16188 return NULL;
16189 }
16190
16191
16192 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16193 PyObject *resultobj;
16194 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16195 int result;
16196 PyObject * obj0 = 0 ;
16197 char *kwnames[] = {
16198 (char *) "self", NULL
16199 };
16200
16201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16204 {
16205 PyThreadState* __tstate = wxPyBeginAllowThreads();
16206 result = (int)(arg1)->IsSeparator();
16207
16208 wxPyEndAllowThreads(__tstate);
16209 if (PyErr_Occurred()) SWIG_fail;
16210 }
16211 resultobj = SWIG_From_int((int)result);
16212 return resultobj;
16213 fail:
16214 return NULL;
16215 }
16216
16217
16218 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16219 PyObject *resultobj;
16220 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16221 int result;
16222 PyObject * obj0 = 0 ;
16223 char *kwnames[] = {
16224 (char *) "self", NULL
16225 };
16226
16227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16230 {
16231 PyThreadState* __tstate = wxPyBeginAllowThreads();
16232 result = (int)(arg1)->GetStyle();
16233
16234 wxPyEndAllowThreads(__tstate);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 }
16237 resultobj = SWIG_From_int((int)result);
16238 return resultobj;
16239 fail:
16240 return NULL;
16241 }
16242
16243
16244 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
16245 PyObject *resultobj;
16246 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16247 int result;
16248 PyObject * obj0 = 0 ;
16249 char *kwnames[] = {
16250 (char *) "self", NULL
16251 };
16252
16253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16256 {
16257 PyThreadState* __tstate = wxPyBeginAllowThreads();
16258 result = (int)(arg1)->GetKind();
16259
16260 wxPyEndAllowThreads(__tstate);
16261 if (PyErr_Occurred()) SWIG_fail;
16262 }
16263 resultobj = SWIG_From_int((int)result);
16264 return resultobj;
16265 fail:
16266 return NULL;
16267 }
16268
16269
16270 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
16271 PyObject *resultobj;
16272 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16273 bool result;
16274 PyObject * obj0 = 0 ;
16275 char *kwnames[] = {
16276 (char *) "self", NULL
16277 };
16278
16279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = (bool)(arg1)->IsEnabled();
16285
16286 wxPyEndAllowThreads(__tstate);
16287 if (PyErr_Occurred()) SWIG_fail;
16288 }
16289 {
16290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16291 }
16292 return resultobj;
16293 fail:
16294 return NULL;
16295 }
16296
16297
16298 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16299 PyObject *resultobj;
16300 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16301 bool result;
16302 PyObject * obj0 = 0 ;
16303 char *kwnames[] = {
16304 (char *) "self", NULL
16305 };
16306
16307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16310 {
16311 PyThreadState* __tstate = wxPyBeginAllowThreads();
16312 result = (bool)(arg1)->IsToggled();
16313
16314 wxPyEndAllowThreads(__tstate);
16315 if (PyErr_Occurred()) SWIG_fail;
16316 }
16317 {
16318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16319 }
16320 return resultobj;
16321 fail:
16322 return NULL;
16323 }
16324
16325
16326 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16327 PyObject *resultobj;
16328 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16329 bool result;
16330 PyObject * obj0 = 0 ;
16331 char *kwnames[] = {
16332 (char *) "self", NULL
16333 };
16334
16335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16338 {
16339 PyThreadState* __tstate = wxPyBeginAllowThreads();
16340 result = (bool)(arg1)->CanBeToggled();
16341
16342 wxPyEndAllowThreads(__tstate);
16343 if (PyErr_Occurred()) SWIG_fail;
16344 }
16345 {
16346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16347 }
16348 return resultobj;
16349 fail:
16350 return NULL;
16351 }
16352
16353
16354 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16355 PyObject *resultobj;
16356 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16357 wxBitmap *result;
16358 PyObject * obj0 = 0 ;
16359 char *kwnames[] = {
16360 (char *) "self", NULL
16361 };
16362
16363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16366 {
16367 PyThreadState* __tstate = wxPyBeginAllowThreads();
16368 {
16369 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16370 result = (wxBitmap *) &_result_ref;
16371 }
16372
16373 wxPyEndAllowThreads(__tstate);
16374 if (PyErr_Occurred()) SWIG_fail;
16375 }
16376 {
16377 wxBitmap* resultptr = new wxBitmap(*result);
16378 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16379 }
16380 return resultobj;
16381 fail:
16382 return NULL;
16383 }
16384
16385
16386 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj;
16388 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16389 wxBitmap *result;
16390 PyObject * obj0 = 0 ;
16391 char *kwnames[] = {
16392 (char *) "self", NULL
16393 };
16394
16395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16398 {
16399 PyThreadState* __tstate = wxPyBeginAllowThreads();
16400 {
16401 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16402 result = (wxBitmap *) &_result_ref;
16403 }
16404
16405 wxPyEndAllowThreads(__tstate);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 }
16408 {
16409 wxBitmap* resultptr = new wxBitmap(*result);
16410 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16411 }
16412 return resultobj;
16413 fail:
16414 return NULL;
16415 }
16416
16417
16418 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16419 PyObject *resultobj;
16420 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16421 wxBitmap result;
16422 PyObject * obj0 = 0 ;
16423 char *kwnames[] = {
16424 (char *) "self", NULL
16425 };
16426
16427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16430 {
16431 PyThreadState* __tstate = wxPyBeginAllowThreads();
16432 result = (arg1)->GetBitmap();
16433
16434 wxPyEndAllowThreads(__tstate);
16435 if (PyErr_Occurred()) SWIG_fail;
16436 }
16437 {
16438 wxBitmap * resultptr;
16439 resultptr = new wxBitmap((wxBitmap &) result);
16440 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16441 }
16442 return resultobj;
16443 fail:
16444 return NULL;
16445 }
16446
16447
16448 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16449 PyObject *resultobj;
16450 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16451 wxString result;
16452 PyObject * obj0 = 0 ;
16453 char *kwnames[] = {
16454 (char *) "self", NULL
16455 };
16456
16457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = (arg1)->GetLabel();
16463
16464 wxPyEndAllowThreads(__tstate);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
16467 {
16468 #if wxUSE_UNICODE
16469 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16470 #else
16471 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16472 #endif
16473 }
16474 return resultobj;
16475 fail:
16476 return NULL;
16477 }
16478
16479
16480 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16481 PyObject *resultobj;
16482 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16483 wxString result;
16484 PyObject * obj0 = 0 ;
16485 char *kwnames[] = {
16486 (char *) "self", NULL
16487 };
16488
16489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16492 {
16493 PyThreadState* __tstate = wxPyBeginAllowThreads();
16494 result = (arg1)->GetShortHelp();
16495
16496 wxPyEndAllowThreads(__tstate);
16497 if (PyErr_Occurred()) SWIG_fail;
16498 }
16499 {
16500 #if wxUSE_UNICODE
16501 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16502 #else
16503 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16504 #endif
16505 }
16506 return resultobj;
16507 fail:
16508 return NULL;
16509 }
16510
16511
16512 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16513 PyObject *resultobj;
16514 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16515 wxString result;
16516 PyObject * obj0 = 0 ;
16517 char *kwnames[] = {
16518 (char *) "self", NULL
16519 };
16520
16521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16524 {
16525 PyThreadState* __tstate = wxPyBeginAllowThreads();
16526 result = (arg1)->GetLongHelp();
16527
16528 wxPyEndAllowThreads(__tstate);
16529 if (PyErr_Occurred()) SWIG_fail;
16530 }
16531 {
16532 #if wxUSE_UNICODE
16533 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16534 #else
16535 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16536 #endif
16537 }
16538 return resultobj;
16539 fail:
16540 return NULL;
16541 }
16542
16543
16544 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
16545 PyObject *resultobj;
16546 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16547 bool arg2 ;
16548 bool result;
16549 PyObject * obj0 = 0 ;
16550 PyObject * obj1 = 0 ;
16551 char *kwnames[] = {
16552 (char *) "self",(char *) "enable", NULL
16553 };
16554
16555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16558 arg2 = (bool)SWIG_As_bool(obj1);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 {
16561 PyThreadState* __tstate = wxPyBeginAllowThreads();
16562 result = (bool)(arg1)->Enable(arg2);
16563
16564 wxPyEndAllowThreads(__tstate);
16565 if (PyErr_Occurred()) SWIG_fail;
16566 }
16567 {
16568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16569 }
16570 return resultobj;
16571 fail:
16572 return NULL;
16573 }
16574
16575
16576 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
16577 PyObject *resultobj;
16578 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16579 PyObject * obj0 = 0 ;
16580 char *kwnames[] = {
16581 (char *) "self", NULL
16582 };
16583
16584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16587 {
16588 PyThreadState* __tstate = wxPyBeginAllowThreads();
16589 (arg1)->Toggle();
16590
16591 wxPyEndAllowThreads(__tstate);
16592 if (PyErr_Occurred()) SWIG_fail;
16593 }
16594 Py_INCREF(Py_None); resultobj = Py_None;
16595 return resultobj;
16596 fail:
16597 return NULL;
16598 }
16599
16600
16601 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
16602 PyObject *resultobj;
16603 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16604 bool arg2 ;
16605 bool result;
16606 PyObject * obj0 = 0 ;
16607 PyObject * obj1 = 0 ;
16608 char *kwnames[] = {
16609 (char *) "self",(char *) "toggle", NULL
16610 };
16611
16612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16615 arg2 = (bool)SWIG_As_bool(obj1);
16616 if (PyErr_Occurred()) SWIG_fail;
16617 {
16618 PyThreadState* __tstate = wxPyBeginAllowThreads();
16619 result = (bool)(arg1)->SetToggle(arg2);
16620
16621 wxPyEndAllowThreads(__tstate);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
16624 {
16625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16626 }
16627 return resultobj;
16628 fail:
16629 return NULL;
16630 }
16631
16632
16633 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16634 PyObject *resultobj;
16635 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16636 wxString *arg2 = 0 ;
16637 bool result;
16638 bool temp2 = False ;
16639 PyObject * obj0 = 0 ;
16640 PyObject * obj1 = 0 ;
16641 char *kwnames[] = {
16642 (char *) "self",(char *) "help", NULL
16643 };
16644
16645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16648 {
16649 arg2 = wxString_in_helper(obj1);
16650 if (arg2 == NULL) SWIG_fail;
16651 temp2 = True;
16652 }
16653 {
16654 PyThreadState* __tstate = wxPyBeginAllowThreads();
16655 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
16656
16657 wxPyEndAllowThreads(__tstate);
16658 if (PyErr_Occurred()) SWIG_fail;
16659 }
16660 {
16661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16662 }
16663 {
16664 if (temp2)
16665 delete arg2;
16666 }
16667 return resultobj;
16668 fail:
16669 {
16670 if (temp2)
16671 delete arg2;
16672 }
16673 return NULL;
16674 }
16675
16676
16677 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16678 PyObject *resultobj;
16679 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16680 wxString *arg2 = 0 ;
16681 bool result;
16682 bool temp2 = False ;
16683 PyObject * obj0 = 0 ;
16684 PyObject * obj1 = 0 ;
16685 char *kwnames[] = {
16686 (char *) "self",(char *) "help", NULL
16687 };
16688
16689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16692 {
16693 arg2 = wxString_in_helper(obj1);
16694 if (arg2 == NULL) SWIG_fail;
16695 temp2 = True;
16696 }
16697 {
16698 PyThreadState* __tstate = wxPyBeginAllowThreads();
16699 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16700
16701 wxPyEndAllowThreads(__tstate);
16702 if (PyErr_Occurred()) SWIG_fail;
16703 }
16704 {
16705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16706 }
16707 {
16708 if (temp2)
16709 delete arg2;
16710 }
16711 return resultobj;
16712 fail:
16713 {
16714 if (temp2)
16715 delete arg2;
16716 }
16717 return NULL;
16718 }
16719
16720
16721 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16722 PyObject *resultobj;
16723 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16724 wxBitmap *arg2 = 0 ;
16725 PyObject * obj0 = 0 ;
16726 PyObject * obj1 = 0 ;
16727 char *kwnames[] = {
16728 (char *) "self",(char *) "bmp", NULL
16729 };
16730
16731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16734 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16735 SWIG_POINTER_EXCEPTION | 0)) == -1)
16736 SWIG_fail;
16737 if (arg2 == NULL) {
16738 PyErr_SetString(PyExc_TypeError,"null reference");
16739 SWIG_fail;
16740 }
16741 {
16742 PyThreadState* __tstate = wxPyBeginAllowThreads();
16743 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16744
16745 wxPyEndAllowThreads(__tstate);
16746 if (PyErr_Occurred()) SWIG_fail;
16747 }
16748 Py_INCREF(Py_None); resultobj = Py_None;
16749 return resultobj;
16750 fail:
16751 return NULL;
16752 }
16753
16754
16755 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16756 PyObject *resultobj;
16757 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16758 wxBitmap *arg2 = 0 ;
16759 PyObject * obj0 = 0 ;
16760 PyObject * obj1 = 0 ;
16761 char *kwnames[] = {
16762 (char *) "self",(char *) "bmp", NULL
16763 };
16764
16765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16768 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16769 SWIG_POINTER_EXCEPTION | 0)) == -1)
16770 SWIG_fail;
16771 if (arg2 == NULL) {
16772 PyErr_SetString(PyExc_TypeError,"null reference");
16773 SWIG_fail;
16774 }
16775 {
16776 PyThreadState* __tstate = wxPyBeginAllowThreads();
16777 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16778
16779 wxPyEndAllowThreads(__tstate);
16780 if (PyErr_Occurred()) SWIG_fail;
16781 }
16782 Py_INCREF(Py_None); resultobj = Py_None;
16783 return resultobj;
16784 fail:
16785 return NULL;
16786 }
16787
16788
16789 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16790 PyObject *resultobj;
16791 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16792 wxString *arg2 = 0 ;
16793 bool temp2 = False ;
16794 PyObject * obj0 = 0 ;
16795 PyObject * obj1 = 0 ;
16796 char *kwnames[] = {
16797 (char *) "self",(char *) "label", NULL
16798 };
16799
16800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16803 {
16804 arg2 = wxString_in_helper(obj1);
16805 if (arg2 == NULL) SWIG_fail;
16806 temp2 = True;
16807 }
16808 {
16809 PyThreadState* __tstate = wxPyBeginAllowThreads();
16810 (arg1)->SetLabel((wxString const &)*arg2);
16811
16812 wxPyEndAllowThreads(__tstate);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
16815 Py_INCREF(Py_None); resultobj = Py_None;
16816 {
16817 if (temp2)
16818 delete arg2;
16819 }
16820 return resultobj;
16821 fail:
16822 {
16823 if (temp2)
16824 delete arg2;
16825 }
16826 return NULL;
16827 }
16828
16829
16830 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
16831 PyObject *resultobj;
16832 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16833 PyObject * obj0 = 0 ;
16834 char *kwnames[] = {
16835 (char *) "self", NULL
16836 };
16837
16838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16841 {
16842 PyThreadState* __tstate = wxPyBeginAllowThreads();
16843 (arg1)->Detach();
16844
16845 wxPyEndAllowThreads(__tstate);
16846 if (PyErr_Occurred()) SWIG_fail;
16847 }
16848 Py_INCREF(Py_None); resultobj = Py_None;
16849 return resultobj;
16850 fail:
16851 return NULL;
16852 }
16853
16854
16855 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
16856 PyObject *resultobj;
16857 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16858 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16859 PyObject * obj0 = 0 ;
16860 PyObject * obj1 = 0 ;
16861 char *kwnames[] = {
16862 (char *) "self",(char *) "tbar", NULL
16863 };
16864
16865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16868 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16870 {
16871 PyThreadState* __tstate = wxPyBeginAllowThreads();
16872 (arg1)->Attach(arg2);
16873
16874 wxPyEndAllowThreads(__tstate);
16875 if (PyErr_Occurred()) SWIG_fail;
16876 }
16877 Py_INCREF(Py_None); resultobj = Py_None;
16878 return resultobj;
16879 fail:
16880 return NULL;
16881 }
16882
16883
16884 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
16885 PyObject *resultobj;
16886 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16887 PyObject *result;
16888 PyObject * obj0 = 0 ;
16889 char *kwnames[] = {
16890 (char *) "self", NULL
16891 };
16892
16893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
16894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16896 {
16897 PyThreadState* __tstate = wxPyBeginAllowThreads();
16898 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
16899
16900 wxPyEndAllowThreads(__tstate);
16901 if (PyErr_Occurred()) SWIG_fail;
16902 }
16903 resultobj = result;
16904 return resultobj;
16905 fail:
16906 return NULL;
16907 }
16908
16909
16910 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
16911 PyObject *resultobj;
16912 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16913 PyObject *arg2 = (PyObject *) 0 ;
16914 PyObject * obj0 = 0 ;
16915 PyObject * obj1 = 0 ;
16916 char *kwnames[] = {
16917 (char *) "self",(char *) "clientData", NULL
16918 };
16919
16920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
16921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16923 arg2 = obj1;
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 wxToolBarToolBase_SetClientData(arg1,arg2);
16927
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 Py_INCREF(Py_None); resultobj = Py_None;
16932 return resultobj;
16933 fail:
16934 return NULL;
16935 }
16936
16937
16938 static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) {
16939 PyObject *obj;
16940 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16941 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
16942 Py_INCREF(obj);
16943 return Py_BuildValue((char *)"");
16944 }
16945 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) {
16946 PyObject *resultobj;
16947 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16948 int arg2 ;
16949 wxString *arg3 = 0 ;
16950 wxBitmap *arg4 = 0 ;
16951 wxBitmap const &arg5_defvalue = wxNullBitmap ;
16952 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
16953 int arg6 = (int) wxITEM_NORMAL ;
16954 wxString const &arg7_defvalue = wxPyEmptyString ;
16955 wxString *arg7 = (wxString *) &arg7_defvalue ;
16956 wxString const &arg8_defvalue = wxPyEmptyString ;
16957 wxString *arg8 = (wxString *) &arg8_defvalue ;
16958 PyObject *arg9 = (PyObject *) NULL ;
16959 wxToolBarToolBase *result;
16960 bool temp3 = False ;
16961 bool temp7 = False ;
16962 bool temp8 = False ;
16963 PyObject * obj0 = 0 ;
16964 PyObject * obj1 = 0 ;
16965 PyObject * obj2 = 0 ;
16966 PyObject * obj3 = 0 ;
16967 PyObject * obj4 = 0 ;
16968 PyObject * obj5 = 0 ;
16969 PyObject * obj6 = 0 ;
16970 PyObject * obj7 = 0 ;
16971 PyObject * obj8 = 0 ;
16972 char *kwnames[] = {
16973 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16974 };
16975
16976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
16977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16979 arg2 = (int)SWIG_As_int(obj1);
16980 if (PyErr_Occurred()) SWIG_fail;
16981 {
16982 arg3 = wxString_in_helper(obj2);
16983 if (arg3 == NULL) SWIG_fail;
16984 temp3 = True;
16985 }
16986 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16987 SWIG_POINTER_EXCEPTION | 0)) == -1)
16988 SWIG_fail;
16989 if (arg4 == NULL) {
16990 PyErr_SetString(PyExc_TypeError,"null reference");
16991 SWIG_fail;
16992 }
16993 if (obj4) {
16994 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16995 SWIG_POINTER_EXCEPTION | 0)) == -1)
16996 SWIG_fail;
16997 if (arg5 == NULL) {
16998 PyErr_SetString(PyExc_TypeError,"null reference");
16999 SWIG_fail;
17000 }
17001 }
17002 if (obj5) {
17003 arg6 = (int)SWIG_As_int(obj5);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 }
17006 if (obj6) {
17007 {
17008 arg7 = wxString_in_helper(obj6);
17009 if (arg7 == NULL) SWIG_fail;
17010 temp7 = True;
17011 }
17012 }
17013 if (obj7) {
17014 {
17015 arg8 = wxString_in_helper(obj7);
17016 if (arg8 == NULL) SWIG_fail;
17017 temp8 = True;
17018 }
17019 }
17020 if (obj8) {
17021 arg9 = obj8;
17022 }
17023 {
17024 PyThreadState* __tstate = wxPyBeginAllowThreads();
17025 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
17026
17027 wxPyEndAllowThreads(__tstate);
17028 if (PyErr_Occurred()) SWIG_fail;
17029 }
17030 {
17031 resultobj = wxPyMake_wxObject(result, 0);
17032 }
17033 {
17034 if (temp3)
17035 delete arg3;
17036 }
17037 {
17038 if (temp7)
17039 delete arg7;
17040 }
17041 {
17042 if (temp8)
17043 delete arg8;
17044 }
17045 return resultobj;
17046 fail:
17047 {
17048 if (temp3)
17049 delete arg3;
17050 }
17051 {
17052 if (temp7)
17053 delete arg7;
17054 }
17055 {
17056 if (temp8)
17057 delete arg8;
17058 }
17059 return NULL;
17060 }
17061
17062
17063 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) {
17064 PyObject *resultobj;
17065 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17066 size_t arg2 ;
17067 int arg3 ;
17068 wxString *arg4 = 0 ;
17069 wxBitmap *arg5 = 0 ;
17070 wxBitmap const &arg6_defvalue = wxNullBitmap ;
17071 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
17072 int arg7 = (int) wxITEM_NORMAL ;
17073 wxString const &arg8_defvalue = wxPyEmptyString ;
17074 wxString *arg8 = (wxString *) &arg8_defvalue ;
17075 wxString const &arg9_defvalue = wxPyEmptyString ;
17076 wxString *arg9 = (wxString *) &arg9_defvalue ;
17077 PyObject *arg10 = (PyObject *) NULL ;
17078 wxToolBarToolBase *result;
17079 bool temp4 = False ;
17080 bool temp8 = False ;
17081 bool temp9 = False ;
17082 PyObject * obj0 = 0 ;
17083 PyObject * obj1 = 0 ;
17084 PyObject * obj2 = 0 ;
17085 PyObject * obj3 = 0 ;
17086 PyObject * obj4 = 0 ;
17087 PyObject * obj5 = 0 ;
17088 PyObject * obj6 = 0 ;
17089 PyObject * obj7 = 0 ;
17090 PyObject * obj8 = 0 ;
17091 PyObject * obj9 = 0 ;
17092 char *kwnames[] = {
17093 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17094 };
17095
17096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
17097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17099 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17100 if (PyErr_Occurred()) SWIG_fail;
17101 arg3 = (int)SWIG_As_int(obj2);
17102 if (PyErr_Occurred()) SWIG_fail;
17103 {
17104 arg4 = wxString_in_helper(obj3);
17105 if (arg4 == NULL) SWIG_fail;
17106 temp4 = True;
17107 }
17108 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17109 SWIG_POINTER_EXCEPTION | 0)) == -1)
17110 SWIG_fail;
17111 if (arg5 == NULL) {
17112 PyErr_SetString(PyExc_TypeError,"null reference");
17113 SWIG_fail;
17114 }
17115 if (obj5) {
17116 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
17117 SWIG_POINTER_EXCEPTION | 0)) == -1)
17118 SWIG_fail;
17119 if (arg6 == NULL) {
17120 PyErr_SetString(PyExc_TypeError,"null reference");
17121 SWIG_fail;
17122 }
17123 }
17124 if (obj6) {
17125 arg7 = (int)SWIG_As_int(obj6);
17126 if (PyErr_Occurred()) SWIG_fail;
17127 }
17128 if (obj7) {
17129 {
17130 arg8 = wxString_in_helper(obj7);
17131 if (arg8 == NULL) SWIG_fail;
17132 temp8 = True;
17133 }
17134 }
17135 if (obj8) {
17136 {
17137 arg9 = wxString_in_helper(obj8);
17138 if (arg9 == NULL) SWIG_fail;
17139 temp9 = True;
17140 }
17141 }
17142 if (obj9) {
17143 arg10 = obj9;
17144 }
17145 {
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 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);
17148
17149 wxPyEndAllowThreads(__tstate);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 {
17153 resultobj = wxPyMake_wxObject(result, 0);
17154 }
17155 {
17156 if (temp4)
17157 delete arg4;
17158 }
17159 {
17160 if (temp8)
17161 delete arg8;
17162 }
17163 {
17164 if (temp9)
17165 delete arg9;
17166 }
17167 return resultobj;
17168 fail:
17169 {
17170 if (temp4)
17171 delete arg4;
17172 }
17173 {
17174 if (temp8)
17175 delete arg8;
17176 }
17177 {
17178 if (temp9)
17179 delete arg9;
17180 }
17181 return NULL;
17182 }
17183
17184
17185 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17186 PyObject *resultobj;
17187 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17188 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17189 wxToolBarToolBase *result;
17190 PyObject * obj0 = 0 ;
17191 PyObject * obj1 = 0 ;
17192 char *kwnames[] = {
17193 (char *) "self",(char *) "tool", NULL
17194 };
17195
17196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17199 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17201 {
17202 PyThreadState* __tstate = wxPyBeginAllowThreads();
17203 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17204
17205 wxPyEndAllowThreads(__tstate);
17206 if (PyErr_Occurred()) SWIG_fail;
17207 }
17208 {
17209 resultobj = wxPyMake_wxObject(result, 0);
17210 }
17211 return resultobj;
17212 fail:
17213 return NULL;
17214 }
17215
17216
17217 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17218 PyObject *resultobj;
17219 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17220 size_t arg2 ;
17221 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17222 wxToolBarToolBase *result;
17223 PyObject * obj0 = 0 ;
17224 PyObject * obj1 = 0 ;
17225 PyObject * obj2 = 0 ;
17226 char *kwnames[] = {
17227 (char *) "self",(char *) "pos",(char *) "tool", NULL
17228 };
17229
17230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17233 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17234 if (PyErr_Occurred()) SWIG_fail;
17235 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17237 {
17238 PyThreadState* __tstate = wxPyBeginAllowThreads();
17239 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17240
17241 wxPyEndAllowThreads(__tstate);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 }
17244 {
17245 resultobj = wxPyMake_wxObject(result, 0);
17246 }
17247 return resultobj;
17248 fail:
17249 return NULL;
17250 }
17251
17252
17253 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) {
17254 PyObject *resultobj;
17255 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17256 wxControl *arg2 = (wxControl *) 0 ;
17257 wxToolBarToolBase *result;
17258 PyObject * obj0 = 0 ;
17259 PyObject * obj1 = 0 ;
17260 char *kwnames[] = {
17261 (char *) "self",(char *) "control", NULL
17262 };
17263
17264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17267 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17272
17273 wxPyEndAllowThreads(__tstate);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
17276 {
17277 resultobj = wxPyMake_wxObject(result, 0);
17278 }
17279 return resultobj;
17280 fail:
17281 return NULL;
17282 }
17283
17284
17285 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) {
17286 PyObject *resultobj;
17287 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17288 size_t arg2 ;
17289 wxControl *arg3 = (wxControl *) 0 ;
17290 wxToolBarToolBase *result;
17291 PyObject * obj0 = 0 ;
17292 PyObject * obj1 = 0 ;
17293 PyObject * obj2 = 0 ;
17294 char *kwnames[] = {
17295 (char *) "self",(char *) "pos",(char *) "control", NULL
17296 };
17297
17298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17301 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17302 if (PyErr_Occurred()) SWIG_fail;
17303 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17305 {
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17308
17309 wxPyEndAllowThreads(__tstate);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
17312 {
17313 resultobj = wxPyMake_wxObject(result, 0);
17314 }
17315 return resultobj;
17316 fail:
17317 return NULL;
17318 }
17319
17320
17321 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) {
17322 PyObject *resultobj;
17323 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17324 int arg2 ;
17325 wxControl *result;
17326 PyObject * obj0 = 0 ;
17327 PyObject * obj1 = 0 ;
17328 char *kwnames[] = {
17329 (char *) "self",(char *) "id", NULL
17330 };
17331
17332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17335 arg2 = (int)SWIG_As_int(obj1);
17336 if (PyErr_Occurred()) SWIG_fail;
17337 {
17338 PyThreadState* __tstate = wxPyBeginAllowThreads();
17339 result = (wxControl *)(arg1)->FindControl(arg2);
17340
17341 wxPyEndAllowThreads(__tstate);
17342 if (PyErr_Occurred()) SWIG_fail;
17343 }
17344 {
17345 resultobj = wxPyMake_wxObject(result, 0);
17346 }
17347 return resultobj;
17348 fail:
17349 return NULL;
17350 }
17351
17352
17353 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17354 PyObject *resultobj;
17355 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17356 wxToolBarToolBase *result;
17357 PyObject * obj0 = 0 ;
17358 char *kwnames[] = {
17359 (char *) "self", NULL
17360 };
17361
17362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17365 {
17366 PyThreadState* __tstate = wxPyBeginAllowThreads();
17367 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17368
17369 wxPyEndAllowThreads(__tstate);
17370 if (PyErr_Occurred()) SWIG_fail;
17371 }
17372 {
17373 resultobj = wxPyMake_wxObject(result, 0);
17374 }
17375 return resultobj;
17376 fail:
17377 return NULL;
17378 }
17379
17380
17381 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17382 PyObject *resultobj;
17383 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17384 size_t arg2 ;
17385 wxToolBarToolBase *result;
17386 PyObject * obj0 = 0 ;
17387 PyObject * obj1 = 0 ;
17388 char *kwnames[] = {
17389 (char *) "self",(char *) "pos", NULL
17390 };
17391
17392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17395 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17396 if (PyErr_Occurred()) SWIG_fail;
17397 {
17398 PyThreadState* __tstate = wxPyBeginAllowThreads();
17399 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17400
17401 wxPyEndAllowThreads(__tstate);
17402 if (PyErr_Occurred()) SWIG_fail;
17403 }
17404 {
17405 resultobj = wxPyMake_wxObject(result, 0);
17406 }
17407 return resultobj;
17408 fail:
17409 return NULL;
17410 }
17411
17412
17413 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) {
17414 PyObject *resultobj;
17415 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17416 int arg2 ;
17417 wxToolBarToolBase *result;
17418 PyObject * obj0 = 0 ;
17419 PyObject * obj1 = 0 ;
17420 char *kwnames[] = {
17421 (char *) "self",(char *) "id", NULL
17422 };
17423
17424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17427 arg2 = (int)SWIG_As_int(obj1);
17428 if (PyErr_Occurred()) SWIG_fail;
17429 {
17430 PyThreadState* __tstate = wxPyBeginAllowThreads();
17431 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17432
17433 wxPyEndAllowThreads(__tstate);
17434 if (PyErr_Occurred()) SWIG_fail;
17435 }
17436 {
17437 resultobj = wxPyMake_wxObject(result, 0);
17438 }
17439 return resultobj;
17440 fail:
17441 return NULL;
17442 }
17443
17444
17445 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) {
17446 PyObject *resultobj;
17447 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17448 size_t arg2 ;
17449 bool result;
17450 PyObject * obj0 = 0 ;
17451 PyObject * obj1 = 0 ;
17452 char *kwnames[] = {
17453 (char *) "self",(char *) "pos", NULL
17454 };
17455
17456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17459 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17460 if (PyErr_Occurred()) SWIG_fail;
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 result = (bool)(arg1)->DeleteToolByPos(arg2);
17464
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 {
17469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17470 }
17471 return resultobj;
17472 fail:
17473 return NULL;
17474 }
17475
17476
17477 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) {
17478 PyObject *resultobj;
17479 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17480 int arg2 ;
17481 bool result;
17482 PyObject * obj0 = 0 ;
17483 PyObject * obj1 = 0 ;
17484 char *kwnames[] = {
17485 (char *) "self",(char *) "id", NULL
17486 };
17487
17488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17491 arg2 = (int)SWIG_As_int(obj1);
17492 if (PyErr_Occurred()) SWIG_fail;
17493 {
17494 PyThreadState* __tstate = wxPyBeginAllowThreads();
17495 result = (bool)(arg1)->DeleteTool(arg2);
17496
17497 wxPyEndAllowThreads(__tstate);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 }
17500 {
17501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17502 }
17503 return resultobj;
17504 fail:
17505 return NULL;
17506 }
17507
17508
17509 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) {
17510 PyObject *resultobj;
17511 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17512 PyObject * obj0 = 0 ;
17513 char *kwnames[] = {
17514 (char *) "self", NULL
17515 };
17516
17517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17520 {
17521 PyThreadState* __tstate = wxPyBeginAllowThreads();
17522 (arg1)->ClearTools();
17523
17524 wxPyEndAllowThreads(__tstate);
17525 if (PyErr_Occurred()) SWIG_fail;
17526 }
17527 Py_INCREF(Py_None); resultobj = Py_None;
17528 return resultobj;
17529 fail:
17530 return NULL;
17531 }
17532
17533
17534 static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
17535 PyObject *resultobj;
17536 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17537 bool result;
17538 PyObject * obj0 = 0 ;
17539 char *kwnames[] = {
17540 (char *) "self", NULL
17541 };
17542
17543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17546 {
17547 PyThreadState* __tstate = wxPyBeginAllowThreads();
17548 result = (bool)(arg1)->Realize();
17549
17550 wxPyEndAllowThreads(__tstate);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 }
17553 {
17554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17555 }
17556 return resultobj;
17557 fail:
17558 return NULL;
17559 }
17560
17561
17562 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) {
17563 PyObject *resultobj;
17564 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17565 int arg2 ;
17566 bool arg3 ;
17567 PyObject * obj0 = 0 ;
17568 PyObject * obj1 = 0 ;
17569 PyObject * obj2 = 0 ;
17570 char *kwnames[] = {
17571 (char *) "self",(char *) "id",(char *) "enable", NULL
17572 };
17573
17574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17577 arg2 = (int)SWIG_As_int(obj1);
17578 if (PyErr_Occurred()) SWIG_fail;
17579 arg3 = (bool)SWIG_As_bool(obj2);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 {
17582 PyThreadState* __tstate = wxPyBeginAllowThreads();
17583 (arg1)->EnableTool(arg2,arg3);
17584
17585 wxPyEndAllowThreads(__tstate);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 }
17588 Py_INCREF(Py_None); resultobj = Py_None;
17589 return resultobj;
17590 fail:
17591 return NULL;
17592 }
17593
17594
17595 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) {
17596 PyObject *resultobj;
17597 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17598 int arg2 ;
17599 bool arg3 ;
17600 PyObject * obj0 = 0 ;
17601 PyObject * obj1 = 0 ;
17602 PyObject * obj2 = 0 ;
17603 char *kwnames[] = {
17604 (char *) "self",(char *) "id",(char *) "toggle", NULL
17605 };
17606
17607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17610 arg2 = (int)SWIG_As_int(obj1);
17611 if (PyErr_Occurred()) SWIG_fail;
17612 arg3 = (bool)SWIG_As_bool(obj2);
17613 if (PyErr_Occurred()) SWIG_fail;
17614 {
17615 PyThreadState* __tstate = wxPyBeginAllowThreads();
17616 (arg1)->ToggleTool(arg2,arg3);
17617
17618 wxPyEndAllowThreads(__tstate);
17619 if (PyErr_Occurred()) SWIG_fail;
17620 }
17621 Py_INCREF(Py_None); resultobj = Py_None;
17622 return resultobj;
17623 fail:
17624 return NULL;
17625 }
17626
17627
17628 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
17629 PyObject *resultobj;
17630 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17631 int arg2 ;
17632 bool arg3 ;
17633 PyObject * obj0 = 0 ;
17634 PyObject * obj1 = 0 ;
17635 PyObject * obj2 = 0 ;
17636 char *kwnames[] = {
17637 (char *) "self",(char *) "id",(char *) "toggle", NULL
17638 };
17639
17640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17643 arg2 = (int)SWIG_As_int(obj1);
17644 if (PyErr_Occurred()) SWIG_fail;
17645 arg3 = (bool)SWIG_As_bool(obj2);
17646 if (PyErr_Occurred()) SWIG_fail;
17647 {
17648 PyThreadState* __tstate = wxPyBeginAllowThreads();
17649 (arg1)->SetToggle(arg2,arg3);
17650
17651 wxPyEndAllowThreads(__tstate);
17652 if (PyErr_Occurred()) SWIG_fail;
17653 }
17654 Py_INCREF(Py_None); resultobj = Py_None;
17655 return resultobj;
17656 fail:
17657 return NULL;
17658 }
17659
17660
17661 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17662 PyObject *resultobj;
17663 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17664 int arg2 ;
17665 PyObject *result;
17666 PyObject * obj0 = 0 ;
17667 PyObject * obj1 = 0 ;
17668 char *kwnames[] = {
17669 (char *) "self",(char *) "id", NULL
17670 };
17671
17672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17675 arg2 = (int)SWIG_As_int(obj1);
17676 if (PyErr_Occurred()) SWIG_fail;
17677 {
17678 PyThreadState* __tstate = wxPyBeginAllowThreads();
17679 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17680
17681 wxPyEndAllowThreads(__tstate);
17682 if (PyErr_Occurred()) SWIG_fail;
17683 }
17684 resultobj = result;
17685 return resultobj;
17686 fail:
17687 return NULL;
17688 }
17689
17690
17691 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17692 PyObject *resultobj;
17693 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17694 int arg2 ;
17695 PyObject *arg3 = (PyObject *) 0 ;
17696 PyObject * obj0 = 0 ;
17697 PyObject * obj1 = 0 ;
17698 PyObject * obj2 = 0 ;
17699 char *kwnames[] = {
17700 (char *) "self",(char *) "id",(char *) "clientData", NULL
17701 };
17702
17703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17706 arg2 = (int)SWIG_As_int(obj1);
17707 if (PyErr_Occurred()) SWIG_fail;
17708 arg3 = obj2;
17709 {
17710 PyThreadState* __tstate = wxPyBeginAllowThreads();
17711 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17712
17713 wxPyEndAllowThreads(__tstate);
17714 if (PyErr_Occurred()) SWIG_fail;
17715 }
17716 Py_INCREF(Py_None); resultobj = Py_None;
17717 return resultobj;
17718 fail:
17719 return NULL;
17720 }
17721
17722
17723 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) {
17724 PyObject *resultobj;
17725 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17726 int arg2 ;
17727 int result;
17728 PyObject * obj0 = 0 ;
17729 PyObject * obj1 = 0 ;
17730 char *kwnames[] = {
17731 (char *) "self",(char *) "id", NULL
17732 };
17733
17734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17737 arg2 = (int)SWIG_As_int(obj1);
17738 if (PyErr_Occurred()) SWIG_fail;
17739 {
17740 PyThreadState* __tstate = wxPyBeginAllowThreads();
17741 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17742
17743 wxPyEndAllowThreads(__tstate);
17744 if (PyErr_Occurred()) SWIG_fail;
17745 }
17746 resultobj = SWIG_From_int((int)result);
17747 return resultobj;
17748 fail:
17749 return NULL;
17750 }
17751
17752
17753 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) {
17754 PyObject *resultobj;
17755 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17756 int arg2 ;
17757 bool result;
17758 PyObject * obj0 = 0 ;
17759 PyObject * obj1 = 0 ;
17760 char *kwnames[] = {
17761 (char *) "self",(char *) "id", NULL
17762 };
17763
17764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17767 arg2 = (int)SWIG_As_int(obj1);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
17771 result = (bool)(arg1)->GetToolState(arg2);
17772
17773 wxPyEndAllowThreads(__tstate);
17774 if (PyErr_Occurred()) SWIG_fail;
17775 }
17776 {
17777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17778 }
17779 return resultobj;
17780 fail:
17781 return NULL;
17782 }
17783
17784
17785 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
17786 PyObject *resultobj;
17787 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17788 int arg2 ;
17789 bool result;
17790 PyObject * obj0 = 0 ;
17791 PyObject * obj1 = 0 ;
17792 char *kwnames[] = {
17793 (char *) "self",(char *) "id", NULL
17794 };
17795
17796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17799 arg2 = (int)SWIG_As_int(obj1);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 result = (bool)(arg1)->GetToolEnabled(arg2);
17804
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 {
17809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17810 }
17811 return resultobj;
17812 fail:
17813 return NULL;
17814 }
17815
17816
17817 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17818 PyObject *resultobj;
17819 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17820 int arg2 ;
17821 wxString *arg3 = 0 ;
17822 bool temp3 = False ;
17823 PyObject * obj0 = 0 ;
17824 PyObject * obj1 = 0 ;
17825 PyObject * obj2 = 0 ;
17826 char *kwnames[] = {
17827 (char *) "self",(char *) "id",(char *) "helpString", NULL
17828 };
17829
17830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17833 arg2 = (int)SWIG_As_int(obj1);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 {
17836 arg3 = wxString_in_helper(obj2);
17837 if (arg3 == NULL) SWIG_fail;
17838 temp3 = True;
17839 }
17840 {
17841 PyThreadState* __tstate = wxPyBeginAllowThreads();
17842 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17843
17844 wxPyEndAllowThreads(__tstate);
17845 if (PyErr_Occurred()) SWIG_fail;
17846 }
17847 Py_INCREF(Py_None); resultobj = Py_None;
17848 {
17849 if (temp3)
17850 delete arg3;
17851 }
17852 return resultobj;
17853 fail:
17854 {
17855 if (temp3)
17856 delete arg3;
17857 }
17858 return NULL;
17859 }
17860
17861
17862 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17863 PyObject *resultobj;
17864 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17865 int arg2 ;
17866 wxString result;
17867 PyObject * obj0 = 0 ;
17868 PyObject * obj1 = 0 ;
17869 char *kwnames[] = {
17870 (char *) "self",(char *) "id", NULL
17871 };
17872
17873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17876 arg2 = (int)SWIG_As_int(obj1);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 result = (arg1)->GetToolShortHelp(arg2);
17881
17882 wxPyEndAllowThreads(__tstate);
17883 if (PyErr_Occurred()) SWIG_fail;
17884 }
17885 {
17886 #if wxUSE_UNICODE
17887 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17888 #else
17889 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17890 #endif
17891 }
17892 return resultobj;
17893 fail:
17894 return NULL;
17895 }
17896
17897
17898 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17899 PyObject *resultobj;
17900 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17901 int arg2 ;
17902 wxString *arg3 = 0 ;
17903 bool temp3 = False ;
17904 PyObject * obj0 = 0 ;
17905 PyObject * obj1 = 0 ;
17906 PyObject * obj2 = 0 ;
17907 char *kwnames[] = {
17908 (char *) "self",(char *) "id",(char *) "helpString", NULL
17909 };
17910
17911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17914 arg2 = (int)SWIG_As_int(obj1);
17915 if (PyErr_Occurred()) SWIG_fail;
17916 {
17917 arg3 = wxString_in_helper(obj2);
17918 if (arg3 == NULL) SWIG_fail;
17919 temp3 = True;
17920 }
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
17924
17925 wxPyEndAllowThreads(__tstate);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 }
17928 Py_INCREF(Py_None); resultobj = Py_None;
17929 {
17930 if (temp3)
17931 delete arg3;
17932 }
17933 return resultobj;
17934 fail:
17935 {
17936 if (temp3)
17937 delete arg3;
17938 }
17939 return NULL;
17940 }
17941
17942
17943 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17944 PyObject *resultobj;
17945 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17946 int arg2 ;
17947 wxString result;
17948 PyObject * obj0 = 0 ;
17949 PyObject * obj1 = 0 ;
17950 char *kwnames[] = {
17951 (char *) "self",(char *) "id", NULL
17952 };
17953
17954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
17955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17957 arg2 = (int)SWIG_As_int(obj1);
17958 if (PyErr_Occurred()) SWIG_fail;
17959 {
17960 PyThreadState* __tstate = wxPyBeginAllowThreads();
17961 result = (arg1)->GetToolLongHelp(arg2);
17962
17963 wxPyEndAllowThreads(__tstate);
17964 if (PyErr_Occurred()) SWIG_fail;
17965 }
17966 {
17967 #if wxUSE_UNICODE
17968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17969 #else
17970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17971 #endif
17972 }
17973 return resultobj;
17974 fail:
17975 return NULL;
17976 }
17977
17978
17979 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj;
17981 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17982 int arg2 ;
17983 int arg3 ;
17984 PyObject * obj0 = 0 ;
17985 PyObject * obj1 = 0 ;
17986 PyObject * obj2 = 0 ;
17987 char *kwnames[] = {
17988 (char *) "self",(char *) "x",(char *) "y", NULL
17989 };
17990
17991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
17992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17994 arg2 = (int)SWIG_As_int(obj1);
17995 if (PyErr_Occurred()) SWIG_fail;
17996 arg3 = (int)SWIG_As_int(obj2);
17997 if (PyErr_Occurred()) SWIG_fail;
17998 {
17999 PyThreadState* __tstate = wxPyBeginAllowThreads();
18000 (arg1)->SetMargins(arg2,arg3);
18001
18002 wxPyEndAllowThreads(__tstate);
18003 if (PyErr_Occurred()) SWIG_fail;
18004 }
18005 Py_INCREF(Py_None); resultobj = Py_None;
18006 return resultobj;
18007 fail:
18008 return NULL;
18009 }
18010
18011
18012 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18013 PyObject *resultobj;
18014 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18015 wxSize *arg2 = 0 ;
18016 wxSize temp2 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 char *kwnames[] = {
18020 (char *) "self",(char *) "size", NULL
18021 };
18022
18023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
18024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18026 {
18027 arg2 = &temp2;
18028 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18029 }
18030 {
18031 PyThreadState* __tstate = wxPyBeginAllowThreads();
18032 (arg1)->SetMargins((wxSize const &)*arg2);
18033
18034 wxPyEndAllowThreads(__tstate);
18035 if (PyErr_Occurred()) SWIG_fail;
18036 }
18037 Py_INCREF(Py_None); resultobj = Py_None;
18038 return resultobj;
18039 fail:
18040 return NULL;
18041 }
18042
18043
18044 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18045 PyObject *resultobj;
18046 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18047 int arg2 ;
18048 PyObject * obj0 = 0 ;
18049 PyObject * obj1 = 0 ;
18050 char *kwnames[] = {
18051 (char *) "self",(char *) "packing", NULL
18052 };
18053
18054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
18055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18057 arg2 = (int)SWIG_As_int(obj1);
18058 if (PyErr_Occurred()) SWIG_fail;
18059 {
18060 PyThreadState* __tstate = wxPyBeginAllowThreads();
18061 (arg1)->SetToolPacking(arg2);
18062
18063 wxPyEndAllowThreads(__tstate);
18064 if (PyErr_Occurred()) SWIG_fail;
18065 }
18066 Py_INCREF(Py_None); resultobj = Py_None;
18067 return resultobj;
18068 fail:
18069 return NULL;
18070 }
18071
18072
18073 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18074 PyObject *resultobj;
18075 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18076 int arg2 ;
18077 PyObject * obj0 = 0 ;
18078 PyObject * obj1 = 0 ;
18079 char *kwnames[] = {
18080 (char *) "self",(char *) "separation", NULL
18081 };
18082
18083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
18084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18086 arg2 = (int)SWIG_As_int(obj1);
18087 if (PyErr_Occurred()) SWIG_fail;
18088 {
18089 PyThreadState* __tstate = wxPyBeginAllowThreads();
18090 (arg1)->SetToolSeparation(arg2);
18091
18092 wxPyEndAllowThreads(__tstate);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 }
18095 Py_INCREF(Py_None); resultobj = Py_None;
18096 return resultobj;
18097 fail:
18098 return NULL;
18099 }
18100
18101
18102 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18103 PyObject *resultobj;
18104 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18105 wxSize result;
18106 PyObject * obj0 = 0 ;
18107 char *kwnames[] = {
18108 (char *) "self", NULL
18109 };
18110
18111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
18112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18114 {
18115 PyThreadState* __tstate = wxPyBeginAllowThreads();
18116 result = (arg1)->GetToolMargins();
18117
18118 wxPyEndAllowThreads(__tstate);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 }
18121 {
18122 wxSize * resultptr;
18123 resultptr = new wxSize((wxSize &) result);
18124 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18125 }
18126 return resultobj;
18127 fail:
18128 return NULL;
18129 }
18130
18131
18132 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18133 PyObject *resultobj;
18134 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18135 wxSize result;
18136 PyObject * obj0 = 0 ;
18137 char *kwnames[] = {
18138 (char *) "self", NULL
18139 };
18140
18141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
18142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18144 {
18145 PyThreadState* __tstate = wxPyBeginAllowThreads();
18146 result = (arg1)->GetMargins();
18147
18148 wxPyEndAllowThreads(__tstate);
18149 if (PyErr_Occurred()) SWIG_fail;
18150 }
18151 {
18152 wxSize * resultptr;
18153 resultptr = new wxSize((wxSize &) result);
18154 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18155 }
18156 return resultobj;
18157 fail:
18158 return NULL;
18159 }
18160
18161
18162 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18163 PyObject *resultobj;
18164 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18165 int result;
18166 PyObject * obj0 = 0 ;
18167 char *kwnames[] = {
18168 (char *) "self", NULL
18169 };
18170
18171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
18172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18174 {
18175 PyThreadState* __tstate = wxPyBeginAllowThreads();
18176 result = (int)(arg1)->GetToolPacking();
18177
18178 wxPyEndAllowThreads(__tstate);
18179 if (PyErr_Occurred()) SWIG_fail;
18180 }
18181 resultobj = SWIG_From_int((int)result);
18182 return resultobj;
18183 fail:
18184 return NULL;
18185 }
18186
18187
18188 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18189 PyObject *resultobj;
18190 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18191 int result;
18192 PyObject * obj0 = 0 ;
18193 char *kwnames[] = {
18194 (char *) "self", NULL
18195 };
18196
18197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18200 {
18201 PyThreadState* __tstate = wxPyBeginAllowThreads();
18202 result = (int)(arg1)->GetToolSeparation();
18203
18204 wxPyEndAllowThreads(__tstate);
18205 if (PyErr_Occurred()) SWIG_fail;
18206 }
18207 resultobj = SWIG_From_int((int)result);
18208 return resultobj;
18209 fail:
18210 return NULL;
18211 }
18212
18213
18214 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
18215 PyObject *resultobj;
18216 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18217 int arg2 ;
18218 PyObject * obj0 = 0 ;
18219 PyObject * obj1 = 0 ;
18220 char *kwnames[] = {
18221 (char *) "self",(char *) "nRows", NULL
18222 };
18223
18224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18227 arg2 = (int)SWIG_As_int(obj1);
18228 if (PyErr_Occurred()) SWIG_fail;
18229 {
18230 PyThreadState* __tstate = wxPyBeginAllowThreads();
18231 (arg1)->SetRows(arg2);
18232
18233 wxPyEndAllowThreads(__tstate);
18234 if (PyErr_Occurred()) SWIG_fail;
18235 }
18236 Py_INCREF(Py_None); resultobj = Py_None;
18237 return resultobj;
18238 fail:
18239 return NULL;
18240 }
18241
18242
18243 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) {
18244 PyObject *resultobj;
18245 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18246 int arg2 ;
18247 int arg3 ;
18248 PyObject * obj0 = 0 ;
18249 PyObject * obj1 = 0 ;
18250 PyObject * obj2 = 0 ;
18251 char *kwnames[] = {
18252 (char *) "self",(char *) "rows",(char *) "cols", NULL
18253 };
18254
18255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18258 arg2 = (int)SWIG_As_int(obj1);
18259 if (PyErr_Occurred()) SWIG_fail;
18260 arg3 = (int)SWIG_As_int(obj2);
18261 if (PyErr_Occurred()) SWIG_fail;
18262 {
18263 PyThreadState* __tstate = wxPyBeginAllowThreads();
18264 (arg1)->SetMaxRowsCols(arg2,arg3);
18265
18266 wxPyEndAllowThreads(__tstate);
18267 if (PyErr_Occurred()) SWIG_fail;
18268 }
18269 Py_INCREF(Py_None); resultobj = Py_None;
18270 return resultobj;
18271 fail:
18272 return NULL;
18273 }
18274
18275
18276 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) {
18277 PyObject *resultobj;
18278 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18279 int result;
18280 PyObject * obj0 = 0 ;
18281 char *kwnames[] = {
18282 (char *) "self", NULL
18283 };
18284
18285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18288 {
18289 PyThreadState* __tstate = wxPyBeginAllowThreads();
18290 result = (int)(arg1)->GetMaxRows();
18291
18292 wxPyEndAllowThreads(__tstate);
18293 if (PyErr_Occurred()) SWIG_fail;
18294 }
18295 resultobj = SWIG_From_int((int)result);
18296 return resultobj;
18297 fail:
18298 return NULL;
18299 }
18300
18301
18302 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) {
18303 PyObject *resultobj;
18304 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18305 int result;
18306 PyObject * obj0 = 0 ;
18307 char *kwnames[] = {
18308 (char *) "self", NULL
18309 };
18310
18311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18314 {
18315 PyThreadState* __tstate = wxPyBeginAllowThreads();
18316 result = (int)(arg1)->GetMaxCols();
18317
18318 wxPyEndAllowThreads(__tstate);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 }
18321 resultobj = SWIG_From_int((int)result);
18322 return resultobj;
18323 fail:
18324 return NULL;
18325 }
18326
18327
18328 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18329 PyObject *resultobj;
18330 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18331 wxSize *arg2 = 0 ;
18332 wxSize temp2 ;
18333 PyObject * obj0 = 0 ;
18334 PyObject * obj1 = 0 ;
18335 char *kwnames[] = {
18336 (char *) "self",(char *) "size", NULL
18337 };
18338
18339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18342 {
18343 arg2 = &temp2;
18344 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18345 }
18346 {
18347 PyThreadState* __tstate = wxPyBeginAllowThreads();
18348 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18349
18350 wxPyEndAllowThreads(__tstate);
18351 if (PyErr_Occurred()) SWIG_fail;
18352 }
18353 Py_INCREF(Py_None); resultobj = Py_None;
18354 return resultobj;
18355 fail:
18356 return NULL;
18357 }
18358
18359
18360 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18361 PyObject *resultobj;
18362 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18363 wxSize result;
18364 PyObject * obj0 = 0 ;
18365 char *kwnames[] = {
18366 (char *) "self", NULL
18367 };
18368
18369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18372 {
18373 PyThreadState* __tstate = wxPyBeginAllowThreads();
18374 result = (arg1)->GetToolBitmapSize();
18375
18376 wxPyEndAllowThreads(__tstate);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 }
18379 {
18380 wxSize * resultptr;
18381 resultptr = new wxSize((wxSize &) result);
18382 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18383 }
18384 return resultobj;
18385 fail:
18386 return NULL;
18387 }
18388
18389
18390 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) {
18391 PyObject *resultobj;
18392 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18393 wxSize result;
18394 PyObject * obj0 = 0 ;
18395 char *kwnames[] = {
18396 (char *) "self", NULL
18397 };
18398
18399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18402 {
18403 PyThreadState* __tstate = wxPyBeginAllowThreads();
18404 result = (arg1)->GetToolSize();
18405
18406 wxPyEndAllowThreads(__tstate);
18407 if (PyErr_Occurred()) SWIG_fail;
18408 }
18409 {
18410 wxSize * resultptr;
18411 resultptr = new wxSize((wxSize &) result);
18412 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18413 }
18414 return resultobj;
18415 fail:
18416 return NULL;
18417 }
18418
18419
18420 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18421 PyObject *resultobj;
18422 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18423 int arg2 ;
18424 int arg3 ;
18425 wxToolBarToolBase *result;
18426 PyObject * obj0 = 0 ;
18427 PyObject * obj1 = 0 ;
18428 PyObject * obj2 = 0 ;
18429 char *kwnames[] = {
18430 (char *) "self",(char *) "x",(char *) "y", NULL
18431 };
18432
18433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18436 arg2 = (int)SWIG_As_int(obj1);
18437 if (PyErr_Occurred()) SWIG_fail;
18438 arg3 = (int)SWIG_As_int(obj2);
18439 if (PyErr_Occurred()) SWIG_fail;
18440 {
18441 PyThreadState* __tstate = wxPyBeginAllowThreads();
18442 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18443
18444 wxPyEndAllowThreads(__tstate);
18445 if (PyErr_Occurred()) SWIG_fail;
18446 }
18447 {
18448 resultobj = wxPyMake_wxObject(result, 0);
18449 }
18450 return resultobj;
18451 fail:
18452 return NULL;
18453 }
18454
18455
18456 static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) {
18457 PyObject *resultobj;
18458 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18459 int arg2 ;
18460 wxToolBarToolBase *result;
18461 PyObject * obj0 = 0 ;
18462 PyObject * obj1 = 0 ;
18463 char *kwnames[] = {
18464 (char *) "self",(char *) "toolid", NULL
18465 };
18466
18467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18470 arg2 = (int)SWIG_As_int(obj1);
18471 if (PyErr_Occurred()) SWIG_fail;
18472 {
18473 PyThreadState* __tstate = wxPyBeginAllowThreads();
18474 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18475
18476 wxPyEndAllowThreads(__tstate);
18477 if (PyErr_Occurred()) SWIG_fail;
18478 }
18479 {
18480 resultobj = wxPyMake_wxObject(result, 0);
18481 }
18482 return resultobj;
18483 fail:
18484 return NULL;
18485 }
18486
18487
18488 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
18489 PyObject *resultobj;
18490 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18491 bool result;
18492 PyObject * obj0 = 0 ;
18493 char *kwnames[] = {
18494 (char *) "self", NULL
18495 };
18496
18497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18500 {
18501 PyThreadState* __tstate = wxPyBeginAllowThreads();
18502 result = (bool)(arg1)->IsVertical();
18503
18504 wxPyEndAllowThreads(__tstate);
18505 if (PyErr_Occurred()) SWIG_fail;
18506 }
18507 {
18508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18509 }
18510 return resultobj;
18511 fail:
18512 return NULL;
18513 }
18514
18515
18516 static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) {
18517 PyObject *obj;
18518 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18519 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18520 Py_INCREF(obj);
18521 return Py_BuildValue((char *)"");
18522 }
18523 static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18524 PyObject *resultobj;
18525 wxWindow *arg1 = (wxWindow *) 0 ;
18526 int arg2 = (int) -1 ;
18527 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18528 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18529 wxSize const &arg4_defvalue = wxDefaultSize ;
18530 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18531 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18532 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18533 wxString *arg6 = (wxString *) &arg6_defvalue ;
18534 wxToolBar *result;
18535 wxPoint temp3 ;
18536 wxSize temp4 ;
18537 bool temp6 = False ;
18538 PyObject * obj0 = 0 ;
18539 PyObject * obj1 = 0 ;
18540 PyObject * obj2 = 0 ;
18541 PyObject * obj3 = 0 ;
18542 PyObject * obj4 = 0 ;
18543 PyObject * obj5 = 0 ;
18544 char *kwnames[] = {
18545 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18546 };
18547
18548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18551 if (obj1) {
18552 arg2 = (int)SWIG_As_int(obj1);
18553 if (PyErr_Occurred()) SWIG_fail;
18554 }
18555 if (obj2) {
18556 {
18557 arg3 = &temp3;
18558 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18559 }
18560 }
18561 if (obj3) {
18562 {
18563 arg4 = &temp4;
18564 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18565 }
18566 }
18567 if (obj4) {
18568 arg5 = (long)SWIG_As_long(obj4);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 }
18571 if (obj5) {
18572 {
18573 arg6 = wxString_in_helper(obj5);
18574 if (arg6 == NULL) SWIG_fail;
18575 temp6 = True;
18576 }
18577 }
18578 {
18579 if (!wxPyCheckForApp()) SWIG_fail;
18580 PyThreadState* __tstate = wxPyBeginAllowThreads();
18581 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18582
18583 wxPyEndAllowThreads(__tstate);
18584 if (PyErr_Occurred()) SWIG_fail;
18585 }
18586 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
18587 {
18588 if (temp6)
18589 delete arg6;
18590 }
18591 return resultobj;
18592 fail:
18593 {
18594 if (temp6)
18595 delete arg6;
18596 }
18597 return NULL;
18598 }
18599
18600
18601 static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18602 PyObject *resultobj;
18603 wxToolBar *result;
18604 char *kwnames[] = {
18605 NULL
18606 };
18607
18608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18609 {
18610 if (!wxPyCheckForApp()) SWIG_fail;
18611 PyThreadState* __tstate = wxPyBeginAllowThreads();
18612 result = (wxToolBar *)new wxToolBar();
18613
18614 wxPyEndAllowThreads(__tstate);
18615 if (PyErr_Occurred()) SWIG_fail;
18616 }
18617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
18618 return resultobj;
18619 fail:
18620 return NULL;
18621 }
18622
18623
18624 static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
18625 PyObject *resultobj;
18626 wxToolBar *arg1 = (wxToolBar *) 0 ;
18627 wxWindow *arg2 = (wxWindow *) 0 ;
18628 int arg3 = (int) -1 ;
18629 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18630 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18631 wxSize const &arg5_defvalue = wxDefaultSize ;
18632 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18633 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18634 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18635 wxString *arg7 = (wxString *) &arg7_defvalue ;
18636 bool result;
18637 wxPoint temp4 ;
18638 wxSize temp5 ;
18639 bool temp7 = False ;
18640 PyObject * obj0 = 0 ;
18641 PyObject * obj1 = 0 ;
18642 PyObject * obj2 = 0 ;
18643 PyObject * obj3 = 0 ;
18644 PyObject * obj4 = 0 ;
18645 PyObject * obj5 = 0 ;
18646 PyObject * obj6 = 0 ;
18647 char *kwnames[] = {
18648 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18649 };
18650
18651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18654 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18656 if (obj2) {
18657 arg3 = (int)SWIG_As_int(obj2);
18658 if (PyErr_Occurred()) SWIG_fail;
18659 }
18660 if (obj3) {
18661 {
18662 arg4 = &temp4;
18663 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18664 }
18665 }
18666 if (obj4) {
18667 {
18668 arg5 = &temp5;
18669 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18670 }
18671 }
18672 if (obj5) {
18673 arg6 = (long)SWIG_As_long(obj5);
18674 if (PyErr_Occurred()) SWIG_fail;
18675 }
18676 if (obj6) {
18677 {
18678 arg7 = wxString_in_helper(obj6);
18679 if (arg7 == NULL) SWIG_fail;
18680 temp7 = True;
18681 }
18682 }
18683 {
18684 PyThreadState* __tstate = wxPyBeginAllowThreads();
18685 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18686
18687 wxPyEndAllowThreads(__tstate);
18688 if (PyErr_Occurred()) SWIG_fail;
18689 }
18690 {
18691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18692 }
18693 {
18694 if (temp7)
18695 delete arg7;
18696 }
18697 return resultobj;
18698 fail:
18699 {
18700 if (temp7)
18701 delete arg7;
18702 }
18703 return NULL;
18704 }
18705
18706
18707 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18708 PyObject *resultobj;
18709 wxToolBar *arg1 = (wxToolBar *) 0 ;
18710 int arg2 ;
18711 int arg3 ;
18712 wxToolBarToolBase *result;
18713 PyObject * obj0 = 0 ;
18714 PyObject * obj1 = 0 ;
18715 PyObject * obj2 = 0 ;
18716 char *kwnames[] = {
18717 (char *) "self",(char *) "x",(char *) "y", NULL
18718 };
18719
18720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18723 arg2 = (int)SWIG_As_int(obj1);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 arg3 = (int)SWIG_As_int(obj2);
18726 if (PyErr_Occurred()) SWIG_fail;
18727 {
18728 PyThreadState* __tstate = wxPyBeginAllowThreads();
18729 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18730
18731 wxPyEndAllowThreads(__tstate);
18732 if (PyErr_Occurred()) SWIG_fail;
18733 }
18734 {
18735 resultobj = wxPyMake_wxObject(result, 0);
18736 }
18737 return resultobj;
18738 fail:
18739 return NULL;
18740 }
18741
18742
18743 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
18744 PyObject *resultobj;
18745 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18746 wxVisualAttributes result;
18747 PyObject * obj0 = 0 ;
18748 char *kwnames[] = {
18749 (char *) "variant", NULL
18750 };
18751
18752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18753 if (obj0) {
18754 arg1 = (int)SWIG_As_int(obj0);
18755 if (PyErr_Occurred()) SWIG_fail;
18756 }
18757 {
18758 if (!wxPyCheckForApp()) SWIG_fail;
18759 PyThreadState* __tstate = wxPyBeginAllowThreads();
18760 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18761
18762 wxPyEndAllowThreads(__tstate);
18763 if (PyErr_Occurred()) SWIG_fail;
18764 }
18765 {
18766 wxVisualAttributes * resultptr;
18767 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18768 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18769 }
18770 return resultobj;
18771 fail:
18772 return NULL;
18773 }
18774
18775
18776 static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) {
18777 PyObject *obj;
18778 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18779 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18780 Py_INCREF(obj);
18781 return Py_BuildValue((char *)"");
18782 }
18783 static int _wrap_ListCtrlNameStr_set(PyObject *) {
18784 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18785 return 1;
18786 }
18787
18788
18789 static PyObject *_wrap_ListCtrlNameStr_get() {
18790 PyObject *pyobj;
18791
18792 {
18793 #if wxUSE_UNICODE
18794 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18795 #else
18796 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18797 #endif
18798 }
18799 return pyobj;
18800 }
18801
18802
18803 static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) {
18804 PyObject *resultobj;
18805 wxColour const &arg1_defvalue = wxNullColour ;
18806 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18807 wxColour const &arg2_defvalue = wxNullColour ;
18808 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18809 wxFont const &arg3_defvalue = wxNullFont ;
18810 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18811 wxListItemAttr *result;
18812 wxColour temp1 ;
18813 wxColour temp2 ;
18814 PyObject * obj0 = 0 ;
18815 PyObject * obj1 = 0 ;
18816 PyObject * obj2 = 0 ;
18817 char *kwnames[] = {
18818 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18819 };
18820
18821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18822 if (obj0) {
18823 {
18824 arg1 = &temp1;
18825 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18826 }
18827 }
18828 if (obj1) {
18829 {
18830 arg2 = &temp2;
18831 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18832 }
18833 }
18834 if (obj2) {
18835 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18836 SWIG_POINTER_EXCEPTION | 0)) == -1)
18837 SWIG_fail;
18838 if (arg3 == NULL) {
18839 PyErr_SetString(PyExc_TypeError,"null reference");
18840 SWIG_fail;
18841 }
18842 }
18843 {
18844 PyThreadState* __tstate = wxPyBeginAllowThreads();
18845 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18846
18847 wxPyEndAllowThreads(__tstate);
18848 if (PyErr_Occurred()) SWIG_fail;
18849 }
18850 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18851 return resultobj;
18852 fail:
18853 return NULL;
18854 }
18855
18856
18857 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
18858 PyObject *resultobj;
18859 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18860 wxColour *arg2 = 0 ;
18861 wxColour temp2 ;
18862 PyObject * obj0 = 0 ;
18863 PyObject * obj1 = 0 ;
18864 char *kwnames[] = {
18865 (char *) "self",(char *) "colText", NULL
18866 };
18867
18868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18871 {
18872 arg2 = &temp2;
18873 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18874 }
18875 {
18876 PyThreadState* __tstate = wxPyBeginAllowThreads();
18877 (arg1)->SetTextColour((wxColour const &)*arg2);
18878
18879 wxPyEndAllowThreads(__tstate);
18880 if (PyErr_Occurred()) SWIG_fail;
18881 }
18882 Py_INCREF(Py_None); resultobj = Py_None;
18883 return resultobj;
18884 fail:
18885 return NULL;
18886 }
18887
18888
18889 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
18890 PyObject *resultobj;
18891 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18892 wxColour *arg2 = 0 ;
18893 wxColour temp2 ;
18894 PyObject * obj0 = 0 ;
18895 PyObject * obj1 = 0 ;
18896 char *kwnames[] = {
18897 (char *) "self",(char *) "colBack", NULL
18898 };
18899
18900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18903 {
18904 arg2 = &temp2;
18905 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18906 }
18907 {
18908 PyThreadState* __tstate = wxPyBeginAllowThreads();
18909 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18910
18911 wxPyEndAllowThreads(__tstate);
18912 if (PyErr_Occurred()) SWIG_fail;
18913 }
18914 Py_INCREF(Py_None); resultobj = Py_None;
18915 return resultobj;
18916 fail:
18917 return NULL;
18918 }
18919
18920
18921 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
18922 PyObject *resultobj;
18923 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18924 wxFont *arg2 = 0 ;
18925 PyObject * obj0 = 0 ;
18926 PyObject * obj1 = 0 ;
18927 char *kwnames[] = {
18928 (char *) "self",(char *) "font", NULL
18929 };
18930
18931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
18932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18934 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18935 SWIG_POINTER_EXCEPTION | 0)) == -1)
18936 SWIG_fail;
18937 if (arg2 == NULL) {
18938 PyErr_SetString(PyExc_TypeError,"null reference");
18939 SWIG_fail;
18940 }
18941 {
18942 PyThreadState* __tstate = wxPyBeginAllowThreads();
18943 (arg1)->SetFont((wxFont const &)*arg2);
18944
18945 wxPyEndAllowThreads(__tstate);
18946 if (PyErr_Occurred()) SWIG_fail;
18947 }
18948 Py_INCREF(Py_None); resultobj = Py_None;
18949 return resultobj;
18950 fail:
18951 return NULL;
18952 }
18953
18954
18955 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
18956 PyObject *resultobj;
18957 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18958 bool result;
18959 PyObject * obj0 = 0 ;
18960 char *kwnames[] = {
18961 (char *) "self", NULL
18962 };
18963
18964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
18965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18967 {
18968 PyThreadState* __tstate = wxPyBeginAllowThreads();
18969 result = (bool)(arg1)->HasTextColour();
18970
18971 wxPyEndAllowThreads(__tstate);
18972 if (PyErr_Occurred()) SWIG_fail;
18973 }
18974 {
18975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18976 }
18977 return resultobj;
18978 fail:
18979 return NULL;
18980 }
18981
18982
18983 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
18984 PyObject *resultobj;
18985 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18986 bool result;
18987 PyObject * obj0 = 0 ;
18988 char *kwnames[] = {
18989 (char *) "self", NULL
18990 };
18991
18992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
18993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18995 {
18996 PyThreadState* __tstate = wxPyBeginAllowThreads();
18997 result = (bool)(arg1)->HasBackgroundColour();
18998
18999 wxPyEndAllowThreads(__tstate);
19000 if (PyErr_Occurred()) SWIG_fail;
19001 }
19002 {
19003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19004 }
19005 return resultobj;
19006 fail:
19007 return NULL;
19008 }
19009
19010
19011 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
19012 PyObject *resultobj;
19013 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19014 bool result;
19015 PyObject * obj0 = 0 ;
19016 char *kwnames[] = {
19017 (char *) "self", NULL
19018 };
19019
19020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
19021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19023 {
19024 PyThreadState* __tstate = wxPyBeginAllowThreads();
19025 result = (bool)(arg1)->HasFont();
19026
19027 wxPyEndAllowThreads(__tstate);
19028 if (PyErr_Occurred()) SWIG_fail;
19029 }
19030 {
19031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19032 }
19033 return resultobj;
19034 fail:
19035 return NULL;
19036 }
19037
19038
19039 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19040 PyObject *resultobj;
19041 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19042 wxColour result;
19043 PyObject * obj0 = 0 ;
19044 char *kwnames[] = {
19045 (char *) "self", NULL
19046 };
19047
19048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
19049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19051 {
19052 PyThreadState* __tstate = wxPyBeginAllowThreads();
19053 result = (arg1)->GetTextColour();
19054
19055 wxPyEndAllowThreads(__tstate);
19056 if (PyErr_Occurred()) SWIG_fail;
19057 }
19058 {
19059 wxColour * resultptr;
19060 resultptr = new wxColour((wxColour &) result);
19061 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19062 }
19063 return resultobj;
19064 fail:
19065 return NULL;
19066 }
19067
19068
19069 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19070 PyObject *resultobj;
19071 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19072 wxColour result;
19073 PyObject * obj0 = 0 ;
19074 char *kwnames[] = {
19075 (char *) "self", NULL
19076 };
19077
19078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
19079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19081 {
19082 PyThreadState* __tstate = wxPyBeginAllowThreads();
19083 result = (arg1)->GetBackgroundColour();
19084
19085 wxPyEndAllowThreads(__tstate);
19086 if (PyErr_Occurred()) SWIG_fail;
19087 }
19088 {
19089 wxColour * resultptr;
19090 resultptr = new wxColour((wxColour &) result);
19091 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19092 }
19093 return resultobj;
19094 fail:
19095 return NULL;
19096 }
19097
19098
19099 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19100 PyObject *resultobj;
19101 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19102 wxFont result;
19103 PyObject * obj0 = 0 ;
19104 char *kwnames[] = {
19105 (char *) "self", NULL
19106 };
19107
19108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
19109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19111 {
19112 PyThreadState* __tstate = wxPyBeginAllowThreads();
19113 result = (arg1)->GetFont();
19114
19115 wxPyEndAllowThreads(__tstate);
19116 if (PyErr_Occurred()) SWIG_fail;
19117 }
19118 {
19119 wxFont * resultptr;
19120 resultptr = new wxFont((wxFont &) result);
19121 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19122 }
19123 return resultobj;
19124 fail:
19125 return NULL;
19126 }
19127
19128
19129 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
19130 PyObject *resultobj;
19131 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19132 PyObject * obj0 = 0 ;
19133 char *kwnames[] = {
19134 (char *) "self", NULL
19135 };
19136
19137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
19138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19140 {
19141 PyThreadState* __tstate = wxPyBeginAllowThreads();
19142 wxListItemAttr_Destroy(arg1);
19143
19144 wxPyEndAllowThreads(__tstate);
19145 if (PyErr_Occurred()) SWIG_fail;
19146 }
19147 Py_INCREF(Py_None); resultobj = Py_None;
19148 return resultobj;
19149 fail:
19150 return NULL;
19151 }
19152
19153
19154 static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) {
19155 PyObject *obj;
19156 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19157 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
19158 Py_INCREF(obj);
19159 return Py_BuildValue((char *)"");
19160 }
19161 static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19162 PyObject *resultobj;
19163 wxListItem *result;
19164 char *kwnames[] = {
19165 NULL
19166 };
19167
19168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
19169 {
19170 PyThreadState* __tstate = wxPyBeginAllowThreads();
19171 result = (wxListItem *)new wxListItem();
19172
19173 wxPyEndAllowThreads(__tstate);
19174 if (PyErr_Occurred()) SWIG_fail;
19175 }
19176 {
19177 resultobj = wxPyMake_wxObject(result, 1);
19178 }
19179 return resultobj;
19180 fail:
19181 return NULL;
19182 }
19183
19184
19185 static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19186 PyObject *resultobj;
19187 wxListItem *arg1 = (wxListItem *) 0 ;
19188 PyObject * obj0 = 0 ;
19189 char *kwnames[] = {
19190 (char *) "self", NULL
19191 };
19192
19193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19196 {
19197 PyThreadState* __tstate = wxPyBeginAllowThreads();
19198 delete arg1;
19199
19200 wxPyEndAllowThreads(__tstate);
19201 if (PyErr_Occurred()) SWIG_fail;
19202 }
19203 Py_INCREF(Py_None); resultobj = Py_None;
19204 return resultobj;
19205 fail:
19206 return NULL;
19207 }
19208
19209
19210 static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
19211 PyObject *resultobj;
19212 wxListItem *arg1 = (wxListItem *) 0 ;
19213 PyObject * obj0 = 0 ;
19214 char *kwnames[] = {
19215 (char *) "self", NULL
19216 };
19217
19218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19221 {
19222 PyThreadState* __tstate = wxPyBeginAllowThreads();
19223 (arg1)->Clear();
19224
19225 wxPyEndAllowThreads(__tstate);
19226 if (PyErr_Occurred()) SWIG_fail;
19227 }
19228 Py_INCREF(Py_None); resultobj = Py_None;
19229 return resultobj;
19230 fail:
19231 return NULL;
19232 }
19233
19234
19235 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19236 PyObject *resultobj;
19237 wxListItem *arg1 = (wxListItem *) 0 ;
19238 PyObject * obj0 = 0 ;
19239 char *kwnames[] = {
19240 (char *) "self", NULL
19241 };
19242
19243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19246 {
19247 PyThreadState* __tstate = wxPyBeginAllowThreads();
19248 (arg1)->ClearAttributes();
19249
19250 wxPyEndAllowThreads(__tstate);
19251 if (PyErr_Occurred()) SWIG_fail;
19252 }
19253 Py_INCREF(Py_None); resultobj = Py_None;
19254 return resultobj;
19255 fail:
19256 return NULL;
19257 }
19258
19259
19260 static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19261 PyObject *resultobj;
19262 wxListItem *arg1 = (wxListItem *) 0 ;
19263 long arg2 ;
19264 PyObject * obj0 = 0 ;
19265 PyObject * obj1 = 0 ;
19266 char *kwnames[] = {
19267 (char *) "self",(char *) "mask", NULL
19268 };
19269
19270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
19271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19273 arg2 = (long)SWIG_As_long(obj1);
19274 if (PyErr_Occurred()) SWIG_fail;
19275 {
19276 PyThreadState* __tstate = wxPyBeginAllowThreads();
19277 (arg1)->SetMask(arg2);
19278
19279 wxPyEndAllowThreads(__tstate);
19280 if (PyErr_Occurred()) SWIG_fail;
19281 }
19282 Py_INCREF(Py_None); resultobj = Py_None;
19283 return resultobj;
19284 fail:
19285 return NULL;
19286 }
19287
19288
19289 static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
19290 PyObject *resultobj;
19291 wxListItem *arg1 = (wxListItem *) 0 ;
19292 long arg2 ;
19293 PyObject * obj0 = 0 ;
19294 PyObject * obj1 = 0 ;
19295 char *kwnames[] = {
19296 (char *) "self",(char *) "id", NULL
19297 };
19298
19299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
19300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19302 arg2 = (long)SWIG_As_long(obj1);
19303 if (PyErr_Occurred()) SWIG_fail;
19304 {
19305 PyThreadState* __tstate = wxPyBeginAllowThreads();
19306 (arg1)->SetId(arg2);
19307
19308 wxPyEndAllowThreads(__tstate);
19309 if (PyErr_Occurred()) SWIG_fail;
19310 }
19311 Py_INCREF(Py_None); resultobj = Py_None;
19312 return resultobj;
19313 fail:
19314 return NULL;
19315 }
19316
19317
19318 static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19319 PyObject *resultobj;
19320 wxListItem *arg1 = (wxListItem *) 0 ;
19321 int arg2 ;
19322 PyObject * obj0 = 0 ;
19323 PyObject * obj1 = 0 ;
19324 char *kwnames[] = {
19325 (char *) "self",(char *) "col", NULL
19326 };
19327
19328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19331 arg2 = (int)SWIG_As_int(obj1);
19332 if (PyErr_Occurred()) SWIG_fail;
19333 {
19334 PyThreadState* __tstate = wxPyBeginAllowThreads();
19335 (arg1)->SetColumn(arg2);
19336
19337 wxPyEndAllowThreads(__tstate);
19338 if (PyErr_Occurred()) SWIG_fail;
19339 }
19340 Py_INCREF(Py_None); resultobj = Py_None;
19341 return resultobj;
19342 fail:
19343 return NULL;
19344 }
19345
19346
19347 static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
19348 PyObject *resultobj;
19349 wxListItem *arg1 = (wxListItem *) 0 ;
19350 long arg2 ;
19351 PyObject * obj0 = 0 ;
19352 PyObject * obj1 = 0 ;
19353 char *kwnames[] = {
19354 (char *) "self",(char *) "state", NULL
19355 };
19356
19357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19360 arg2 = (long)SWIG_As_long(obj1);
19361 if (PyErr_Occurred()) SWIG_fail;
19362 {
19363 PyThreadState* __tstate = wxPyBeginAllowThreads();
19364 (arg1)->SetState(arg2);
19365
19366 wxPyEndAllowThreads(__tstate);
19367 if (PyErr_Occurred()) SWIG_fail;
19368 }
19369 Py_INCREF(Py_None); resultobj = Py_None;
19370 return resultobj;
19371 fail:
19372 return NULL;
19373 }
19374
19375
19376 static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) {
19377 PyObject *resultobj;
19378 wxListItem *arg1 = (wxListItem *) 0 ;
19379 long arg2 ;
19380 PyObject * obj0 = 0 ;
19381 PyObject * obj1 = 0 ;
19382 char *kwnames[] = {
19383 (char *) "self",(char *) "stateMask", NULL
19384 };
19385
19386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19389 arg2 = (long)SWIG_As_long(obj1);
19390 if (PyErr_Occurred()) SWIG_fail;
19391 {
19392 PyThreadState* __tstate = wxPyBeginAllowThreads();
19393 (arg1)->SetStateMask(arg2);
19394
19395 wxPyEndAllowThreads(__tstate);
19396 if (PyErr_Occurred()) SWIG_fail;
19397 }
19398 Py_INCREF(Py_None); resultobj = Py_None;
19399 return resultobj;
19400 fail:
19401 return NULL;
19402 }
19403
19404
19405 static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
19406 PyObject *resultobj;
19407 wxListItem *arg1 = (wxListItem *) 0 ;
19408 wxString *arg2 = 0 ;
19409 bool temp2 = False ;
19410 PyObject * obj0 = 0 ;
19411 PyObject * obj1 = 0 ;
19412 char *kwnames[] = {
19413 (char *) "self",(char *) "text", NULL
19414 };
19415
19416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19419 {
19420 arg2 = wxString_in_helper(obj1);
19421 if (arg2 == NULL) SWIG_fail;
19422 temp2 = True;
19423 }
19424 {
19425 PyThreadState* __tstate = wxPyBeginAllowThreads();
19426 (arg1)->SetText((wxString const &)*arg2);
19427
19428 wxPyEndAllowThreads(__tstate);
19429 if (PyErr_Occurred()) SWIG_fail;
19430 }
19431 Py_INCREF(Py_None); resultobj = Py_None;
19432 {
19433 if (temp2)
19434 delete arg2;
19435 }
19436 return resultobj;
19437 fail:
19438 {
19439 if (temp2)
19440 delete arg2;
19441 }
19442 return NULL;
19443 }
19444
19445
19446 static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19447 PyObject *resultobj;
19448 wxListItem *arg1 = (wxListItem *) 0 ;
19449 int arg2 ;
19450 PyObject * obj0 = 0 ;
19451 PyObject * obj1 = 0 ;
19452 char *kwnames[] = {
19453 (char *) "self",(char *) "image", NULL
19454 };
19455
19456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19459 arg2 = (int)SWIG_As_int(obj1);
19460 if (PyErr_Occurred()) SWIG_fail;
19461 {
19462 PyThreadState* __tstate = wxPyBeginAllowThreads();
19463 (arg1)->SetImage(arg2);
19464
19465 wxPyEndAllowThreads(__tstate);
19466 if (PyErr_Occurred()) SWIG_fail;
19467 }
19468 Py_INCREF(Py_None); resultobj = Py_None;
19469 return resultobj;
19470 fail:
19471 return NULL;
19472 }
19473
19474
19475 static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
19476 PyObject *resultobj;
19477 wxListItem *arg1 = (wxListItem *) 0 ;
19478 long arg2 ;
19479 PyObject * obj0 = 0 ;
19480 PyObject * obj1 = 0 ;
19481 char *kwnames[] = {
19482 (char *) "self",(char *) "data", NULL
19483 };
19484
19485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19488 arg2 = (long)SWIG_As_long(obj1);
19489 if (PyErr_Occurred()) SWIG_fail;
19490 {
19491 PyThreadState* __tstate = wxPyBeginAllowThreads();
19492 (arg1)->SetData(arg2);
19493
19494 wxPyEndAllowThreads(__tstate);
19495 if (PyErr_Occurred()) SWIG_fail;
19496 }
19497 Py_INCREF(Py_None); resultobj = Py_None;
19498 return resultobj;
19499 fail:
19500 return NULL;
19501 }
19502
19503
19504 static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19505 PyObject *resultobj;
19506 wxListItem *arg1 = (wxListItem *) 0 ;
19507 int arg2 ;
19508 PyObject * obj0 = 0 ;
19509 PyObject * obj1 = 0 ;
19510 char *kwnames[] = {
19511 (char *) "self",(char *) "width", NULL
19512 };
19513
19514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19517 arg2 = (int)SWIG_As_int(obj1);
19518 if (PyErr_Occurred()) SWIG_fail;
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 (arg1)->SetWidth(arg2);
19522
19523 wxPyEndAllowThreads(__tstate);
19524 if (PyErr_Occurred()) SWIG_fail;
19525 }
19526 Py_INCREF(Py_None); resultobj = Py_None;
19527 return resultobj;
19528 fail:
19529 return NULL;
19530 }
19531
19532
19533 static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
19534 PyObject *resultobj;
19535 wxListItem *arg1 = (wxListItem *) 0 ;
19536 int arg2 ;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 char *kwnames[] = {
19540 (char *) "self",(char *) "align", NULL
19541 };
19542
19543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19546 arg2 = (int)SWIG_As_int(obj1);
19547 if (PyErr_Occurred()) SWIG_fail;
19548 {
19549 PyThreadState* __tstate = wxPyBeginAllowThreads();
19550 (arg1)->SetAlign((wxListColumnFormat )arg2);
19551
19552 wxPyEndAllowThreads(__tstate);
19553 if (PyErr_Occurred()) SWIG_fail;
19554 }
19555 Py_INCREF(Py_None); resultobj = Py_None;
19556 return resultobj;
19557 fail:
19558 return NULL;
19559 }
19560
19561
19562 static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19563 PyObject *resultobj;
19564 wxListItem *arg1 = (wxListItem *) 0 ;
19565 wxColour *arg2 = 0 ;
19566 wxColour temp2 ;
19567 PyObject * obj0 = 0 ;
19568 PyObject * obj1 = 0 ;
19569 char *kwnames[] = {
19570 (char *) "self",(char *) "colText", NULL
19571 };
19572
19573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19576 {
19577 arg2 = &temp2;
19578 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19579 }
19580 {
19581 PyThreadState* __tstate = wxPyBeginAllowThreads();
19582 (arg1)->SetTextColour((wxColour const &)*arg2);
19583
19584 wxPyEndAllowThreads(__tstate);
19585 if (PyErr_Occurred()) SWIG_fail;
19586 }
19587 Py_INCREF(Py_None); resultobj = Py_None;
19588 return resultobj;
19589 fail:
19590 return NULL;
19591 }
19592
19593
19594 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19595 PyObject *resultobj;
19596 wxListItem *arg1 = (wxListItem *) 0 ;
19597 wxColour *arg2 = 0 ;
19598 wxColour temp2 ;
19599 PyObject * obj0 = 0 ;
19600 PyObject * obj1 = 0 ;
19601 char *kwnames[] = {
19602 (char *) "self",(char *) "colBack", NULL
19603 };
19604
19605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19608 {
19609 arg2 = &temp2;
19610 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19611 }
19612 {
19613 PyThreadState* __tstate = wxPyBeginAllowThreads();
19614 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19615
19616 wxPyEndAllowThreads(__tstate);
19617 if (PyErr_Occurred()) SWIG_fail;
19618 }
19619 Py_INCREF(Py_None); resultobj = Py_None;
19620 return resultobj;
19621 fail:
19622 return NULL;
19623 }
19624
19625
19626 static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19627 PyObject *resultobj;
19628 wxListItem *arg1 = (wxListItem *) 0 ;
19629 wxFont *arg2 = 0 ;
19630 PyObject * obj0 = 0 ;
19631 PyObject * obj1 = 0 ;
19632 char *kwnames[] = {
19633 (char *) "self",(char *) "font", NULL
19634 };
19635
19636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19639 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19640 SWIG_POINTER_EXCEPTION | 0)) == -1)
19641 SWIG_fail;
19642 if (arg2 == NULL) {
19643 PyErr_SetString(PyExc_TypeError,"null reference");
19644 SWIG_fail;
19645 }
19646 {
19647 PyThreadState* __tstate = wxPyBeginAllowThreads();
19648 (arg1)->SetFont((wxFont const &)*arg2);
19649
19650 wxPyEndAllowThreads(__tstate);
19651 if (PyErr_Occurred()) SWIG_fail;
19652 }
19653 Py_INCREF(Py_None); resultobj = Py_None;
19654 return resultobj;
19655 fail:
19656 return NULL;
19657 }
19658
19659
19660 static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19661 PyObject *resultobj;
19662 wxListItem *arg1 = (wxListItem *) 0 ;
19663 long result;
19664 PyObject * obj0 = 0 ;
19665 char *kwnames[] = {
19666 (char *) "self", NULL
19667 };
19668
19669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19672 {
19673 PyThreadState* __tstate = wxPyBeginAllowThreads();
19674 result = (long)(arg1)->GetMask();
19675
19676 wxPyEndAllowThreads(__tstate);
19677 if (PyErr_Occurred()) SWIG_fail;
19678 }
19679 resultobj = SWIG_From_long((long)result);
19680 return resultobj;
19681 fail:
19682 return NULL;
19683 }
19684
19685
19686 static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
19687 PyObject *resultobj;
19688 wxListItem *arg1 = (wxListItem *) 0 ;
19689 long result;
19690 PyObject * obj0 = 0 ;
19691 char *kwnames[] = {
19692 (char *) "self", NULL
19693 };
19694
19695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19698 {
19699 PyThreadState* __tstate = wxPyBeginAllowThreads();
19700 result = (long)(arg1)->GetId();
19701
19702 wxPyEndAllowThreads(__tstate);
19703 if (PyErr_Occurred()) SWIG_fail;
19704 }
19705 resultobj = SWIG_From_long((long)result);
19706 return resultobj;
19707 fail:
19708 return NULL;
19709 }
19710
19711
19712 static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19713 PyObject *resultobj;
19714 wxListItem *arg1 = (wxListItem *) 0 ;
19715 int result;
19716 PyObject * obj0 = 0 ;
19717 char *kwnames[] = {
19718 (char *) "self", NULL
19719 };
19720
19721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19724 {
19725 PyThreadState* __tstate = wxPyBeginAllowThreads();
19726 result = (int)(arg1)->GetColumn();
19727
19728 wxPyEndAllowThreads(__tstate);
19729 if (PyErr_Occurred()) SWIG_fail;
19730 }
19731 resultobj = SWIG_From_int((int)result);
19732 return resultobj;
19733 fail:
19734 return NULL;
19735 }
19736
19737
19738 static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
19739 PyObject *resultobj;
19740 wxListItem *arg1 = (wxListItem *) 0 ;
19741 long result;
19742 PyObject * obj0 = 0 ;
19743 char *kwnames[] = {
19744 (char *) "self", NULL
19745 };
19746
19747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19750 {
19751 PyThreadState* __tstate = wxPyBeginAllowThreads();
19752 result = (long)(arg1)->GetState();
19753
19754 wxPyEndAllowThreads(__tstate);
19755 if (PyErr_Occurred()) SWIG_fail;
19756 }
19757 resultobj = SWIG_From_long((long)result);
19758 return resultobj;
19759 fail:
19760 return NULL;
19761 }
19762
19763
19764 static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
19765 PyObject *resultobj;
19766 wxListItem *arg1 = (wxListItem *) 0 ;
19767 wxString *result;
19768 PyObject * obj0 = 0 ;
19769 char *kwnames[] = {
19770 (char *) "self", NULL
19771 };
19772
19773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19776 {
19777 PyThreadState* __tstate = wxPyBeginAllowThreads();
19778 {
19779 wxString const &_result_ref = (arg1)->GetText();
19780 result = (wxString *) &_result_ref;
19781 }
19782
19783 wxPyEndAllowThreads(__tstate);
19784 if (PyErr_Occurred()) SWIG_fail;
19785 }
19786 {
19787 #if wxUSE_UNICODE
19788 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19789 #else
19790 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19791 #endif
19792 }
19793 return resultobj;
19794 fail:
19795 return NULL;
19796 }
19797
19798
19799 static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19800 PyObject *resultobj;
19801 wxListItem *arg1 = (wxListItem *) 0 ;
19802 int result;
19803 PyObject * obj0 = 0 ;
19804 char *kwnames[] = {
19805 (char *) "self", NULL
19806 };
19807
19808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 result = (int)(arg1)->GetImage();
19814
19815 wxPyEndAllowThreads(__tstate);
19816 if (PyErr_Occurred()) SWIG_fail;
19817 }
19818 resultobj = SWIG_From_int((int)result);
19819 return resultobj;
19820 fail:
19821 return NULL;
19822 }
19823
19824
19825 static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
19826 PyObject *resultobj;
19827 wxListItem *arg1 = (wxListItem *) 0 ;
19828 long result;
19829 PyObject * obj0 = 0 ;
19830 char *kwnames[] = {
19831 (char *) "self", NULL
19832 };
19833
19834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19837 {
19838 PyThreadState* __tstate = wxPyBeginAllowThreads();
19839 result = (long)(arg1)->GetData();
19840
19841 wxPyEndAllowThreads(__tstate);
19842 if (PyErr_Occurred()) SWIG_fail;
19843 }
19844 resultobj = SWIG_From_long((long)result);
19845 return resultobj;
19846 fail:
19847 return NULL;
19848 }
19849
19850
19851 static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19852 PyObject *resultobj;
19853 wxListItem *arg1 = (wxListItem *) 0 ;
19854 int result;
19855 PyObject * obj0 = 0 ;
19856 char *kwnames[] = {
19857 (char *) "self", NULL
19858 };
19859
19860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19863 {
19864 PyThreadState* __tstate = wxPyBeginAllowThreads();
19865 result = (int)(arg1)->GetWidth();
19866
19867 wxPyEndAllowThreads(__tstate);
19868 if (PyErr_Occurred()) SWIG_fail;
19869 }
19870 resultobj = SWIG_From_int((int)result);
19871 return resultobj;
19872 fail:
19873 return NULL;
19874 }
19875
19876
19877 static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
19878 PyObject *resultobj;
19879 wxListItem *arg1 = (wxListItem *) 0 ;
19880 int result;
19881 PyObject * obj0 = 0 ;
19882 char *kwnames[] = {
19883 (char *) "self", NULL
19884 };
19885
19886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
19887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19889 {
19890 PyThreadState* __tstate = wxPyBeginAllowThreads();
19891 result = (int)(arg1)->GetAlign();
19892
19893 wxPyEndAllowThreads(__tstate);
19894 if (PyErr_Occurred()) SWIG_fail;
19895 }
19896 resultobj = SWIG_From_int((int)result);
19897 return resultobj;
19898 fail:
19899 return NULL;
19900 }
19901
19902
19903 static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19904 PyObject *resultobj;
19905 wxListItem *arg1 = (wxListItem *) 0 ;
19906 wxListItemAttr *result;
19907 PyObject * obj0 = 0 ;
19908 char *kwnames[] = {
19909 (char *) "self", NULL
19910 };
19911
19912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
19913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19915 {
19916 PyThreadState* __tstate = wxPyBeginAllowThreads();
19917 result = (wxListItemAttr *)(arg1)->GetAttributes();
19918
19919 wxPyEndAllowThreads(__tstate);
19920 if (PyErr_Occurred()) SWIG_fail;
19921 }
19922 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
19923 return resultobj;
19924 fail:
19925 return NULL;
19926 }
19927
19928
19929 static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19930 PyObject *resultobj;
19931 wxListItem *arg1 = (wxListItem *) 0 ;
19932 bool result;
19933 PyObject * obj0 = 0 ;
19934 char *kwnames[] = {
19935 (char *) "self", NULL
19936 };
19937
19938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
19939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19941 {
19942 PyThreadState* __tstate = wxPyBeginAllowThreads();
19943 result = (bool)(arg1)->HasAttributes();
19944
19945 wxPyEndAllowThreads(__tstate);
19946 if (PyErr_Occurred()) SWIG_fail;
19947 }
19948 {
19949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19950 }
19951 return resultobj;
19952 fail:
19953 return NULL;
19954 }
19955
19956
19957 static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19958 PyObject *resultobj;
19959 wxListItem *arg1 = (wxListItem *) 0 ;
19960 wxColour result;
19961 PyObject * obj0 = 0 ;
19962 char *kwnames[] = {
19963 (char *) "self", NULL
19964 };
19965
19966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
19967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19969 {
19970 PyThreadState* __tstate = wxPyBeginAllowThreads();
19971 result = ((wxListItem const *)arg1)->GetTextColour();
19972
19973 wxPyEndAllowThreads(__tstate);
19974 if (PyErr_Occurred()) SWIG_fail;
19975 }
19976 {
19977 wxColour * resultptr;
19978 resultptr = new wxColour((wxColour &) result);
19979 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19980 }
19981 return resultobj;
19982 fail:
19983 return NULL;
19984 }
19985
19986
19987 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19988 PyObject *resultobj;
19989 wxListItem *arg1 = (wxListItem *) 0 ;
19990 wxColour result;
19991 PyObject * obj0 = 0 ;
19992 char *kwnames[] = {
19993 (char *) "self", NULL
19994 };
19995
19996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
19997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19999 {
20000 PyThreadState* __tstate = wxPyBeginAllowThreads();
20001 result = ((wxListItem const *)arg1)->GetBackgroundColour();
20002
20003 wxPyEndAllowThreads(__tstate);
20004 if (PyErr_Occurred()) SWIG_fail;
20005 }
20006 {
20007 wxColour * resultptr;
20008 resultptr = new wxColour((wxColour &) result);
20009 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20010 }
20011 return resultobj;
20012 fail:
20013 return NULL;
20014 }
20015
20016
20017 static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20018 PyObject *resultobj;
20019 wxListItem *arg1 = (wxListItem *) 0 ;
20020 wxFont result;
20021 PyObject * obj0 = 0 ;
20022 char *kwnames[] = {
20023 (char *) "self", NULL
20024 };
20025
20026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
20027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20029 {
20030 PyThreadState* __tstate = wxPyBeginAllowThreads();
20031 result = ((wxListItem const *)arg1)->GetFont();
20032
20033 wxPyEndAllowThreads(__tstate);
20034 if (PyErr_Occurred()) SWIG_fail;
20035 }
20036 {
20037 wxFont * resultptr;
20038 resultptr = new wxFont((wxFont &) result);
20039 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
20040 }
20041 return resultobj;
20042 fail:
20043 return NULL;
20044 }
20045
20046
20047 static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20048 PyObject *resultobj;
20049 wxListItem *arg1 = (wxListItem *) 0 ;
20050 long arg2 ;
20051 PyObject * obj0 = 0 ;
20052 PyObject * obj1 = 0 ;
20053 char *kwnames[] = {
20054 (char *) "self",(char *) "m_mask", NULL
20055 };
20056
20057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
20058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20060 arg2 = (long)SWIG_As_long(obj1);
20061 if (PyErr_Occurred()) SWIG_fail;
20062 if (arg1) (arg1)->m_mask = arg2;
20063
20064 Py_INCREF(Py_None); resultobj = Py_None;
20065 return resultobj;
20066 fail:
20067 return NULL;
20068 }
20069
20070
20071 static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20072 PyObject *resultobj;
20073 wxListItem *arg1 = (wxListItem *) 0 ;
20074 long result;
20075 PyObject * obj0 = 0 ;
20076 char *kwnames[] = {
20077 (char *) "self", NULL
20078 };
20079
20080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
20081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20083 result = (long) ((arg1)->m_mask);
20084
20085 resultobj = SWIG_From_long((long)result);
20086 return resultobj;
20087 fail:
20088 return NULL;
20089 }
20090
20091
20092 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) {
20093 PyObject *resultobj;
20094 wxListItem *arg1 = (wxListItem *) 0 ;
20095 long arg2 ;
20096 PyObject * obj0 = 0 ;
20097 PyObject * obj1 = 0 ;
20098 char *kwnames[] = {
20099 (char *) "self",(char *) "m_itemId", NULL
20100 };
20101
20102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
20103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20105 arg2 = (long)SWIG_As_long(obj1);
20106 if (PyErr_Occurred()) SWIG_fail;
20107 if (arg1) (arg1)->m_itemId = arg2;
20108
20109 Py_INCREF(Py_None); resultobj = Py_None;
20110 return resultobj;
20111 fail:
20112 return NULL;
20113 }
20114
20115
20116 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) {
20117 PyObject *resultobj;
20118 wxListItem *arg1 = (wxListItem *) 0 ;
20119 long result;
20120 PyObject * obj0 = 0 ;
20121 char *kwnames[] = {
20122 (char *) "self", NULL
20123 };
20124
20125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
20126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20128 result = (long) ((arg1)->m_itemId);
20129
20130 resultobj = SWIG_From_long((long)result);
20131 return resultobj;
20132 fail:
20133 return NULL;
20134 }
20135
20136
20137 static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20138 PyObject *resultobj;
20139 wxListItem *arg1 = (wxListItem *) 0 ;
20140 int arg2 ;
20141 PyObject * obj0 = 0 ;
20142 PyObject * obj1 = 0 ;
20143 char *kwnames[] = {
20144 (char *) "self",(char *) "m_col", NULL
20145 };
20146
20147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20150 arg2 = (int)SWIG_As_int(obj1);
20151 if (PyErr_Occurred()) SWIG_fail;
20152 if (arg1) (arg1)->m_col = arg2;
20153
20154 Py_INCREF(Py_None); resultobj = Py_None;
20155 return resultobj;
20156 fail:
20157 return NULL;
20158 }
20159
20160
20161 static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20162 PyObject *resultobj;
20163 wxListItem *arg1 = (wxListItem *) 0 ;
20164 int result;
20165 PyObject * obj0 = 0 ;
20166 char *kwnames[] = {
20167 (char *) "self", NULL
20168 };
20169
20170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
20171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20173 result = (int) ((arg1)->m_col);
20174
20175 resultobj = SWIG_From_int((int)result);
20176 return resultobj;
20177 fail:
20178 return NULL;
20179 }
20180
20181
20182 static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) {
20183 PyObject *resultobj;
20184 wxListItem *arg1 = (wxListItem *) 0 ;
20185 long arg2 ;
20186 PyObject * obj0 = 0 ;
20187 PyObject * obj1 = 0 ;
20188 char *kwnames[] = {
20189 (char *) "self",(char *) "m_state", NULL
20190 };
20191
20192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20195 arg2 = (long)SWIG_As_long(obj1);
20196 if (PyErr_Occurred()) SWIG_fail;
20197 if (arg1) (arg1)->m_state = arg2;
20198
20199 Py_INCREF(Py_None); resultobj = Py_None;
20200 return resultobj;
20201 fail:
20202 return NULL;
20203 }
20204
20205
20206 static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) {
20207 PyObject *resultobj;
20208 wxListItem *arg1 = (wxListItem *) 0 ;
20209 long result;
20210 PyObject * obj0 = 0 ;
20211 char *kwnames[] = {
20212 (char *) "self", NULL
20213 };
20214
20215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20218 result = (long) ((arg1)->m_state);
20219
20220 resultobj = SWIG_From_long((long)result);
20221 return resultobj;
20222 fail:
20223 return NULL;
20224 }
20225
20226
20227 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20228 PyObject *resultobj;
20229 wxListItem *arg1 = (wxListItem *) 0 ;
20230 long arg2 ;
20231 PyObject * obj0 = 0 ;
20232 PyObject * obj1 = 0 ;
20233 char *kwnames[] = {
20234 (char *) "self",(char *) "m_stateMask", NULL
20235 };
20236
20237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20240 arg2 = (long)SWIG_As_long(obj1);
20241 if (PyErr_Occurred()) SWIG_fail;
20242 if (arg1) (arg1)->m_stateMask = arg2;
20243
20244 Py_INCREF(Py_None); resultobj = Py_None;
20245 return resultobj;
20246 fail:
20247 return NULL;
20248 }
20249
20250
20251 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20252 PyObject *resultobj;
20253 wxListItem *arg1 = (wxListItem *) 0 ;
20254 long result;
20255 PyObject * obj0 = 0 ;
20256 char *kwnames[] = {
20257 (char *) "self", NULL
20258 };
20259
20260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20263 result = (long) ((arg1)->m_stateMask);
20264
20265 resultobj = SWIG_From_long((long)result);
20266 return resultobj;
20267 fail:
20268 return NULL;
20269 }
20270
20271
20272 static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) {
20273 PyObject *resultobj;
20274 wxListItem *arg1 = (wxListItem *) 0 ;
20275 wxString *arg2 = (wxString *) 0 ;
20276 bool temp2 = False ;
20277 PyObject * obj0 = 0 ;
20278 PyObject * obj1 = 0 ;
20279 char *kwnames[] = {
20280 (char *) "self",(char *) "m_text", NULL
20281 };
20282
20283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20286 {
20287 arg2 = wxString_in_helper(obj1);
20288 if (arg2 == NULL) SWIG_fail;
20289 temp2 = True;
20290 }
20291 if (arg1) (arg1)->m_text = *arg2;
20292
20293 Py_INCREF(Py_None); resultobj = Py_None;
20294 {
20295 if (temp2)
20296 delete arg2;
20297 }
20298 return resultobj;
20299 fail:
20300 {
20301 if (temp2)
20302 delete arg2;
20303 }
20304 return NULL;
20305 }
20306
20307
20308 static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) {
20309 PyObject *resultobj;
20310 wxListItem *arg1 = (wxListItem *) 0 ;
20311 wxString *result;
20312 PyObject * obj0 = 0 ;
20313 char *kwnames[] = {
20314 (char *) "self", NULL
20315 };
20316
20317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20320 result = (wxString *)& ((arg1)->m_text);
20321
20322 {
20323 #if wxUSE_UNICODE
20324 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20325 #else
20326 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20327 #endif
20328 }
20329 return resultobj;
20330 fail:
20331 return NULL;
20332 }
20333
20334
20335 static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) {
20336 PyObject *resultobj;
20337 wxListItem *arg1 = (wxListItem *) 0 ;
20338 int arg2 ;
20339 PyObject * obj0 = 0 ;
20340 PyObject * obj1 = 0 ;
20341 char *kwnames[] = {
20342 (char *) "self",(char *) "m_image", NULL
20343 };
20344
20345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20348 arg2 = (int)SWIG_As_int(obj1);
20349 if (PyErr_Occurred()) SWIG_fail;
20350 if (arg1) (arg1)->m_image = arg2;
20351
20352 Py_INCREF(Py_None); resultobj = Py_None;
20353 return resultobj;
20354 fail:
20355 return NULL;
20356 }
20357
20358
20359 static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) {
20360 PyObject *resultobj;
20361 wxListItem *arg1 = (wxListItem *) 0 ;
20362 int result;
20363 PyObject * obj0 = 0 ;
20364 char *kwnames[] = {
20365 (char *) "self", NULL
20366 };
20367
20368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20371 result = (int) ((arg1)->m_image);
20372
20373 resultobj = SWIG_From_int((int)result);
20374 return resultobj;
20375 fail:
20376 return NULL;
20377 }
20378
20379
20380 static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) {
20381 PyObject *resultobj;
20382 wxListItem *arg1 = (wxListItem *) 0 ;
20383 long arg2 ;
20384 PyObject * obj0 = 0 ;
20385 PyObject * obj1 = 0 ;
20386 char *kwnames[] = {
20387 (char *) "self",(char *) "m_data", NULL
20388 };
20389
20390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20393 arg2 = (long)SWIG_As_long(obj1);
20394 if (PyErr_Occurred()) SWIG_fail;
20395 if (arg1) (arg1)->m_data = arg2;
20396
20397 Py_INCREF(Py_None); resultobj = Py_None;
20398 return resultobj;
20399 fail:
20400 return NULL;
20401 }
20402
20403
20404 static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) {
20405 PyObject *resultobj;
20406 wxListItem *arg1 = (wxListItem *) 0 ;
20407 long result;
20408 PyObject * obj0 = 0 ;
20409 char *kwnames[] = {
20410 (char *) "self", NULL
20411 };
20412
20413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20416 result = (long) ((arg1)->m_data);
20417
20418 resultobj = SWIG_From_long((long)result);
20419 return resultobj;
20420 fail:
20421 return NULL;
20422 }
20423
20424
20425 static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) {
20426 PyObject *resultobj;
20427 wxListItem *arg1 = (wxListItem *) 0 ;
20428 int arg2 ;
20429 PyObject * obj0 = 0 ;
20430 PyObject * obj1 = 0 ;
20431 char *kwnames[] = {
20432 (char *) "self",(char *) "m_format", NULL
20433 };
20434
20435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20438 arg2 = (int)SWIG_As_int(obj1);
20439 if (PyErr_Occurred()) SWIG_fail;
20440 if (arg1) (arg1)->m_format = arg2;
20441
20442 Py_INCREF(Py_None); resultobj = Py_None;
20443 return resultobj;
20444 fail:
20445 return NULL;
20446 }
20447
20448
20449 static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) {
20450 PyObject *resultobj;
20451 wxListItem *arg1 = (wxListItem *) 0 ;
20452 int result;
20453 PyObject * obj0 = 0 ;
20454 char *kwnames[] = {
20455 (char *) "self", NULL
20456 };
20457
20458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20461 result = (int) ((arg1)->m_format);
20462
20463 resultobj = SWIG_From_int((int)result);
20464 return resultobj;
20465 fail:
20466 return NULL;
20467 }
20468
20469
20470 static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
20471 PyObject *resultobj;
20472 wxListItem *arg1 = (wxListItem *) 0 ;
20473 int arg2 ;
20474 PyObject * obj0 = 0 ;
20475 PyObject * obj1 = 0 ;
20476 char *kwnames[] = {
20477 (char *) "self",(char *) "m_width", NULL
20478 };
20479
20480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20483 arg2 = (int)SWIG_As_int(obj1);
20484 if (PyErr_Occurred()) SWIG_fail;
20485 if (arg1) (arg1)->m_width = arg2;
20486
20487 Py_INCREF(Py_None); resultobj = Py_None;
20488 return resultobj;
20489 fail:
20490 return NULL;
20491 }
20492
20493
20494 static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
20495 PyObject *resultobj;
20496 wxListItem *arg1 = (wxListItem *) 0 ;
20497 int result;
20498 PyObject * obj0 = 0 ;
20499 char *kwnames[] = {
20500 (char *) "self", NULL
20501 };
20502
20503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20506 result = (int) ((arg1)->m_width);
20507
20508 resultobj = SWIG_From_int((int)result);
20509 return resultobj;
20510 fail:
20511 return NULL;
20512 }
20513
20514
20515 static PyObject * ListItem_swigregister(PyObject *, PyObject *args) {
20516 PyObject *obj;
20517 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20518 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20519 Py_INCREF(obj);
20520 return Py_BuildValue((char *)"");
20521 }
20522 static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20523 PyObject *resultobj;
20524 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20525 int arg2 = (int) 0 ;
20526 wxListEvent *result;
20527 PyObject * obj0 = 0 ;
20528 PyObject * obj1 = 0 ;
20529 char *kwnames[] = {
20530 (char *) "commandType",(char *) "id", NULL
20531 };
20532
20533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20534 if (obj0) {
20535 arg1 = (wxEventType)SWIG_As_int(obj0);
20536 if (PyErr_Occurred()) SWIG_fail;
20537 }
20538 if (obj1) {
20539 arg2 = (int)SWIG_As_int(obj1);
20540 if (PyErr_Occurred()) SWIG_fail;
20541 }
20542 {
20543 PyThreadState* __tstate = wxPyBeginAllowThreads();
20544 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20545
20546 wxPyEndAllowThreads(__tstate);
20547 if (PyErr_Occurred()) SWIG_fail;
20548 }
20549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20550 return resultobj;
20551 fail:
20552 return NULL;
20553 }
20554
20555
20556 static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) {
20557 PyObject *resultobj;
20558 wxListEvent *arg1 = (wxListEvent *) 0 ;
20559 int arg2 ;
20560 PyObject * obj0 = 0 ;
20561 PyObject * obj1 = 0 ;
20562 char *kwnames[] = {
20563 (char *) "self",(char *) "m_code", NULL
20564 };
20565
20566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20569 arg2 = (int)SWIG_As_int(obj1);
20570 if (PyErr_Occurred()) SWIG_fail;
20571 if (arg1) (arg1)->m_code = arg2;
20572
20573 Py_INCREF(Py_None); resultobj = Py_None;
20574 return resultobj;
20575 fail:
20576 return NULL;
20577 }
20578
20579
20580 static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) {
20581 PyObject *resultobj;
20582 wxListEvent *arg1 = (wxListEvent *) 0 ;
20583 int result;
20584 PyObject * obj0 = 0 ;
20585 char *kwnames[] = {
20586 (char *) "self", NULL
20587 };
20588
20589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20592 result = (int) ((arg1)->m_code);
20593
20594 resultobj = SWIG_From_int((int)result);
20595 return resultobj;
20596 fail:
20597 return NULL;
20598 }
20599
20600
20601 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
20602 PyObject *resultobj;
20603 wxListEvent *arg1 = (wxListEvent *) 0 ;
20604 long arg2 ;
20605 PyObject * obj0 = 0 ;
20606 PyObject * obj1 = 0 ;
20607 char *kwnames[] = {
20608 (char *) "self",(char *) "m_oldItemIndex", NULL
20609 };
20610
20611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20614 arg2 = (long)SWIG_As_long(obj1);
20615 if (PyErr_Occurred()) SWIG_fail;
20616 if (arg1) (arg1)->m_oldItemIndex = arg2;
20617
20618 Py_INCREF(Py_None); resultobj = Py_None;
20619 return resultobj;
20620 fail:
20621 return NULL;
20622 }
20623
20624
20625 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
20626 PyObject *resultobj;
20627 wxListEvent *arg1 = (wxListEvent *) 0 ;
20628 long result;
20629 PyObject * obj0 = 0 ;
20630 char *kwnames[] = {
20631 (char *) "self", NULL
20632 };
20633
20634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20637 result = (long) ((arg1)->m_oldItemIndex);
20638
20639 resultobj = SWIG_From_long((long)result);
20640 return resultobj;
20641 fail:
20642 return NULL;
20643 }
20644
20645
20646 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
20647 PyObject *resultobj;
20648 wxListEvent *arg1 = (wxListEvent *) 0 ;
20649 long arg2 ;
20650 PyObject * obj0 = 0 ;
20651 PyObject * obj1 = 0 ;
20652 char *kwnames[] = {
20653 (char *) "self",(char *) "m_itemIndex", NULL
20654 };
20655
20656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20659 arg2 = (long)SWIG_As_long(obj1);
20660 if (PyErr_Occurred()) SWIG_fail;
20661 if (arg1) (arg1)->m_itemIndex = arg2;
20662
20663 Py_INCREF(Py_None); resultobj = Py_None;
20664 return resultobj;
20665 fail:
20666 return NULL;
20667 }
20668
20669
20670 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
20671 PyObject *resultobj;
20672 wxListEvent *arg1 = (wxListEvent *) 0 ;
20673 long result;
20674 PyObject * obj0 = 0 ;
20675 char *kwnames[] = {
20676 (char *) "self", NULL
20677 };
20678
20679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20682 result = (long) ((arg1)->m_itemIndex);
20683
20684 resultobj = SWIG_From_long((long)result);
20685 return resultobj;
20686 fail:
20687 return NULL;
20688 }
20689
20690
20691 static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20692 PyObject *resultobj;
20693 wxListEvent *arg1 = (wxListEvent *) 0 ;
20694 int arg2 ;
20695 PyObject * obj0 = 0 ;
20696 PyObject * obj1 = 0 ;
20697 char *kwnames[] = {
20698 (char *) "self",(char *) "m_col", NULL
20699 };
20700
20701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20704 arg2 = (int)SWIG_As_int(obj1);
20705 if (PyErr_Occurred()) SWIG_fail;
20706 if (arg1) (arg1)->m_col = arg2;
20707
20708 Py_INCREF(Py_None); resultobj = Py_None;
20709 return resultobj;
20710 fail:
20711 return NULL;
20712 }
20713
20714
20715 static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20716 PyObject *resultobj;
20717 wxListEvent *arg1 = (wxListEvent *) 0 ;
20718 int result;
20719 PyObject * obj0 = 0 ;
20720 char *kwnames[] = {
20721 (char *) "self", NULL
20722 };
20723
20724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20727 result = (int) ((arg1)->m_col);
20728
20729 resultobj = SWIG_From_int((int)result);
20730 return resultobj;
20731 fail:
20732 return NULL;
20733 }
20734
20735
20736 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) {
20737 PyObject *resultobj;
20738 wxListEvent *arg1 = (wxListEvent *) 0 ;
20739 wxPoint *arg2 = (wxPoint *) 0 ;
20740 PyObject * obj0 = 0 ;
20741 PyObject * obj1 = 0 ;
20742 char *kwnames[] = {
20743 (char *) "self",(char *) "m_pointDrag", NULL
20744 };
20745
20746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20749 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20751 if (arg1) (arg1)->m_pointDrag = *arg2;
20752
20753 Py_INCREF(Py_None); resultobj = Py_None;
20754 return resultobj;
20755 fail:
20756 return NULL;
20757 }
20758
20759
20760 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) {
20761 PyObject *resultobj;
20762 wxListEvent *arg1 = (wxListEvent *) 0 ;
20763 wxPoint *result;
20764 PyObject * obj0 = 0 ;
20765 char *kwnames[] = {
20766 (char *) "self", NULL
20767 };
20768
20769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20772 result = (wxPoint *)& ((arg1)->m_pointDrag);
20773
20774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20775 return resultobj;
20776 fail:
20777 return NULL;
20778 }
20779
20780
20781 static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) {
20782 PyObject *resultobj;
20783 wxListEvent *arg1 = (wxListEvent *) 0 ;
20784 wxListItem *result;
20785 PyObject * obj0 = 0 ;
20786 char *kwnames[] = {
20787 (char *) "self", NULL
20788 };
20789
20790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20793 result = (wxListItem *)& ((arg1)->m_item);
20794
20795 {
20796 resultobj = wxPyMake_wxObject(result, 0);
20797 }
20798 return resultobj;
20799 fail:
20800 return NULL;
20801 }
20802
20803
20804 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
20805 PyObject *resultobj;
20806 wxListEvent *arg1 = (wxListEvent *) 0 ;
20807 int result;
20808 PyObject * obj0 = 0 ;
20809 char *kwnames[] = {
20810 (char *) "self", NULL
20811 };
20812
20813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20816 {
20817 PyThreadState* __tstate = wxPyBeginAllowThreads();
20818 result = (int)(arg1)->GetKeyCode();
20819
20820 wxPyEndAllowThreads(__tstate);
20821 if (PyErr_Occurred()) SWIG_fail;
20822 }
20823 resultobj = SWIG_From_int((int)result);
20824 return resultobj;
20825 fail:
20826 return NULL;
20827 }
20828
20829
20830 static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
20831 PyObject *resultobj;
20832 wxListEvent *arg1 = (wxListEvent *) 0 ;
20833 long result;
20834 PyObject * obj0 = 0 ;
20835 char *kwnames[] = {
20836 (char *) "self", NULL
20837 };
20838
20839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20842 {
20843 PyThreadState* __tstate = wxPyBeginAllowThreads();
20844 result = (long)(arg1)->GetIndex();
20845
20846 wxPyEndAllowThreads(__tstate);
20847 if (PyErr_Occurred()) SWIG_fail;
20848 }
20849 resultobj = SWIG_From_long((long)result);
20850 return resultobj;
20851 fail:
20852 return NULL;
20853 }
20854
20855
20856 static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20857 PyObject *resultobj;
20858 wxListEvent *arg1 = (wxListEvent *) 0 ;
20859 int result;
20860 PyObject * obj0 = 0 ;
20861 char *kwnames[] = {
20862 (char *) "self", NULL
20863 };
20864
20865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20868 {
20869 PyThreadState* __tstate = wxPyBeginAllowThreads();
20870 result = (int)(arg1)->GetColumn();
20871
20872 wxPyEndAllowThreads(__tstate);
20873 if (PyErr_Occurred()) SWIG_fail;
20874 }
20875 resultobj = SWIG_From_int((int)result);
20876 return resultobj;
20877 fail:
20878 return NULL;
20879 }
20880
20881
20882 static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
20883 PyObject *resultobj;
20884 wxListEvent *arg1 = (wxListEvent *) 0 ;
20885 wxPoint result;
20886 PyObject * obj0 = 0 ;
20887 char *kwnames[] = {
20888 (char *) "self", NULL
20889 };
20890
20891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
20892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20894 {
20895 PyThreadState* __tstate = wxPyBeginAllowThreads();
20896 result = (arg1)->GetPoint();
20897
20898 wxPyEndAllowThreads(__tstate);
20899 if (PyErr_Occurred()) SWIG_fail;
20900 }
20901 {
20902 wxPoint * resultptr;
20903 resultptr = new wxPoint((wxPoint &) result);
20904 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20905 }
20906 return resultobj;
20907 fail:
20908 return NULL;
20909 }
20910
20911
20912 static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
20913 PyObject *resultobj;
20914 wxListEvent *arg1 = (wxListEvent *) 0 ;
20915 wxString *result;
20916 PyObject * obj0 = 0 ;
20917 char *kwnames[] = {
20918 (char *) "self", NULL
20919 };
20920
20921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
20922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20924 {
20925 PyThreadState* __tstate = wxPyBeginAllowThreads();
20926 {
20927 wxString const &_result_ref = (arg1)->GetLabel();
20928 result = (wxString *) &_result_ref;
20929 }
20930
20931 wxPyEndAllowThreads(__tstate);
20932 if (PyErr_Occurred()) SWIG_fail;
20933 }
20934 {
20935 #if wxUSE_UNICODE
20936 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20937 #else
20938 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20939 #endif
20940 }
20941 return resultobj;
20942 fail:
20943 return NULL;
20944 }
20945
20946
20947 static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
20948 PyObject *resultobj;
20949 wxListEvent *arg1 = (wxListEvent *) 0 ;
20950 wxString *result;
20951 PyObject * obj0 = 0 ;
20952 char *kwnames[] = {
20953 (char *) "self", NULL
20954 };
20955
20956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
20957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20959 {
20960 PyThreadState* __tstate = wxPyBeginAllowThreads();
20961 {
20962 wxString const &_result_ref = (arg1)->GetText();
20963 result = (wxString *) &_result_ref;
20964 }
20965
20966 wxPyEndAllowThreads(__tstate);
20967 if (PyErr_Occurred()) SWIG_fail;
20968 }
20969 {
20970 #if wxUSE_UNICODE
20971 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20972 #else
20973 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20974 #endif
20975 }
20976 return resultobj;
20977 fail:
20978 return NULL;
20979 }
20980
20981
20982 static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
20983 PyObject *resultobj;
20984 wxListEvent *arg1 = (wxListEvent *) 0 ;
20985 int result;
20986 PyObject * obj0 = 0 ;
20987 char *kwnames[] = {
20988 (char *) "self", NULL
20989 };
20990
20991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
20992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20994 {
20995 PyThreadState* __tstate = wxPyBeginAllowThreads();
20996 result = (int)(arg1)->GetImage();
20997
20998 wxPyEndAllowThreads(__tstate);
20999 if (PyErr_Occurred()) SWIG_fail;
21000 }
21001 resultobj = SWIG_From_int((int)result);
21002 return resultobj;
21003 fail:
21004 return NULL;
21005 }
21006
21007
21008 static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
21009 PyObject *resultobj;
21010 wxListEvent *arg1 = (wxListEvent *) 0 ;
21011 long result;
21012 PyObject * obj0 = 0 ;
21013 char *kwnames[] = {
21014 (char *) "self", NULL
21015 };
21016
21017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
21018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21020 {
21021 PyThreadState* __tstate = wxPyBeginAllowThreads();
21022 result = (long)(arg1)->GetData();
21023
21024 wxPyEndAllowThreads(__tstate);
21025 if (PyErr_Occurred()) SWIG_fail;
21026 }
21027 resultobj = SWIG_From_long((long)result);
21028 return resultobj;
21029 fail:
21030 return NULL;
21031 }
21032
21033
21034 static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
21035 PyObject *resultobj;
21036 wxListEvent *arg1 = (wxListEvent *) 0 ;
21037 long result;
21038 PyObject * obj0 = 0 ;
21039 char *kwnames[] = {
21040 (char *) "self", NULL
21041 };
21042
21043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
21044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21046 {
21047 PyThreadState* __tstate = wxPyBeginAllowThreads();
21048 result = (long)(arg1)->GetMask();
21049
21050 wxPyEndAllowThreads(__tstate);
21051 if (PyErr_Occurred()) SWIG_fail;
21052 }
21053 resultobj = SWIG_From_long((long)result);
21054 return resultobj;
21055 fail:
21056 return NULL;
21057 }
21058
21059
21060 static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21061 PyObject *resultobj;
21062 wxListEvent *arg1 = (wxListEvent *) 0 ;
21063 wxListItem *result;
21064 PyObject * obj0 = 0 ;
21065 char *kwnames[] = {
21066 (char *) "self", NULL
21067 };
21068
21069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
21070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21072 {
21073 PyThreadState* __tstate = wxPyBeginAllowThreads();
21074 {
21075 wxListItem const &_result_ref = (arg1)->GetItem();
21076 result = (wxListItem *) &_result_ref;
21077 }
21078
21079 wxPyEndAllowThreads(__tstate);
21080 if (PyErr_Occurred()) SWIG_fail;
21081 }
21082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
21083 return resultobj;
21084 fail:
21085 return NULL;
21086 }
21087
21088
21089 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) {
21090 PyObject *resultobj;
21091 wxListEvent *arg1 = (wxListEvent *) 0 ;
21092 long result;
21093 PyObject * obj0 = 0 ;
21094 char *kwnames[] = {
21095 (char *) "self", NULL
21096 };
21097
21098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
21099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21101 {
21102 PyThreadState* __tstate = wxPyBeginAllowThreads();
21103 result = (long)(arg1)->GetCacheFrom();
21104
21105 wxPyEndAllowThreads(__tstate);
21106 if (PyErr_Occurred()) SWIG_fail;
21107 }
21108 resultobj = SWIG_From_long((long)result);
21109 return resultobj;
21110 fail:
21111 return NULL;
21112 }
21113
21114
21115 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) {
21116 PyObject *resultobj;
21117 wxListEvent *arg1 = (wxListEvent *) 0 ;
21118 long result;
21119 PyObject * obj0 = 0 ;
21120 char *kwnames[] = {
21121 (char *) "self", NULL
21122 };
21123
21124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
21125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21127 {
21128 PyThreadState* __tstate = wxPyBeginAllowThreads();
21129 result = (long)(arg1)->GetCacheTo();
21130
21131 wxPyEndAllowThreads(__tstate);
21132 if (PyErr_Occurred()) SWIG_fail;
21133 }
21134 resultobj = SWIG_From_long((long)result);
21135 return resultobj;
21136 fail:
21137 return NULL;
21138 }
21139
21140
21141 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
21142 PyObject *resultobj;
21143 wxListEvent *arg1 = (wxListEvent *) 0 ;
21144 bool result;
21145 PyObject * obj0 = 0 ;
21146 char *kwnames[] = {
21147 (char *) "self", NULL
21148 };
21149
21150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
21151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21153 {
21154 PyThreadState* __tstate = wxPyBeginAllowThreads();
21155 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
21156
21157 wxPyEndAllowThreads(__tstate);
21158 if (PyErr_Occurred()) SWIG_fail;
21159 }
21160 {
21161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21162 }
21163 return resultobj;
21164 fail:
21165 return NULL;
21166 }
21167
21168
21169 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
21170 PyObject *resultobj;
21171 wxListEvent *arg1 = (wxListEvent *) 0 ;
21172 bool arg2 ;
21173 PyObject * obj0 = 0 ;
21174 PyObject * obj1 = 0 ;
21175 char *kwnames[] = {
21176 (char *) "self",(char *) "editCancelled", NULL
21177 };
21178
21179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
21180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21182 arg2 = (bool)SWIG_As_bool(obj1);
21183 if (PyErr_Occurred()) SWIG_fail;
21184 {
21185 PyThreadState* __tstate = wxPyBeginAllowThreads();
21186 (arg1)->SetEditCanceled(arg2);
21187
21188 wxPyEndAllowThreads(__tstate);
21189 if (PyErr_Occurred()) SWIG_fail;
21190 }
21191 Py_INCREF(Py_None); resultobj = Py_None;
21192 return resultobj;
21193 fail:
21194 return NULL;
21195 }
21196
21197
21198 static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) {
21199 PyObject *obj;
21200 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21201 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21202 Py_INCREF(obj);
21203 return Py_BuildValue((char *)"");
21204 }
21205 static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21206 PyObject *resultobj;
21207 wxWindow *arg1 = (wxWindow *) 0 ;
21208 int arg2 = (int) -1 ;
21209 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21210 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21211 wxSize const &arg4_defvalue = wxDefaultSize ;
21212 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21213 long arg5 = (long) wxLC_ICON ;
21214 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21215 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21216 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21217 wxString *arg7 = (wxString *) &arg7_defvalue ;
21218 wxPyListCtrl *result;
21219 wxPoint temp3 ;
21220 wxSize temp4 ;
21221 bool temp7 = False ;
21222 PyObject * obj0 = 0 ;
21223 PyObject * obj1 = 0 ;
21224 PyObject * obj2 = 0 ;
21225 PyObject * obj3 = 0 ;
21226 PyObject * obj4 = 0 ;
21227 PyObject * obj5 = 0 ;
21228 PyObject * obj6 = 0 ;
21229 char *kwnames[] = {
21230 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21231 };
21232
21233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21236 if (obj1) {
21237 arg2 = (int)SWIG_As_int(obj1);
21238 if (PyErr_Occurred()) SWIG_fail;
21239 }
21240 if (obj2) {
21241 {
21242 arg3 = &temp3;
21243 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21244 }
21245 }
21246 if (obj3) {
21247 {
21248 arg4 = &temp4;
21249 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21250 }
21251 }
21252 if (obj4) {
21253 arg5 = (long)SWIG_As_long(obj4);
21254 if (PyErr_Occurred()) SWIG_fail;
21255 }
21256 if (obj5) {
21257 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21258 SWIG_POINTER_EXCEPTION | 0)) == -1)
21259 SWIG_fail;
21260 if (arg6 == NULL) {
21261 PyErr_SetString(PyExc_TypeError,"null reference");
21262 SWIG_fail;
21263 }
21264 }
21265 if (obj6) {
21266 {
21267 arg7 = wxString_in_helper(obj6);
21268 if (arg7 == NULL) SWIG_fail;
21269 temp7 = True;
21270 }
21271 }
21272 {
21273 if (!wxPyCheckForApp()) SWIG_fail;
21274 PyThreadState* __tstate = wxPyBeginAllowThreads();
21275 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21276
21277 wxPyEndAllowThreads(__tstate);
21278 if (PyErr_Occurred()) SWIG_fail;
21279 }
21280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21281 {
21282 if (temp7)
21283 delete arg7;
21284 }
21285 return resultobj;
21286 fail:
21287 {
21288 if (temp7)
21289 delete arg7;
21290 }
21291 return NULL;
21292 }
21293
21294
21295 static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21296 PyObject *resultobj;
21297 wxPyListCtrl *result;
21298 char *kwnames[] = {
21299 NULL
21300 };
21301
21302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21303 {
21304 if (!wxPyCheckForApp()) SWIG_fail;
21305 PyThreadState* __tstate = wxPyBeginAllowThreads();
21306 result = (wxPyListCtrl *)new wxPyListCtrl();
21307
21308 wxPyEndAllowThreads(__tstate);
21309 if (PyErr_Occurred()) SWIG_fail;
21310 }
21311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21312 return resultobj;
21313 fail:
21314 return NULL;
21315 }
21316
21317
21318 static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
21319 PyObject *resultobj;
21320 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21321 wxWindow *arg2 = (wxWindow *) 0 ;
21322 int arg3 = (int) -1 ;
21323 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21324 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21325 wxSize const &arg5_defvalue = wxDefaultSize ;
21326 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21327 long arg6 = (long) wxLC_ICON ;
21328 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21329 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21330 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21331 wxString *arg8 = (wxString *) &arg8_defvalue ;
21332 bool result;
21333 wxPoint temp4 ;
21334 wxSize temp5 ;
21335 bool temp8 = False ;
21336 PyObject * obj0 = 0 ;
21337 PyObject * obj1 = 0 ;
21338 PyObject * obj2 = 0 ;
21339 PyObject * obj3 = 0 ;
21340 PyObject * obj4 = 0 ;
21341 PyObject * obj5 = 0 ;
21342 PyObject * obj6 = 0 ;
21343 PyObject * obj7 = 0 ;
21344 char *kwnames[] = {
21345 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21346 };
21347
21348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21351 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21353 if (obj2) {
21354 arg3 = (int)SWIG_As_int(obj2);
21355 if (PyErr_Occurred()) SWIG_fail;
21356 }
21357 if (obj3) {
21358 {
21359 arg4 = &temp4;
21360 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21361 }
21362 }
21363 if (obj4) {
21364 {
21365 arg5 = &temp5;
21366 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21367 }
21368 }
21369 if (obj5) {
21370 arg6 = (long)SWIG_As_long(obj5);
21371 if (PyErr_Occurred()) SWIG_fail;
21372 }
21373 if (obj6) {
21374 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21375 SWIG_POINTER_EXCEPTION | 0)) == -1)
21376 SWIG_fail;
21377 if (arg7 == NULL) {
21378 PyErr_SetString(PyExc_TypeError,"null reference");
21379 SWIG_fail;
21380 }
21381 }
21382 if (obj7) {
21383 {
21384 arg8 = wxString_in_helper(obj7);
21385 if (arg8 == NULL) SWIG_fail;
21386 temp8 = True;
21387 }
21388 }
21389 {
21390 PyThreadState* __tstate = wxPyBeginAllowThreads();
21391 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21392
21393 wxPyEndAllowThreads(__tstate);
21394 if (PyErr_Occurred()) SWIG_fail;
21395 }
21396 {
21397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21398 }
21399 {
21400 if (temp8)
21401 delete arg8;
21402 }
21403 return resultobj;
21404 fail:
21405 {
21406 if (temp8)
21407 delete arg8;
21408 }
21409 return NULL;
21410 }
21411
21412
21413 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
21414 PyObject *resultobj;
21415 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21416 PyObject *arg2 = (PyObject *) 0 ;
21417 PyObject *arg3 = (PyObject *) 0 ;
21418 PyObject * obj0 = 0 ;
21419 PyObject * obj1 = 0 ;
21420 PyObject * obj2 = 0 ;
21421 char *kwnames[] = {
21422 (char *) "self",(char *) "self",(char *) "_class", NULL
21423 };
21424
21425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21428 arg2 = obj1;
21429 arg3 = obj2;
21430 {
21431 PyThreadState* __tstate = wxPyBeginAllowThreads();
21432 (arg1)->_setCallbackInfo(arg2,arg3);
21433
21434 wxPyEndAllowThreads(__tstate);
21435 if (PyErr_Occurred()) SWIG_fail;
21436 }
21437 Py_INCREF(Py_None); resultobj = Py_None;
21438 return resultobj;
21439 fail:
21440 return NULL;
21441 }
21442
21443
21444 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21445 PyObject *resultobj;
21446 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21447 wxColour *arg2 = 0 ;
21448 bool result;
21449 wxColour temp2 ;
21450 PyObject * obj0 = 0 ;
21451 PyObject * obj1 = 0 ;
21452 char *kwnames[] = {
21453 (char *) "self",(char *) "col", NULL
21454 };
21455
21456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21459 {
21460 arg2 = &temp2;
21461 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21462 }
21463 {
21464 PyThreadState* __tstate = wxPyBeginAllowThreads();
21465 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21466
21467 wxPyEndAllowThreads(__tstate);
21468 if (PyErr_Occurred()) SWIG_fail;
21469 }
21470 {
21471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21472 }
21473 return resultobj;
21474 fail:
21475 return NULL;
21476 }
21477
21478
21479 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21480 PyObject *resultobj;
21481 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21482 wxColour *arg2 = 0 ;
21483 bool result;
21484 wxColour temp2 ;
21485 PyObject * obj0 = 0 ;
21486 PyObject * obj1 = 0 ;
21487 char *kwnames[] = {
21488 (char *) "self",(char *) "col", NULL
21489 };
21490
21491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21494 {
21495 arg2 = &temp2;
21496 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21497 }
21498 {
21499 PyThreadState* __tstate = wxPyBeginAllowThreads();
21500 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21501
21502 wxPyEndAllowThreads(__tstate);
21503 if (PyErr_Occurred()) SWIG_fail;
21504 }
21505 {
21506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21507 }
21508 return resultobj;
21509 fail:
21510 return NULL;
21511 }
21512
21513
21514 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21515 PyObject *resultobj;
21516 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21517 int arg2 ;
21518 wxListItem *result;
21519 PyObject * obj0 = 0 ;
21520 PyObject * obj1 = 0 ;
21521 char *kwnames[] = {
21522 (char *) "self",(char *) "col", NULL
21523 };
21524
21525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21528 arg2 = (int)SWIG_As_int(obj1);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 {
21531 PyThreadState* __tstate = wxPyBeginAllowThreads();
21532 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21533
21534 wxPyEndAllowThreads(__tstate);
21535 if (PyErr_Occurred()) SWIG_fail;
21536 }
21537 {
21538 resultobj = wxPyMake_wxObject(result, 0);
21539 }
21540 return resultobj;
21541 fail:
21542 return NULL;
21543 }
21544
21545
21546 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21547 PyObject *resultobj;
21548 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21549 int arg2 ;
21550 wxListItem *arg3 = 0 ;
21551 bool result;
21552 PyObject * obj0 = 0 ;
21553 PyObject * obj1 = 0 ;
21554 PyObject * obj2 = 0 ;
21555 char *kwnames[] = {
21556 (char *) "self",(char *) "col",(char *) "item", NULL
21557 };
21558
21559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21562 arg2 = (int)SWIG_As_int(obj1);
21563 if (PyErr_Occurred()) SWIG_fail;
21564 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21565 SWIG_POINTER_EXCEPTION | 0)) == -1)
21566 SWIG_fail;
21567 if (arg3 == NULL) {
21568 PyErr_SetString(PyExc_TypeError,"null reference");
21569 SWIG_fail;
21570 }
21571 {
21572 PyThreadState* __tstate = wxPyBeginAllowThreads();
21573 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21574
21575 wxPyEndAllowThreads(__tstate);
21576 if (PyErr_Occurred()) SWIG_fail;
21577 }
21578 {
21579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21580 }
21581 return resultobj;
21582 fail:
21583 return NULL;
21584 }
21585
21586
21587 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
21588 PyObject *resultobj;
21589 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21590 int arg2 ;
21591 int result;
21592 PyObject * obj0 = 0 ;
21593 PyObject * obj1 = 0 ;
21594 char *kwnames[] = {
21595 (char *) "self",(char *) "col", NULL
21596 };
21597
21598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21601 arg2 = (int)SWIG_As_int(obj1);
21602 if (PyErr_Occurred()) SWIG_fail;
21603 {
21604 PyThreadState* __tstate = wxPyBeginAllowThreads();
21605 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21606
21607 wxPyEndAllowThreads(__tstate);
21608 if (PyErr_Occurred()) SWIG_fail;
21609 }
21610 resultobj = SWIG_From_int((int)result);
21611 return resultobj;
21612 fail:
21613 return NULL;
21614 }
21615
21616
21617 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
21618 PyObject *resultobj;
21619 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21620 int arg2 ;
21621 int arg3 ;
21622 bool result;
21623 PyObject * obj0 = 0 ;
21624 PyObject * obj1 = 0 ;
21625 PyObject * obj2 = 0 ;
21626 char *kwnames[] = {
21627 (char *) "self",(char *) "col",(char *) "width", NULL
21628 };
21629
21630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21633 arg2 = (int)SWIG_As_int(obj1);
21634 if (PyErr_Occurred()) SWIG_fail;
21635 arg3 = (int)SWIG_As_int(obj2);
21636 if (PyErr_Occurred()) SWIG_fail;
21637 {
21638 PyThreadState* __tstate = wxPyBeginAllowThreads();
21639 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21640
21641 wxPyEndAllowThreads(__tstate);
21642 if (PyErr_Occurred()) SWIG_fail;
21643 }
21644 {
21645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21646 }
21647 return resultobj;
21648 fail:
21649 return NULL;
21650 }
21651
21652
21653 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) {
21654 PyObject *resultobj;
21655 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21656 int result;
21657 PyObject * obj0 = 0 ;
21658 char *kwnames[] = {
21659 (char *) "self", NULL
21660 };
21661
21662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21665 {
21666 PyThreadState* __tstate = wxPyBeginAllowThreads();
21667 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21668
21669 wxPyEndAllowThreads(__tstate);
21670 if (PyErr_Occurred()) SWIG_fail;
21671 }
21672 resultobj = SWIG_From_int((int)result);
21673 return resultobj;
21674 fail:
21675 return NULL;
21676 }
21677
21678
21679 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) {
21680 PyObject *resultobj;
21681 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21682 wxRect result;
21683 PyObject * obj0 = 0 ;
21684 char *kwnames[] = {
21685 (char *) "self", NULL
21686 };
21687
21688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21691 {
21692 PyThreadState* __tstate = wxPyBeginAllowThreads();
21693 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21694
21695 wxPyEndAllowThreads(__tstate);
21696 if (PyErr_Occurred()) SWIG_fail;
21697 }
21698 {
21699 wxRect * resultptr;
21700 resultptr = new wxRect((wxRect &) result);
21701 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21702 }
21703 return resultobj;
21704 fail:
21705 return NULL;
21706 }
21707
21708
21709 static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21710 PyObject *resultobj;
21711 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21712 long arg2 ;
21713 int arg3 = (int) 0 ;
21714 wxListItem *result;
21715 PyObject * obj0 = 0 ;
21716 PyObject * obj1 = 0 ;
21717 PyObject * obj2 = 0 ;
21718 char *kwnames[] = {
21719 (char *) "self",(char *) "itemId",(char *) "col", NULL
21720 };
21721
21722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21725 arg2 = (long)SWIG_As_long(obj1);
21726 if (PyErr_Occurred()) SWIG_fail;
21727 if (obj2) {
21728 arg3 = (int)SWIG_As_int(obj2);
21729 if (PyErr_Occurred()) SWIG_fail;
21730 }
21731 {
21732 PyThreadState* __tstate = wxPyBeginAllowThreads();
21733 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21734
21735 wxPyEndAllowThreads(__tstate);
21736 if (PyErr_Occurred()) SWIG_fail;
21737 }
21738 {
21739 resultobj = wxPyMake_wxObject(result, 0);
21740 }
21741 return resultobj;
21742 fail:
21743 return NULL;
21744 }
21745
21746
21747 static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21748 PyObject *resultobj;
21749 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21750 wxListItem *arg2 = 0 ;
21751 bool result;
21752 PyObject * obj0 = 0 ;
21753 PyObject * obj1 = 0 ;
21754 char *kwnames[] = {
21755 (char *) "self",(char *) "info", NULL
21756 };
21757
21758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21761 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21762 SWIG_POINTER_EXCEPTION | 0)) == -1)
21763 SWIG_fail;
21764 if (arg2 == NULL) {
21765 PyErr_SetString(PyExc_TypeError,"null reference");
21766 SWIG_fail;
21767 }
21768 {
21769 PyThreadState* __tstate = wxPyBeginAllowThreads();
21770 result = (bool)(arg1)->SetItem(*arg2);
21771
21772 wxPyEndAllowThreads(__tstate);
21773 if (PyErr_Occurred()) SWIG_fail;
21774 }
21775 {
21776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21777 }
21778 return resultobj;
21779 fail:
21780 return NULL;
21781 }
21782
21783
21784 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
21785 PyObject *resultobj;
21786 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21787 long arg2 ;
21788 int arg3 ;
21789 wxString *arg4 = 0 ;
21790 int arg5 = (int) -1 ;
21791 long result;
21792 bool temp4 = False ;
21793 PyObject * obj0 = 0 ;
21794 PyObject * obj1 = 0 ;
21795 PyObject * obj2 = 0 ;
21796 PyObject * obj3 = 0 ;
21797 PyObject * obj4 = 0 ;
21798 char *kwnames[] = {
21799 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21800 };
21801
21802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21805 arg2 = (long)SWIG_As_long(obj1);
21806 if (PyErr_Occurred()) SWIG_fail;
21807 arg3 = (int)SWIG_As_int(obj2);
21808 if (PyErr_Occurred()) SWIG_fail;
21809 {
21810 arg4 = wxString_in_helper(obj3);
21811 if (arg4 == NULL) SWIG_fail;
21812 temp4 = True;
21813 }
21814 if (obj4) {
21815 arg5 = (int)SWIG_As_int(obj4);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 }
21818 {
21819 PyThreadState* __tstate = wxPyBeginAllowThreads();
21820 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21821
21822 wxPyEndAllowThreads(__tstate);
21823 if (PyErr_Occurred()) SWIG_fail;
21824 }
21825 resultobj = SWIG_From_long((long)result);
21826 {
21827 if (temp4)
21828 delete arg4;
21829 }
21830 return resultobj;
21831 fail:
21832 {
21833 if (temp4)
21834 delete arg4;
21835 }
21836 return NULL;
21837 }
21838
21839
21840 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
21841 PyObject *resultobj;
21842 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21843 long arg2 ;
21844 long arg3 ;
21845 int result;
21846 PyObject * obj0 = 0 ;
21847 PyObject * obj1 = 0 ;
21848 PyObject * obj2 = 0 ;
21849 char *kwnames[] = {
21850 (char *) "self",(char *) "item",(char *) "stateMask", NULL
21851 };
21852
21853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
21854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21856 arg2 = (long)SWIG_As_long(obj1);
21857 if (PyErr_Occurred()) SWIG_fail;
21858 arg3 = (long)SWIG_As_long(obj2);
21859 if (PyErr_Occurred()) SWIG_fail;
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
21863
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 resultobj = SWIG_From_int((int)result);
21868 return resultobj;
21869 fail:
21870 return NULL;
21871 }
21872
21873
21874 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
21875 PyObject *resultobj;
21876 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21877 long arg2 ;
21878 long arg3 ;
21879 long arg4 ;
21880 bool result;
21881 PyObject * obj0 = 0 ;
21882 PyObject * obj1 = 0 ;
21883 PyObject * obj2 = 0 ;
21884 PyObject * obj3 = 0 ;
21885 char *kwnames[] = {
21886 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
21887 };
21888
21889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21892 arg2 = (long)SWIG_As_long(obj1);
21893 if (PyErr_Occurred()) SWIG_fail;
21894 arg3 = (long)SWIG_As_long(obj2);
21895 if (PyErr_Occurred()) SWIG_fail;
21896 arg4 = (long)SWIG_As_long(obj3);
21897 if (PyErr_Occurred()) SWIG_fail;
21898 {
21899 PyThreadState* __tstate = wxPyBeginAllowThreads();
21900 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
21901
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 {
21906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21907 }
21908 return resultobj;
21909 fail:
21910 return NULL;
21911 }
21912
21913
21914 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
21915 PyObject *resultobj;
21916 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21917 long arg2 ;
21918 int arg3 ;
21919 int arg4 ;
21920 bool result;
21921 PyObject * obj0 = 0 ;
21922 PyObject * obj1 = 0 ;
21923 PyObject * obj2 = 0 ;
21924 PyObject * obj3 = 0 ;
21925 char *kwnames[] = {
21926 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
21927 };
21928
21929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21932 arg2 = (long)SWIG_As_long(obj1);
21933 if (PyErr_Occurred()) SWIG_fail;
21934 arg3 = (int)SWIG_As_int(obj2);
21935 if (PyErr_Occurred()) SWIG_fail;
21936 arg4 = (int)SWIG_As_int(obj3);
21937 if (PyErr_Occurred()) SWIG_fail;
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
21941
21942 wxPyEndAllowThreads(__tstate);
21943 if (PyErr_Occurred()) SWIG_fail;
21944 }
21945 {
21946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21947 }
21948 return resultobj;
21949 fail:
21950 return NULL;
21951 }
21952
21953
21954 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
21955 PyObject *resultobj;
21956 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21957 long arg2 ;
21958 wxString result;
21959 PyObject * obj0 = 0 ;
21960 PyObject * obj1 = 0 ;
21961 char *kwnames[] = {
21962 (char *) "self",(char *) "item", NULL
21963 };
21964
21965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
21966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21968 arg2 = (long)SWIG_As_long(obj1);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 {
21971 PyThreadState* __tstate = wxPyBeginAllowThreads();
21972 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
21973
21974 wxPyEndAllowThreads(__tstate);
21975 if (PyErr_Occurred()) SWIG_fail;
21976 }
21977 {
21978 #if wxUSE_UNICODE
21979 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21980 #else
21981 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21982 #endif
21983 }
21984 return resultobj;
21985 fail:
21986 return NULL;
21987 }
21988
21989
21990 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
21991 PyObject *resultobj;
21992 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21993 long arg2 ;
21994 wxString *arg3 = 0 ;
21995 bool temp3 = False ;
21996 PyObject * obj0 = 0 ;
21997 PyObject * obj1 = 0 ;
21998 PyObject * obj2 = 0 ;
21999 char *kwnames[] = {
22000 (char *) "self",(char *) "item",(char *) "str", NULL
22001 };
22002
22003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
22004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22006 arg2 = (long)SWIG_As_long(obj1);
22007 if (PyErr_Occurred()) SWIG_fail;
22008 {
22009 arg3 = wxString_in_helper(obj2);
22010 if (arg3 == NULL) SWIG_fail;
22011 temp3 = True;
22012 }
22013 {
22014 PyThreadState* __tstate = wxPyBeginAllowThreads();
22015 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
22016
22017 wxPyEndAllowThreads(__tstate);
22018 if (PyErr_Occurred()) SWIG_fail;
22019 }
22020 Py_INCREF(Py_None); resultobj = Py_None;
22021 {
22022 if (temp3)
22023 delete arg3;
22024 }
22025 return resultobj;
22026 fail:
22027 {
22028 if (temp3)
22029 delete arg3;
22030 }
22031 return NULL;
22032 }
22033
22034
22035 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22036 PyObject *resultobj;
22037 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22038 long arg2 ;
22039 long result;
22040 PyObject * obj0 = 0 ;
22041 PyObject * obj1 = 0 ;
22042 char *kwnames[] = {
22043 (char *) "self",(char *) "item", NULL
22044 };
22045
22046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
22047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22049 arg2 = (long)SWIG_As_long(obj1);
22050 if (PyErr_Occurred()) SWIG_fail;
22051 {
22052 PyThreadState* __tstate = wxPyBeginAllowThreads();
22053 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
22054
22055 wxPyEndAllowThreads(__tstate);
22056 if (PyErr_Occurred()) SWIG_fail;
22057 }
22058 resultobj = SWIG_From_long((long)result);
22059 return resultobj;
22060 fail:
22061 return NULL;
22062 }
22063
22064
22065 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22066 PyObject *resultobj;
22067 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22068 long arg2 ;
22069 long arg3 ;
22070 bool result;
22071 PyObject * obj0 = 0 ;
22072 PyObject * obj1 = 0 ;
22073 PyObject * obj2 = 0 ;
22074 char *kwnames[] = {
22075 (char *) "self",(char *) "item",(char *) "data", NULL
22076 };
22077
22078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22081 arg2 = (long)SWIG_As_long(obj1);
22082 if (PyErr_Occurred()) SWIG_fail;
22083 arg3 = (long)SWIG_As_long(obj2);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 {
22086 PyThreadState* __tstate = wxPyBeginAllowThreads();
22087 result = (bool)(arg1)->SetItemData(arg2,arg3);
22088
22089 wxPyEndAllowThreads(__tstate);
22090 if (PyErr_Occurred()) SWIG_fail;
22091 }
22092 {
22093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22094 }
22095 return resultobj;
22096 fail:
22097 return NULL;
22098 }
22099
22100
22101 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22102 PyObject *resultobj;
22103 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22104 long arg2 ;
22105 wxPoint result;
22106 PyObject * obj0 = 0 ;
22107 PyObject * obj1 = 0 ;
22108 char *kwnames[] = {
22109 (char *) "self",(char *) "item", NULL
22110 };
22111
22112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
22113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22115 arg2 = (long)SWIG_As_long(obj1);
22116 if (PyErr_Occurred()) SWIG_fail;
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
22120
22121 wxPyEndAllowThreads(__tstate);
22122 if (PyErr_Occurred()) SWIG_fail;
22123 }
22124 {
22125 wxPoint * resultptr;
22126 resultptr = new wxPoint((wxPoint &) result);
22127 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22128 }
22129 return resultobj;
22130 fail:
22131 return NULL;
22132 }
22133
22134
22135 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) {
22136 PyObject *resultobj;
22137 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22138 long arg2 ;
22139 int arg3 = (int) wxLIST_RECT_BOUNDS ;
22140 wxRect result;
22141 PyObject * obj0 = 0 ;
22142 PyObject * obj1 = 0 ;
22143 PyObject * obj2 = 0 ;
22144 char *kwnames[] = {
22145 (char *) "self",(char *) "item",(char *) "code", NULL
22146 };
22147
22148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22151 arg2 = (long)SWIG_As_long(obj1);
22152 if (PyErr_Occurred()) SWIG_fail;
22153 if (obj2) {
22154 arg3 = (int)SWIG_As_int(obj2);
22155 if (PyErr_Occurred()) SWIG_fail;
22156 }
22157 {
22158 PyThreadState* __tstate = wxPyBeginAllowThreads();
22159 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22160
22161 wxPyEndAllowThreads(__tstate);
22162 if (PyErr_Occurred()) SWIG_fail;
22163 }
22164 {
22165 wxRect * resultptr;
22166 resultptr = new wxRect((wxRect &) result);
22167 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22168 }
22169 return resultobj;
22170 fail:
22171 return NULL;
22172 }
22173
22174
22175 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22176 PyObject *resultobj;
22177 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22178 long arg2 ;
22179 wxPoint *arg3 = 0 ;
22180 bool result;
22181 wxPoint temp3 ;
22182 PyObject * obj0 = 0 ;
22183 PyObject * obj1 = 0 ;
22184 PyObject * obj2 = 0 ;
22185 char *kwnames[] = {
22186 (char *) "self",(char *) "item",(char *) "pos", NULL
22187 };
22188
22189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22192 arg2 = (long)SWIG_As_long(obj1);
22193 if (PyErr_Occurred()) SWIG_fail;
22194 {
22195 arg3 = &temp3;
22196 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22197 }
22198 {
22199 PyThreadState* __tstate = wxPyBeginAllowThreads();
22200 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22201
22202 wxPyEndAllowThreads(__tstate);
22203 if (PyErr_Occurred()) SWIG_fail;
22204 }
22205 {
22206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22207 }
22208 return resultobj;
22209 fail:
22210 return NULL;
22211 }
22212
22213
22214 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22215 PyObject *resultobj;
22216 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22217 int result;
22218 PyObject * obj0 = 0 ;
22219 char *kwnames[] = {
22220 (char *) "self", NULL
22221 };
22222
22223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22226 {
22227 PyThreadState* __tstate = wxPyBeginAllowThreads();
22228 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22229
22230 wxPyEndAllowThreads(__tstate);
22231 if (PyErr_Occurred()) SWIG_fail;
22232 }
22233 resultobj = SWIG_From_int((int)result);
22234 return resultobj;
22235 fail:
22236 return NULL;
22237 }
22238
22239
22240 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
22241 PyObject *resultobj;
22242 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22243 int result;
22244 PyObject * obj0 = 0 ;
22245 char *kwnames[] = {
22246 (char *) "self", NULL
22247 };
22248
22249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22252 {
22253 PyThreadState* __tstate = wxPyBeginAllowThreads();
22254 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22255
22256 wxPyEndAllowThreads(__tstate);
22257 if (PyErr_Occurred()) SWIG_fail;
22258 }
22259 resultobj = SWIG_From_int((int)result);
22260 return resultobj;
22261 fail:
22262 return NULL;
22263 }
22264
22265
22266 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22267 PyObject *resultobj;
22268 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22269 wxSize result;
22270 PyObject * obj0 = 0 ;
22271 char *kwnames[] = {
22272 (char *) "self", NULL
22273 };
22274
22275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22278 {
22279 PyThreadState* __tstate = wxPyBeginAllowThreads();
22280 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22281
22282 wxPyEndAllowThreads(__tstate);
22283 if (PyErr_Occurred()) SWIG_fail;
22284 }
22285 {
22286 wxSize * resultptr;
22287 resultptr = new wxSize((wxSize &) result);
22288 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22289 }
22290 return resultobj;
22291 fail:
22292 return NULL;
22293 }
22294
22295
22296 static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22297 PyObject *resultobj;
22298 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22299 int arg2 ;
22300 bool arg3 = (bool) False ;
22301 PyObject * obj0 = 0 ;
22302 PyObject * obj1 = 0 ;
22303 PyObject * obj2 = 0 ;
22304 char *kwnames[] = {
22305 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
22306 };
22307
22308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
22309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22311 arg2 = (int)SWIG_As_int(obj1);
22312 if (PyErr_Occurred()) SWIG_fail;
22313 if (obj2) {
22314 arg3 = (bool)SWIG_As_bool(obj2);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
22317 {
22318 PyThreadState* __tstate = wxPyBeginAllowThreads();
22319 (arg1)->SetItemSpacing(arg2,arg3);
22320
22321 wxPyEndAllowThreads(__tstate);
22322 if (PyErr_Occurred()) SWIG_fail;
22323 }
22324 Py_INCREF(Py_None); resultobj = Py_None;
22325 return resultobj;
22326 fail:
22327 return NULL;
22328 }
22329
22330
22331 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22332 PyObject *resultobj;
22333 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22334 int result;
22335 PyObject * obj0 = 0 ;
22336 char *kwnames[] = {
22337 (char *) "self", NULL
22338 };
22339
22340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22343 {
22344 PyThreadState* __tstate = wxPyBeginAllowThreads();
22345 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22346
22347 wxPyEndAllowThreads(__tstate);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 }
22350 resultobj = SWIG_From_int((int)result);
22351 return resultobj;
22352 fail:
22353 return NULL;
22354 }
22355
22356
22357 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22358 PyObject *resultobj;
22359 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22360 wxColour result;
22361 PyObject * obj0 = 0 ;
22362 char *kwnames[] = {
22363 (char *) "self", NULL
22364 };
22365
22366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22369 {
22370 PyThreadState* __tstate = wxPyBeginAllowThreads();
22371 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22372
22373 wxPyEndAllowThreads(__tstate);
22374 if (PyErr_Occurred()) SWIG_fail;
22375 }
22376 {
22377 wxColour * resultptr;
22378 resultptr = new wxColour((wxColour &) result);
22379 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22380 }
22381 return resultobj;
22382 fail:
22383 return NULL;
22384 }
22385
22386
22387 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22388 PyObject *resultobj;
22389 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22390 wxColour *arg2 = 0 ;
22391 wxColour temp2 ;
22392 PyObject * obj0 = 0 ;
22393 PyObject * obj1 = 0 ;
22394 char *kwnames[] = {
22395 (char *) "self",(char *) "col", NULL
22396 };
22397
22398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22401 {
22402 arg2 = &temp2;
22403 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22404 }
22405 {
22406 PyThreadState* __tstate = wxPyBeginAllowThreads();
22407 (arg1)->SetTextColour((wxColour const &)*arg2);
22408
22409 wxPyEndAllowThreads(__tstate);
22410 if (PyErr_Occurred()) SWIG_fail;
22411 }
22412 Py_INCREF(Py_None); resultobj = Py_None;
22413 return resultobj;
22414 fail:
22415 return NULL;
22416 }
22417
22418
22419 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) {
22420 PyObject *resultobj;
22421 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22422 long result;
22423 PyObject * obj0 = 0 ;
22424 char *kwnames[] = {
22425 (char *) "self", NULL
22426 };
22427
22428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",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 = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22434
22435 wxPyEndAllowThreads(__tstate);
22436 if (PyErr_Occurred()) SWIG_fail;
22437 }
22438 resultobj = SWIG_From_long((long)result);
22439 return resultobj;
22440 fail:
22441 return NULL;
22442 }
22443
22444
22445 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) {
22446 PyObject *resultobj;
22447 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22448 long arg2 ;
22449 bool arg3 = (bool) True ;
22450 PyObject * obj0 = 0 ;
22451 PyObject * obj1 = 0 ;
22452 PyObject * obj2 = 0 ;
22453 char *kwnames[] = {
22454 (char *) "self",(char *) "style",(char *) "add", NULL
22455 };
22456
22457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22460 arg2 = (long)SWIG_As_long(obj1);
22461 if (PyErr_Occurred()) SWIG_fail;
22462 if (obj2) {
22463 arg3 = (bool)SWIG_As_bool(obj2);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 {
22467 PyThreadState* __tstate = wxPyBeginAllowThreads();
22468 (arg1)->SetSingleStyle(arg2,arg3);
22469
22470 wxPyEndAllowThreads(__tstate);
22471 if (PyErr_Occurred()) SWIG_fail;
22472 }
22473 Py_INCREF(Py_None); resultobj = Py_None;
22474 return resultobj;
22475 fail:
22476 return NULL;
22477 }
22478
22479
22480 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
22481 PyObject *resultobj;
22482 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22483 long arg2 ;
22484 PyObject * obj0 = 0 ;
22485 PyObject * obj1 = 0 ;
22486 char *kwnames[] = {
22487 (char *) "self",(char *) "style", NULL
22488 };
22489
22490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22493 arg2 = (long)SWIG_As_long(obj1);
22494 if (PyErr_Occurred()) SWIG_fail;
22495 {
22496 PyThreadState* __tstate = wxPyBeginAllowThreads();
22497 (arg1)->SetWindowStyleFlag(arg2);
22498
22499 wxPyEndAllowThreads(__tstate);
22500 if (PyErr_Occurred()) SWIG_fail;
22501 }
22502 Py_INCREF(Py_None); resultobj = Py_None;
22503 return resultobj;
22504 fail:
22505 return NULL;
22506 }
22507
22508
22509 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
22510 PyObject *resultobj;
22511 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22512 long arg2 ;
22513 int arg3 = (int) wxLIST_NEXT_ALL ;
22514 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22515 long result;
22516 PyObject * obj0 = 0 ;
22517 PyObject * obj1 = 0 ;
22518 PyObject * obj2 = 0 ;
22519 PyObject * obj3 = 0 ;
22520 char *kwnames[] = {
22521 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22522 };
22523
22524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22527 arg2 = (long)SWIG_As_long(obj1);
22528 if (PyErr_Occurred()) SWIG_fail;
22529 if (obj2) {
22530 arg3 = (int)SWIG_As_int(obj2);
22531 if (PyErr_Occurred()) SWIG_fail;
22532 }
22533 if (obj3) {
22534 arg4 = (int)SWIG_As_int(obj3);
22535 if (PyErr_Occurred()) SWIG_fail;
22536 }
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22540
22541 wxPyEndAllowThreads(__tstate);
22542 if (PyErr_Occurred()) SWIG_fail;
22543 }
22544 resultobj = SWIG_From_long((long)result);
22545 return resultobj;
22546 fail:
22547 return NULL;
22548 }
22549
22550
22551 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22552 PyObject *resultobj;
22553 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22554 int arg2 ;
22555 wxImageList *result;
22556 PyObject * obj0 = 0 ;
22557 PyObject * obj1 = 0 ;
22558 char *kwnames[] = {
22559 (char *) "self",(char *) "which", NULL
22560 };
22561
22562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22565 arg2 = (int)SWIG_As_int(obj1);
22566 if (PyErr_Occurred()) SWIG_fail;
22567 {
22568 PyThreadState* __tstate = wxPyBeginAllowThreads();
22569 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22570
22571 wxPyEndAllowThreads(__tstate);
22572 if (PyErr_Occurred()) SWIG_fail;
22573 }
22574 {
22575 resultobj = wxPyMake_wxObject(result, 0);
22576 }
22577 return resultobj;
22578 fail:
22579 return NULL;
22580 }
22581
22582
22583 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22584 PyObject *resultobj;
22585 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22586 wxImageList *arg2 = (wxImageList *) 0 ;
22587 int arg3 ;
22588 PyObject * obj0 = 0 ;
22589 PyObject * obj1 = 0 ;
22590 PyObject * obj2 = 0 ;
22591 char *kwnames[] = {
22592 (char *) "self",(char *) "imageList",(char *) "which", NULL
22593 };
22594
22595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22598 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22600 arg3 = (int)SWIG_As_int(obj2);
22601 if (PyErr_Occurred()) SWIG_fail;
22602 {
22603 PyThreadState* __tstate = wxPyBeginAllowThreads();
22604 (arg1)->SetImageList(arg2,arg3);
22605
22606 wxPyEndAllowThreads(__tstate);
22607 if (PyErr_Occurred()) SWIG_fail;
22608 }
22609 Py_INCREF(Py_None); resultobj = Py_None;
22610 return resultobj;
22611 fail:
22612 return NULL;
22613 }
22614
22615
22616 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22617 PyObject *resultobj;
22618 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22619 wxImageList *arg2 = (wxImageList *) 0 ;
22620 int arg3 ;
22621 PyObject * obj0 = 0 ;
22622 PyObject * obj1 = 0 ;
22623 PyObject * obj2 = 0 ;
22624 char *kwnames[] = {
22625 (char *) "self",(char *) "imageList",(char *) "which", NULL
22626 };
22627
22628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22632 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22633 arg3 = (int)SWIG_As_int(obj2);
22634 if (PyErr_Occurred()) SWIG_fail;
22635 {
22636 PyThreadState* __tstate = wxPyBeginAllowThreads();
22637 (arg1)->AssignImageList(arg2,arg3);
22638
22639 wxPyEndAllowThreads(__tstate);
22640 if (PyErr_Occurred()) SWIG_fail;
22641 }
22642 Py_INCREF(Py_None); resultobj = Py_None;
22643 return resultobj;
22644 fail:
22645 return NULL;
22646 }
22647
22648
22649 static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) {
22650 PyObject *resultobj;
22651 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22652 bool result;
22653 PyObject * obj0 = 0 ;
22654 char *kwnames[] = {
22655 (char *) "self", NULL
22656 };
22657
22658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22661 {
22662 PyThreadState* __tstate = wxPyBeginAllowThreads();
22663 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22664
22665 wxPyEndAllowThreads(__tstate);
22666 if (PyErr_Occurred()) SWIG_fail;
22667 }
22668 {
22669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22670 }
22671 return resultobj;
22672 fail:
22673 return NULL;
22674 }
22675
22676
22677 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) {
22678 PyObject *resultobj;
22679 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22680 bool result;
22681 PyObject * obj0 = 0 ;
22682 char *kwnames[] = {
22683 (char *) "self", NULL
22684 };
22685
22686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22689 {
22690 PyThreadState* __tstate = wxPyBeginAllowThreads();
22691 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22692
22693 wxPyEndAllowThreads(__tstate);
22694 if (PyErr_Occurred()) SWIG_fail;
22695 }
22696 {
22697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22698 }
22699 return resultobj;
22700 fail:
22701 return NULL;
22702 }
22703
22704
22705 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) {
22706 PyObject *resultobj;
22707 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22708 long arg2 ;
22709 PyObject * obj0 = 0 ;
22710 PyObject * obj1 = 0 ;
22711 char *kwnames[] = {
22712 (char *) "self",(char *) "item", NULL
22713 };
22714
22715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22718 arg2 = (long)SWIG_As_long(obj1);
22719 if (PyErr_Occurred()) SWIG_fail;
22720 {
22721 PyThreadState* __tstate = wxPyBeginAllowThreads();
22722 (arg1)->RefreshItem(arg2);
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_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) {
22735 PyObject *resultobj;
22736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22737 long arg2 ;
22738 long arg3 ;
22739 PyObject * obj0 = 0 ;
22740 PyObject * obj1 = 0 ;
22741 PyObject * obj2 = 0 ;
22742 char *kwnames[] = {
22743 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22744 };
22745
22746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",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 arg2 = (long)SWIG_As_long(obj1);
22750 if (PyErr_Occurred()) SWIG_fail;
22751 arg3 = (long)SWIG_As_long(obj2);
22752 if (PyErr_Occurred()) SWIG_fail;
22753 {
22754 PyThreadState* __tstate = wxPyBeginAllowThreads();
22755 (arg1)->RefreshItems(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_Arrange(PyObject *, PyObject *args, PyObject *kwargs) {
22768 PyObject *resultobj;
22769 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22770 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22771 bool result;
22772 PyObject * obj0 = 0 ;
22773 PyObject * obj1 = 0 ;
22774 char *kwnames[] = {
22775 (char *) "self",(char *) "flag", NULL
22776 };
22777
22778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22781 if (obj1) {
22782 arg2 = (int)SWIG_As_int(obj1);
22783 if (PyErr_Occurred()) SWIG_fail;
22784 }
22785 {
22786 PyThreadState* __tstate = wxPyBeginAllowThreads();
22787 result = (bool)(arg1)->Arrange(arg2);
22788
22789 wxPyEndAllowThreads(__tstate);
22790 if (PyErr_Occurred()) SWIG_fail;
22791 }
22792 {
22793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22794 }
22795 return resultobj;
22796 fail:
22797 return NULL;
22798 }
22799
22800
22801 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
22802 PyObject *resultobj;
22803 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22804 long arg2 ;
22805 bool result;
22806 PyObject * obj0 = 0 ;
22807 PyObject * obj1 = 0 ;
22808 char *kwnames[] = {
22809 (char *) "self",(char *) "item", NULL
22810 };
22811
22812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22815 arg2 = (long)SWIG_As_long(obj1);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 {
22818 PyThreadState* __tstate = wxPyBeginAllowThreads();
22819 result = (bool)(arg1)->DeleteItem(arg2);
22820
22821 wxPyEndAllowThreads(__tstate);
22822 if (PyErr_Occurred()) SWIG_fail;
22823 }
22824 {
22825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22826 }
22827 return resultobj;
22828 fail:
22829 return NULL;
22830 }
22831
22832
22833 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
22834 PyObject *resultobj;
22835 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22836 bool result;
22837 PyObject * obj0 = 0 ;
22838 char *kwnames[] = {
22839 (char *) "self", NULL
22840 };
22841
22842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22845 {
22846 PyThreadState* __tstate = wxPyBeginAllowThreads();
22847 result = (bool)(arg1)->DeleteAllItems();
22848
22849 wxPyEndAllowThreads(__tstate);
22850 if (PyErr_Occurred()) SWIG_fail;
22851 }
22852 {
22853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22854 }
22855 return resultobj;
22856 fail:
22857 return NULL;
22858 }
22859
22860
22861 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22862 PyObject *resultobj;
22863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22864 int arg2 ;
22865 bool result;
22866 PyObject * obj0 = 0 ;
22867 PyObject * obj1 = 0 ;
22868 char *kwnames[] = {
22869 (char *) "self",(char *) "col", NULL
22870 };
22871
22872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22875 arg2 = (int)SWIG_As_int(obj1);
22876 if (PyErr_Occurred()) SWIG_fail;
22877 {
22878 PyThreadState* __tstate = wxPyBeginAllowThreads();
22879 result = (bool)(arg1)->DeleteColumn(arg2);
22880
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 {
22885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22886 }
22887 return resultobj;
22888 fail:
22889 return NULL;
22890 }
22891
22892
22893 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) {
22894 PyObject *resultobj;
22895 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22896 bool result;
22897 PyObject * obj0 = 0 ;
22898 char *kwnames[] = {
22899 (char *) "self", NULL
22900 };
22901
22902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
22903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22905 {
22906 PyThreadState* __tstate = wxPyBeginAllowThreads();
22907 result = (bool)(arg1)->DeleteAllColumns();
22908
22909 wxPyEndAllowThreads(__tstate);
22910 if (PyErr_Occurred()) SWIG_fail;
22911 }
22912 {
22913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22914 }
22915 return resultobj;
22916 fail:
22917 return NULL;
22918 }
22919
22920
22921 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) {
22922 PyObject *resultobj;
22923 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22924 PyObject * obj0 = 0 ;
22925 char *kwnames[] = {
22926 (char *) "self", NULL
22927 };
22928
22929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
22930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22932 {
22933 PyThreadState* __tstate = wxPyBeginAllowThreads();
22934 (arg1)->ClearAll();
22935
22936 wxPyEndAllowThreads(__tstate);
22937 if (PyErr_Occurred()) SWIG_fail;
22938 }
22939 Py_INCREF(Py_None); resultobj = Py_None;
22940 return resultobj;
22941 fail:
22942 return NULL;
22943 }
22944
22945
22946 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
22947 PyObject *resultobj;
22948 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22949 long arg2 ;
22950 PyObject * obj0 = 0 ;
22951 PyObject * obj1 = 0 ;
22952 char *kwnames[] = {
22953 (char *) "self",(char *) "item", NULL
22954 };
22955
22956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
22957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22959 arg2 = (long)SWIG_As_long(obj1);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 {
22962 PyThreadState* __tstate = wxPyBeginAllowThreads();
22963 (arg1)->EditLabel(arg2);
22964
22965 wxPyEndAllowThreads(__tstate);
22966 if (PyErr_Occurred()) SWIG_fail;
22967 }
22968 Py_INCREF(Py_None); resultobj = Py_None;
22969 return resultobj;
22970 fail:
22971 return NULL;
22972 }
22973
22974
22975 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
22976 PyObject *resultobj;
22977 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22978 long arg2 ;
22979 bool result;
22980 PyObject * obj0 = 0 ;
22981 PyObject * obj1 = 0 ;
22982 char *kwnames[] = {
22983 (char *) "self",(char *) "item", NULL
22984 };
22985
22986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
22987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22989 arg2 = (long)SWIG_As_long(obj1);
22990 if (PyErr_Occurred()) SWIG_fail;
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 result = (bool)(arg1)->EnsureVisible(arg2);
22994
22995 wxPyEndAllowThreads(__tstate);
22996 if (PyErr_Occurred()) SWIG_fail;
22997 }
22998 {
22999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23000 }
23001 return resultobj;
23002 fail:
23003 return NULL;
23004 }
23005
23006
23007 static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
23008 PyObject *resultobj;
23009 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23010 long arg2 ;
23011 wxString *arg3 = 0 ;
23012 bool arg4 = (bool) False ;
23013 long result;
23014 bool temp3 = False ;
23015 PyObject * obj0 = 0 ;
23016 PyObject * obj1 = 0 ;
23017 PyObject * obj2 = 0 ;
23018 PyObject * obj3 = 0 ;
23019 char *kwnames[] = {
23020 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
23021 };
23022
23023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23026 arg2 = (long)SWIG_As_long(obj1);
23027 if (PyErr_Occurred()) SWIG_fail;
23028 {
23029 arg3 = wxString_in_helper(obj2);
23030 if (arg3 == NULL) SWIG_fail;
23031 temp3 = True;
23032 }
23033 if (obj3) {
23034 arg4 = (bool)SWIG_As_bool(obj3);
23035 if (PyErr_Occurred()) SWIG_fail;
23036 }
23037 {
23038 PyThreadState* __tstate = wxPyBeginAllowThreads();
23039 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
23040
23041 wxPyEndAllowThreads(__tstate);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 resultobj = SWIG_From_long((long)result);
23045 {
23046 if (temp3)
23047 delete arg3;
23048 }
23049 return resultobj;
23050 fail:
23051 {
23052 if (temp3)
23053 delete arg3;
23054 }
23055 return NULL;
23056 }
23057
23058
23059 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) {
23060 PyObject *resultobj;
23061 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23062 long arg2 ;
23063 long arg3 ;
23064 long result;
23065 PyObject * obj0 = 0 ;
23066 PyObject * obj1 = 0 ;
23067 PyObject * obj2 = 0 ;
23068 char *kwnames[] = {
23069 (char *) "self",(char *) "start",(char *) "data", NULL
23070 };
23071
23072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
23073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23075 arg2 = (long)SWIG_As_long(obj1);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 arg3 = (long)SWIG_As_long(obj2);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 {
23080 PyThreadState* __tstate = wxPyBeginAllowThreads();
23081 result = (long)(arg1)->FindItem(arg2,arg3);
23082
23083 wxPyEndAllowThreads(__tstate);
23084 if (PyErr_Occurred()) SWIG_fail;
23085 }
23086 resultobj = SWIG_From_long((long)result);
23087 return resultobj;
23088 fail:
23089 return NULL;
23090 }
23091
23092
23093 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) {
23094 PyObject *resultobj;
23095 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23096 long arg2 ;
23097 wxPoint *arg3 = 0 ;
23098 int arg4 ;
23099 long result;
23100 wxPoint temp3 ;
23101 PyObject * obj0 = 0 ;
23102 PyObject * obj1 = 0 ;
23103 PyObject * obj2 = 0 ;
23104 PyObject * obj3 = 0 ;
23105 char *kwnames[] = {
23106 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
23107 };
23108
23109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23112 arg2 = (long)SWIG_As_long(obj1);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 {
23115 arg3 = &temp3;
23116 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23117 }
23118 arg4 = (int)SWIG_As_int(obj3);
23119 if (PyErr_Occurred()) SWIG_fail;
23120 {
23121 PyThreadState* __tstate = wxPyBeginAllowThreads();
23122 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
23123
23124 wxPyEndAllowThreads(__tstate);
23125 if (PyErr_Occurred()) SWIG_fail;
23126 }
23127 resultobj = SWIG_From_long((long)result);
23128 return resultobj;
23129 fail:
23130 return NULL;
23131 }
23132
23133
23134 static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
23135 PyObject *resultobj;
23136 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23137 wxPoint *arg2 = 0 ;
23138 int *arg3 = 0 ;
23139 long result;
23140 wxPoint temp2 ;
23141 int temp3 ;
23142 int res3 = 0 ;
23143 PyObject * obj0 = 0 ;
23144 PyObject * obj1 = 0 ;
23145 char *kwnames[] = {
23146 (char *) "self",(char *) "point", NULL
23147 };
23148
23149 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
23151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23153 {
23154 arg2 = &temp2;
23155 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23156 }
23157 {
23158 PyThreadState* __tstate = wxPyBeginAllowThreads();
23159 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23160
23161 wxPyEndAllowThreads(__tstate);
23162 if (PyErr_Occurred()) SWIG_fail;
23163 }
23164 resultobj = SWIG_From_long((long)result);
23165 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23166 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23167 return resultobj;
23168 fail:
23169 return NULL;
23170 }
23171
23172
23173 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
23174 PyObject *resultobj;
23175 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23176 wxListItem *arg2 = 0 ;
23177 long result;
23178 PyObject * obj0 = 0 ;
23179 PyObject * obj1 = 0 ;
23180 char *kwnames[] = {
23181 (char *) "self",(char *) "info", NULL
23182 };
23183
23184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23188 SWIG_POINTER_EXCEPTION | 0)) == -1)
23189 SWIG_fail;
23190 if (arg2 == NULL) {
23191 PyErr_SetString(PyExc_TypeError,"null reference");
23192 SWIG_fail;
23193 }
23194 {
23195 PyThreadState* __tstate = wxPyBeginAllowThreads();
23196 result = (long)(arg1)->InsertItem(*arg2);
23197
23198 wxPyEndAllowThreads(__tstate);
23199 if (PyErr_Occurred()) SWIG_fail;
23200 }
23201 resultobj = SWIG_From_long((long)result);
23202 return resultobj;
23203 fail:
23204 return NULL;
23205 }
23206
23207
23208 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23209 PyObject *resultobj;
23210 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23211 long arg2 ;
23212 wxString *arg3 = 0 ;
23213 long result;
23214 bool temp3 = False ;
23215 PyObject * obj0 = 0 ;
23216 PyObject * obj1 = 0 ;
23217 PyObject * obj2 = 0 ;
23218 char *kwnames[] = {
23219 (char *) "self",(char *) "index",(char *) "label", NULL
23220 };
23221
23222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23225 arg2 = (long)SWIG_As_long(obj1);
23226 if (PyErr_Occurred()) SWIG_fail;
23227 {
23228 arg3 = wxString_in_helper(obj2);
23229 if (arg3 == NULL) SWIG_fail;
23230 temp3 = True;
23231 }
23232 {
23233 PyThreadState* __tstate = wxPyBeginAllowThreads();
23234 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23235
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 resultobj = SWIG_From_long((long)result);
23240 {
23241 if (temp3)
23242 delete arg3;
23243 }
23244 return resultobj;
23245 fail:
23246 {
23247 if (temp3)
23248 delete arg3;
23249 }
23250 return NULL;
23251 }
23252
23253
23254 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) {
23255 PyObject *resultobj;
23256 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23257 long arg2 ;
23258 int arg3 ;
23259 long result;
23260 PyObject * obj0 = 0 ;
23261 PyObject * obj1 = 0 ;
23262 PyObject * obj2 = 0 ;
23263 char *kwnames[] = {
23264 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23265 };
23266
23267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23270 arg2 = (long)SWIG_As_long(obj1);
23271 if (PyErr_Occurred()) SWIG_fail;
23272 arg3 = (int)SWIG_As_int(obj2);
23273 if (PyErr_Occurred()) SWIG_fail;
23274 {
23275 PyThreadState* __tstate = wxPyBeginAllowThreads();
23276 result = (long)(arg1)->InsertItem(arg2,arg3);
23277
23278 wxPyEndAllowThreads(__tstate);
23279 if (PyErr_Occurred()) SWIG_fail;
23280 }
23281 resultobj = SWIG_From_long((long)result);
23282 return resultobj;
23283 fail:
23284 return NULL;
23285 }
23286
23287
23288 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23289 PyObject *resultobj;
23290 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23291 long arg2 ;
23292 wxString *arg3 = 0 ;
23293 int arg4 ;
23294 long result;
23295 bool temp3 = False ;
23296 PyObject * obj0 = 0 ;
23297 PyObject * obj1 = 0 ;
23298 PyObject * obj2 = 0 ;
23299 PyObject * obj3 = 0 ;
23300 char *kwnames[] = {
23301 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23302 };
23303
23304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23307 arg2 = (long)SWIG_As_long(obj1);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 {
23310 arg3 = wxString_in_helper(obj2);
23311 if (arg3 == NULL) SWIG_fail;
23312 temp3 = True;
23313 }
23314 arg4 = (int)SWIG_As_int(obj3);
23315 if (PyErr_Occurred()) SWIG_fail;
23316 {
23317 PyThreadState* __tstate = wxPyBeginAllowThreads();
23318 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23319
23320 wxPyEndAllowThreads(__tstate);
23321 if (PyErr_Occurred()) SWIG_fail;
23322 }
23323 resultobj = SWIG_From_long((long)result);
23324 {
23325 if (temp3)
23326 delete arg3;
23327 }
23328 return resultobj;
23329 fail:
23330 {
23331 if (temp3)
23332 delete arg3;
23333 }
23334 return NULL;
23335 }
23336
23337
23338 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) {
23339 PyObject *resultobj;
23340 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23341 long arg2 ;
23342 wxListItem *arg3 = 0 ;
23343 long result;
23344 PyObject * obj0 = 0 ;
23345 PyObject * obj1 = 0 ;
23346 PyObject * obj2 = 0 ;
23347 char *kwnames[] = {
23348 (char *) "self",(char *) "col",(char *) "info", NULL
23349 };
23350
23351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23354 arg2 = (long)SWIG_As_long(obj1);
23355 if (PyErr_Occurred()) SWIG_fail;
23356 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23357 SWIG_POINTER_EXCEPTION | 0)) == -1)
23358 SWIG_fail;
23359 if (arg3 == NULL) {
23360 PyErr_SetString(PyExc_TypeError,"null reference");
23361 SWIG_fail;
23362 }
23363 {
23364 PyThreadState* __tstate = wxPyBeginAllowThreads();
23365 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23366
23367 wxPyEndAllowThreads(__tstate);
23368 if (PyErr_Occurred()) SWIG_fail;
23369 }
23370 resultobj = SWIG_From_long((long)result);
23371 return resultobj;
23372 fail:
23373 return NULL;
23374 }
23375
23376
23377 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23378 PyObject *resultobj;
23379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23380 long arg2 ;
23381 wxString *arg3 = 0 ;
23382 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23383 int arg5 = (int) -1 ;
23384 long result;
23385 bool temp3 = False ;
23386 PyObject * obj0 = 0 ;
23387 PyObject * obj1 = 0 ;
23388 PyObject * obj2 = 0 ;
23389 PyObject * obj3 = 0 ;
23390 PyObject * obj4 = 0 ;
23391 char *kwnames[] = {
23392 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23393 };
23394
23395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23398 arg2 = (long)SWIG_As_long(obj1);
23399 if (PyErr_Occurred()) SWIG_fail;
23400 {
23401 arg3 = wxString_in_helper(obj2);
23402 if (arg3 == NULL) SWIG_fail;
23403 temp3 = True;
23404 }
23405 if (obj3) {
23406 arg4 = (int)SWIG_As_int(obj3);
23407 if (PyErr_Occurred()) SWIG_fail;
23408 }
23409 if (obj4) {
23410 arg5 = (int)SWIG_As_int(obj4);
23411 if (PyErr_Occurred()) SWIG_fail;
23412 }
23413 {
23414 PyThreadState* __tstate = wxPyBeginAllowThreads();
23415 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23416
23417 wxPyEndAllowThreads(__tstate);
23418 if (PyErr_Occurred()) SWIG_fail;
23419 }
23420 resultobj = SWIG_From_long((long)result);
23421 {
23422 if (temp3)
23423 delete arg3;
23424 }
23425 return resultobj;
23426 fail:
23427 {
23428 if (temp3)
23429 delete arg3;
23430 }
23431 return NULL;
23432 }
23433
23434
23435 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
23436 PyObject *resultobj;
23437 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23438 long arg2 ;
23439 PyObject * obj0 = 0 ;
23440 PyObject * obj1 = 0 ;
23441 char *kwnames[] = {
23442 (char *) "self",(char *) "count", NULL
23443 };
23444
23445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23448 arg2 = (long)SWIG_As_long(obj1);
23449 if (PyErr_Occurred()) SWIG_fail;
23450 {
23451 PyThreadState* __tstate = wxPyBeginAllowThreads();
23452 (arg1)->SetItemCount(arg2);
23453
23454 wxPyEndAllowThreads(__tstate);
23455 if (PyErr_Occurred()) SWIG_fail;
23456 }
23457 Py_INCREF(Py_None); resultobj = Py_None;
23458 return resultobj;
23459 fail:
23460 return NULL;
23461 }
23462
23463
23464 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) {
23465 PyObject *resultobj;
23466 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23467 int arg2 ;
23468 int arg3 ;
23469 bool result;
23470 PyObject * obj0 = 0 ;
23471 PyObject * obj1 = 0 ;
23472 PyObject * obj2 = 0 ;
23473 char *kwnames[] = {
23474 (char *) "self",(char *) "dx",(char *) "dy", NULL
23475 };
23476
23477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23480 arg2 = (int)SWIG_As_int(obj1);
23481 if (PyErr_Occurred()) SWIG_fail;
23482 arg3 = (int)SWIG_As_int(obj2);
23483 if (PyErr_Occurred()) SWIG_fail;
23484 {
23485 PyThreadState* __tstate = wxPyBeginAllowThreads();
23486 result = (bool)(arg1)->ScrollList(arg2,arg3);
23487
23488 wxPyEndAllowThreads(__tstate);
23489 if (PyErr_Occurred()) SWIG_fail;
23490 }
23491 {
23492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23493 }
23494 return resultobj;
23495 fail:
23496 return NULL;
23497 }
23498
23499
23500 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23501 PyObject *resultobj;
23502 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23503 long arg2 ;
23504 wxColour *arg3 = 0 ;
23505 wxColour temp3 ;
23506 PyObject * obj0 = 0 ;
23507 PyObject * obj1 = 0 ;
23508 PyObject * obj2 = 0 ;
23509 char *kwnames[] = {
23510 (char *) "self",(char *) "item",(char *) "col", NULL
23511 };
23512
23513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23516 arg2 = (long)SWIG_As_long(obj1);
23517 if (PyErr_Occurred()) SWIG_fail;
23518 {
23519 arg3 = &temp3;
23520 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23521 }
23522 {
23523 PyThreadState* __tstate = wxPyBeginAllowThreads();
23524 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23525
23526 wxPyEndAllowThreads(__tstate);
23527 if (PyErr_Occurred()) SWIG_fail;
23528 }
23529 Py_INCREF(Py_None); resultobj = Py_None;
23530 return resultobj;
23531 fail:
23532 return NULL;
23533 }
23534
23535
23536 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23537 PyObject *resultobj;
23538 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23539 long arg2 ;
23540 wxColour result;
23541 PyObject * obj0 = 0 ;
23542 PyObject * obj1 = 0 ;
23543 char *kwnames[] = {
23544 (char *) "self",(char *) "item", NULL
23545 };
23546
23547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23550 arg2 = (long)SWIG_As_long(obj1);
23551 if (PyErr_Occurred()) SWIG_fail;
23552 {
23553 PyThreadState* __tstate = wxPyBeginAllowThreads();
23554 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23555
23556 wxPyEndAllowThreads(__tstate);
23557 if (PyErr_Occurred()) SWIG_fail;
23558 }
23559 {
23560 wxColour * resultptr;
23561 resultptr = new wxColour((wxColour &) result);
23562 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23563 }
23564 return resultobj;
23565 fail:
23566 return NULL;
23567 }
23568
23569
23570 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
23571 PyObject *resultobj;
23572 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23573 long arg2 ;
23574 wxColour *arg3 = 0 ;
23575 wxColour temp3 ;
23576 PyObject * obj0 = 0 ;
23577 PyObject * obj1 = 0 ;
23578 PyObject * obj2 = 0 ;
23579 char *kwnames[] = {
23580 (char *) "self",(char *) "item",(char *) "col", NULL
23581 };
23582
23583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23586 arg2 = (long)SWIG_As_long(obj1);
23587 if (PyErr_Occurred()) SWIG_fail;
23588 {
23589 arg3 = &temp3;
23590 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23591 }
23592 {
23593 PyThreadState* __tstate = wxPyBeginAllowThreads();
23594 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23595
23596 wxPyEndAllowThreads(__tstate);
23597 if (PyErr_Occurred()) SWIG_fail;
23598 }
23599 Py_INCREF(Py_None); resultobj = Py_None;
23600 return resultobj;
23601 fail:
23602 return NULL;
23603 }
23604
23605
23606 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
23607 PyObject *resultobj;
23608 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23609 long arg2 ;
23610 wxColour result;
23611 PyObject * obj0 = 0 ;
23612 PyObject * obj1 = 0 ;
23613 char *kwnames[] = {
23614 (char *) "self",(char *) "item", NULL
23615 };
23616
23617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23620 arg2 = (long)SWIG_As_long(obj1);
23621 if (PyErr_Occurred()) SWIG_fail;
23622 {
23623 PyThreadState* __tstate = wxPyBeginAllowThreads();
23624 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23625
23626 wxPyEndAllowThreads(__tstate);
23627 if (PyErr_Occurred()) SWIG_fail;
23628 }
23629 {
23630 wxColour * resultptr;
23631 resultptr = new wxColour((wxColour &) result);
23632 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23633 }
23634 return resultobj;
23635 fail:
23636 return NULL;
23637 }
23638
23639
23640 static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) {
23641 PyObject *resultobj;
23642 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23643 PyObject *arg2 = (PyObject *) 0 ;
23644 bool result;
23645 PyObject * obj0 = 0 ;
23646 PyObject * obj1 = 0 ;
23647 char *kwnames[] = {
23648 (char *) "self",(char *) "func", NULL
23649 };
23650
23651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23654 arg2 = obj1;
23655 {
23656 PyThreadState* __tstate = wxPyBeginAllowThreads();
23657 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23658
23659 wxPyEndAllowThreads(__tstate);
23660 if (PyErr_Occurred()) SWIG_fail;
23661 }
23662 {
23663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23664 }
23665 return resultobj;
23666 fail:
23667 return NULL;
23668 }
23669
23670
23671 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) {
23672 PyObject *resultobj;
23673 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23674 wxWindow *result;
23675 PyObject * obj0 = 0 ;
23676 char *kwnames[] = {
23677 (char *) "self", NULL
23678 };
23679
23680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23683 {
23684 PyThreadState* __tstate = wxPyBeginAllowThreads();
23685 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23686
23687 wxPyEndAllowThreads(__tstate);
23688 if (PyErr_Occurred()) SWIG_fail;
23689 }
23690 {
23691 resultobj = wxPyMake_wxObject(result, 0);
23692 }
23693 return resultobj;
23694 fail:
23695 return NULL;
23696 }
23697
23698
23699 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
23700 PyObject *resultobj;
23701 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23702 wxVisualAttributes result;
23703 PyObject * obj0 = 0 ;
23704 char *kwnames[] = {
23705 (char *) "variant", NULL
23706 };
23707
23708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23709 if (obj0) {
23710 arg1 = (int)SWIG_As_int(obj0);
23711 if (PyErr_Occurred()) SWIG_fail;
23712 }
23713 {
23714 if (!wxPyCheckForApp()) SWIG_fail;
23715 PyThreadState* __tstate = wxPyBeginAllowThreads();
23716 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23717
23718 wxPyEndAllowThreads(__tstate);
23719 if (PyErr_Occurred()) SWIG_fail;
23720 }
23721 {
23722 wxVisualAttributes * resultptr;
23723 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23724 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23725 }
23726 return resultobj;
23727 fail:
23728 return NULL;
23729 }
23730
23731
23732 static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) {
23733 PyObject *obj;
23734 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23735 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23736 Py_INCREF(obj);
23737 return Py_BuildValue((char *)"");
23738 }
23739 static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) {
23740 PyObject *resultobj;
23741 wxWindow *arg1 = (wxWindow *) 0 ;
23742 int arg2 = (int) -1 ;
23743 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23744 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23745 wxSize const &arg4_defvalue = wxDefaultSize ;
23746 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23747 long arg5 = (long) wxLC_REPORT ;
23748 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23749 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23750 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23751 wxString *arg7 = (wxString *) &arg7_defvalue ;
23752 wxListView *result;
23753 wxPoint temp3 ;
23754 wxSize temp4 ;
23755 bool temp7 = False ;
23756 PyObject * obj0 = 0 ;
23757 PyObject * obj1 = 0 ;
23758 PyObject * obj2 = 0 ;
23759 PyObject * obj3 = 0 ;
23760 PyObject * obj4 = 0 ;
23761 PyObject * obj5 = 0 ;
23762 PyObject * obj6 = 0 ;
23763 char *kwnames[] = {
23764 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23765 };
23766
23767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23770 if (obj1) {
23771 arg2 = (int)SWIG_As_int(obj1);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 if (obj2) {
23775 {
23776 arg3 = &temp3;
23777 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23778 }
23779 }
23780 if (obj3) {
23781 {
23782 arg4 = &temp4;
23783 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23784 }
23785 }
23786 if (obj4) {
23787 arg5 = (long)SWIG_As_long(obj4);
23788 if (PyErr_Occurred()) SWIG_fail;
23789 }
23790 if (obj5) {
23791 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23792 SWIG_POINTER_EXCEPTION | 0)) == -1)
23793 SWIG_fail;
23794 if (arg6 == NULL) {
23795 PyErr_SetString(PyExc_TypeError,"null reference");
23796 SWIG_fail;
23797 }
23798 }
23799 if (obj6) {
23800 {
23801 arg7 = wxString_in_helper(obj6);
23802 if (arg7 == NULL) SWIG_fail;
23803 temp7 = True;
23804 }
23805 }
23806 {
23807 if (!wxPyCheckForApp()) SWIG_fail;
23808 PyThreadState* __tstate = wxPyBeginAllowThreads();
23809 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23810
23811 wxPyEndAllowThreads(__tstate);
23812 if (PyErr_Occurred()) SWIG_fail;
23813 }
23814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23815 {
23816 if (temp7)
23817 delete arg7;
23818 }
23819 return resultobj;
23820 fail:
23821 {
23822 if (temp7)
23823 delete arg7;
23824 }
23825 return NULL;
23826 }
23827
23828
23829 static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) {
23830 PyObject *resultobj;
23831 wxListView *result;
23832 char *kwnames[] = {
23833 NULL
23834 };
23835
23836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23837 {
23838 if (!wxPyCheckForApp()) SWIG_fail;
23839 PyThreadState* __tstate = wxPyBeginAllowThreads();
23840 result = (wxListView *)new wxListView();
23841
23842 wxPyEndAllowThreads(__tstate);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 }
23845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23846 return resultobj;
23847 fail:
23848 return NULL;
23849 }
23850
23851
23852 static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) {
23853 PyObject *resultobj;
23854 wxListView *arg1 = (wxListView *) 0 ;
23855 wxWindow *arg2 = (wxWindow *) 0 ;
23856 int arg3 = (int) -1 ;
23857 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23858 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23859 wxSize const &arg5_defvalue = wxDefaultSize ;
23860 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23861 long arg6 = (long) wxLC_REPORT ;
23862 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23863 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23864 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
23865 wxString *arg8 = (wxString *) &arg8_defvalue ;
23866 bool result;
23867 wxPoint temp4 ;
23868 wxSize temp5 ;
23869 bool temp8 = False ;
23870 PyObject * obj0 = 0 ;
23871 PyObject * obj1 = 0 ;
23872 PyObject * obj2 = 0 ;
23873 PyObject * obj3 = 0 ;
23874 PyObject * obj4 = 0 ;
23875 PyObject * obj5 = 0 ;
23876 PyObject * obj6 = 0 ;
23877 PyObject * obj7 = 0 ;
23878 char *kwnames[] = {
23879 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23880 };
23881
23882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23885 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23887 if (obj2) {
23888 arg3 = (int)SWIG_As_int(obj2);
23889 if (PyErr_Occurred()) SWIG_fail;
23890 }
23891 if (obj3) {
23892 {
23893 arg4 = &temp4;
23894 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23895 }
23896 }
23897 if (obj4) {
23898 {
23899 arg5 = &temp5;
23900 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23901 }
23902 }
23903 if (obj5) {
23904 arg6 = (long)SWIG_As_long(obj5);
23905 if (PyErr_Occurred()) SWIG_fail;
23906 }
23907 if (obj6) {
23908 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23909 SWIG_POINTER_EXCEPTION | 0)) == -1)
23910 SWIG_fail;
23911 if (arg7 == NULL) {
23912 PyErr_SetString(PyExc_TypeError,"null reference");
23913 SWIG_fail;
23914 }
23915 }
23916 if (obj7) {
23917 {
23918 arg8 = wxString_in_helper(obj7);
23919 if (arg8 == NULL) SWIG_fail;
23920 temp8 = True;
23921 }
23922 }
23923 {
23924 PyThreadState* __tstate = wxPyBeginAllowThreads();
23925 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23926
23927 wxPyEndAllowThreads(__tstate);
23928 if (PyErr_Occurred()) SWIG_fail;
23929 }
23930 {
23931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23932 }
23933 {
23934 if (temp8)
23935 delete arg8;
23936 }
23937 return resultobj;
23938 fail:
23939 {
23940 if (temp8)
23941 delete arg8;
23942 }
23943 return NULL;
23944 }
23945
23946
23947 static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) {
23948 PyObject *resultobj;
23949 wxListView *arg1 = (wxListView *) 0 ;
23950 long arg2 ;
23951 bool arg3 = (bool) True ;
23952 PyObject * obj0 = 0 ;
23953 PyObject * obj1 = 0 ;
23954 PyObject * obj2 = 0 ;
23955 char *kwnames[] = {
23956 (char *) "self",(char *) "n",(char *) "on", NULL
23957 };
23958
23959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
23960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23962 arg2 = (long)SWIG_As_long(obj1);
23963 if (PyErr_Occurred()) SWIG_fail;
23964 if (obj2) {
23965 arg3 = (bool)SWIG_As_bool(obj2);
23966 if (PyErr_Occurred()) SWIG_fail;
23967 }
23968 {
23969 PyThreadState* __tstate = wxPyBeginAllowThreads();
23970 (arg1)->Select(arg2,arg3);
23971
23972 wxPyEndAllowThreads(__tstate);
23973 if (PyErr_Occurred()) SWIG_fail;
23974 }
23975 Py_INCREF(Py_None); resultobj = Py_None;
23976 return resultobj;
23977 fail:
23978 return NULL;
23979 }
23980
23981
23982 static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) {
23983 PyObject *resultobj;
23984 wxListView *arg1 = (wxListView *) 0 ;
23985 long arg2 ;
23986 PyObject * obj0 = 0 ;
23987 PyObject * obj1 = 0 ;
23988 char *kwnames[] = {
23989 (char *) "self",(char *) "index", NULL
23990 };
23991
23992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
23993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23995 arg2 = (long)SWIG_As_long(obj1);
23996 if (PyErr_Occurred()) SWIG_fail;
23997 {
23998 PyThreadState* __tstate = wxPyBeginAllowThreads();
23999 (arg1)->Focus(arg2);
24000
24001 wxPyEndAllowThreads(__tstate);
24002 if (PyErr_Occurred()) SWIG_fail;
24003 }
24004 Py_INCREF(Py_None); resultobj = Py_None;
24005 return resultobj;
24006 fail:
24007 return NULL;
24008 }
24009
24010
24011 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) {
24012 PyObject *resultobj;
24013 wxListView *arg1 = (wxListView *) 0 ;
24014 long result;
24015 PyObject * obj0 = 0 ;
24016 char *kwnames[] = {
24017 (char *) "self", NULL
24018 };
24019
24020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
24021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24023 {
24024 PyThreadState* __tstate = wxPyBeginAllowThreads();
24025 result = (long)((wxListView const *)arg1)->GetFocusedItem();
24026
24027 wxPyEndAllowThreads(__tstate);
24028 if (PyErr_Occurred()) SWIG_fail;
24029 }
24030 resultobj = SWIG_From_long((long)result);
24031 return resultobj;
24032 fail:
24033 return NULL;
24034 }
24035
24036
24037 static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24038 PyObject *resultobj;
24039 wxListView *arg1 = (wxListView *) 0 ;
24040 long arg2 ;
24041 long result;
24042 PyObject * obj0 = 0 ;
24043 PyObject * obj1 = 0 ;
24044 char *kwnames[] = {
24045 (char *) "self",(char *) "item", NULL
24046 };
24047
24048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
24049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24051 arg2 = (long)SWIG_As_long(obj1);
24052 if (PyErr_Occurred()) SWIG_fail;
24053 {
24054 PyThreadState* __tstate = wxPyBeginAllowThreads();
24055 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
24056
24057 wxPyEndAllowThreads(__tstate);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 }
24060 resultobj = SWIG_From_long((long)result);
24061 return resultobj;
24062 fail:
24063 return NULL;
24064 }
24065
24066
24067 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24068 PyObject *resultobj;
24069 wxListView *arg1 = (wxListView *) 0 ;
24070 long result;
24071 PyObject * obj0 = 0 ;
24072 char *kwnames[] = {
24073 (char *) "self", NULL
24074 };
24075
24076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
24077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24079 {
24080 PyThreadState* __tstate = wxPyBeginAllowThreads();
24081 result = (long)((wxListView const *)arg1)->GetFirstSelected();
24082
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 resultobj = SWIG_From_long((long)result);
24087 return resultobj;
24088 fail:
24089 return NULL;
24090 }
24091
24092
24093 static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24094 PyObject *resultobj;
24095 wxListView *arg1 = (wxListView *) 0 ;
24096 long arg2 ;
24097 bool result;
24098 PyObject * obj0 = 0 ;
24099 PyObject * obj1 = 0 ;
24100 char *kwnames[] = {
24101 (char *) "self",(char *) "index", NULL
24102 };
24103
24104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24107 arg2 = (long)SWIG_As_long(obj1);
24108 if (PyErr_Occurred()) SWIG_fail;
24109 {
24110 PyThreadState* __tstate = wxPyBeginAllowThreads();
24111 result = (bool)(arg1)->IsSelected(arg2);
24112
24113 wxPyEndAllowThreads(__tstate);
24114 if (PyErr_Occurred()) SWIG_fail;
24115 }
24116 {
24117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24118 }
24119 return resultobj;
24120 fail:
24121 return NULL;
24122 }
24123
24124
24125 static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24126 PyObject *resultobj;
24127 wxListView *arg1 = (wxListView *) 0 ;
24128 int arg2 ;
24129 int arg3 ;
24130 PyObject * obj0 = 0 ;
24131 PyObject * obj1 = 0 ;
24132 PyObject * obj2 = 0 ;
24133 char *kwnames[] = {
24134 (char *) "self",(char *) "col",(char *) "image", NULL
24135 };
24136
24137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24140 arg2 = (int)SWIG_As_int(obj1);
24141 if (PyErr_Occurred()) SWIG_fail;
24142 arg3 = (int)SWIG_As_int(obj2);
24143 if (PyErr_Occurred()) SWIG_fail;
24144 {
24145 PyThreadState* __tstate = wxPyBeginAllowThreads();
24146 (arg1)->SetColumnImage(arg2,arg3);
24147
24148 wxPyEndAllowThreads(__tstate);
24149 if (PyErr_Occurred()) SWIG_fail;
24150 }
24151 Py_INCREF(Py_None); resultobj = Py_None;
24152 return resultobj;
24153 fail:
24154 return NULL;
24155 }
24156
24157
24158 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24159 PyObject *resultobj;
24160 wxListView *arg1 = (wxListView *) 0 ;
24161 int arg2 ;
24162 PyObject * obj0 = 0 ;
24163 PyObject * obj1 = 0 ;
24164 char *kwnames[] = {
24165 (char *) "self",(char *) "col", NULL
24166 };
24167
24168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24171 arg2 = (int)SWIG_As_int(obj1);
24172 if (PyErr_Occurred()) SWIG_fail;
24173 {
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 (arg1)->ClearColumnImage(arg2);
24176
24177 wxPyEndAllowThreads(__tstate);
24178 if (PyErr_Occurred()) SWIG_fail;
24179 }
24180 Py_INCREF(Py_None); resultobj = Py_None;
24181 return resultobj;
24182 fail:
24183 return NULL;
24184 }
24185
24186
24187 static PyObject * ListView_swigregister(PyObject *, PyObject *args) {
24188 PyObject *obj;
24189 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24190 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24191 Py_INCREF(obj);
24192 return Py_BuildValue((char *)"");
24193 }
24194 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
24195 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24196 return 1;
24197 }
24198
24199
24200 static PyObject *_wrap_TreeCtrlNameStr_get() {
24201 PyObject *pyobj;
24202
24203 {
24204 #if wxUSE_UNICODE
24205 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24206 #else
24207 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24208 #endif
24209 }
24210 return pyobj;
24211 }
24212
24213
24214 static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24215 PyObject *resultobj;
24216 wxTreeItemId *result;
24217 char *kwnames[] = {
24218 NULL
24219 };
24220
24221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24222 {
24223 PyThreadState* __tstate = wxPyBeginAllowThreads();
24224 result = (wxTreeItemId *)new wxTreeItemId();
24225
24226 wxPyEndAllowThreads(__tstate);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 }
24229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24230 return resultobj;
24231 fail:
24232 return NULL;
24233 }
24234
24235
24236 static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24237 PyObject *resultobj;
24238 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24239 PyObject * obj0 = 0 ;
24240 char *kwnames[] = {
24241 (char *) "self", NULL
24242 };
24243
24244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24247 {
24248 PyThreadState* __tstate = wxPyBeginAllowThreads();
24249 delete arg1;
24250
24251 wxPyEndAllowThreads(__tstate);
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 Py_INCREF(Py_None); resultobj = Py_None;
24255 return resultobj;
24256 fail:
24257 return NULL;
24258 }
24259
24260
24261 static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
24262 PyObject *resultobj;
24263 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24264 bool result;
24265 PyObject * obj0 = 0 ;
24266 char *kwnames[] = {
24267 (char *) "self", NULL
24268 };
24269
24270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24273 {
24274 PyThreadState* __tstate = wxPyBeginAllowThreads();
24275 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24276
24277 wxPyEndAllowThreads(__tstate);
24278 if (PyErr_Occurred()) SWIG_fail;
24279 }
24280 {
24281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24282 }
24283 return resultobj;
24284 fail:
24285 return NULL;
24286 }
24287
24288
24289 static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24290 PyObject *resultobj;
24291 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24292 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24293 bool result;
24294 PyObject * obj0 = 0 ;
24295 PyObject * obj1 = 0 ;
24296 char *kwnames[] = {
24297 (char *) "self",(char *) "other", NULL
24298 };
24299
24300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24303 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24305 {
24306 PyThreadState* __tstate = wxPyBeginAllowThreads();
24307 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24308
24309 wxPyEndAllowThreads(__tstate);
24310 if (PyErr_Occurred()) SWIG_fail;
24311 }
24312 {
24313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24314 }
24315 return resultobj;
24316 fail:
24317 return NULL;
24318 }
24319
24320
24321 static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24322 PyObject *resultobj;
24323 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24324 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24325 bool result;
24326 PyObject * obj0 = 0 ;
24327 PyObject * obj1 = 0 ;
24328 char *kwnames[] = {
24329 (char *) "self",(char *) "other", NULL
24330 };
24331
24332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24335 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24337 {
24338 PyThreadState* __tstate = wxPyBeginAllowThreads();
24339 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24340
24341 wxPyEndAllowThreads(__tstate);
24342 if (PyErr_Occurred()) SWIG_fail;
24343 }
24344 {
24345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24346 }
24347 return resultobj;
24348 fail:
24349 return NULL;
24350 }
24351
24352
24353 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) {
24354 PyObject *resultobj;
24355 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24356 void *arg2 = (void *) 0 ;
24357 PyObject * obj0 = 0 ;
24358 PyObject * obj1 = 0 ;
24359 char *kwnames[] = {
24360 (char *) "self",(char *) "m_pItem", NULL
24361 };
24362
24363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24366 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24367 if (arg1) (arg1)->m_pItem = arg2;
24368
24369 Py_INCREF(Py_None); resultobj = Py_None;
24370 return resultobj;
24371 fail:
24372 return NULL;
24373 }
24374
24375
24376 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) {
24377 PyObject *resultobj;
24378 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24379 void *result;
24380 PyObject * obj0 = 0 ;
24381 char *kwnames[] = {
24382 (char *) "self", NULL
24383 };
24384
24385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24388 result = (void *) ((arg1)->m_pItem);
24389
24390 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24391 return resultobj;
24392 fail:
24393 return NULL;
24394 }
24395
24396
24397 static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) {
24398 PyObject *obj;
24399 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24400 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24401 Py_INCREF(obj);
24402 return Py_BuildValue((char *)"");
24403 }
24404 static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) {
24405 PyObject *resultobj;
24406 PyObject *arg1 = (PyObject *) NULL ;
24407 wxPyTreeItemData *result;
24408 PyObject * obj0 = 0 ;
24409 char *kwnames[] = {
24410 (char *) "obj", NULL
24411 };
24412
24413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24414 if (obj0) {
24415 arg1 = obj0;
24416 }
24417 {
24418 PyThreadState* __tstate = wxPyBeginAllowThreads();
24419 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24420
24421 wxPyEndAllowThreads(__tstate);
24422 if (PyErr_Occurred()) SWIG_fail;
24423 }
24424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24425 return resultobj;
24426 fail:
24427 return NULL;
24428 }
24429
24430
24431 static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
24432 PyObject *resultobj;
24433 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24434 PyObject *result;
24435 PyObject * obj0 = 0 ;
24436 char *kwnames[] = {
24437 (char *) "self", NULL
24438 };
24439
24440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24443 {
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 result = (PyObject *)(arg1)->GetData();
24446
24447 wxPyEndAllowThreads(__tstate);
24448 if (PyErr_Occurred()) SWIG_fail;
24449 }
24450 resultobj = result;
24451 return resultobj;
24452 fail:
24453 return NULL;
24454 }
24455
24456
24457 static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24458 PyObject *resultobj;
24459 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24460 PyObject *arg2 = (PyObject *) 0 ;
24461 PyObject * obj0 = 0 ;
24462 PyObject * obj1 = 0 ;
24463 char *kwnames[] = {
24464 (char *) "self",(char *) "obj", NULL
24465 };
24466
24467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24470 arg2 = obj1;
24471 {
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 (arg1)->SetData(arg2);
24474
24475 wxPyEndAllowThreads(__tstate);
24476 if (PyErr_Occurred()) SWIG_fail;
24477 }
24478 Py_INCREF(Py_None); resultobj = Py_None;
24479 return resultobj;
24480 fail:
24481 return NULL;
24482 }
24483
24484
24485 static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24486 PyObject *resultobj;
24487 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24488 wxTreeItemId *result;
24489 PyObject * obj0 = 0 ;
24490 char *kwnames[] = {
24491 (char *) "self", NULL
24492 };
24493
24494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24497 {
24498 PyThreadState* __tstate = wxPyBeginAllowThreads();
24499 {
24500 wxTreeItemId const &_result_ref = (arg1)->GetId();
24501 result = (wxTreeItemId *) &_result_ref;
24502 }
24503
24504 wxPyEndAllowThreads(__tstate);
24505 if (PyErr_Occurred()) SWIG_fail;
24506 }
24507 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24508 return resultobj;
24509 fail:
24510 return NULL;
24511 }
24512
24513
24514 static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24515 PyObject *resultobj;
24516 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24517 wxTreeItemId *arg2 = 0 ;
24518 PyObject * obj0 = 0 ;
24519 PyObject * obj1 = 0 ;
24520 char *kwnames[] = {
24521 (char *) "self",(char *) "id", NULL
24522 };
24523
24524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24527 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24528 SWIG_POINTER_EXCEPTION | 0)) == -1)
24529 SWIG_fail;
24530 if (arg2 == NULL) {
24531 PyErr_SetString(PyExc_TypeError,"null reference");
24532 SWIG_fail;
24533 }
24534 {
24535 PyThreadState* __tstate = wxPyBeginAllowThreads();
24536 (arg1)->SetId((wxTreeItemId const &)*arg2);
24537
24538 wxPyEndAllowThreads(__tstate);
24539 if (PyErr_Occurred()) SWIG_fail;
24540 }
24541 Py_INCREF(Py_None); resultobj = Py_None;
24542 return resultobj;
24543 fail:
24544 return NULL;
24545 }
24546
24547
24548 static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
24549 PyObject *resultobj;
24550 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24551 PyObject * obj0 = 0 ;
24552 char *kwnames[] = {
24553 (char *) "self", NULL
24554 };
24555
24556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24559 {
24560 PyThreadState* __tstate = wxPyBeginAllowThreads();
24561 wxPyTreeItemData_Destroy(arg1);
24562
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 Py_INCREF(Py_None); resultobj = Py_None;
24567 return resultobj;
24568 fail:
24569 return NULL;
24570 }
24571
24572
24573 static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) {
24574 PyObject *obj;
24575 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24576 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24577 Py_INCREF(obj);
24578 return Py_BuildValue((char *)"");
24579 }
24580 static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24581 PyObject *resultobj;
24582 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24583 int arg2 = (int) 0 ;
24584 wxTreeEvent *result;
24585 PyObject * obj0 = 0 ;
24586 PyObject * obj1 = 0 ;
24587 char *kwnames[] = {
24588 (char *) "commandType",(char *) "id", NULL
24589 };
24590
24591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24592 if (obj0) {
24593 arg1 = (wxEventType)SWIG_As_int(obj0);
24594 if (PyErr_Occurred()) SWIG_fail;
24595 }
24596 if (obj1) {
24597 arg2 = (int)SWIG_As_int(obj1);
24598 if (PyErr_Occurred()) SWIG_fail;
24599 }
24600 {
24601 PyThreadState* __tstate = wxPyBeginAllowThreads();
24602 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24603
24604 wxPyEndAllowThreads(__tstate);
24605 if (PyErr_Occurred()) SWIG_fail;
24606 }
24607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24608 return resultobj;
24609 fail:
24610 return NULL;
24611 }
24612
24613
24614 static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
24615 PyObject *resultobj;
24616 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24617 wxTreeItemId result;
24618 PyObject * obj0 = 0 ;
24619 char *kwnames[] = {
24620 (char *) "self", NULL
24621 };
24622
24623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24626 {
24627 PyThreadState* __tstate = wxPyBeginAllowThreads();
24628 result = ((wxTreeEvent const *)arg1)->GetItem();
24629
24630 wxPyEndAllowThreads(__tstate);
24631 if (PyErr_Occurred()) SWIG_fail;
24632 }
24633 {
24634 wxTreeItemId * resultptr;
24635 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24636 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24637 }
24638 return resultobj;
24639 fail:
24640 return NULL;
24641 }
24642
24643
24644 static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
24645 PyObject *resultobj;
24646 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24647 wxTreeItemId *arg2 = 0 ;
24648 PyObject * obj0 = 0 ;
24649 PyObject * obj1 = 0 ;
24650 char *kwnames[] = {
24651 (char *) "self",(char *) "item", NULL
24652 };
24653
24654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24657 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24658 SWIG_POINTER_EXCEPTION | 0)) == -1)
24659 SWIG_fail;
24660 if (arg2 == NULL) {
24661 PyErr_SetString(PyExc_TypeError,"null reference");
24662 SWIG_fail;
24663 }
24664 {
24665 PyThreadState* __tstate = wxPyBeginAllowThreads();
24666 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24667
24668 wxPyEndAllowThreads(__tstate);
24669 if (PyErr_Occurred()) SWIG_fail;
24670 }
24671 Py_INCREF(Py_None); resultobj = Py_None;
24672 return resultobj;
24673 fail:
24674 return NULL;
24675 }
24676
24677
24678 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
24679 PyObject *resultobj;
24680 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24681 wxTreeItemId result;
24682 PyObject * obj0 = 0 ;
24683 char *kwnames[] = {
24684 (char *) "self", NULL
24685 };
24686
24687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24690 {
24691 PyThreadState* __tstate = wxPyBeginAllowThreads();
24692 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24693
24694 wxPyEndAllowThreads(__tstate);
24695 if (PyErr_Occurred()) SWIG_fail;
24696 }
24697 {
24698 wxTreeItemId * resultptr;
24699 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24700 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24701 }
24702 return resultobj;
24703 fail:
24704 return NULL;
24705 }
24706
24707
24708 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
24709 PyObject *resultobj;
24710 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24711 wxTreeItemId *arg2 = 0 ;
24712 PyObject * obj0 = 0 ;
24713 PyObject * obj1 = 0 ;
24714 char *kwnames[] = {
24715 (char *) "self",(char *) "item", NULL
24716 };
24717
24718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24721 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24722 SWIG_POINTER_EXCEPTION | 0)) == -1)
24723 SWIG_fail;
24724 if (arg2 == NULL) {
24725 PyErr_SetString(PyExc_TypeError,"null reference");
24726 SWIG_fail;
24727 }
24728 {
24729 PyThreadState* __tstate = wxPyBeginAllowThreads();
24730 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24731
24732 wxPyEndAllowThreads(__tstate);
24733 if (PyErr_Occurred()) SWIG_fail;
24734 }
24735 Py_INCREF(Py_None); resultobj = Py_None;
24736 return resultobj;
24737 fail:
24738 return NULL;
24739 }
24740
24741
24742 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
24743 PyObject *resultobj;
24744 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24745 wxPoint result;
24746 PyObject * obj0 = 0 ;
24747 char *kwnames[] = {
24748 (char *) "self", NULL
24749 };
24750
24751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24754 {
24755 PyThreadState* __tstate = wxPyBeginAllowThreads();
24756 result = ((wxTreeEvent const *)arg1)->GetPoint();
24757
24758 wxPyEndAllowThreads(__tstate);
24759 if (PyErr_Occurred()) SWIG_fail;
24760 }
24761 {
24762 wxPoint * resultptr;
24763 resultptr = new wxPoint((wxPoint &) result);
24764 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24765 }
24766 return resultobj;
24767 fail:
24768 return NULL;
24769 }
24770
24771
24772 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
24773 PyObject *resultobj;
24774 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24775 wxPoint *arg2 = 0 ;
24776 wxPoint temp2 ;
24777 PyObject * obj0 = 0 ;
24778 PyObject * obj1 = 0 ;
24779 char *kwnames[] = {
24780 (char *) "self",(char *) "pt", NULL
24781 };
24782
24783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24786 {
24787 arg2 = &temp2;
24788 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24789 }
24790 {
24791 PyThreadState* __tstate = wxPyBeginAllowThreads();
24792 (arg1)->SetPoint((wxPoint const &)*arg2);
24793
24794 wxPyEndAllowThreads(__tstate);
24795 if (PyErr_Occurred()) SWIG_fail;
24796 }
24797 Py_INCREF(Py_None); resultobj = Py_None;
24798 return resultobj;
24799 fail:
24800 return NULL;
24801 }
24802
24803
24804 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj;
24806 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24807 wxKeyEvent *result;
24808 PyObject * obj0 = 0 ;
24809 char *kwnames[] = {
24810 (char *) "self", NULL
24811 };
24812
24813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24816 {
24817 PyThreadState* __tstate = wxPyBeginAllowThreads();
24818 {
24819 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24820 result = (wxKeyEvent *) &_result_ref;
24821 }
24822
24823 wxPyEndAllowThreads(__tstate);
24824 if (PyErr_Occurred()) SWIG_fail;
24825 }
24826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24827 return resultobj;
24828 fail:
24829 return NULL;
24830 }
24831
24832
24833 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
24834 PyObject *resultobj;
24835 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24836 int result;
24837 PyObject * obj0 = 0 ;
24838 char *kwnames[] = {
24839 (char *) "self", NULL
24840 };
24841
24842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24845 {
24846 PyThreadState* __tstate = wxPyBeginAllowThreads();
24847 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
24848
24849 wxPyEndAllowThreads(__tstate);
24850 if (PyErr_Occurred()) SWIG_fail;
24851 }
24852 resultobj = SWIG_From_int((int)result);
24853 return resultobj;
24854 fail:
24855 return NULL;
24856 }
24857
24858
24859 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24860 PyObject *resultobj;
24861 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24862 wxKeyEvent *arg2 = 0 ;
24863 PyObject * obj0 = 0 ;
24864 PyObject * obj1 = 0 ;
24865 char *kwnames[] = {
24866 (char *) "self",(char *) "evt", NULL
24867 };
24868
24869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
24870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24872 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
24873 SWIG_POINTER_EXCEPTION | 0)) == -1)
24874 SWIG_fail;
24875 if (arg2 == NULL) {
24876 PyErr_SetString(PyExc_TypeError,"null reference");
24877 SWIG_fail;
24878 }
24879 {
24880 PyThreadState* __tstate = wxPyBeginAllowThreads();
24881 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
24882
24883 wxPyEndAllowThreads(__tstate);
24884 if (PyErr_Occurred()) SWIG_fail;
24885 }
24886 Py_INCREF(Py_None); resultobj = Py_None;
24887 return resultobj;
24888 fail:
24889 return NULL;
24890 }
24891
24892
24893 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
24894 PyObject *resultobj;
24895 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24896 wxString *result;
24897 PyObject * obj0 = 0 ;
24898 char *kwnames[] = {
24899 (char *) "self", NULL
24900 };
24901
24902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
24903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24905 {
24906 PyThreadState* __tstate = wxPyBeginAllowThreads();
24907 {
24908 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
24909 result = (wxString *) &_result_ref;
24910 }
24911
24912 wxPyEndAllowThreads(__tstate);
24913 if (PyErr_Occurred()) SWIG_fail;
24914 }
24915 {
24916 #if wxUSE_UNICODE
24917 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24918 #else
24919 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24920 #endif
24921 }
24922 return resultobj;
24923 fail:
24924 return NULL;
24925 }
24926
24927
24928 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
24929 PyObject *resultobj;
24930 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24931 wxString *arg2 = 0 ;
24932 bool temp2 = False ;
24933 PyObject * obj0 = 0 ;
24934 PyObject * obj1 = 0 ;
24935 char *kwnames[] = {
24936 (char *) "self",(char *) "label", NULL
24937 };
24938
24939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
24940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24942 {
24943 arg2 = wxString_in_helper(obj1);
24944 if (arg2 == NULL) SWIG_fail;
24945 temp2 = True;
24946 }
24947 {
24948 PyThreadState* __tstate = wxPyBeginAllowThreads();
24949 (arg1)->SetLabel((wxString const &)*arg2);
24950
24951 wxPyEndAllowThreads(__tstate);
24952 if (PyErr_Occurred()) SWIG_fail;
24953 }
24954 Py_INCREF(Py_None); resultobj = Py_None;
24955 {
24956 if (temp2)
24957 delete arg2;
24958 }
24959 return resultobj;
24960 fail:
24961 {
24962 if (temp2)
24963 delete arg2;
24964 }
24965 return NULL;
24966 }
24967
24968
24969 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
24970 PyObject *resultobj;
24971 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24972 bool result;
24973 PyObject * obj0 = 0 ;
24974 char *kwnames[] = {
24975 (char *) "self", NULL
24976 };
24977
24978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
24979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24981 {
24982 PyThreadState* __tstate = wxPyBeginAllowThreads();
24983 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
24984
24985 wxPyEndAllowThreads(__tstate);
24986 if (PyErr_Occurred()) SWIG_fail;
24987 }
24988 {
24989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24990 }
24991 return resultobj;
24992 fail:
24993 return NULL;
24994 }
24995
24996
24997 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
24998 PyObject *resultobj;
24999 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25000 bool arg2 ;
25001 PyObject * obj0 = 0 ;
25002 PyObject * obj1 = 0 ;
25003 char *kwnames[] = {
25004 (char *) "self",(char *) "editCancelled", NULL
25005 };
25006
25007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
25008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25010 arg2 = (bool)SWIG_As_bool(obj1);
25011 if (PyErr_Occurred()) SWIG_fail;
25012 {
25013 PyThreadState* __tstate = wxPyBeginAllowThreads();
25014 (arg1)->SetEditCanceled(arg2);
25015
25016 wxPyEndAllowThreads(__tstate);
25017 if (PyErr_Occurred()) SWIG_fail;
25018 }
25019 Py_INCREF(Py_None); resultobj = Py_None;
25020 return resultobj;
25021 fail:
25022 return NULL;
25023 }
25024
25025
25026 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
25027 PyObject *resultobj;
25028 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25029 wxString *arg2 = 0 ;
25030 bool temp2 = False ;
25031 PyObject * obj0 = 0 ;
25032 PyObject * obj1 = 0 ;
25033 char *kwnames[] = {
25034 (char *) "self",(char *) "toolTip", NULL
25035 };
25036
25037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
25038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25040 {
25041 arg2 = wxString_in_helper(obj1);
25042 if (arg2 == NULL) SWIG_fail;
25043 temp2 = True;
25044 }
25045 {
25046 PyThreadState* __tstate = wxPyBeginAllowThreads();
25047 (arg1)->SetToolTip((wxString const &)*arg2);
25048
25049 wxPyEndAllowThreads(__tstate);
25050 if (PyErr_Occurred()) SWIG_fail;
25051 }
25052 Py_INCREF(Py_None); resultobj = Py_None;
25053 {
25054 if (temp2)
25055 delete arg2;
25056 }
25057 return resultobj;
25058 fail:
25059 {
25060 if (temp2)
25061 delete arg2;
25062 }
25063 return NULL;
25064 }
25065
25066
25067 static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) {
25068 PyObject *obj;
25069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25070 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
25071 Py_INCREF(obj);
25072 return Py_BuildValue((char *)"");
25073 }
25074 static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25075 PyObject *resultobj;
25076 wxWindow *arg1 = (wxWindow *) 0 ;
25077 int arg2 = (int) -1 ;
25078 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25079 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25080 wxSize const &arg4_defvalue = wxDefaultSize ;
25081 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25082 long arg5 = (long) wxTR_DEFAULT_STYLE ;
25083 wxValidator const &arg6_defvalue = wxDefaultValidator ;
25084 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
25085 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
25086 wxString *arg7 = (wxString *) &arg7_defvalue ;
25087 wxPyTreeCtrl *result;
25088 wxPoint temp3 ;
25089 wxSize temp4 ;
25090 bool temp7 = False ;
25091 PyObject * obj0 = 0 ;
25092 PyObject * obj1 = 0 ;
25093 PyObject * obj2 = 0 ;
25094 PyObject * obj3 = 0 ;
25095 PyObject * obj4 = 0 ;
25096 PyObject * obj5 = 0 ;
25097 PyObject * obj6 = 0 ;
25098 char *kwnames[] = {
25099 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25100 };
25101
25102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25105 if (obj1) {
25106 arg2 = (int)SWIG_As_int(obj1);
25107 if (PyErr_Occurred()) SWIG_fail;
25108 }
25109 if (obj2) {
25110 {
25111 arg3 = &temp3;
25112 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25113 }
25114 }
25115 if (obj3) {
25116 {
25117 arg4 = &temp4;
25118 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25119 }
25120 }
25121 if (obj4) {
25122 arg5 = (long)SWIG_As_long(obj4);
25123 if (PyErr_Occurred()) SWIG_fail;
25124 }
25125 if (obj5) {
25126 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
25127 SWIG_POINTER_EXCEPTION | 0)) == -1)
25128 SWIG_fail;
25129 if (arg6 == NULL) {
25130 PyErr_SetString(PyExc_TypeError,"null reference");
25131 SWIG_fail;
25132 }
25133 }
25134 if (obj6) {
25135 {
25136 arg7 = wxString_in_helper(obj6);
25137 if (arg7 == NULL) SWIG_fail;
25138 temp7 = True;
25139 }
25140 }
25141 {
25142 if (!wxPyCheckForApp()) SWIG_fail;
25143 PyThreadState* __tstate = wxPyBeginAllowThreads();
25144 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
25145
25146 wxPyEndAllowThreads(__tstate);
25147 if (PyErr_Occurred()) SWIG_fail;
25148 }
25149 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25150 {
25151 if (temp7)
25152 delete arg7;
25153 }
25154 return resultobj;
25155 fail:
25156 {
25157 if (temp7)
25158 delete arg7;
25159 }
25160 return NULL;
25161 }
25162
25163
25164 static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25165 PyObject *resultobj;
25166 wxPyTreeCtrl *result;
25167 char *kwnames[] = {
25168 NULL
25169 };
25170
25171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25172 {
25173 if (!wxPyCheckForApp()) SWIG_fail;
25174 PyThreadState* __tstate = wxPyBeginAllowThreads();
25175 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25176
25177 wxPyEndAllowThreads(__tstate);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
25180 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25181 return resultobj;
25182 fail:
25183 return NULL;
25184 }
25185
25186
25187 static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
25188 PyObject *resultobj;
25189 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25190 wxWindow *arg2 = (wxWindow *) 0 ;
25191 int arg3 = (int) -1 ;
25192 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25193 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25194 wxSize const &arg5_defvalue = wxDefaultSize ;
25195 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25196 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25197 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25198 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25199 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25200 wxString *arg8 = (wxString *) &arg8_defvalue ;
25201 bool result;
25202 wxPoint temp4 ;
25203 wxSize temp5 ;
25204 bool temp8 = False ;
25205 PyObject * obj0 = 0 ;
25206 PyObject * obj1 = 0 ;
25207 PyObject * obj2 = 0 ;
25208 PyObject * obj3 = 0 ;
25209 PyObject * obj4 = 0 ;
25210 PyObject * obj5 = 0 ;
25211 PyObject * obj6 = 0 ;
25212 PyObject * obj7 = 0 ;
25213 char *kwnames[] = {
25214 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25215 };
25216
25217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25222 if (obj2) {
25223 arg3 = (int)SWIG_As_int(obj2);
25224 if (PyErr_Occurred()) SWIG_fail;
25225 }
25226 if (obj3) {
25227 {
25228 arg4 = &temp4;
25229 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25230 }
25231 }
25232 if (obj4) {
25233 {
25234 arg5 = &temp5;
25235 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25236 }
25237 }
25238 if (obj5) {
25239 arg6 = (long)SWIG_As_long(obj5);
25240 if (PyErr_Occurred()) SWIG_fail;
25241 }
25242 if (obj6) {
25243 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25244 SWIG_POINTER_EXCEPTION | 0)) == -1)
25245 SWIG_fail;
25246 if (arg7 == NULL) {
25247 PyErr_SetString(PyExc_TypeError,"null reference");
25248 SWIG_fail;
25249 }
25250 }
25251 if (obj7) {
25252 {
25253 arg8 = wxString_in_helper(obj7);
25254 if (arg8 == NULL) SWIG_fail;
25255 temp8 = True;
25256 }
25257 }
25258 {
25259 PyThreadState* __tstate = wxPyBeginAllowThreads();
25260 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25261
25262 wxPyEndAllowThreads(__tstate);
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 {
25266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25267 }
25268 {
25269 if (temp8)
25270 delete arg8;
25271 }
25272 return resultobj;
25273 fail:
25274 {
25275 if (temp8)
25276 delete arg8;
25277 }
25278 return NULL;
25279 }
25280
25281
25282 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25283 PyObject *resultobj;
25284 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25285 PyObject *arg2 = (PyObject *) 0 ;
25286 PyObject *arg3 = (PyObject *) 0 ;
25287 PyObject * obj0 = 0 ;
25288 PyObject * obj1 = 0 ;
25289 PyObject * obj2 = 0 ;
25290 char *kwnames[] = {
25291 (char *) "self",(char *) "self",(char *) "_class", NULL
25292 };
25293
25294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25297 arg2 = obj1;
25298 arg3 = obj2;
25299 {
25300 PyThreadState* __tstate = wxPyBeginAllowThreads();
25301 (arg1)->_setCallbackInfo(arg2,arg3);
25302
25303 wxPyEndAllowThreads(__tstate);
25304 if (PyErr_Occurred()) SWIG_fail;
25305 }
25306 Py_INCREF(Py_None); resultobj = Py_None;
25307 return resultobj;
25308 fail:
25309 return NULL;
25310 }
25311
25312
25313 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
25314 PyObject *resultobj;
25315 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25316 size_t result;
25317 PyObject * obj0 = 0 ;
25318 char *kwnames[] = {
25319 (char *) "self", NULL
25320 };
25321
25322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25325 {
25326 PyThreadState* __tstate = wxPyBeginAllowThreads();
25327 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25328
25329 wxPyEndAllowThreads(__tstate);
25330 if (PyErr_Occurred()) SWIG_fail;
25331 }
25332 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25333 return resultobj;
25334 fail:
25335 return NULL;
25336 }
25337
25338
25339 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25340 PyObject *resultobj;
25341 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25342 unsigned int result;
25343 PyObject * obj0 = 0 ;
25344 char *kwnames[] = {
25345 (char *) "self", NULL
25346 };
25347
25348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25351 {
25352 PyThreadState* __tstate = wxPyBeginAllowThreads();
25353 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25354
25355 wxPyEndAllowThreads(__tstate);
25356 if (PyErr_Occurred()) SWIG_fail;
25357 }
25358 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25359 return resultobj;
25360 fail:
25361 return NULL;
25362 }
25363
25364
25365 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25366 PyObject *resultobj;
25367 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25368 unsigned int arg2 ;
25369 PyObject * obj0 = 0 ;
25370 PyObject * obj1 = 0 ;
25371 char *kwnames[] = {
25372 (char *) "self",(char *) "indent", NULL
25373 };
25374
25375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25378 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25379 if (PyErr_Occurred()) SWIG_fail;
25380 {
25381 PyThreadState* __tstate = wxPyBeginAllowThreads();
25382 (arg1)->SetIndent(arg2);
25383
25384 wxPyEndAllowThreads(__tstate);
25385 if (PyErr_Occurred()) SWIG_fail;
25386 }
25387 Py_INCREF(Py_None); resultobj = Py_None;
25388 return resultobj;
25389 fail:
25390 return NULL;
25391 }
25392
25393
25394 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25395 PyObject *resultobj;
25396 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25397 unsigned int result;
25398 PyObject * obj0 = 0 ;
25399 char *kwnames[] = {
25400 (char *) "self", NULL
25401 };
25402
25403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25406 {
25407 PyThreadState* __tstate = wxPyBeginAllowThreads();
25408 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25409
25410 wxPyEndAllowThreads(__tstate);
25411 if (PyErr_Occurred()) SWIG_fail;
25412 }
25413 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25414 return resultobj;
25415 fail:
25416 return NULL;
25417 }
25418
25419
25420 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25421 PyObject *resultobj;
25422 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25423 unsigned int arg2 ;
25424 PyObject * obj0 = 0 ;
25425 PyObject * obj1 = 0 ;
25426 char *kwnames[] = {
25427 (char *) "self",(char *) "spacing", NULL
25428 };
25429
25430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25433 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25434 if (PyErr_Occurred()) SWIG_fail;
25435 {
25436 PyThreadState* __tstate = wxPyBeginAllowThreads();
25437 (arg1)->SetSpacing(arg2);
25438
25439 wxPyEndAllowThreads(__tstate);
25440 if (PyErr_Occurred()) SWIG_fail;
25441 }
25442 Py_INCREF(Py_None); resultobj = Py_None;
25443 return resultobj;
25444 fail:
25445 return NULL;
25446 }
25447
25448
25449 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25450 PyObject *resultobj;
25451 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25452 wxImageList *result;
25453 PyObject * obj0 = 0 ;
25454 char *kwnames[] = {
25455 (char *) "self", NULL
25456 };
25457
25458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25461 {
25462 PyThreadState* __tstate = wxPyBeginAllowThreads();
25463 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25464
25465 wxPyEndAllowThreads(__tstate);
25466 if (PyErr_Occurred()) SWIG_fail;
25467 }
25468 {
25469 resultobj = wxPyMake_wxObject(result, 0);
25470 }
25471 return resultobj;
25472 fail:
25473 return NULL;
25474 }
25475
25476
25477 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25478 PyObject *resultobj;
25479 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25480 wxImageList *result;
25481 PyObject * obj0 = 0 ;
25482 char *kwnames[] = {
25483 (char *) "self", NULL
25484 };
25485
25486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25489 {
25490 PyThreadState* __tstate = wxPyBeginAllowThreads();
25491 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25492
25493 wxPyEndAllowThreads(__tstate);
25494 if (PyErr_Occurred()) SWIG_fail;
25495 }
25496 {
25497 resultobj = wxPyMake_wxObject(result, 0);
25498 }
25499 return resultobj;
25500 fail:
25501 return NULL;
25502 }
25503
25504
25505 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25506 PyObject *resultobj;
25507 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25508 wxImageList *arg2 = (wxImageList *) 0 ;
25509 PyObject * obj0 = 0 ;
25510 PyObject * obj1 = 0 ;
25511 char *kwnames[] = {
25512 (char *) "self",(char *) "imageList", NULL
25513 };
25514
25515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25520 {
25521 PyThreadState* __tstate = wxPyBeginAllowThreads();
25522 (arg1)->SetImageList(arg2);
25523
25524 wxPyEndAllowThreads(__tstate);
25525 if (PyErr_Occurred()) SWIG_fail;
25526 }
25527 Py_INCREF(Py_None); resultobj = Py_None;
25528 return resultobj;
25529 fail:
25530 return NULL;
25531 }
25532
25533
25534 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25535 PyObject *resultobj;
25536 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25537 wxImageList *arg2 = (wxImageList *) 0 ;
25538 PyObject * obj0 = 0 ;
25539 PyObject * obj1 = 0 ;
25540 char *kwnames[] = {
25541 (char *) "self",(char *) "imageList", NULL
25542 };
25543
25544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25547 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25549 {
25550 PyThreadState* __tstate = wxPyBeginAllowThreads();
25551 (arg1)->SetStateImageList(arg2);
25552
25553 wxPyEndAllowThreads(__tstate);
25554 if (PyErr_Occurred()) SWIG_fail;
25555 }
25556 Py_INCREF(Py_None); resultobj = Py_None;
25557 return resultobj;
25558 fail:
25559 return NULL;
25560 }
25561
25562
25563 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25564 PyObject *resultobj;
25565 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25566 wxImageList *arg2 = (wxImageList *) 0 ;
25567 PyObject * obj0 = 0 ;
25568 PyObject * obj1 = 0 ;
25569 char *kwnames[] = {
25570 (char *) "self",(char *) "imageList", NULL
25571 };
25572
25573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25576 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25577 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25578 {
25579 PyThreadState* __tstate = wxPyBeginAllowThreads();
25580 (arg1)->AssignImageList(arg2);
25581
25582 wxPyEndAllowThreads(__tstate);
25583 if (PyErr_Occurred()) SWIG_fail;
25584 }
25585 Py_INCREF(Py_None); resultobj = Py_None;
25586 return resultobj;
25587 fail:
25588 return NULL;
25589 }
25590
25591
25592 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25593 PyObject *resultobj;
25594 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25595 wxImageList *arg2 = (wxImageList *) 0 ;
25596 PyObject * obj0 = 0 ;
25597 PyObject * obj1 = 0 ;
25598 char *kwnames[] = {
25599 (char *) "self",(char *) "imageList", NULL
25600 };
25601
25602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25606 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25607 {
25608 PyThreadState* __tstate = wxPyBeginAllowThreads();
25609 (arg1)->AssignStateImageList(arg2);
25610
25611 wxPyEndAllowThreads(__tstate);
25612 if (PyErr_Occurred()) SWIG_fail;
25613 }
25614 Py_INCREF(Py_None); resultobj = Py_None;
25615 return resultobj;
25616 fail:
25617 return NULL;
25618 }
25619
25620
25621 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
25622 PyObject *resultobj;
25623 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25624 wxTreeItemId *arg2 = 0 ;
25625 wxString result;
25626 PyObject * obj0 = 0 ;
25627 PyObject * obj1 = 0 ;
25628 char *kwnames[] = {
25629 (char *) "self",(char *) "item", NULL
25630 };
25631
25632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25636 SWIG_POINTER_EXCEPTION | 0)) == -1)
25637 SWIG_fail;
25638 if (arg2 == NULL) {
25639 PyErr_SetString(PyExc_TypeError,"null reference");
25640 SWIG_fail;
25641 }
25642 {
25643 PyThreadState* __tstate = wxPyBeginAllowThreads();
25644 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25645
25646 wxPyEndAllowThreads(__tstate);
25647 if (PyErr_Occurred()) SWIG_fail;
25648 }
25649 {
25650 #if wxUSE_UNICODE
25651 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25652 #else
25653 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25654 #endif
25655 }
25656 return resultobj;
25657 fail:
25658 return NULL;
25659 }
25660
25661
25662 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
25663 PyObject *resultobj;
25664 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25665 wxTreeItemId *arg2 = 0 ;
25666 int arg3 = (int) wxTreeItemIcon_Normal ;
25667 int result;
25668 PyObject * obj0 = 0 ;
25669 PyObject * obj1 = 0 ;
25670 PyObject * obj2 = 0 ;
25671 char *kwnames[] = {
25672 (char *) "self",(char *) "item",(char *) "which", NULL
25673 };
25674
25675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25678 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25679 SWIG_POINTER_EXCEPTION | 0)) == -1)
25680 SWIG_fail;
25681 if (arg2 == NULL) {
25682 PyErr_SetString(PyExc_TypeError,"null reference");
25683 SWIG_fail;
25684 }
25685 if (obj2) {
25686 arg3 = (int)SWIG_As_int(obj2);
25687 if (PyErr_Occurred()) SWIG_fail;
25688 }
25689 {
25690 PyThreadState* __tstate = wxPyBeginAllowThreads();
25691 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25692
25693 wxPyEndAllowThreads(__tstate);
25694 if (PyErr_Occurred()) SWIG_fail;
25695 }
25696 resultobj = SWIG_From_int((int)result);
25697 return resultobj;
25698 fail:
25699 return NULL;
25700 }
25701
25702
25703 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
25704 PyObject *resultobj;
25705 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25706 wxTreeItemId *arg2 = 0 ;
25707 wxPyTreeItemData *result;
25708 PyObject * obj0 = 0 ;
25709 PyObject * obj1 = 0 ;
25710 char *kwnames[] = {
25711 (char *) "self",(char *) "item", NULL
25712 };
25713
25714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25717 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25718 SWIG_POINTER_EXCEPTION | 0)) == -1)
25719 SWIG_fail;
25720 if (arg2 == NULL) {
25721 PyErr_SetString(PyExc_TypeError,"null reference");
25722 SWIG_fail;
25723 }
25724 {
25725 PyThreadState* __tstate = wxPyBeginAllowThreads();
25726 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25727
25728 wxPyEndAllowThreads(__tstate);
25729 if (PyErr_Occurred()) SWIG_fail;
25730 }
25731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25732 return resultobj;
25733 fail:
25734 return NULL;
25735 }
25736
25737
25738 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
25739 PyObject *resultobj;
25740 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25741 wxTreeItemId *arg2 = 0 ;
25742 PyObject *result;
25743 PyObject * obj0 = 0 ;
25744 PyObject * obj1 = 0 ;
25745 char *kwnames[] = {
25746 (char *) "self",(char *) "item", NULL
25747 };
25748
25749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25752 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25753 SWIG_POINTER_EXCEPTION | 0)) == -1)
25754 SWIG_fail;
25755 if (arg2 == NULL) {
25756 PyErr_SetString(PyExc_TypeError,"null reference");
25757 SWIG_fail;
25758 }
25759 {
25760 PyThreadState* __tstate = wxPyBeginAllowThreads();
25761 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25762
25763 wxPyEndAllowThreads(__tstate);
25764 if (PyErr_Occurred()) SWIG_fail;
25765 }
25766 resultobj = result;
25767 return resultobj;
25768 fail:
25769 return NULL;
25770 }
25771
25772
25773 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
25774 PyObject *resultobj;
25775 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25776 wxTreeItemId *arg2 = 0 ;
25777 wxColour result;
25778 PyObject * obj0 = 0 ;
25779 PyObject * obj1 = 0 ;
25780 char *kwnames[] = {
25781 (char *) "self",(char *) "item", NULL
25782 };
25783
25784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25787 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25788 SWIG_POINTER_EXCEPTION | 0)) == -1)
25789 SWIG_fail;
25790 if (arg2 == NULL) {
25791 PyErr_SetString(PyExc_TypeError,"null reference");
25792 SWIG_fail;
25793 }
25794 {
25795 PyThreadState* __tstate = wxPyBeginAllowThreads();
25796 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25797
25798 wxPyEndAllowThreads(__tstate);
25799 if (PyErr_Occurred()) SWIG_fail;
25800 }
25801 {
25802 wxColour * resultptr;
25803 resultptr = new wxColour((wxColour &) result);
25804 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25805 }
25806 return resultobj;
25807 fail:
25808 return NULL;
25809 }
25810
25811
25812 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
25813 PyObject *resultobj;
25814 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25815 wxTreeItemId *arg2 = 0 ;
25816 wxColour result;
25817 PyObject * obj0 = 0 ;
25818 PyObject * obj1 = 0 ;
25819 char *kwnames[] = {
25820 (char *) "self",(char *) "item", NULL
25821 };
25822
25823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25826 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25827 SWIG_POINTER_EXCEPTION | 0)) == -1)
25828 SWIG_fail;
25829 if (arg2 == NULL) {
25830 PyErr_SetString(PyExc_TypeError,"null reference");
25831 SWIG_fail;
25832 }
25833 {
25834 PyThreadState* __tstate = wxPyBeginAllowThreads();
25835 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25836
25837 wxPyEndAllowThreads(__tstate);
25838 if (PyErr_Occurred()) SWIG_fail;
25839 }
25840 {
25841 wxColour * resultptr;
25842 resultptr = new wxColour((wxColour &) result);
25843 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25844 }
25845 return resultobj;
25846 fail:
25847 return NULL;
25848 }
25849
25850
25851 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
25852 PyObject *resultobj;
25853 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25854 wxTreeItemId *arg2 = 0 ;
25855 wxFont result;
25856 PyObject * obj0 = 0 ;
25857 PyObject * obj1 = 0 ;
25858 char *kwnames[] = {
25859 (char *) "self",(char *) "item", NULL
25860 };
25861
25862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
25863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25865 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25866 SWIG_POINTER_EXCEPTION | 0)) == -1)
25867 SWIG_fail;
25868 if (arg2 == NULL) {
25869 PyErr_SetString(PyExc_TypeError,"null reference");
25870 SWIG_fail;
25871 }
25872 {
25873 PyThreadState* __tstate = wxPyBeginAllowThreads();
25874 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
25875
25876 wxPyEndAllowThreads(__tstate);
25877 if (PyErr_Occurred()) SWIG_fail;
25878 }
25879 {
25880 wxFont * resultptr;
25881 resultptr = new wxFont((wxFont &) result);
25882 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
25883 }
25884 return resultobj;
25885 fail:
25886 return NULL;
25887 }
25888
25889
25890 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
25891 PyObject *resultobj;
25892 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25893 wxTreeItemId *arg2 = 0 ;
25894 wxString *arg3 = 0 ;
25895 bool temp3 = False ;
25896 PyObject * obj0 = 0 ;
25897 PyObject * obj1 = 0 ;
25898 PyObject * obj2 = 0 ;
25899 char *kwnames[] = {
25900 (char *) "self",(char *) "item",(char *) "text", NULL
25901 };
25902
25903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
25904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25906 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25907 SWIG_POINTER_EXCEPTION | 0)) == -1)
25908 SWIG_fail;
25909 if (arg2 == NULL) {
25910 PyErr_SetString(PyExc_TypeError,"null reference");
25911 SWIG_fail;
25912 }
25913 {
25914 arg3 = wxString_in_helper(obj2);
25915 if (arg3 == NULL) SWIG_fail;
25916 temp3 = True;
25917 }
25918 {
25919 PyThreadState* __tstate = wxPyBeginAllowThreads();
25920 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
25921
25922 wxPyEndAllowThreads(__tstate);
25923 if (PyErr_Occurred()) SWIG_fail;
25924 }
25925 Py_INCREF(Py_None); resultobj = Py_None;
25926 {
25927 if (temp3)
25928 delete arg3;
25929 }
25930 return resultobj;
25931 fail:
25932 {
25933 if (temp3)
25934 delete arg3;
25935 }
25936 return NULL;
25937 }
25938
25939
25940 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
25941 PyObject *resultobj;
25942 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25943 wxTreeItemId *arg2 = 0 ;
25944 int arg3 ;
25945 int arg4 = (int) wxTreeItemIcon_Normal ;
25946 PyObject * obj0 = 0 ;
25947 PyObject * obj1 = 0 ;
25948 PyObject * obj2 = 0 ;
25949 PyObject * obj3 = 0 ;
25950 char *kwnames[] = {
25951 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
25952 };
25953
25954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25957 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25958 SWIG_POINTER_EXCEPTION | 0)) == -1)
25959 SWIG_fail;
25960 if (arg2 == NULL) {
25961 PyErr_SetString(PyExc_TypeError,"null reference");
25962 SWIG_fail;
25963 }
25964 arg3 = (int)SWIG_As_int(obj2);
25965 if (PyErr_Occurred()) SWIG_fail;
25966 if (obj3) {
25967 arg4 = (int)SWIG_As_int(obj3);
25968 if (PyErr_Occurred()) SWIG_fail;
25969 }
25970 {
25971 PyThreadState* __tstate = wxPyBeginAllowThreads();
25972 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
25973
25974 wxPyEndAllowThreads(__tstate);
25975 if (PyErr_Occurred()) SWIG_fail;
25976 }
25977 Py_INCREF(Py_None); resultobj = Py_None;
25978 return resultobj;
25979 fail:
25980 return NULL;
25981 }
25982
25983
25984 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
25985 PyObject *resultobj;
25986 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25987 wxTreeItemId *arg2 = 0 ;
25988 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
25989 PyObject * obj0 = 0 ;
25990 PyObject * obj1 = 0 ;
25991 PyObject * obj2 = 0 ;
25992 char *kwnames[] = {
25993 (char *) "self",(char *) "item",(char *) "data", NULL
25994 };
25995
25996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25999 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26000 SWIG_POINTER_EXCEPTION | 0)) == -1)
26001 SWIG_fail;
26002 if (arg2 == NULL) {
26003 PyErr_SetString(PyExc_TypeError,"null reference");
26004 SWIG_fail;
26005 }
26006 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
26007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26008 {
26009 PyThreadState* __tstate = wxPyBeginAllowThreads();
26010 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
26011
26012 wxPyEndAllowThreads(__tstate);
26013 if (PyErr_Occurred()) SWIG_fail;
26014 }
26015 Py_INCREF(Py_None); resultobj = Py_None;
26016 return resultobj;
26017 fail:
26018 return NULL;
26019 }
26020
26021
26022 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26023 PyObject *resultobj;
26024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26025 wxTreeItemId *arg2 = 0 ;
26026 PyObject *arg3 = (PyObject *) 0 ;
26027 PyObject * obj0 = 0 ;
26028 PyObject * obj1 = 0 ;
26029 PyObject * obj2 = 0 ;
26030 char *kwnames[] = {
26031 (char *) "self",(char *) "item",(char *) "obj", NULL
26032 };
26033
26034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26038 SWIG_POINTER_EXCEPTION | 0)) == -1)
26039 SWIG_fail;
26040 if (arg2 == NULL) {
26041 PyErr_SetString(PyExc_TypeError,"null reference");
26042 SWIG_fail;
26043 }
26044 arg3 = obj2;
26045 {
26046 PyThreadState* __tstate = wxPyBeginAllowThreads();
26047 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
26048
26049 wxPyEndAllowThreads(__tstate);
26050 if (PyErr_Occurred()) SWIG_fail;
26051 }
26052 Py_INCREF(Py_None); resultobj = Py_None;
26053 return resultobj;
26054 fail:
26055 return NULL;
26056 }
26057
26058
26059 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26060 PyObject *resultobj;
26061 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26062 wxTreeItemId *arg2 = 0 ;
26063 bool arg3 = (bool) True ;
26064 PyObject * obj0 = 0 ;
26065 PyObject * obj1 = 0 ;
26066 PyObject * obj2 = 0 ;
26067 char *kwnames[] = {
26068 (char *) "self",(char *) "item",(char *) "has", NULL
26069 };
26070
26071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
26072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26075 SWIG_POINTER_EXCEPTION | 0)) == -1)
26076 SWIG_fail;
26077 if (arg2 == NULL) {
26078 PyErr_SetString(PyExc_TypeError,"null reference");
26079 SWIG_fail;
26080 }
26081 if (obj2) {
26082 arg3 = (bool)SWIG_As_bool(obj2);
26083 if (PyErr_Occurred()) SWIG_fail;
26084 }
26085 {
26086 PyThreadState* __tstate = wxPyBeginAllowThreads();
26087 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
26088
26089 wxPyEndAllowThreads(__tstate);
26090 if (PyErr_Occurred()) SWIG_fail;
26091 }
26092 Py_INCREF(Py_None); resultobj = Py_None;
26093 return resultobj;
26094 fail:
26095 return NULL;
26096 }
26097
26098
26099 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) {
26100 PyObject *resultobj;
26101 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26102 wxTreeItemId *arg2 = 0 ;
26103 bool arg3 = (bool) True ;
26104 PyObject * obj0 = 0 ;
26105 PyObject * obj1 = 0 ;
26106 PyObject * obj2 = 0 ;
26107 char *kwnames[] = {
26108 (char *) "self",(char *) "item",(char *) "bold", NULL
26109 };
26110
26111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
26112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26114 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26115 SWIG_POINTER_EXCEPTION | 0)) == -1)
26116 SWIG_fail;
26117 if (arg2 == NULL) {
26118 PyErr_SetString(PyExc_TypeError,"null reference");
26119 SWIG_fail;
26120 }
26121 if (obj2) {
26122 arg3 = (bool)SWIG_As_bool(obj2);
26123 if (PyErr_Occurred()) SWIG_fail;
26124 }
26125 {
26126 PyThreadState* __tstate = wxPyBeginAllowThreads();
26127 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
26128
26129 wxPyEndAllowThreads(__tstate);
26130 if (PyErr_Occurred()) SWIG_fail;
26131 }
26132 Py_INCREF(Py_None); resultobj = Py_None;
26133 return resultobj;
26134 fail:
26135 return NULL;
26136 }
26137
26138
26139 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26140 PyObject *resultobj;
26141 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26142 wxTreeItemId *arg2 = 0 ;
26143 wxColour *arg3 = 0 ;
26144 wxColour temp3 ;
26145 PyObject * obj0 = 0 ;
26146 PyObject * obj1 = 0 ;
26147 PyObject * obj2 = 0 ;
26148 char *kwnames[] = {
26149 (char *) "self",(char *) "item",(char *) "col", NULL
26150 };
26151
26152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26155 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26156 SWIG_POINTER_EXCEPTION | 0)) == -1)
26157 SWIG_fail;
26158 if (arg2 == NULL) {
26159 PyErr_SetString(PyExc_TypeError,"null reference");
26160 SWIG_fail;
26161 }
26162 {
26163 arg3 = &temp3;
26164 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26165 }
26166 {
26167 PyThreadState* __tstate = wxPyBeginAllowThreads();
26168 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26169
26170 wxPyEndAllowThreads(__tstate);
26171 if (PyErr_Occurred()) SWIG_fail;
26172 }
26173 Py_INCREF(Py_None); resultobj = Py_None;
26174 return resultobj;
26175 fail:
26176 return NULL;
26177 }
26178
26179
26180 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26181 PyObject *resultobj;
26182 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26183 wxTreeItemId *arg2 = 0 ;
26184 wxColour *arg3 = 0 ;
26185 wxColour temp3 ;
26186 PyObject * obj0 = 0 ;
26187 PyObject * obj1 = 0 ;
26188 PyObject * obj2 = 0 ;
26189 char *kwnames[] = {
26190 (char *) "self",(char *) "item",(char *) "col", NULL
26191 };
26192
26193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26196 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26197 SWIG_POINTER_EXCEPTION | 0)) == -1)
26198 SWIG_fail;
26199 if (arg2 == NULL) {
26200 PyErr_SetString(PyExc_TypeError,"null reference");
26201 SWIG_fail;
26202 }
26203 {
26204 arg3 = &temp3;
26205 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26206 }
26207 {
26208 PyThreadState* __tstate = wxPyBeginAllowThreads();
26209 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26210
26211 wxPyEndAllowThreads(__tstate);
26212 if (PyErr_Occurred()) SWIG_fail;
26213 }
26214 Py_INCREF(Py_None); resultobj = Py_None;
26215 return resultobj;
26216 fail:
26217 return NULL;
26218 }
26219
26220
26221 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26222 PyObject *resultobj;
26223 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26224 wxTreeItemId *arg2 = 0 ;
26225 wxFont *arg3 = 0 ;
26226 PyObject * obj0 = 0 ;
26227 PyObject * obj1 = 0 ;
26228 PyObject * obj2 = 0 ;
26229 char *kwnames[] = {
26230 (char *) "self",(char *) "item",(char *) "font", NULL
26231 };
26232
26233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26236 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26237 SWIG_POINTER_EXCEPTION | 0)) == -1)
26238 SWIG_fail;
26239 if (arg2 == NULL) {
26240 PyErr_SetString(PyExc_TypeError,"null reference");
26241 SWIG_fail;
26242 }
26243 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26244 SWIG_POINTER_EXCEPTION | 0)) == -1)
26245 SWIG_fail;
26246 if (arg3 == NULL) {
26247 PyErr_SetString(PyExc_TypeError,"null reference");
26248 SWIG_fail;
26249 }
26250 {
26251 PyThreadState* __tstate = wxPyBeginAllowThreads();
26252 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26253
26254 wxPyEndAllowThreads(__tstate);
26255 if (PyErr_Occurred()) SWIG_fail;
26256 }
26257 Py_INCREF(Py_None); resultobj = Py_None;
26258 return resultobj;
26259 fail:
26260 return NULL;
26261 }
26262
26263
26264 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26265 PyObject *resultobj;
26266 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26267 wxTreeItemId *arg2 = 0 ;
26268 bool result;
26269 PyObject * obj0 = 0 ;
26270 PyObject * obj1 = 0 ;
26271 char *kwnames[] = {
26272 (char *) "self",(char *) "item", NULL
26273 };
26274
26275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26278 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26279 SWIG_POINTER_EXCEPTION | 0)) == -1)
26280 SWIG_fail;
26281 if (arg2 == NULL) {
26282 PyErr_SetString(PyExc_TypeError,"null reference");
26283 SWIG_fail;
26284 }
26285 {
26286 PyThreadState* __tstate = wxPyBeginAllowThreads();
26287 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26288
26289 wxPyEndAllowThreads(__tstate);
26290 if (PyErr_Occurred()) SWIG_fail;
26291 }
26292 {
26293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26294 }
26295 return resultobj;
26296 fail:
26297 return NULL;
26298 }
26299
26300
26301 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26302 PyObject *resultobj;
26303 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26304 wxTreeItemId *arg2 = 0 ;
26305 bool result;
26306 PyObject * obj0 = 0 ;
26307 PyObject * obj1 = 0 ;
26308 char *kwnames[] = {
26309 (char *) "self",(char *) "item", NULL
26310 };
26311
26312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26315 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26316 SWIG_POINTER_EXCEPTION | 0)) == -1)
26317 SWIG_fail;
26318 if (arg2 == NULL) {
26319 PyErr_SetString(PyExc_TypeError,"null reference");
26320 SWIG_fail;
26321 }
26322 {
26323 PyThreadState* __tstate = wxPyBeginAllowThreads();
26324 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26325
26326 wxPyEndAllowThreads(__tstate);
26327 if (PyErr_Occurred()) SWIG_fail;
26328 }
26329 {
26330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26331 }
26332 return resultobj;
26333 fail:
26334 return NULL;
26335 }
26336
26337
26338 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) {
26339 PyObject *resultobj;
26340 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26341 wxTreeItemId *arg2 = 0 ;
26342 bool result;
26343 PyObject * obj0 = 0 ;
26344 PyObject * obj1 = 0 ;
26345 char *kwnames[] = {
26346 (char *) "self",(char *) "item", NULL
26347 };
26348
26349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26353 SWIG_POINTER_EXCEPTION | 0)) == -1)
26354 SWIG_fail;
26355 if (arg2 == NULL) {
26356 PyErr_SetString(PyExc_TypeError,"null reference");
26357 SWIG_fail;
26358 }
26359 {
26360 PyThreadState* __tstate = wxPyBeginAllowThreads();
26361 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26362
26363 wxPyEndAllowThreads(__tstate);
26364 if (PyErr_Occurred()) SWIG_fail;
26365 }
26366 {
26367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26368 }
26369 return resultobj;
26370 fail:
26371 return NULL;
26372 }
26373
26374
26375 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
26376 PyObject *resultobj;
26377 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26378 wxTreeItemId *arg2 = 0 ;
26379 bool result;
26380 PyObject * obj0 = 0 ;
26381 PyObject * obj1 = 0 ;
26382 char *kwnames[] = {
26383 (char *) "self",(char *) "item", NULL
26384 };
26385
26386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
26398 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26399
26400 wxPyEndAllowThreads(__tstate);
26401 if (PyErr_Occurred()) SWIG_fail;
26402 }
26403 {
26404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26405 }
26406 return resultobj;
26407 fail:
26408 return NULL;
26409 }
26410
26411
26412 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) {
26413 PyObject *resultobj;
26414 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26415 wxTreeItemId *arg2 = 0 ;
26416 bool result;
26417 PyObject * obj0 = 0 ;
26418 PyObject * obj1 = 0 ;
26419 char *kwnames[] = {
26420 (char *) "self",(char *) "item", NULL
26421 };
26422
26423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26426 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26427 SWIG_POINTER_EXCEPTION | 0)) == -1)
26428 SWIG_fail;
26429 if (arg2 == NULL) {
26430 PyErr_SetString(PyExc_TypeError,"null reference");
26431 SWIG_fail;
26432 }
26433 {
26434 PyThreadState* __tstate = wxPyBeginAllowThreads();
26435 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26436
26437 wxPyEndAllowThreads(__tstate);
26438 if (PyErr_Occurred()) SWIG_fail;
26439 }
26440 {
26441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26442 }
26443 return resultobj;
26444 fail:
26445 return NULL;
26446 }
26447
26448
26449 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) {
26450 PyObject *resultobj;
26451 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26452 wxTreeItemId *arg2 = 0 ;
26453 bool arg3 = (bool) True ;
26454 size_t result;
26455 PyObject * obj0 = 0 ;
26456 PyObject * obj1 = 0 ;
26457 PyObject * obj2 = 0 ;
26458 char *kwnames[] = {
26459 (char *) "self",(char *) "item",(char *) "recursively", NULL
26460 };
26461
26462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26466 SWIG_POINTER_EXCEPTION | 0)) == -1)
26467 SWIG_fail;
26468 if (arg2 == NULL) {
26469 PyErr_SetString(PyExc_TypeError,"null reference");
26470 SWIG_fail;
26471 }
26472 if (obj2) {
26473 arg3 = (bool)SWIG_As_bool(obj2);
26474 if (PyErr_Occurred()) SWIG_fail;
26475 }
26476 {
26477 PyThreadState* __tstate = wxPyBeginAllowThreads();
26478 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26479
26480 wxPyEndAllowThreads(__tstate);
26481 if (PyErr_Occurred()) SWIG_fail;
26482 }
26483 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
26484 return resultobj;
26485 fail:
26486 return NULL;
26487 }
26488
26489
26490 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) {
26491 PyObject *resultobj;
26492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26493 wxTreeItemId result;
26494 PyObject * obj0 = 0 ;
26495 char *kwnames[] = {
26496 (char *) "self", NULL
26497 };
26498
26499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26502 {
26503 PyThreadState* __tstate = wxPyBeginAllowThreads();
26504 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26505
26506 wxPyEndAllowThreads(__tstate);
26507 if (PyErr_Occurred()) SWIG_fail;
26508 }
26509 {
26510 wxTreeItemId * resultptr;
26511 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26512 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26513 }
26514 return resultobj;
26515 fail:
26516 return NULL;
26517 }
26518
26519
26520 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
26521 PyObject *resultobj;
26522 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26523 wxTreeItemId result;
26524 PyObject * obj0 = 0 ;
26525 char *kwnames[] = {
26526 (char *) "self", NULL
26527 };
26528
26529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26532 {
26533 PyThreadState* __tstate = wxPyBeginAllowThreads();
26534 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26535
26536 wxPyEndAllowThreads(__tstate);
26537 if (PyErr_Occurred()) SWIG_fail;
26538 }
26539 {
26540 wxTreeItemId * resultptr;
26541 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26542 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26543 }
26544 return resultobj;
26545 fail:
26546 return NULL;
26547 }
26548
26549
26550 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
26551 PyObject *resultobj;
26552 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26553 PyObject *result;
26554 PyObject * obj0 = 0 ;
26555 char *kwnames[] = {
26556 (char *) "self", NULL
26557 };
26558
26559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26562 {
26563 PyThreadState* __tstate = wxPyBeginAllowThreads();
26564 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26565
26566 wxPyEndAllowThreads(__tstate);
26567 if (PyErr_Occurred()) SWIG_fail;
26568 }
26569 resultobj = result;
26570 return resultobj;
26571 fail:
26572 return NULL;
26573 }
26574
26575
26576 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) {
26577 PyObject *resultobj;
26578 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26579 wxTreeItemId *arg2 = 0 ;
26580 wxTreeItemId result;
26581 PyObject * obj0 = 0 ;
26582 PyObject * obj1 = 0 ;
26583 char *kwnames[] = {
26584 (char *) "self",(char *) "item", NULL
26585 };
26586
26587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26590 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26591 SWIG_POINTER_EXCEPTION | 0)) == -1)
26592 SWIG_fail;
26593 if (arg2 == NULL) {
26594 PyErr_SetString(PyExc_TypeError,"null reference");
26595 SWIG_fail;
26596 }
26597 {
26598 PyThreadState* __tstate = wxPyBeginAllowThreads();
26599 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26600
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 {
26605 wxTreeItemId * resultptr;
26606 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26607 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26608 }
26609 return resultobj;
26610 fail:
26611 return NULL;
26612 }
26613
26614
26615 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) {
26616 PyObject *resultobj;
26617 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26618 wxTreeItemId *arg2 = 0 ;
26619 PyObject *result;
26620 PyObject * obj0 = 0 ;
26621 PyObject * obj1 = 0 ;
26622 char *kwnames[] = {
26623 (char *) "self",(char *) "item", NULL
26624 };
26625
26626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26630 SWIG_POINTER_EXCEPTION | 0)) == -1)
26631 SWIG_fail;
26632 if (arg2 == NULL) {
26633 PyErr_SetString(PyExc_TypeError,"null reference");
26634 SWIG_fail;
26635 }
26636 {
26637 PyThreadState* __tstate = wxPyBeginAllowThreads();
26638 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26639
26640 wxPyEndAllowThreads(__tstate);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 }
26643 resultobj = result;
26644 return resultobj;
26645 fail:
26646 return NULL;
26647 }
26648
26649
26650 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) {
26651 PyObject *resultobj;
26652 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26653 wxTreeItemId *arg2 = 0 ;
26654 void *arg3 = (void *) 0 ;
26655 PyObject *result;
26656 PyObject * obj0 = 0 ;
26657 PyObject * obj1 = 0 ;
26658 PyObject * obj2 = 0 ;
26659 char *kwnames[] = {
26660 (char *) "self",(char *) "item",(char *) "cookie", NULL
26661 };
26662
26663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26666 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26667 SWIG_POINTER_EXCEPTION | 0)) == -1)
26668 SWIG_fail;
26669 if (arg2 == NULL) {
26670 PyErr_SetString(PyExc_TypeError,"null reference");
26671 SWIG_fail;
26672 }
26673 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26674 {
26675 PyThreadState* __tstate = wxPyBeginAllowThreads();
26676 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26677
26678 wxPyEndAllowThreads(__tstate);
26679 if (PyErr_Occurred()) SWIG_fail;
26680 }
26681 resultobj = result;
26682 return resultobj;
26683 fail:
26684 return NULL;
26685 }
26686
26687
26688 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) {
26689 PyObject *resultobj;
26690 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26691 wxTreeItemId *arg2 = 0 ;
26692 wxTreeItemId result;
26693 PyObject * obj0 = 0 ;
26694 PyObject * obj1 = 0 ;
26695 char *kwnames[] = {
26696 (char *) "self",(char *) "item", NULL
26697 };
26698
26699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
26700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26702 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26703 SWIG_POINTER_EXCEPTION | 0)) == -1)
26704 SWIG_fail;
26705 if (arg2 == NULL) {
26706 PyErr_SetString(PyExc_TypeError,"null reference");
26707 SWIG_fail;
26708 }
26709 {
26710 PyThreadState* __tstate = wxPyBeginAllowThreads();
26711 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26712
26713 wxPyEndAllowThreads(__tstate);
26714 if (PyErr_Occurred()) SWIG_fail;
26715 }
26716 {
26717 wxTreeItemId * resultptr;
26718 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26719 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26720 }
26721 return resultobj;
26722 fail:
26723 return NULL;
26724 }
26725
26726
26727 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) {
26728 PyObject *resultobj;
26729 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26730 wxTreeItemId *arg2 = 0 ;
26731 wxTreeItemId result;
26732 PyObject * obj0 = 0 ;
26733 PyObject * obj1 = 0 ;
26734 char *kwnames[] = {
26735 (char *) "self",(char *) "item", NULL
26736 };
26737
26738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26742 SWIG_POINTER_EXCEPTION | 0)) == -1)
26743 SWIG_fail;
26744 if (arg2 == NULL) {
26745 PyErr_SetString(PyExc_TypeError,"null reference");
26746 SWIG_fail;
26747 }
26748 {
26749 PyThreadState* __tstate = wxPyBeginAllowThreads();
26750 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26751
26752 wxPyEndAllowThreads(__tstate);
26753 if (PyErr_Occurred()) SWIG_fail;
26754 }
26755 {
26756 wxTreeItemId * resultptr;
26757 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26758 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26759 }
26760 return resultobj;
26761 fail:
26762 return NULL;
26763 }
26764
26765
26766 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) {
26767 PyObject *resultobj;
26768 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26769 wxTreeItemId *arg2 = 0 ;
26770 wxTreeItemId result;
26771 PyObject * obj0 = 0 ;
26772 PyObject * obj1 = 0 ;
26773 char *kwnames[] = {
26774 (char *) "self",(char *) "item", NULL
26775 };
26776
26777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26780 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26781 SWIG_POINTER_EXCEPTION | 0)) == -1)
26782 SWIG_fail;
26783 if (arg2 == NULL) {
26784 PyErr_SetString(PyExc_TypeError,"null reference");
26785 SWIG_fail;
26786 }
26787 {
26788 PyThreadState* __tstate = wxPyBeginAllowThreads();
26789 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26790
26791 wxPyEndAllowThreads(__tstate);
26792 if (PyErr_Occurred()) SWIG_fail;
26793 }
26794 {
26795 wxTreeItemId * resultptr;
26796 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26797 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26798 }
26799 return resultobj;
26800 fail:
26801 return NULL;
26802 }
26803
26804
26805 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) {
26806 PyObject *resultobj;
26807 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26808 wxTreeItemId result;
26809 PyObject * obj0 = 0 ;
26810 char *kwnames[] = {
26811 (char *) "self", NULL
26812 };
26813
26814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
26815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26817 {
26818 PyThreadState* __tstate = wxPyBeginAllowThreads();
26819 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
26820
26821 wxPyEndAllowThreads(__tstate);
26822 if (PyErr_Occurred()) SWIG_fail;
26823 }
26824 {
26825 wxTreeItemId * resultptr;
26826 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26827 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26828 }
26829 return resultobj;
26830 fail:
26831 return NULL;
26832 }
26833
26834
26835 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26836 PyObject *resultobj;
26837 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26838 wxTreeItemId *arg2 = 0 ;
26839 wxTreeItemId result;
26840 PyObject * obj0 = 0 ;
26841 PyObject * obj1 = 0 ;
26842 char *kwnames[] = {
26843 (char *) "self",(char *) "item", NULL
26844 };
26845
26846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
26847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26849 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26850 SWIG_POINTER_EXCEPTION | 0)) == -1)
26851 SWIG_fail;
26852 if (arg2 == NULL) {
26853 PyErr_SetString(PyExc_TypeError,"null reference");
26854 SWIG_fail;
26855 }
26856 {
26857 PyThreadState* __tstate = wxPyBeginAllowThreads();
26858 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
26859
26860 wxPyEndAllowThreads(__tstate);
26861 if (PyErr_Occurred()) SWIG_fail;
26862 }
26863 {
26864 wxTreeItemId * resultptr;
26865 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26866 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26867 }
26868 return resultobj;
26869 fail:
26870 return NULL;
26871 }
26872
26873
26874 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26875 PyObject *resultobj;
26876 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26877 wxTreeItemId *arg2 = 0 ;
26878 wxTreeItemId result;
26879 PyObject * obj0 = 0 ;
26880 PyObject * obj1 = 0 ;
26881 char *kwnames[] = {
26882 (char *) "self",(char *) "item", NULL
26883 };
26884
26885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
26886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26888 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26889 SWIG_POINTER_EXCEPTION | 0)) == -1)
26890 SWIG_fail;
26891 if (arg2 == NULL) {
26892 PyErr_SetString(PyExc_TypeError,"null reference");
26893 SWIG_fail;
26894 }
26895 {
26896 PyThreadState* __tstate = wxPyBeginAllowThreads();
26897 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
26898
26899 wxPyEndAllowThreads(__tstate);
26900 if (PyErr_Occurred()) SWIG_fail;
26901 }
26902 {
26903 wxTreeItemId * resultptr;
26904 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26905 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26906 }
26907 return resultobj;
26908 fail:
26909 return NULL;
26910 }
26911
26912
26913 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) {
26914 PyObject *resultobj;
26915 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26916 wxString *arg2 = 0 ;
26917 int arg3 = (int) -1 ;
26918 int arg4 = (int) -1 ;
26919 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
26920 wxTreeItemId result;
26921 bool temp2 = False ;
26922 PyObject * obj0 = 0 ;
26923 PyObject * obj1 = 0 ;
26924 PyObject * obj2 = 0 ;
26925 PyObject * obj3 = 0 ;
26926 PyObject * obj4 = 0 ;
26927 char *kwnames[] = {
26928 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26929 };
26930
26931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26934 {
26935 arg2 = wxString_in_helper(obj1);
26936 if (arg2 == NULL) SWIG_fail;
26937 temp2 = True;
26938 }
26939 if (obj2) {
26940 arg3 = (int)SWIG_As_int(obj2);
26941 if (PyErr_Occurred()) SWIG_fail;
26942 }
26943 if (obj3) {
26944 arg4 = (int)SWIG_As_int(obj3);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 }
26947 if (obj4) {
26948 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
26949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26950 }
26951 {
26952 PyThreadState* __tstate = wxPyBeginAllowThreads();
26953 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
26954
26955 wxPyEndAllowThreads(__tstate);
26956 if (PyErr_Occurred()) SWIG_fail;
26957 }
26958 {
26959 wxTreeItemId * resultptr;
26960 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26961 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26962 }
26963 {
26964 if (temp2)
26965 delete arg2;
26966 }
26967 return resultobj;
26968 fail:
26969 {
26970 if (temp2)
26971 delete arg2;
26972 }
26973 return NULL;
26974 }
26975
26976
26977 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
26978 PyObject *resultobj;
26979 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26980 wxTreeItemId *arg2 = 0 ;
26981 wxString *arg3 = 0 ;
26982 int arg4 = (int) -1 ;
26983 int arg5 = (int) -1 ;
26984 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26985 wxTreeItemId result;
26986 bool temp3 = False ;
26987 PyObject * obj0 = 0 ;
26988 PyObject * obj1 = 0 ;
26989 PyObject * obj2 = 0 ;
26990 PyObject * obj3 = 0 ;
26991 PyObject * obj4 = 0 ;
26992 PyObject * obj5 = 0 ;
26993 char *kwnames[] = {
26994 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26995 };
26996
26997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27000 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27001 SWIG_POINTER_EXCEPTION | 0)) == -1)
27002 SWIG_fail;
27003 if (arg2 == NULL) {
27004 PyErr_SetString(PyExc_TypeError,"null reference");
27005 SWIG_fail;
27006 }
27007 {
27008 arg3 = wxString_in_helper(obj2);
27009 if (arg3 == NULL) SWIG_fail;
27010 temp3 = True;
27011 }
27012 if (obj3) {
27013 arg4 = (int)SWIG_As_int(obj3);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 }
27016 if (obj4) {
27017 arg5 = (int)SWIG_As_int(obj4);
27018 if (PyErr_Occurred()) SWIG_fail;
27019 }
27020 if (obj5) {
27021 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27023 }
27024 {
27025 PyThreadState* __tstate = wxPyBeginAllowThreads();
27026 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27027
27028 wxPyEndAllowThreads(__tstate);
27029 if (PyErr_Occurred()) SWIG_fail;
27030 }
27031 {
27032 wxTreeItemId * resultptr;
27033 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27034 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27035 }
27036 {
27037 if (temp3)
27038 delete arg3;
27039 }
27040 return resultobj;
27041 fail:
27042 {
27043 if (temp3)
27044 delete arg3;
27045 }
27046 return NULL;
27047 }
27048
27049
27050 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
27051 PyObject *resultobj;
27052 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27053 wxTreeItemId *arg2 = 0 ;
27054 wxTreeItemId *arg3 = 0 ;
27055 wxString *arg4 = 0 ;
27056 int arg5 = (int) -1 ;
27057 int arg6 = (int) -1 ;
27058 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27059 wxTreeItemId result;
27060 bool temp4 = False ;
27061 PyObject * obj0 = 0 ;
27062 PyObject * obj1 = 0 ;
27063 PyObject * obj2 = 0 ;
27064 PyObject * obj3 = 0 ;
27065 PyObject * obj4 = 0 ;
27066 PyObject * obj5 = 0 ;
27067 PyObject * obj6 = 0 ;
27068 char *kwnames[] = {
27069 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27070 };
27071
27072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27075 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27076 SWIG_POINTER_EXCEPTION | 0)) == -1)
27077 SWIG_fail;
27078 if (arg2 == NULL) {
27079 PyErr_SetString(PyExc_TypeError,"null reference");
27080 SWIG_fail;
27081 }
27082 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
27083 SWIG_POINTER_EXCEPTION | 0)) == -1)
27084 SWIG_fail;
27085 if (arg3 == NULL) {
27086 PyErr_SetString(PyExc_TypeError,"null reference");
27087 SWIG_fail;
27088 }
27089 {
27090 arg4 = wxString_in_helper(obj3);
27091 if (arg4 == NULL) SWIG_fail;
27092 temp4 = True;
27093 }
27094 if (obj4) {
27095 arg5 = (int)SWIG_As_int(obj4);
27096 if (PyErr_Occurred()) SWIG_fail;
27097 }
27098 if (obj5) {
27099 arg6 = (int)SWIG_As_int(obj5);
27100 if (PyErr_Occurred()) SWIG_fail;
27101 }
27102 if (obj6) {
27103 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27105 }
27106 {
27107 PyThreadState* __tstate = wxPyBeginAllowThreads();
27108 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27109
27110 wxPyEndAllowThreads(__tstate);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 {
27114 wxTreeItemId * resultptr;
27115 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27116 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27117 }
27118 {
27119 if (temp4)
27120 delete arg4;
27121 }
27122 return resultobj;
27123 fail:
27124 {
27125 if (temp4)
27126 delete arg4;
27127 }
27128 return NULL;
27129 }
27130
27131
27132 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) {
27133 PyObject *resultobj;
27134 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27135 wxTreeItemId *arg2 = 0 ;
27136 size_t arg3 ;
27137 wxString *arg4 = 0 ;
27138 int arg5 = (int) -1 ;
27139 int arg6 = (int) -1 ;
27140 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27141 wxTreeItemId result;
27142 bool temp4 = False ;
27143 PyObject * obj0 = 0 ;
27144 PyObject * obj1 = 0 ;
27145 PyObject * obj2 = 0 ;
27146 PyObject * obj3 = 0 ;
27147 PyObject * obj4 = 0 ;
27148 PyObject * obj5 = 0 ;
27149 PyObject * obj6 = 0 ;
27150 char *kwnames[] = {
27151 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27152 };
27153
27154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27157 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27158 SWIG_POINTER_EXCEPTION | 0)) == -1)
27159 SWIG_fail;
27160 if (arg2 == NULL) {
27161 PyErr_SetString(PyExc_TypeError,"null reference");
27162 SWIG_fail;
27163 }
27164 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
27165 if (PyErr_Occurred()) SWIG_fail;
27166 {
27167 arg4 = wxString_in_helper(obj3);
27168 if (arg4 == NULL) SWIG_fail;
27169 temp4 = True;
27170 }
27171 if (obj4) {
27172 arg5 = (int)SWIG_As_int(obj4);
27173 if (PyErr_Occurred()) SWIG_fail;
27174 }
27175 if (obj5) {
27176 arg6 = (int)SWIG_As_int(obj5);
27177 if (PyErr_Occurred()) SWIG_fail;
27178 }
27179 if (obj6) {
27180 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27182 }
27183 {
27184 PyThreadState* __tstate = wxPyBeginAllowThreads();
27185 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27186
27187 wxPyEndAllowThreads(__tstate);
27188 if (PyErr_Occurred()) SWIG_fail;
27189 }
27190 {
27191 wxTreeItemId * resultptr;
27192 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27193 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27194 }
27195 {
27196 if (temp4)
27197 delete arg4;
27198 }
27199 return resultobj;
27200 fail:
27201 {
27202 if (temp4)
27203 delete arg4;
27204 }
27205 return NULL;
27206 }
27207
27208
27209 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
27210 PyObject *resultobj;
27211 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27212 wxTreeItemId *arg2 = 0 ;
27213 wxString *arg3 = 0 ;
27214 int arg4 = (int) -1 ;
27215 int arg5 = (int) -1 ;
27216 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27217 wxTreeItemId result;
27218 bool temp3 = False ;
27219 PyObject * obj0 = 0 ;
27220 PyObject * obj1 = 0 ;
27221 PyObject * obj2 = 0 ;
27222 PyObject * obj3 = 0 ;
27223 PyObject * obj4 = 0 ;
27224 PyObject * obj5 = 0 ;
27225 char *kwnames[] = {
27226 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27227 };
27228
27229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27233 SWIG_POINTER_EXCEPTION | 0)) == -1)
27234 SWIG_fail;
27235 if (arg2 == NULL) {
27236 PyErr_SetString(PyExc_TypeError,"null reference");
27237 SWIG_fail;
27238 }
27239 {
27240 arg3 = wxString_in_helper(obj2);
27241 if (arg3 == NULL) SWIG_fail;
27242 temp3 = True;
27243 }
27244 if (obj3) {
27245 arg4 = (int)SWIG_As_int(obj3);
27246 if (PyErr_Occurred()) SWIG_fail;
27247 }
27248 if (obj4) {
27249 arg5 = (int)SWIG_As_int(obj4);
27250 if (PyErr_Occurred()) SWIG_fail;
27251 }
27252 if (obj5) {
27253 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27255 }
27256 {
27257 PyThreadState* __tstate = wxPyBeginAllowThreads();
27258 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27259
27260 wxPyEndAllowThreads(__tstate);
27261 if (PyErr_Occurred()) SWIG_fail;
27262 }
27263 {
27264 wxTreeItemId * resultptr;
27265 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27266 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27267 }
27268 {
27269 if (temp3)
27270 delete arg3;
27271 }
27272 return resultobj;
27273 fail:
27274 {
27275 if (temp3)
27276 delete arg3;
27277 }
27278 return NULL;
27279 }
27280
27281
27282 static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
27283 PyObject *resultobj;
27284 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27285 wxTreeItemId *arg2 = 0 ;
27286 PyObject * obj0 = 0 ;
27287 PyObject * obj1 = 0 ;
27288 char *kwnames[] = {
27289 (char *) "self",(char *) "item", NULL
27290 };
27291
27292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27295 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27296 SWIG_POINTER_EXCEPTION | 0)) == -1)
27297 SWIG_fail;
27298 if (arg2 == NULL) {
27299 PyErr_SetString(PyExc_TypeError,"null reference");
27300 SWIG_fail;
27301 }
27302 {
27303 PyThreadState* __tstate = wxPyBeginAllowThreads();
27304 (arg1)->Delete((wxTreeItemId const &)*arg2);
27305
27306 wxPyEndAllowThreads(__tstate);
27307 if (PyErr_Occurred()) SWIG_fail;
27308 }
27309 Py_INCREF(Py_None); resultobj = Py_None;
27310 return resultobj;
27311 fail:
27312 return NULL;
27313 }
27314
27315
27316 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27317 PyObject *resultobj;
27318 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27319 wxTreeItemId *arg2 = 0 ;
27320 PyObject * obj0 = 0 ;
27321 PyObject * obj1 = 0 ;
27322 char *kwnames[] = {
27323 (char *) "self",(char *) "item", NULL
27324 };
27325
27326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27330 SWIG_POINTER_EXCEPTION | 0)) == -1)
27331 SWIG_fail;
27332 if (arg2 == NULL) {
27333 PyErr_SetString(PyExc_TypeError,"null reference");
27334 SWIG_fail;
27335 }
27336 {
27337 PyThreadState* __tstate = wxPyBeginAllowThreads();
27338 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27339
27340 wxPyEndAllowThreads(__tstate);
27341 if (PyErr_Occurred()) SWIG_fail;
27342 }
27343 Py_INCREF(Py_None); resultobj = Py_None;
27344 return resultobj;
27345 fail:
27346 return NULL;
27347 }
27348
27349
27350 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
27351 PyObject *resultobj;
27352 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27353 PyObject * obj0 = 0 ;
27354 char *kwnames[] = {
27355 (char *) "self", NULL
27356 };
27357
27358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27361 {
27362 PyThreadState* __tstate = wxPyBeginAllowThreads();
27363 (arg1)->DeleteAllItems();
27364
27365 wxPyEndAllowThreads(__tstate);
27366 if (PyErr_Occurred()) SWIG_fail;
27367 }
27368 Py_INCREF(Py_None); resultobj = Py_None;
27369 return resultobj;
27370 fail:
27371 return NULL;
27372 }
27373
27374
27375 static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) {
27376 PyObject *resultobj;
27377 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27378 wxTreeItemId *arg2 = 0 ;
27379 PyObject * obj0 = 0 ;
27380 PyObject * obj1 = 0 ;
27381 char *kwnames[] = {
27382 (char *) "self",(char *) "item", NULL
27383 };
27384
27385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27388 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27389 SWIG_POINTER_EXCEPTION | 0)) == -1)
27390 SWIG_fail;
27391 if (arg2 == NULL) {
27392 PyErr_SetString(PyExc_TypeError,"null reference");
27393 SWIG_fail;
27394 }
27395 {
27396 PyThreadState* __tstate = wxPyBeginAllowThreads();
27397 (arg1)->Expand((wxTreeItemId const &)*arg2);
27398
27399 wxPyEndAllowThreads(__tstate);
27400 if (PyErr_Occurred()) SWIG_fail;
27401 }
27402 Py_INCREF(Py_None); resultobj = Py_None;
27403 return resultobj;
27404 fail:
27405 return NULL;
27406 }
27407
27408
27409 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) {
27410 PyObject *resultobj;
27411 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27412 wxTreeItemId *arg2 = 0 ;
27413 PyObject * obj0 = 0 ;
27414 PyObject * obj1 = 0 ;
27415 char *kwnames[] = {
27416 (char *) "self",(char *) "item", NULL
27417 };
27418
27419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27422 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27423 SWIG_POINTER_EXCEPTION | 0)) == -1)
27424 SWIG_fail;
27425 if (arg2 == NULL) {
27426 PyErr_SetString(PyExc_TypeError,"null reference");
27427 SWIG_fail;
27428 }
27429 {
27430 PyThreadState* __tstate = wxPyBeginAllowThreads();
27431 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27432
27433 wxPyEndAllowThreads(__tstate);
27434 if (PyErr_Occurred()) SWIG_fail;
27435 }
27436 Py_INCREF(Py_None); resultobj = Py_None;
27437 return resultobj;
27438 fail:
27439 return NULL;
27440 }
27441
27442
27443 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) {
27444 PyObject *resultobj;
27445 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27446 wxTreeItemId *arg2 = 0 ;
27447 PyObject * obj0 = 0 ;
27448 PyObject * obj1 = 0 ;
27449 char *kwnames[] = {
27450 (char *) "self",(char *) "item", NULL
27451 };
27452
27453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27456 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27457 SWIG_POINTER_EXCEPTION | 0)) == -1)
27458 SWIG_fail;
27459 if (arg2 == NULL) {
27460 PyErr_SetString(PyExc_TypeError,"null reference");
27461 SWIG_fail;
27462 }
27463 {
27464 PyThreadState* __tstate = wxPyBeginAllowThreads();
27465 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27466
27467 wxPyEndAllowThreads(__tstate);
27468 if (PyErr_Occurred()) SWIG_fail;
27469 }
27470 Py_INCREF(Py_None); resultobj = Py_None;
27471 return resultobj;
27472 fail:
27473 return NULL;
27474 }
27475
27476
27477 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
27478 PyObject *resultobj;
27479 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27480 wxTreeItemId *arg2 = 0 ;
27481 PyObject * obj0 = 0 ;
27482 PyObject * obj1 = 0 ;
27483 char *kwnames[] = {
27484 (char *) "self",(char *) "item", NULL
27485 };
27486
27487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27491 SWIG_POINTER_EXCEPTION | 0)) == -1)
27492 SWIG_fail;
27493 if (arg2 == NULL) {
27494 PyErr_SetString(PyExc_TypeError,"null reference");
27495 SWIG_fail;
27496 }
27497 {
27498 PyThreadState* __tstate = wxPyBeginAllowThreads();
27499 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27500
27501 wxPyEndAllowThreads(__tstate);
27502 if (PyErr_Occurred()) SWIG_fail;
27503 }
27504 Py_INCREF(Py_None); resultobj = Py_None;
27505 return resultobj;
27506 fail:
27507 return NULL;
27508 }
27509
27510
27511 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) {
27512 PyObject *resultobj;
27513 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27514 PyObject * obj0 = 0 ;
27515 char *kwnames[] = {
27516 (char *) "self", NULL
27517 };
27518
27519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27522 {
27523 PyThreadState* __tstate = wxPyBeginAllowThreads();
27524 (arg1)->Unselect();
27525
27526 wxPyEndAllowThreads(__tstate);
27527 if (PyErr_Occurred()) SWIG_fail;
27528 }
27529 Py_INCREF(Py_None); resultobj = Py_None;
27530 return resultobj;
27531 fail:
27532 return NULL;
27533 }
27534
27535
27536 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) {
27537 PyObject *resultobj;
27538 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27539 wxTreeItemId *arg2 = 0 ;
27540 PyObject * obj0 = 0 ;
27541 PyObject * obj1 = 0 ;
27542 char *kwnames[] = {
27543 (char *) "self",(char *) "item", NULL
27544 };
27545
27546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27549 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27550 SWIG_POINTER_EXCEPTION | 0)) == -1)
27551 SWIG_fail;
27552 if (arg2 == NULL) {
27553 PyErr_SetString(PyExc_TypeError,"null reference");
27554 SWIG_fail;
27555 }
27556 {
27557 PyThreadState* __tstate = wxPyBeginAllowThreads();
27558 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27559
27560 wxPyEndAllowThreads(__tstate);
27561 if (PyErr_Occurred()) SWIG_fail;
27562 }
27563 Py_INCREF(Py_None); resultobj = Py_None;
27564 return resultobj;
27565 fail:
27566 return NULL;
27567 }
27568
27569
27570 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
27571 PyObject *resultobj;
27572 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27573 PyObject * obj0 = 0 ;
27574 char *kwnames[] = {
27575 (char *) "self", NULL
27576 };
27577
27578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27581 {
27582 PyThreadState* __tstate = wxPyBeginAllowThreads();
27583 (arg1)->UnselectAll();
27584
27585 wxPyEndAllowThreads(__tstate);
27586 if (PyErr_Occurred()) SWIG_fail;
27587 }
27588 Py_INCREF(Py_None); resultobj = Py_None;
27589 return resultobj;
27590 fail:
27591 return NULL;
27592 }
27593
27594
27595 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) {
27596 PyObject *resultobj;
27597 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27598 wxTreeItemId *arg2 = 0 ;
27599 bool arg3 = (bool) True ;
27600 PyObject * obj0 = 0 ;
27601 PyObject * obj1 = 0 ;
27602 PyObject * obj2 = 0 ;
27603 char *kwnames[] = {
27604 (char *) "self",(char *) "item",(char *) "select", NULL
27605 };
27606
27607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27611 SWIG_POINTER_EXCEPTION | 0)) == -1)
27612 SWIG_fail;
27613 if (arg2 == NULL) {
27614 PyErr_SetString(PyExc_TypeError,"null reference");
27615 SWIG_fail;
27616 }
27617 if (obj2) {
27618 arg3 = (bool)SWIG_As_bool(obj2);
27619 if (PyErr_Occurred()) SWIG_fail;
27620 }
27621 {
27622 PyThreadState* __tstate = wxPyBeginAllowThreads();
27623 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27624
27625 wxPyEndAllowThreads(__tstate);
27626 if (PyErr_Occurred()) SWIG_fail;
27627 }
27628 Py_INCREF(Py_None); resultobj = Py_None;
27629 return resultobj;
27630 fail:
27631 return NULL;
27632 }
27633
27634
27635 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) {
27636 PyObject *resultobj;
27637 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27638 wxTreeItemId *arg2 = 0 ;
27639 PyObject * obj0 = 0 ;
27640 PyObject * obj1 = 0 ;
27641 char *kwnames[] = {
27642 (char *) "self",(char *) "item", NULL
27643 };
27644
27645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27649 SWIG_POINTER_EXCEPTION | 0)) == -1)
27650 SWIG_fail;
27651 if (arg2 == NULL) {
27652 PyErr_SetString(PyExc_TypeError,"null reference");
27653 SWIG_fail;
27654 }
27655 {
27656 PyThreadState* __tstate = wxPyBeginAllowThreads();
27657 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27658
27659 wxPyEndAllowThreads(__tstate);
27660 if (PyErr_Occurred()) SWIG_fail;
27661 }
27662 Py_INCREF(Py_None); resultobj = Py_None;
27663 return resultobj;
27664 fail:
27665 return NULL;
27666 }
27667
27668
27669 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27670 PyObject *resultobj;
27671 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27672 wxTreeItemId *arg2 = 0 ;
27673 PyObject * obj0 = 0 ;
27674 PyObject * obj1 = 0 ;
27675 char *kwnames[] = {
27676 (char *) "self",(char *) "item", NULL
27677 };
27678
27679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27682 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27683 SWIG_POINTER_EXCEPTION | 0)) == -1)
27684 SWIG_fail;
27685 if (arg2 == NULL) {
27686 PyErr_SetString(PyExc_TypeError,"null reference");
27687 SWIG_fail;
27688 }
27689 {
27690 PyThreadState* __tstate = wxPyBeginAllowThreads();
27691 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27692
27693 wxPyEndAllowThreads(__tstate);
27694 if (PyErr_Occurred()) SWIG_fail;
27695 }
27696 Py_INCREF(Py_None); resultobj = Py_None;
27697 return resultobj;
27698 fail:
27699 return NULL;
27700 }
27701
27702
27703 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) {
27704 PyObject *resultobj;
27705 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27706 wxTreeItemId *arg2 = 0 ;
27707 PyObject * obj0 = 0 ;
27708 PyObject * obj1 = 0 ;
27709 char *kwnames[] = {
27710 (char *) "self",(char *) "item", NULL
27711 };
27712
27713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27716 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27717 SWIG_POINTER_EXCEPTION | 0)) == -1)
27718 SWIG_fail;
27719 if (arg2 == NULL) {
27720 PyErr_SetString(PyExc_TypeError,"null reference");
27721 SWIG_fail;
27722 }
27723 {
27724 PyThreadState* __tstate = wxPyBeginAllowThreads();
27725 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27726
27727 wxPyEndAllowThreads(__tstate);
27728 if (PyErr_Occurred()) SWIG_fail;
27729 }
27730 Py_INCREF(Py_None); resultobj = Py_None;
27731 return resultobj;
27732 fail:
27733 return NULL;
27734 }
27735
27736
27737 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
27738 PyObject *resultobj;
27739 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27740 wxTreeItemId *arg2 = 0 ;
27741 PyObject * obj0 = 0 ;
27742 PyObject * obj1 = 0 ;
27743 char *kwnames[] = {
27744 (char *) "self",(char *) "item", NULL
27745 };
27746
27747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27750 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27751 SWIG_POINTER_EXCEPTION | 0)) == -1)
27752 SWIG_fail;
27753 if (arg2 == NULL) {
27754 PyErr_SetString(PyExc_TypeError,"null reference");
27755 SWIG_fail;
27756 }
27757 {
27758 PyThreadState* __tstate = wxPyBeginAllowThreads();
27759 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27760
27761 wxPyEndAllowThreads(__tstate);
27762 if (PyErr_Occurred()) SWIG_fail;
27763 }
27764 Py_INCREF(Py_None); resultobj = Py_None;
27765 return resultobj;
27766 fail:
27767 return NULL;
27768 }
27769
27770
27771 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
27772 PyObject *resultobj;
27773 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27774 wxTextCtrl *result;
27775 PyObject * obj0 = 0 ;
27776 char *kwnames[] = {
27777 (char *) "self", NULL
27778 };
27779
27780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27783 {
27784 PyThreadState* __tstate = wxPyBeginAllowThreads();
27785 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27786
27787 wxPyEndAllowThreads(__tstate);
27788 if (PyErr_Occurred()) SWIG_fail;
27789 }
27790 {
27791 resultobj = wxPyMake_wxObject(result, 0);
27792 }
27793 return resultobj;
27794 fail:
27795 return NULL;
27796 }
27797
27798
27799 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27800 PyObject *resultobj;
27801 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27802 wxTreeItemId *arg2 = 0 ;
27803 PyObject * obj0 = 0 ;
27804 PyObject * obj1 = 0 ;
27805 char *kwnames[] = {
27806 (char *) "self",(char *) "item", NULL
27807 };
27808
27809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
27810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27812 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27813 SWIG_POINTER_EXCEPTION | 0)) == -1)
27814 SWIG_fail;
27815 if (arg2 == NULL) {
27816 PyErr_SetString(PyExc_TypeError,"null reference");
27817 SWIG_fail;
27818 }
27819 {
27820 PyThreadState* __tstate = wxPyBeginAllowThreads();
27821 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
27822
27823 wxPyEndAllowThreads(__tstate);
27824 if (PyErr_Occurred()) SWIG_fail;
27825 }
27826 Py_INCREF(Py_None); resultobj = Py_None;
27827 return resultobj;
27828 fail:
27829 return NULL;
27830 }
27831
27832
27833 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
27834 PyObject *resultobj;
27835 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27836 wxPoint *arg2 = 0 ;
27837 int *arg3 = 0 ;
27838 wxTreeItemId result;
27839 wxPoint temp2 ;
27840 int temp3 ;
27841 int res3 = 0 ;
27842 PyObject * obj0 = 0 ;
27843 PyObject * obj1 = 0 ;
27844 char *kwnames[] = {
27845 (char *) "self",(char *) "point", NULL
27846 };
27847
27848 arg3 = &temp3; res3 = SWIG_NEWOBJ;
27849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
27850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27852 {
27853 arg2 = &temp2;
27854 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27855 }
27856 {
27857 PyThreadState* __tstate = wxPyBeginAllowThreads();
27858 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
27859
27860 wxPyEndAllowThreads(__tstate);
27861 if (PyErr_Occurred()) SWIG_fail;
27862 }
27863 {
27864 wxTreeItemId * resultptr;
27865 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27866 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27867 }
27868 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
27869 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
27870 return resultobj;
27871 fail:
27872 return NULL;
27873 }
27874
27875
27876 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) {
27877 PyObject *resultobj;
27878 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27879 wxTreeItemId *arg2 = 0 ;
27880 bool arg3 = (bool) False ;
27881 PyObject *result;
27882 PyObject * obj0 = 0 ;
27883 PyObject * obj1 = 0 ;
27884 PyObject * obj2 = 0 ;
27885 char *kwnames[] = {
27886 (char *) "self",(char *) "item",(char *) "textOnly", NULL
27887 };
27888
27889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
27890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27892 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27893 SWIG_POINTER_EXCEPTION | 0)) == -1)
27894 SWIG_fail;
27895 if (arg2 == NULL) {
27896 PyErr_SetString(PyExc_TypeError,"null reference");
27897 SWIG_fail;
27898 }
27899 if (obj2) {
27900 arg3 = (bool)SWIG_As_bool(obj2);
27901 if (PyErr_Occurred()) SWIG_fail;
27902 }
27903 {
27904 PyThreadState* __tstate = wxPyBeginAllowThreads();
27905 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
27906
27907 wxPyEndAllowThreads(__tstate);
27908 if (PyErr_Occurred()) SWIG_fail;
27909 }
27910 resultobj = result;
27911 return resultobj;
27912 fail:
27913 return NULL;
27914 }
27915
27916
27917 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
27918 PyObject *resultobj;
27919 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
27920 wxVisualAttributes result;
27921 PyObject * obj0 = 0 ;
27922 char *kwnames[] = {
27923 (char *) "variant", NULL
27924 };
27925
27926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
27927 if (obj0) {
27928 arg1 = (int)SWIG_As_int(obj0);
27929 if (PyErr_Occurred()) SWIG_fail;
27930 }
27931 {
27932 if (!wxPyCheckForApp()) SWIG_fail;
27933 PyThreadState* __tstate = wxPyBeginAllowThreads();
27934 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
27935
27936 wxPyEndAllowThreads(__tstate);
27937 if (PyErr_Occurred()) SWIG_fail;
27938 }
27939 {
27940 wxVisualAttributes * resultptr;
27941 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
27942 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
27943 }
27944 return resultobj;
27945 fail:
27946 return NULL;
27947 }
27948
27949
27950 static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) {
27951 PyObject *obj;
27952 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27953 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
27954 Py_INCREF(obj);
27955 return Py_BuildValue((char *)"");
27956 }
27957 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
27958 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
27959 return 1;
27960 }
27961
27962
27963 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
27964 PyObject *pyobj;
27965
27966 {
27967 #if wxUSE_UNICODE
27968 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27969 #else
27970 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27971 #endif
27972 }
27973 return pyobj;
27974 }
27975
27976
27977 static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
27978 PyObject *resultobj;
27979 wxWindow *arg1 = (wxWindow *) 0 ;
27980 int arg2 = (int) (int)-1 ;
27981 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
27982 wxString *arg3 = (wxString *) &arg3_defvalue ;
27983 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27984 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27985 wxSize const &arg5_defvalue = wxDefaultSize ;
27986 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27987 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27988 wxString const &arg7_defvalue = wxPyEmptyString ;
27989 wxString *arg7 = (wxString *) &arg7_defvalue ;
27990 int arg8 = (int) 0 ;
27991 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
27992 wxString *arg9 = (wxString *) &arg9_defvalue ;
27993 wxGenericDirCtrl *result;
27994 bool temp3 = False ;
27995 wxPoint temp4 ;
27996 wxSize temp5 ;
27997 bool temp7 = False ;
27998 bool temp9 = False ;
27999 PyObject * obj0 = 0 ;
28000 PyObject * obj1 = 0 ;
28001 PyObject * obj2 = 0 ;
28002 PyObject * obj3 = 0 ;
28003 PyObject * obj4 = 0 ;
28004 PyObject * obj5 = 0 ;
28005 PyObject * obj6 = 0 ;
28006 PyObject * obj7 = 0 ;
28007 PyObject * obj8 = 0 ;
28008 char *kwnames[] = {
28009 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28010 };
28011
28012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
28013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28015 if (obj1) {
28016 arg2 = (int)SWIG_As_int(obj1);
28017 if (PyErr_Occurred()) SWIG_fail;
28018 }
28019 if (obj2) {
28020 {
28021 arg3 = wxString_in_helper(obj2);
28022 if (arg3 == NULL) SWIG_fail;
28023 temp3 = True;
28024 }
28025 }
28026 if (obj3) {
28027 {
28028 arg4 = &temp4;
28029 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28030 }
28031 }
28032 if (obj4) {
28033 {
28034 arg5 = &temp5;
28035 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28036 }
28037 }
28038 if (obj5) {
28039 arg6 = (long)SWIG_As_long(obj5);
28040 if (PyErr_Occurred()) SWIG_fail;
28041 }
28042 if (obj6) {
28043 {
28044 arg7 = wxString_in_helper(obj6);
28045 if (arg7 == NULL) SWIG_fail;
28046 temp7 = True;
28047 }
28048 }
28049 if (obj7) {
28050 arg8 = (int)SWIG_As_int(obj7);
28051 if (PyErr_Occurred()) SWIG_fail;
28052 }
28053 if (obj8) {
28054 {
28055 arg9 = wxString_in_helper(obj8);
28056 if (arg9 == NULL) SWIG_fail;
28057 temp9 = True;
28058 }
28059 }
28060 {
28061 if (!wxPyCheckForApp()) SWIG_fail;
28062 PyThreadState* __tstate = wxPyBeginAllowThreads();
28063 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
28064
28065 wxPyEndAllowThreads(__tstate);
28066 if (PyErr_Occurred()) SWIG_fail;
28067 }
28068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28069 {
28070 if (temp3)
28071 delete arg3;
28072 }
28073 {
28074 if (temp7)
28075 delete arg7;
28076 }
28077 {
28078 if (temp9)
28079 delete arg9;
28080 }
28081 return resultobj;
28082 fail:
28083 {
28084 if (temp3)
28085 delete arg3;
28086 }
28087 {
28088 if (temp7)
28089 delete arg7;
28090 }
28091 {
28092 if (temp9)
28093 delete arg9;
28094 }
28095 return NULL;
28096 }
28097
28098
28099 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28100 PyObject *resultobj;
28101 wxGenericDirCtrl *result;
28102 char *kwnames[] = {
28103 NULL
28104 };
28105
28106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
28107 {
28108 if (!wxPyCheckForApp()) SWIG_fail;
28109 PyThreadState* __tstate = wxPyBeginAllowThreads();
28110 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
28111
28112 wxPyEndAllowThreads(__tstate);
28113 if (PyErr_Occurred()) SWIG_fail;
28114 }
28115 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28116 return resultobj;
28117 fail:
28118 return NULL;
28119 }
28120
28121
28122 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28123 PyObject *resultobj;
28124 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28125 wxWindow *arg2 = (wxWindow *) 0 ;
28126 int arg3 = (int) (int)-1 ;
28127 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28128 wxString *arg4 = (wxString *) &arg4_defvalue ;
28129 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28130 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28131 wxSize const &arg6_defvalue = wxDefaultSize ;
28132 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28133 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28134 wxString const &arg8_defvalue = wxPyEmptyString ;
28135 wxString *arg8 = (wxString *) &arg8_defvalue ;
28136 int arg9 = (int) 0 ;
28137 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28138 wxString *arg10 = (wxString *) &arg10_defvalue ;
28139 bool result;
28140 bool temp4 = False ;
28141 wxPoint temp5 ;
28142 wxSize temp6 ;
28143 bool temp8 = False ;
28144 bool temp10 = False ;
28145 PyObject * obj0 = 0 ;
28146 PyObject * obj1 = 0 ;
28147 PyObject * obj2 = 0 ;
28148 PyObject * obj3 = 0 ;
28149 PyObject * obj4 = 0 ;
28150 PyObject * obj5 = 0 ;
28151 PyObject * obj6 = 0 ;
28152 PyObject * obj7 = 0 ;
28153 PyObject * obj8 = 0 ;
28154 PyObject * obj9 = 0 ;
28155 char *kwnames[] = {
28156 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28157 };
28158
28159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28162 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28164 if (obj2) {
28165 arg3 = (int)SWIG_As_int(obj2);
28166 if (PyErr_Occurred()) SWIG_fail;
28167 }
28168 if (obj3) {
28169 {
28170 arg4 = wxString_in_helper(obj3);
28171 if (arg4 == NULL) SWIG_fail;
28172 temp4 = True;
28173 }
28174 }
28175 if (obj4) {
28176 {
28177 arg5 = &temp5;
28178 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28179 }
28180 }
28181 if (obj5) {
28182 {
28183 arg6 = &temp6;
28184 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28185 }
28186 }
28187 if (obj6) {
28188 arg7 = (long)SWIG_As_long(obj6);
28189 if (PyErr_Occurred()) SWIG_fail;
28190 }
28191 if (obj7) {
28192 {
28193 arg8 = wxString_in_helper(obj7);
28194 if (arg8 == NULL) SWIG_fail;
28195 temp8 = True;
28196 }
28197 }
28198 if (obj8) {
28199 arg9 = (int)SWIG_As_int(obj8);
28200 if (PyErr_Occurred()) SWIG_fail;
28201 }
28202 if (obj9) {
28203 {
28204 arg10 = wxString_in_helper(obj9);
28205 if (arg10 == NULL) SWIG_fail;
28206 temp10 = True;
28207 }
28208 }
28209 {
28210 PyThreadState* __tstate = wxPyBeginAllowThreads();
28211 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28212
28213 wxPyEndAllowThreads(__tstate);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 {
28217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28218 }
28219 {
28220 if (temp4)
28221 delete arg4;
28222 }
28223 {
28224 if (temp8)
28225 delete arg8;
28226 }
28227 {
28228 if (temp10)
28229 delete arg10;
28230 }
28231 return resultobj;
28232 fail:
28233 {
28234 if (temp4)
28235 delete arg4;
28236 }
28237 {
28238 if (temp8)
28239 delete arg8;
28240 }
28241 {
28242 if (temp10)
28243 delete arg10;
28244 }
28245 return NULL;
28246 }
28247
28248
28249 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) {
28250 PyObject *resultobj;
28251 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28252 wxString *arg2 = 0 ;
28253 bool result;
28254 bool temp2 = False ;
28255 PyObject * obj0 = 0 ;
28256 PyObject * obj1 = 0 ;
28257 char *kwnames[] = {
28258 (char *) "self",(char *) "path", NULL
28259 };
28260
28261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28264 {
28265 arg2 = wxString_in_helper(obj1);
28266 if (arg2 == NULL) SWIG_fail;
28267 temp2 = True;
28268 }
28269 {
28270 PyThreadState* __tstate = wxPyBeginAllowThreads();
28271 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28272
28273 wxPyEndAllowThreads(__tstate);
28274 if (PyErr_Occurred()) SWIG_fail;
28275 }
28276 {
28277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28278 }
28279 {
28280 if (temp2)
28281 delete arg2;
28282 }
28283 return resultobj;
28284 fail:
28285 {
28286 if (temp2)
28287 delete arg2;
28288 }
28289 return NULL;
28290 }
28291
28292
28293 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28294 PyObject *resultobj;
28295 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28296 wxString result;
28297 PyObject * obj0 = 0 ;
28298 char *kwnames[] = {
28299 (char *) "self", NULL
28300 };
28301
28302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28305 {
28306 PyThreadState* __tstate = wxPyBeginAllowThreads();
28307 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28308
28309 wxPyEndAllowThreads(__tstate);
28310 if (PyErr_Occurred()) SWIG_fail;
28311 }
28312 {
28313 #if wxUSE_UNICODE
28314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28315 #else
28316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28317 #endif
28318 }
28319 return resultobj;
28320 fail:
28321 return NULL;
28322 }
28323
28324
28325 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28326 PyObject *resultobj;
28327 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28328 wxString *arg2 = 0 ;
28329 bool temp2 = False ;
28330 PyObject * obj0 = 0 ;
28331 PyObject * obj1 = 0 ;
28332 char *kwnames[] = {
28333 (char *) "self",(char *) "path", NULL
28334 };
28335
28336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28339 {
28340 arg2 = wxString_in_helper(obj1);
28341 if (arg2 == NULL) SWIG_fail;
28342 temp2 = True;
28343 }
28344 {
28345 PyThreadState* __tstate = wxPyBeginAllowThreads();
28346 (arg1)->SetDefaultPath((wxString const &)*arg2);
28347
28348 wxPyEndAllowThreads(__tstate);
28349 if (PyErr_Occurred()) SWIG_fail;
28350 }
28351 Py_INCREF(Py_None); resultobj = Py_None;
28352 {
28353 if (temp2)
28354 delete arg2;
28355 }
28356 return resultobj;
28357 fail:
28358 {
28359 if (temp2)
28360 delete arg2;
28361 }
28362 return NULL;
28363 }
28364
28365
28366 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28367 PyObject *resultobj;
28368 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28369 wxString result;
28370 PyObject * obj0 = 0 ;
28371 char *kwnames[] = {
28372 (char *) "self", NULL
28373 };
28374
28375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28378 {
28379 PyThreadState* __tstate = wxPyBeginAllowThreads();
28380 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28381
28382 wxPyEndAllowThreads(__tstate);
28383 if (PyErr_Occurred()) SWIG_fail;
28384 }
28385 {
28386 #if wxUSE_UNICODE
28387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28388 #else
28389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28390 #endif
28391 }
28392 return resultobj;
28393 fail:
28394 return NULL;
28395 }
28396
28397
28398 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) {
28399 PyObject *resultobj;
28400 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28401 wxString result;
28402 PyObject * obj0 = 0 ;
28403 char *kwnames[] = {
28404 (char *) "self", NULL
28405 };
28406
28407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28410 {
28411 PyThreadState* __tstate = wxPyBeginAllowThreads();
28412 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28413
28414 wxPyEndAllowThreads(__tstate);
28415 if (PyErr_Occurred()) SWIG_fail;
28416 }
28417 {
28418 #if wxUSE_UNICODE
28419 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28420 #else
28421 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28422 #endif
28423 }
28424 return resultobj;
28425 fail:
28426 return NULL;
28427 }
28428
28429
28430 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28431 PyObject *resultobj;
28432 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28433 wxString *arg2 = 0 ;
28434 bool temp2 = False ;
28435 PyObject * obj0 = 0 ;
28436 PyObject * obj1 = 0 ;
28437 char *kwnames[] = {
28438 (char *) "self",(char *) "path", NULL
28439 };
28440
28441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28444 {
28445 arg2 = wxString_in_helper(obj1);
28446 if (arg2 == NULL) SWIG_fail;
28447 temp2 = True;
28448 }
28449 {
28450 PyThreadState* __tstate = wxPyBeginAllowThreads();
28451 (arg1)->SetPath((wxString const &)*arg2);
28452
28453 wxPyEndAllowThreads(__tstate);
28454 if (PyErr_Occurred()) SWIG_fail;
28455 }
28456 Py_INCREF(Py_None); resultobj = Py_None;
28457 {
28458 if (temp2)
28459 delete arg2;
28460 }
28461 return resultobj;
28462 fail:
28463 {
28464 if (temp2)
28465 delete arg2;
28466 }
28467 return NULL;
28468 }
28469
28470
28471 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
28472 PyObject *resultobj;
28473 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28474 bool arg2 ;
28475 PyObject * obj0 = 0 ;
28476 PyObject * obj1 = 0 ;
28477 char *kwnames[] = {
28478 (char *) "self",(char *) "show", NULL
28479 };
28480
28481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28484 arg2 = (bool)SWIG_As_bool(obj1);
28485 if (PyErr_Occurred()) SWIG_fail;
28486 {
28487 PyThreadState* __tstate = wxPyBeginAllowThreads();
28488 (arg1)->ShowHidden(arg2);
28489
28490 wxPyEndAllowThreads(__tstate);
28491 if (PyErr_Occurred()) SWIG_fail;
28492 }
28493 Py_INCREF(Py_None); resultobj = Py_None;
28494 return resultobj;
28495 fail:
28496 return NULL;
28497 }
28498
28499
28500 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
28501 PyObject *resultobj;
28502 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28503 bool result;
28504 PyObject * obj0 = 0 ;
28505 char *kwnames[] = {
28506 (char *) "self", NULL
28507 };
28508
28509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28512 {
28513 PyThreadState* __tstate = wxPyBeginAllowThreads();
28514 result = (bool)(arg1)->GetShowHidden();
28515
28516 wxPyEndAllowThreads(__tstate);
28517 if (PyErr_Occurred()) SWIG_fail;
28518 }
28519 {
28520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28521 }
28522 return resultobj;
28523 fail:
28524 return NULL;
28525 }
28526
28527
28528 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
28529 PyObject *resultobj;
28530 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28531 wxString result;
28532 PyObject * obj0 = 0 ;
28533 char *kwnames[] = {
28534 (char *) "self", NULL
28535 };
28536
28537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28540 {
28541 PyThreadState* __tstate = wxPyBeginAllowThreads();
28542 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28543
28544 wxPyEndAllowThreads(__tstate);
28545 if (PyErr_Occurred()) SWIG_fail;
28546 }
28547 {
28548 #if wxUSE_UNICODE
28549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28550 #else
28551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28552 #endif
28553 }
28554 return resultobj;
28555 fail:
28556 return NULL;
28557 }
28558
28559
28560 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
28561 PyObject *resultobj;
28562 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28563 wxString *arg2 = 0 ;
28564 bool temp2 = False ;
28565 PyObject * obj0 = 0 ;
28566 PyObject * obj1 = 0 ;
28567 char *kwnames[] = {
28568 (char *) "self",(char *) "filter", NULL
28569 };
28570
28571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28574 {
28575 arg2 = wxString_in_helper(obj1);
28576 if (arg2 == NULL) SWIG_fail;
28577 temp2 = True;
28578 }
28579 {
28580 PyThreadState* __tstate = wxPyBeginAllowThreads();
28581 (arg1)->SetFilter((wxString const &)*arg2);
28582
28583 wxPyEndAllowThreads(__tstate);
28584 if (PyErr_Occurred()) SWIG_fail;
28585 }
28586 Py_INCREF(Py_None); resultobj = Py_None;
28587 {
28588 if (temp2)
28589 delete arg2;
28590 }
28591 return resultobj;
28592 fail:
28593 {
28594 if (temp2)
28595 delete arg2;
28596 }
28597 return NULL;
28598 }
28599
28600
28601 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
28602 PyObject *resultobj;
28603 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28604 int result;
28605 PyObject * obj0 = 0 ;
28606 char *kwnames[] = {
28607 (char *) "self", NULL
28608 };
28609
28610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28613 {
28614 PyThreadState* __tstate = wxPyBeginAllowThreads();
28615 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28616
28617 wxPyEndAllowThreads(__tstate);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 resultobj = SWIG_From_int((int)result);
28621 return resultobj;
28622 fail:
28623 return NULL;
28624 }
28625
28626
28627 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
28628 PyObject *resultobj;
28629 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28630 int arg2 ;
28631 PyObject * obj0 = 0 ;
28632 PyObject * obj1 = 0 ;
28633 char *kwnames[] = {
28634 (char *) "self",(char *) "n", NULL
28635 };
28636
28637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28640 arg2 = (int)SWIG_As_int(obj1);
28641 if (PyErr_Occurred()) SWIG_fail;
28642 {
28643 PyThreadState* __tstate = wxPyBeginAllowThreads();
28644 (arg1)->SetFilterIndex(arg2);
28645
28646 wxPyEndAllowThreads(__tstate);
28647 if (PyErr_Occurred()) SWIG_fail;
28648 }
28649 Py_INCREF(Py_None); resultobj = Py_None;
28650 return resultobj;
28651 fail:
28652 return NULL;
28653 }
28654
28655
28656 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) {
28657 PyObject *resultobj;
28658 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28659 wxTreeItemId result;
28660 PyObject * obj0 = 0 ;
28661 char *kwnames[] = {
28662 (char *) "self", NULL
28663 };
28664
28665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28668 {
28669 PyThreadState* __tstate = wxPyBeginAllowThreads();
28670 result = (arg1)->GetRootId();
28671
28672 wxPyEndAllowThreads(__tstate);
28673 if (PyErr_Occurred()) SWIG_fail;
28674 }
28675 {
28676 wxTreeItemId * resultptr;
28677 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28678 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28679 }
28680 return resultobj;
28681 fail:
28682 return NULL;
28683 }
28684
28685
28686 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28687 PyObject *resultobj;
28688 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28689 wxPyTreeCtrl *result;
28690 PyObject * obj0 = 0 ;
28691 char *kwnames[] = {
28692 (char *) "self", NULL
28693 };
28694
28695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
28696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28698 {
28699 PyThreadState* __tstate = wxPyBeginAllowThreads();
28700 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
28701
28702 wxPyEndAllowThreads(__tstate);
28703 if (PyErr_Occurred()) SWIG_fail;
28704 }
28705 {
28706 resultobj = wxPyMake_wxObject(result, 0);
28707 }
28708 return resultobj;
28709 fail:
28710 return NULL;
28711 }
28712
28713
28714 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28715 PyObject *resultobj;
28716 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28717 wxDirFilterListCtrl *result;
28718 PyObject * obj0 = 0 ;
28719 char *kwnames[] = {
28720 (char *) "self", NULL
28721 };
28722
28723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
28724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28726 {
28727 PyThreadState* __tstate = wxPyBeginAllowThreads();
28728 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
28729
28730 wxPyEndAllowThreads(__tstate);
28731 if (PyErr_Occurred()) SWIG_fail;
28732 }
28733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
28734 return resultobj;
28735 fail:
28736 return NULL;
28737 }
28738
28739
28740 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) {
28741 PyObject *resultobj;
28742 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28743 wxTreeItemId arg2 ;
28744 wxString *arg3 = 0 ;
28745 bool *arg4 = 0 ;
28746 wxTreeItemId result;
28747 wxTreeItemId *argp2 ;
28748 bool temp3 = False ;
28749 bool temp4 ;
28750 int res4 = 0 ;
28751 PyObject * obj0 = 0 ;
28752 PyObject * obj1 = 0 ;
28753 PyObject * obj2 = 0 ;
28754 char *kwnames[] = {
28755 (char *) "self",(char *) "parentId",(char *) "path", NULL
28756 };
28757
28758 arg4 = &temp4; res4 = SWIG_NEWOBJ;
28759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
28760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28762 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
28763 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
28764 arg2 = *argp2;
28765 {
28766 arg3 = wxString_in_helper(obj2);
28767 if (arg3 == NULL) SWIG_fail;
28768 temp3 = True;
28769 }
28770 {
28771 PyThreadState* __tstate = wxPyBeginAllowThreads();
28772 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
28773
28774 wxPyEndAllowThreads(__tstate);
28775 if (PyErr_Occurred()) SWIG_fail;
28776 }
28777 {
28778 wxTreeItemId * resultptr;
28779 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28780 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28781 }
28782 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
28783 SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0)));
28784 {
28785 if (temp3)
28786 delete arg3;
28787 }
28788 return resultobj;
28789 fail:
28790 {
28791 if (temp3)
28792 delete arg3;
28793 }
28794 return NULL;
28795 }
28796
28797
28798 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) {
28799 PyObject *resultobj;
28800 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28801 PyObject * obj0 = 0 ;
28802 char *kwnames[] = {
28803 (char *) "self", NULL
28804 };
28805
28806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
28807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28809 {
28810 PyThreadState* __tstate = wxPyBeginAllowThreads();
28811 (arg1)->DoResize();
28812
28813 wxPyEndAllowThreads(__tstate);
28814 if (PyErr_Occurred()) SWIG_fail;
28815 }
28816 Py_INCREF(Py_None); resultobj = Py_None;
28817 return resultobj;
28818 fail:
28819 return NULL;
28820 }
28821
28822
28823 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) {
28824 PyObject *resultobj;
28825 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28826 PyObject * obj0 = 0 ;
28827 char *kwnames[] = {
28828 (char *) "self", NULL
28829 };
28830
28831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
28832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28834 {
28835 PyThreadState* __tstate = wxPyBeginAllowThreads();
28836 (arg1)->ReCreateTree();
28837
28838 wxPyEndAllowThreads(__tstate);
28839 if (PyErr_Occurred()) SWIG_fail;
28840 }
28841 Py_INCREF(Py_None); resultobj = Py_None;
28842 return resultobj;
28843 fail:
28844 return NULL;
28845 }
28846
28847
28848 static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) {
28849 PyObject *obj;
28850 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28851 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
28852 Py_INCREF(obj);
28853 return Py_BuildValue((char *)"");
28854 }
28855 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28856 PyObject *resultobj;
28857 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28858 int arg2 = (int) (int)-1 ;
28859 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28860 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28861 wxSize const &arg4_defvalue = wxDefaultSize ;
28862 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28863 long arg5 = (long) 0 ;
28864 wxDirFilterListCtrl *result;
28865 wxPoint temp3 ;
28866 wxSize temp4 ;
28867 PyObject * obj0 = 0 ;
28868 PyObject * obj1 = 0 ;
28869 PyObject * obj2 = 0 ;
28870 PyObject * obj3 = 0 ;
28871 PyObject * obj4 = 0 ;
28872 char *kwnames[] = {
28873 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28874 };
28875
28876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28879 if (obj1) {
28880 arg2 = (int)SWIG_As_int(obj1);
28881 if (PyErr_Occurred()) SWIG_fail;
28882 }
28883 if (obj2) {
28884 {
28885 arg3 = &temp3;
28886 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28887 }
28888 }
28889 if (obj3) {
28890 {
28891 arg4 = &temp4;
28892 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28893 }
28894 }
28895 if (obj4) {
28896 arg5 = (long)SWIG_As_long(obj4);
28897 if (PyErr_Occurred()) SWIG_fail;
28898 }
28899 {
28900 if (!wxPyCheckForApp()) SWIG_fail;
28901 PyThreadState* __tstate = wxPyBeginAllowThreads();
28902 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28903
28904 wxPyEndAllowThreads(__tstate);
28905 if (PyErr_Occurred()) SWIG_fail;
28906 }
28907 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28908 return resultobj;
28909 fail:
28910 return NULL;
28911 }
28912
28913
28914 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28915 PyObject *resultobj;
28916 wxDirFilterListCtrl *result;
28917 char *kwnames[] = {
28918 NULL
28919 };
28920
28921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
28922 {
28923 if (!wxPyCheckForApp()) SWIG_fail;
28924 PyThreadState* __tstate = wxPyBeginAllowThreads();
28925 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
28926
28927 wxPyEndAllowThreads(__tstate);
28928 if (PyErr_Occurred()) SWIG_fail;
28929 }
28930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28931 return resultobj;
28932 fail:
28933 return NULL;
28934 }
28935
28936
28937 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28938 PyObject *resultobj;
28939 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28940 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
28941 int arg3 = (int) (int)-1 ;
28942 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28943 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28944 wxSize const &arg5_defvalue = wxDefaultSize ;
28945 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28946 long arg6 = (long) 0 ;
28947 bool result;
28948 wxPoint temp4 ;
28949 wxSize temp5 ;
28950 PyObject * obj0 = 0 ;
28951 PyObject * obj1 = 0 ;
28952 PyObject * obj2 = 0 ;
28953 PyObject * obj3 = 0 ;
28954 PyObject * obj4 = 0 ;
28955 PyObject * obj5 = 0 ;
28956 char *kwnames[] = {
28957 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28958 };
28959
28960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28963 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
28964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28965 if (obj2) {
28966 arg3 = (int)SWIG_As_int(obj2);
28967 if (PyErr_Occurred()) SWIG_fail;
28968 }
28969 if (obj3) {
28970 {
28971 arg4 = &temp4;
28972 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28973 }
28974 }
28975 if (obj4) {
28976 {
28977 arg5 = &temp5;
28978 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28979 }
28980 }
28981 if (obj5) {
28982 arg6 = (long)SWIG_As_long(obj5);
28983 if (PyErr_Occurred()) SWIG_fail;
28984 }
28985 {
28986 PyThreadState* __tstate = wxPyBeginAllowThreads();
28987 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
28988
28989 wxPyEndAllowThreads(__tstate);
28990 if (PyErr_Occurred()) SWIG_fail;
28991 }
28992 {
28993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28994 }
28995 return resultobj;
28996 fail:
28997 return NULL;
28998 }
28999
29000
29001 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) {
29002 PyObject *resultobj;
29003 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29004 wxString *arg2 = 0 ;
29005 int arg3 ;
29006 bool temp2 = False ;
29007 PyObject * obj0 = 0 ;
29008 PyObject * obj1 = 0 ;
29009 PyObject * obj2 = 0 ;
29010 char *kwnames[] = {
29011 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
29012 };
29013
29014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
29015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29017 {
29018 arg2 = wxString_in_helper(obj1);
29019 if (arg2 == NULL) SWIG_fail;
29020 temp2 = True;
29021 }
29022 arg3 = (int)SWIG_As_int(obj2);
29023 if (PyErr_Occurred()) SWIG_fail;
29024 {
29025 PyThreadState* __tstate = wxPyBeginAllowThreads();
29026 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
29027
29028 wxPyEndAllowThreads(__tstate);
29029 if (PyErr_Occurred()) SWIG_fail;
29030 }
29031 Py_INCREF(Py_None); resultobj = Py_None;
29032 {
29033 if (temp2)
29034 delete arg2;
29035 }
29036 return resultobj;
29037 fail:
29038 {
29039 if (temp2)
29040 delete arg2;
29041 }
29042 return NULL;
29043 }
29044
29045
29046 static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) {
29047 PyObject *obj;
29048 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29049 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
29050 Py_INCREF(obj);
29051 return Py_BuildValue((char *)"");
29052 }
29053 static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29054 PyObject *resultobj;
29055 wxWindow *arg1 = (wxWindow *) 0 ;
29056 int arg2 = (int) (int)-1 ;
29057 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29058 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29059 wxSize const &arg4_defvalue = wxDefaultSize ;
29060 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29061 long arg5 = (long) 0 ;
29062 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29063 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29064 wxString const &arg7_defvalue = wxPyControlNameStr ;
29065 wxString *arg7 = (wxString *) &arg7_defvalue ;
29066 wxPyControl *result;
29067 wxPoint temp3 ;
29068 wxSize temp4 ;
29069 bool temp7 = False ;
29070 PyObject * obj0 = 0 ;
29071 PyObject * obj1 = 0 ;
29072 PyObject * obj2 = 0 ;
29073 PyObject * obj3 = 0 ;
29074 PyObject * obj4 = 0 ;
29075 PyObject * obj5 = 0 ;
29076 PyObject * obj6 = 0 ;
29077 char *kwnames[] = {
29078 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29079 };
29080
29081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
29082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29084 if (obj1) {
29085 arg2 = (int)SWIG_As_int(obj1);
29086 if (PyErr_Occurred()) SWIG_fail;
29087 }
29088 if (obj2) {
29089 {
29090 arg3 = &temp3;
29091 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29092 }
29093 }
29094 if (obj3) {
29095 {
29096 arg4 = &temp4;
29097 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29098 }
29099 }
29100 if (obj4) {
29101 arg5 = (long)SWIG_As_long(obj4);
29102 if (PyErr_Occurred()) SWIG_fail;
29103 }
29104 if (obj5) {
29105 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
29106 SWIG_POINTER_EXCEPTION | 0)) == -1)
29107 SWIG_fail;
29108 if (arg6 == NULL) {
29109 PyErr_SetString(PyExc_TypeError,"null reference");
29110 SWIG_fail;
29111 }
29112 }
29113 if (obj6) {
29114 {
29115 arg7 = wxString_in_helper(obj6);
29116 if (arg7 == NULL) SWIG_fail;
29117 temp7 = True;
29118 }
29119 }
29120 {
29121 if (!wxPyCheckForApp()) SWIG_fail;
29122 PyThreadState* __tstate = wxPyBeginAllowThreads();
29123 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29124
29125 wxPyEndAllowThreads(__tstate);
29126 if (PyErr_Occurred()) SWIG_fail;
29127 }
29128 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29129 {
29130 if (temp7)
29131 delete arg7;
29132 }
29133 return resultobj;
29134 fail:
29135 {
29136 if (temp7)
29137 delete arg7;
29138 }
29139 return NULL;
29140 }
29141
29142
29143 static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29144 PyObject *resultobj;
29145 wxPyControl *result;
29146 char *kwnames[] = {
29147 NULL
29148 };
29149
29150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29151 {
29152 if (!wxPyCheckForApp()) SWIG_fail;
29153 PyThreadState* __tstate = wxPyBeginAllowThreads();
29154 result = (wxPyControl *)new wxPyControl();
29155
29156 wxPyEndAllowThreads(__tstate);
29157 if (PyErr_Occurred()) SWIG_fail;
29158 }
29159 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29160 return resultobj;
29161 fail:
29162 return NULL;
29163 }
29164
29165
29166 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29167 PyObject *resultobj;
29168 wxPyControl *arg1 = (wxPyControl *) 0 ;
29169 PyObject *arg2 = (PyObject *) 0 ;
29170 PyObject *arg3 = (PyObject *) 0 ;
29171 PyObject * obj0 = 0 ;
29172 PyObject * obj1 = 0 ;
29173 PyObject * obj2 = 0 ;
29174 char *kwnames[] = {
29175 (char *) "self",(char *) "self",(char *) "_class", NULL
29176 };
29177
29178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29181 arg2 = obj1;
29182 arg3 = obj2;
29183 {
29184 PyThreadState* __tstate = wxPyBeginAllowThreads();
29185 (arg1)->_setCallbackInfo(arg2,arg3);
29186
29187 wxPyEndAllowThreads(__tstate);
29188 if (PyErr_Occurred()) SWIG_fail;
29189 }
29190 Py_INCREF(Py_None); resultobj = Py_None;
29191 return resultobj;
29192 fail:
29193 return NULL;
29194 }
29195
29196
29197 static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29198 PyObject *resultobj;
29199 wxPyControl *arg1 = (wxPyControl *) 0 ;
29200 wxSize *arg2 = 0 ;
29201 wxSize temp2 ;
29202 PyObject * obj0 = 0 ;
29203 PyObject * obj1 = 0 ;
29204 char *kwnames[] = {
29205 (char *) "self",(char *) "size", NULL
29206 };
29207
29208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29211 {
29212 arg2 = &temp2;
29213 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29214 }
29215 {
29216 PyThreadState* __tstate = wxPyBeginAllowThreads();
29217 (arg1)->SetBestSize((wxSize const &)*arg2);
29218
29219 wxPyEndAllowThreads(__tstate);
29220 if (PyErr_Occurred()) SWIG_fail;
29221 }
29222 Py_INCREF(Py_None); resultobj = Py_None;
29223 return resultobj;
29224 fail:
29225 return NULL;
29226 }
29227
29228
29229 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29230 PyObject *resultobj;
29231 wxPyControl *arg1 = (wxPyControl *) 0 ;
29232 int arg2 ;
29233 int arg3 ;
29234 int arg4 ;
29235 int arg5 ;
29236 PyObject * obj0 = 0 ;
29237 PyObject * obj1 = 0 ;
29238 PyObject * obj2 = 0 ;
29239 PyObject * obj3 = 0 ;
29240 PyObject * obj4 = 0 ;
29241 char *kwnames[] = {
29242 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29243 };
29244
29245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29248 arg2 = (int)SWIG_As_int(obj1);
29249 if (PyErr_Occurred()) SWIG_fail;
29250 arg3 = (int)SWIG_As_int(obj2);
29251 if (PyErr_Occurred()) SWIG_fail;
29252 arg4 = (int)SWIG_As_int(obj3);
29253 if (PyErr_Occurred()) SWIG_fail;
29254 arg5 = (int)SWIG_As_int(obj4);
29255 if (PyErr_Occurred()) SWIG_fail;
29256 {
29257 PyThreadState* __tstate = wxPyBeginAllowThreads();
29258 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29259
29260 wxPyEndAllowThreads(__tstate);
29261 if (PyErr_Occurred()) SWIG_fail;
29262 }
29263 Py_INCREF(Py_None); resultobj = Py_None;
29264 return resultobj;
29265 fail:
29266 return NULL;
29267 }
29268
29269
29270 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29271 PyObject *resultobj;
29272 wxPyControl *arg1 = (wxPyControl *) 0 ;
29273 int arg2 ;
29274 int arg3 ;
29275 int arg4 ;
29276 int arg5 ;
29277 int arg6 = (int) wxSIZE_AUTO ;
29278 PyObject * obj0 = 0 ;
29279 PyObject * obj1 = 0 ;
29280 PyObject * obj2 = 0 ;
29281 PyObject * obj3 = 0 ;
29282 PyObject * obj4 = 0 ;
29283 PyObject * obj5 = 0 ;
29284 char *kwnames[] = {
29285 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29286 };
29287
29288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29291 arg2 = (int)SWIG_As_int(obj1);
29292 if (PyErr_Occurred()) SWIG_fail;
29293 arg3 = (int)SWIG_As_int(obj2);
29294 if (PyErr_Occurred()) SWIG_fail;
29295 arg4 = (int)SWIG_As_int(obj3);
29296 if (PyErr_Occurred()) SWIG_fail;
29297 arg5 = (int)SWIG_As_int(obj4);
29298 if (PyErr_Occurred()) SWIG_fail;
29299 if (obj5) {
29300 arg6 = (int)SWIG_As_int(obj5);
29301 if (PyErr_Occurred()) SWIG_fail;
29302 }
29303 {
29304 PyThreadState* __tstate = wxPyBeginAllowThreads();
29305 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29306
29307 wxPyEndAllowThreads(__tstate);
29308 if (PyErr_Occurred()) SWIG_fail;
29309 }
29310 Py_INCREF(Py_None); resultobj = Py_None;
29311 return resultobj;
29312 fail:
29313 return NULL;
29314 }
29315
29316
29317 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29318 PyObject *resultobj;
29319 wxPyControl *arg1 = (wxPyControl *) 0 ;
29320 int arg2 ;
29321 int arg3 ;
29322 PyObject * obj0 = 0 ;
29323 PyObject * obj1 = 0 ;
29324 PyObject * obj2 = 0 ;
29325 char *kwnames[] = {
29326 (char *) "self",(char *) "width",(char *) "height", NULL
29327 };
29328
29329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29332 arg2 = (int)SWIG_As_int(obj1);
29333 if (PyErr_Occurred()) SWIG_fail;
29334 arg3 = (int)SWIG_As_int(obj2);
29335 if (PyErr_Occurred()) SWIG_fail;
29336 {
29337 PyThreadState* __tstate = wxPyBeginAllowThreads();
29338 (arg1)->base_DoSetClientSize(arg2,arg3);
29339
29340 wxPyEndAllowThreads(__tstate);
29341 if (PyErr_Occurred()) SWIG_fail;
29342 }
29343 Py_INCREF(Py_None); resultobj = Py_None;
29344 return resultobj;
29345 fail:
29346 return NULL;
29347 }
29348
29349
29350 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29351 PyObject *resultobj;
29352 wxPyControl *arg1 = (wxPyControl *) 0 ;
29353 int arg2 ;
29354 int arg3 ;
29355 PyObject * obj0 = 0 ;
29356 PyObject * obj1 = 0 ;
29357 PyObject * obj2 = 0 ;
29358 char *kwnames[] = {
29359 (char *) "self",(char *) "x",(char *) "y", NULL
29360 };
29361
29362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29365 arg2 = (int)SWIG_As_int(obj1);
29366 if (PyErr_Occurred()) SWIG_fail;
29367 arg3 = (int)SWIG_As_int(obj2);
29368 if (PyErr_Occurred()) SWIG_fail;
29369 {
29370 PyThreadState* __tstate = wxPyBeginAllowThreads();
29371 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29372
29373 wxPyEndAllowThreads(__tstate);
29374 if (PyErr_Occurred()) SWIG_fail;
29375 }
29376 Py_INCREF(Py_None); resultobj = Py_None;
29377 return resultobj;
29378 fail:
29379 return NULL;
29380 }
29381
29382
29383 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29384 PyObject *resultobj;
29385 wxPyControl *arg1 = (wxPyControl *) 0 ;
29386 int *arg2 = (int *) 0 ;
29387 int *arg3 = (int *) 0 ;
29388 int temp2 ;
29389 int res2 = 0 ;
29390 int temp3 ;
29391 int res3 = 0 ;
29392 PyObject * obj0 = 0 ;
29393 char *kwnames[] = {
29394 (char *) "self", NULL
29395 };
29396
29397 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29398 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29402 {
29403 PyThreadState* __tstate = wxPyBeginAllowThreads();
29404 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29405
29406 wxPyEndAllowThreads(__tstate);
29407 if (PyErr_Occurred()) SWIG_fail;
29408 }
29409 Py_INCREF(Py_None); resultobj = Py_None;
29410 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29411 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29412 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29413 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29414 return resultobj;
29415 fail:
29416 return NULL;
29417 }
29418
29419
29420 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29421 PyObject *resultobj;
29422 wxPyControl *arg1 = (wxPyControl *) 0 ;
29423 int *arg2 = (int *) 0 ;
29424 int *arg3 = (int *) 0 ;
29425 int temp2 ;
29426 int res2 = 0 ;
29427 int temp3 ;
29428 int res3 = 0 ;
29429 PyObject * obj0 = 0 ;
29430 char *kwnames[] = {
29431 (char *) "self", NULL
29432 };
29433
29434 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29435 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29439 {
29440 PyThreadState* __tstate = wxPyBeginAllowThreads();
29441 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29442
29443 wxPyEndAllowThreads(__tstate);
29444 if (PyErr_Occurred()) SWIG_fail;
29445 }
29446 Py_INCREF(Py_None); resultobj = Py_None;
29447 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29448 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29449 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29450 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29451 return resultobj;
29452 fail:
29453 return NULL;
29454 }
29455
29456
29457 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
29458 PyObject *resultobj;
29459 wxPyControl *arg1 = (wxPyControl *) 0 ;
29460 int *arg2 = (int *) 0 ;
29461 int *arg3 = (int *) 0 ;
29462 int temp2 ;
29463 int res2 = 0 ;
29464 int temp3 ;
29465 int res3 = 0 ;
29466 PyObject * obj0 = 0 ;
29467 char *kwnames[] = {
29468 (char *) "self", NULL
29469 };
29470
29471 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29472 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29476 {
29477 PyThreadState* __tstate = wxPyBeginAllowThreads();
29478 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29479
29480 wxPyEndAllowThreads(__tstate);
29481 if (PyErr_Occurred()) SWIG_fail;
29482 }
29483 Py_INCREF(Py_None); resultobj = Py_None;
29484 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29485 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29486 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29487 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29488 return resultobj;
29489 fail:
29490 return NULL;
29491 }
29492
29493
29494 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29495 PyObject *resultobj;
29496 wxPyControl *arg1 = (wxPyControl *) 0 ;
29497 wxSize result;
29498 PyObject * obj0 = 0 ;
29499 char *kwnames[] = {
29500 (char *) "self", NULL
29501 };
29502
29503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29506 {
29507 PyThreadState* __tstate = wxPyBeginAllowThreads();
29508 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29509
29510 wxPyEndAllowThreads(__tstate);
29511 if (PyErr_Occurred()) SWIG_fail;
29512 }
29513 {
29514 wxSize * resultptr;
29515 resultptr = new wxSize((wxSize &) result);
29516 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29517 }
29518 return resultobj;
29519 fail:
29520 return NULL;
29521 }
29522
29523
29524 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29525 PyObject *resultobj;
29526 wxPyControl *arg1 = (wxPyControl *) 0 ;
29527 wxSize result;
29528 PyObject * obj0 = 0 ;
29529 char *kwnames[] = {
29530 (char *) "self", NULL
29531 };
29532
29533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29536 {
29537 PyThreadState* __tstate = wxPyBeginAllowThreads();
29538 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29539
29540 wxPyEndAllowThreads(__tstate);
29541 if (PyErr_Occurred()) SWIG_fail;
29542 }
29543 {
29544 wxSize * resultptr;
29545 resultptr = new wxSize((wxSize &) result);
29546 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29547 }
29548 return resultobj;
29549 fail:
29550 return NULL;
29551 }
29552
29553
29554 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
29555 PyObject *resultobj;
29556 wxPyControl *arg1 = (wxPyControl *) 0 ;
29557 PyObject * obj0 = 0 ;
29558 char *kwnames[] = {
29559 (char *) "self", NULL
29560 };
29561
29562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29565 {
29566 PyThreadState* __tstate = wxPyBeginAllowThreads();
29567 (arg1)->base_InitDialog();
29568
29569 wxPyEndAllowThreads(__tstate);
29570 if (PyErr_Occurred()) SWIG_fail;
29571 }
29572 Py_INCREF(Py_None); resultobj = Py_None;
29573 return resultobj;
29574 fail:
29575 return NULL;
29576 }
29577
29578
29579 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29580 PyObject *resultobj;
29581 wxPyControl *arg1 = (wxPyControl *) 0 ;
29582 bool result;
29583 PyObject * obj0 = 0 ;
29584 char *kwnames[] = {
29585 (char *) "self", NULL
29586 };
29587
29588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29591 {
29592 PyThreadState* __tstate = wxPyBeginAllowThreads();
29593 result = (bool)(arg1)->base_TransferDataToWindow();
29594
29595 wxPyEndAllowThreads(__tstate);
29596 if (PyErr_Occurred()) SWIG_fail;
29597 }
29598 {
29599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29600 }
29601 return resultobj;
29602 fail:
29603 return NULL;
29604 }
29605
29606
29607 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29608 PyObject *resultobj;
29609 wxPyControl *arg1 = (wxPyControl *) 0 ;
29610 bool result;
29611 PyObject * obj0 = 0 ;
29612 char *kwnames[] = {
29613 (char *) "self", NULL
29614 };
29615
29616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29619 {
29620 PyThreadState* __tstate = wxPyBeginAllowThreads();
29621 result = (bool)(arg1)->base_TransferDataFromWindow();
29622
29623 wxPyEndAllowThreads(__tstate);
29624 if (PyErr_Occurred()) SWIG_fail;
29625 }
29626 {
29627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29628 }
29629 return resultobj;
29630 fail:
29631 return NULL;
29632 }
29633
29634
29635 static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
29636 PyObject *resultobj;
29637 wxPyControl *arg1 = (wxPyControl *) 0 ;
29638 bool result;
29639 PyObject * obj0 = 0 ;
29640 char *kwnames[] = {
29641 (char *) "self", NULL
29642 };
29643
29644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29647 {
29648 PyThreadState* __tstate = wxPyBeginAllowThreads();
29649 result = (bool)(arg1)->base_Validate();
29650
29651 wxPyEndAllowThreads(__tstate);
29652 if (PyErr_Occurred()) SWIG_fail;
29653 }
29654 {
29655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29656 }
29657 return resultobj;
29658 fail:
29659 return NULL;
29660 }
29661
29662
29663 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
29664 PyObject *resultobj;
29665 wxPyControl *arg1 = (wxPyControl *) 0 ;
29666 bool result;
29667 PyObject * obj0 = 0 ;
29668 char *kwnames[] = {
29669 (char *) "self", NULL
29670 };
29671
29672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29675 {
29676 PyThreadState* __tstate = wxPyBeginAllowThreads();
29677 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29678
29679 wxPyEndAllowThreads(__tstate);
29680 if (PyErr_Occurred()) SWIG_fail;
29681 }
29682 {
29683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29684 }
29685 return resultobj;
29686 fail:
29687 return NULL;
29688 }
29689
29690
29691 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
29692 PyObject *resultobj;
29693 wxPyControl *arg1 = (wxPyControl *) 0 ;
29694 bool result;
29695 PyObject * obj0 = 0 ;
29696 char *kwnames[] = {
29697 (char *) "self", NULL
29698 };
29699
29700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
29701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29703 {
29704 PyThreadState* __tstate = wxPyBeginAllowThreads();
29705 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
29706
29707 wxPyEndAllowThreads(__tstate);
29708 if (PyErr_Occurred()) SWIG_fail;
29709 }
29710 {
29711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29712 }
29713 return resultobj;
29714 fail:
29715 return NULL;
29716 }
29717
29718
29719 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
29720 PyObject *resultobj;
29721 wxPyControl *arg1 = (wxPyControl *) 0 ;
29722 wxSize result;
29723 PyObject * obj0 = 0 ;
29724 char *kwnames[] = {
29725 (char *) "self", NULL
29726 };
29727
29728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
29729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29731 {
29732 PyThreadState* __tstate = wxPyBeginAllowThreads();
29733 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
29734
29735 wxPyEndAllowThreads(__tstate);
29736 if (PyErr_Occurred()) SWIG_fail;
29737 }
29738 {
29739 wxSize * resultptr;
29740 resultptr = new wxSize((wxSize &) result);
29741 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29742 }
29743 return resultobj;
29744 fail:
29745 return NULL;
29746 }
29747
29748
29749 static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
29750 PyObject *resultobj;
29751 wxPyControl *arg1 = (wxPyControl *) 0 ;
29752 wxWindow *arg2 = (wxWindow *) 0 ;
29753 PyObject * obj0 = 0 ;
29754 PyObject * obj1 = 0 ;
29755 char *kwnames[] = {
29756 (char *) "self",(char *) "child", NULL
29757 };
29758
29759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
29760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29762 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29764 {
29765 PyThreadState* __tstate = wxPyBeginAllowThreads();
29766 (arg1)->base_AddChild(arg2);
29767
29768 wxPyEndAllowThreads(__tstate);
29769 if (PyErr_Occurred()) SWIG_fail;
29770 }
29771 Py_INCREF(Py_None); resultobj = Py_None;
29772 return resultobj;
29773 fail:
29774 return NULL;
29775 }
29776
29777
29778 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
29779 PyObject *resultobj;
29780 wxPyControl *arg1 = (wxPyControl *) 0 ;
29781 wxWindow *arg2 = (wxWindow *) 0 ;
29782 PyObject * obj0 = 0 ;
29783 PyObject * obj1 = 0 ;
29784 char *kwnames[] = {
29785 (char *) "self",(char *) "child", NULL
29786 };
29787
29788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
29789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29791 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29793 {
29794 PyThreadState* __tstate = wxPyBeginAllowThreads();
29795 (arg1)->base_RemoveChild(arg2);
29796
29797 wxPyEndAllowThreads(__tstate);
29798 if (PyErr_Occurred()) SWIG_fail;
29799 }
29800 Py_INCREF(Py_None); resultobj = Py_None;
29801 return resultobj;
29802 fail:
29803 return NULL;
29804 }
29805
29806
29807 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
29808 PyObject *resultobj;
29809 wxPyControl *arg1 = (wxPyControl *) 0 ;
29810 bool result;
29811 PyObject * obj0 = 0 ;
29812 char *kwnames[] = {
29813 (char *) "self", NULL
29814 };
29815
29816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
29817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29819 {
29820 PyThreadState* __tstate = wxPyBeginAllowThreads();
29821 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
29822
29823 wxPyEndAllowThreads(__tstate);
29824 if (PyErr_Occurred()) SWIG_fail;
29825 }
29826 {
29827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29828 }
29829 return resultobj;
29830 fail:
29831 return NULL;
29832 }
29833
29834
29835 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
29836 PyObject *resultobj;
29837 wxPyControl *arg1 = (wxPyControl *) 0 ;
29838 wxColour *arg2 = 0 ;
29839 wxColour temp2 ;
29840 PyObject * obj0 = 0 ;
29841 PyObject * obj1 = 0 ;
29842 char *kwnames[] = {
29843 (char *) "self",(char *) "c", NULL
29844 };
29845
29846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
29847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29849 {
29850 arg2 = &temp2;
29851 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29852 }
29853 {
29854 PyThreadState* __tstate = wxPyBeginAllowThreads();
29855 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
29856
29857 wxPyEndAllowThreads(__tstate);
29858 if (PyErr_Occurred()) SWIG_fail;
29859 }
29860 Py_INCREF(Py_None); resultobj = Py_None;
29861 return resultobj;
29862 fail:
29863 return NULL;
29864 }
29865
29866
29867 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
29868 PyObject *resultobj;
29869 wxPyControl *arg1 = (wxPyControl *) 0 ;
29870 wxVisualAttributes result;
29871 PyObject * obj0 = 0 ;
29872 char *kwnames[] = {
29873 (char *) "self", NULL
29874 };
29875
29876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
29877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29879 {
29880 PyThreadState* __tstate = wxPyBeginAllowThreads();
29881 result = (arg1)->base_GetDefaultAttributes();
29882
29883 wxPyEndAllowThreads(__tstate);
29884 if (PyErr_Occurred()) SWIG_fail;
29885 }
29886 {
29887 wxVisualAttributes * resultptr;
29888 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
29889 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
29890 }
29891 return resultobj;
29892 fail:
29893 return NULL;
29894 }
29895
29896
29897 static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
29898 PyObject *obj;
29899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29900 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
29901 Py_INCREF(obj);
29902 return Py_BuildValue((char *)"");
29903 }
29904 static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) {
29905 PyObject *resultobj;
29906 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29907 int arg2 = (int) 0 ;
29908 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29909 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29910 wxHelpEvent *result;
29911 wxPoint temp3 ;
29912 PyObject * obj0 = 0 ;
29913 PyObject * obj1 = 0 ;
29914 PyObject * obj2 = 0 ;
29915 char *kwnames[] = {
29916 (char *) "type",(char *) "winid",(char *) "pt", NULL
29917 };
29918
29919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
29920 if (obj0) {
29921 arg1 = (wxEventType)SWIG_As_int(obj0);
29922 if (PyErr_Occurred()) SWIG_fail;
29923 }
29924 if (obj1) {
29925 arg2 = (int)SWIG_As_int(obj1);
29926 if (PyErr_Occurred()) SWIG_fail;
29927 }
29928 if (obj2) {
29929 {
29930 arg3 = &temp3;
29931 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29932 }
29933 }
29934 {
29935 PyThreadState* __tstate = wxPyBeginAllowThreads();
29936 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
29937
29938 wxPyEndAllowThreads(__tstate);
29939 if (PyErr_Occurred()) SWIG_fail;
29940 }
29941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
29942 return resultobj;
29943 fail:
29944 return NULL;
29945 }
29946
29947
29948 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
29949 PyObject *resultobj;
29950 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29951 wxPoint result;
29952 PyObject * obj0 = 0 ;
29953 char *kwnames[] = {
29954 (char *) "self", NULL
29955 };
29956
29957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
29958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29960 {
29961 PyThreadState* __tstate = wxPyBeginAllowThreads();
29962 result = ((wxHelpEvent const *)arg1)->GetPosition();
29963
29964 wxPyEndAllowThreads(__tstate);
29965 if (PyErr_Occurred()) SWIG_fail;
29966 }
29967 {
29968 wxPoint * resultptr;
29969 resultptr = new wxPoint((wxPoint &) result);
29970 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
29971 }
29972 return resultobj;
29973 fail:
29974 return NULL;
29975 }
29976
29977
29978 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
29979 PyObject *resultobj;
29980 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29981 wxPoint *arg2 = 0 ;
29982 wxPoint temp2 ;
29983 PyObject * obj0 = 0 ;
29984 PyObject * obj1 = 0 ;
29985 char *kwnames[] = {
29986 (char *) "self",(char *) "pos", NULL
29987 };
29988
29989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
29990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29992 {
29993 arg2 = &temp2;
29994 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29995 }
29996 {
29997 PyThreadState* __tstate = wxPyBeginAllowThreads();
29998 (arg1)->SetPosition((wxPoint const &)*arg2);
29999
30000 wxPyEndAllowThreads(__tstate);
30001 if (PyErr_Occurred()) SWIG_fail;
30002 }
30003 Py_INCREF(Py_None); resultobj = Py_None;
30004 return resultobj;
30005 fail:
30006 return NULL;
30007 }
30008
30009
30010 static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30011 PyObject *resultobj;
30012 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30013 wxString *result;
30014 PyObject * obj0 = 0 ;
30015 char *kwnames[] = {
30016 (char *) "self", NULL
30017 };
30018
30019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
30020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30022 {
30023 PyThreadState* __tstate = wxPyBeginAllowThreads();
30024 {
30025 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
30026 result = (wxString *) &_result_ref;
30027 }
30028
30029 wxPyEndAllowThreads(__tstate);
30030 if (PyErr_Occurred()) SWIG_fail;
30031 }
30032 {
30033 #if wxUSE_UNICODE
30034 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30035 #else
30036 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30037 #endif
30038 }
30039 return resultobj;
30040 fail:
30041 return NULL;
30042 }
30043
30044
30045 static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30046 PyObject *resultobj;
30047 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30048 wxString *arg2 = 0 ;
30049 bool temp2 = False ;
30050 PyObject * obj0 = 0 ;
30051 PyObject * obj1 = 0 ;
30052 char *kwnames[] = {
30053 (char *) "self",(char *) "link", NULL
30054 };
30055
30056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
30057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30059 {
30060 arg2 = wxString_in_helper(obj1);
30061 if (arg2 == NULL) SWIG_fail;
30062 temp2 = True;
30063 }
30064 {
30065 PyThreadState* __tstate = wxPyBeginAllowThreads();
30066 (arg1)->SetLink((wxString const &)*arg2);
30067
30068 wxPyEndAllowThreads(__tstate);
30069 if (PyErr_Occurred()) SWIG_fail;
30070 }
30071 Py_INCREF(Py_None); resultobj = Py_None;
30072 {
30073 if (temp2)
30074 delete arg2;
30075 }
30076 return resultobj;
30077 fail:
30078 {
30079 if (temp2)
30080 delete arg2;
30081 }
30082 return NULL;
30083 }
30084
30085
30086 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30087 PyObject *resultobj;
30088 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30089 wxString *result;
30090 PyObject * obj0 = 0 ;
30091 char *kwnames[] = {
30092 (char *) "self", NULL
30093 };
30094
30095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
30096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30098 {
30099 PyThreadState* __tstate = wxPyBeginAllowThreads();
30100 {
30101 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
30102 result = (wxString *) &_result_ref;
30103 }
30104
30105 wxPyEndAllowThreads(__tstate);
30106 if (PyErr_Occurred()) SWIG_fail;
30107 }
30108 {
30109 #if wxUSE_UNICODE
30110 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30111 #else
30112 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30113 #endif
30114 }
30115 return resultobj;
30116 fail:
30117 return NULL;
30118 }
30119
30120
30121 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30122 PyObject *resultobj;
30123 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30124 wxString *arg2 = 0 ;
30125 bool temp2 = False ;
30126 PyObject * obj0 = 0 ;
30127 PyObject * obj1 = 0 ;
30128 char *kwnames[] = {
30129 (char *) "self",(char *) "target", NULL
30130 };
30131
30132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
30133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30135 {
30136 arg2 = wxString_in_helper(obj1);
30137 if (arg2 == NULL) SWIG_fail;
30138 temp2 = True;
30139 }
30140 {
30141 PyThreadState* __tstate = wxPyBeginAllowThreads();
30142 (arg1)->SetTarget((wxString const &)*arg2);
30143
30144 wxPyEndAllowThreads(__tstate);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 Py_INCREF(Py_None); resultobj = Py_None;
30148 {
30149 if (temp2)
30150 delete arg2;
30151 }
30152 return resultobj;
30153 fail:
30154 {
30155 if (temp2)
30156 delete arg2;
30157 }
30158 return NULL;
30159 }
30160
30161
30162 static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) {
30163 PyObject *obj;
30164 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30165 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30166 Py_INCREF(obj);
30167 return Py_BuildValue((char *)"");
30168 }
30169 static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30170 PyObject *resultobj;
30171 wxWindow *arg1 = (wxWindow *) NULL ;
30172 bool arg2 = (bool) True ;
30173 wxContextHelp *result;
30174 PyObject * obj0 = 0 ;
30175 PyObject * obj1 = 0 ;
30176 char *kwnames[] = {
30177 (char *) "window",(char *) "doNow", NULL
30178 };
30179
30180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30181 if (obj0) {
30182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30184 }
30185 if (obj1) {
30186 arg2 = (bool)SWIG_As_bool(obj1);
30187 if (PyErr_Occurred()) SWIG_fail;
30188 }
30189 {
30190 if (!wxPyCheckForApp()) SWIG_fail;
30191 PyThreadState* __tstate = wxPyBeginAllowThreads();
30192 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30193
30194 wxPyEndAllowThreads(__tstate);
30195 if (PyErr_Occurred()) SWIG_fail;
30196 }
30197 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30198 return resultobj;
30199 fail:
30200 return NULL;
30201 }
30202
30203
30204 static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30205 PyObject *resultobj;
30206 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30207 PyObject * obj0 = 0 ;
30208 char *kwnames[] = {
30209 (char *) "self", NULL
30210 };
30211
30212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30215 {
30216 PyThreadState* __tstate = wxPyBeginAllowThreads();
30217 delete arg1;
30218
30219 wxPyEndAllowThreads(__tstate);
30220 if (PyErr_Occurred()) SWIG_fail;
30221 }
30222 Py_INCREF(Py_None); resultobj = Py_None;
30223 return resultobj;
30224 fail:
30225 return NULL;
30226 }
30227
30228
30229 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30230 PyObject *resultobj;
30231 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30232 wxWindow *arg2 = (wxWindow *) NULL ;
30233 bool result;
30234 PyObject * obj0 = 0 ;
30235 PyObject * obj1 = 0 ;
30236 char *kwnames[] = {
30237 (char *) "self",(char *) "window", NULL
30238 };
30239
30240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30243 if (obj1) {
30244 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30246 }
30247 {
30248 PyThreadState* __tstate = wxPyBeginAllowThreads();
30249 result = (bool)(arg1)->BeginContextHelp(arg2);
30250
30251 wxPyEndAllowThreads(__tstate);
30252 if (PyErr_Occurred()) SWIG_fail;
30253 }
30254 {
30255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30256 }
30257 return resultobj;
30258 fail:
30259 return NULL;
30260 }
30261
30262
30263 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30264 PyObject *resultobj;
30265 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30266 bool result;
30267 PyObject * obj0 = 0 ;
30268 char *kwnames[] = {
30269 (char *) "self", NULL
30270 };
30271
30272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30275 {
30276 PyThreadState* __tstate = wxPyBeginAllowThreads();
30277 result = (bool)(arg1)->EndContextHelp();
30278
30279 wxPyEndAllowThreads(__tstate);
30280 if (PyErr_Occurred()) SWIG_fail;
30281 }
30282 {
30283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30284 }
30285 return resultobj;
30286 fail:
30287 return NULL;
30288 }
30289
30290
30291 static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) {
30292 PyObject *obj;
30293 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30294 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30295 Py_INCREF(obj);
30296 return Py_BuildValue((char *)"");
30297 }
30298 static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
30299 PyObject *resultobj;
30300 wxWindow *arg1 = (wxWindow *) 0 ;
30301 int arg2 = (int) wxID_CONTEXT_HELP ;
30302 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30303 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30304 wxSize const &arg4_defvalue = wxDefaultSize ;
30305 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30306 long arg5 = (long) wxBU_AUTODRAW ;
30307 wxContextHelpButton *result;
30308 wxPoint temp3 ;
30309 wxSize temp4 ;
30310 PyObject * obj0 = 0 ;
30311 PyObject * obj1 = 0 ;
30312 PyObject * obj2 = 0 ;
30313 PyObject * obj3 = 0 ;
30314 PyObject * obj4 = 0 ;
30315 char *kwnames[] = {
30316 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30317 };
30318
30319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30322 if (obj1) {
30323 arg2 = (int)SWIG_As_int(obj1);
30324 if (PyErr_Occurred()) SWIG_fail;
30325 }
30326 if (obj2) {
30327 {
30328 arg3 = &temp3;
30329 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30330 }
30331 }
30332 if (obj3) {
30333 {
30334 arg4 = &temp4;
30335 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30336 }
30337 }
30338 if (obj4) {
30339 arg5 = (long)SWIG_As_long(obj4);
30340 if (PyErr_Occurred()) SWIG_fail;
30341 }
30342 {
30343 if (!wxPyCheckForApp()) SWIG_fail;
30344 PyThreadState* __tstate = wxPyBeginAllowThreads();
30345 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30346
30347 wxPyEndAllowThreads(__tstate);
30348 if (PyErr_Occurred()) SWIG_fail;
30349 }
30350 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30351 return resultobj;
30352 fail:
30353 return NULL;
30354 }
30355
30356
30357 static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) {
30358 PyObject *obj;
30359 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30360 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30361 Py_INCREF(obj);
30362 return Py_BuildValue((char *)"");
30363 }
30364 static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) {
30365 PyObject *resultobj;
30366 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30367 wxHelpProvider *result;
30368 PyObject * obj0 = 0 ;
30369 char *kwnames[] = {
30370 (char *) "helpProvider", NULL
30371 };
30372
30373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30376 {
30377 PyThreadState* __tstate = wxPyBeginAllowThreads();
30378 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30379
30380 wxPyEndAllowThreads(__tstate);
30381 if (PyErr_Occurred()) SWIG_fail;
30382 }
30383 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30384 return resultobj;
30385 fail:
30386 return NULL;
30387 }
30388
30389
30390 static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) {
30391 PyObject *resultobj;
30392 wxHelpProvider *result;
30393 char *kwnames[] = {
30394 NULL
30395 };
30396
30397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30398 {
30399 PyThreadState* __tstate = wxPyBeginAllowThreads();
30400 result = (wxHelpProvider *)wxHelpProvider::Get();
30401
30402 wxPyEndAllowThreads(__tstate);
30403 if (PyErr_Occurred()) SWIG_fail;
30404 }
30405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30406 return resultobj;
30407 fail:
30408 return NULL;
30409 }
30410
30411
30412 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30413 PyObject *resultobj;
30414 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30415 wxWindow *arg2 = (wxWindow *) 0 ;
30416 wxString result;
30417 PyObject * obj0 = 0 ;
30418 PyObject * obj1 = 0 ;
30419 char *kwnames[] = {
30420 (char *) "self",(char *) "window", NULL
30421 };
30422
30423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30426 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30428 {
30429 PyThreadState* __tstate = wxPyBeginAllowThreads();
30430 result = (arg1)->GetHelp((wxWindow const *)arg2);
30431
30432 wxPyEndAllowThreads(__tstate);
30433 if (PyErr_Occurred()) SWIG_fail;
30434 }
30435 {
30436 #if wxUSE_UNICODE
30437 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30438 #else
30439 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30440 #endif
30441 }
30442 return resultobj;
30443 fail:
30444 return NULL;
30445 }
30446
30447
30448 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30449 PyObject *resultobj;
30450 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30451 wxWindow *arg2 = (wxWindow *) 0 ;
30452 bool result;
30453 PyObject * obj0 = 0 ;
30454 PyObject * obj1 = 0 ;
30455 char *kwnames[] = {
30456 (char *) "self",(char *) "window", NULL
30457 };
30458
30459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30462 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30464 {
30465 PyThreadState* __tstate = wxPyBeginAllowThreads();
30466 result = (bool)(arg1)->ShowHelp(arg2);
30467
30468 wxPyEndAllowThreads(__tstate);
30469 if (PyErr_Occurred()) SWIG_fail;
30470 }
30471 {
30472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30473 }
30474 return resultobj;
30475 fail:
30476 return NULL;
30477 }
30478
30479
30480 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30481 PyObject *resultobj;
30482 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30483 wxWindow *arg2 = (wxWindow *) 0 ;
30484 wxString *arg3 = 0 ;
30485 bool temp3 = False ;
30486 PyObject * obj0 = 0 ;
30487 PyObject * obj1 = 0 ;
30488 PyObject * obj2 = 0 ;
30489 char *kwnames[] = {
30490 (char *) "self",(char *) "window",(char *) "text", NULL
30491 };
30492
30493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30496 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30498 {
30499 arg3 = wxString_in_helper(obj2);
30500 if (arg3 == NULL) SWIG_fail;
30501 temp3 = True;
30502 }
30503 {
30504 PyThreadState* __tstate = wxPyBeginAllowThreads();
30505 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30506
30507 wxPyEndAllowThreads(__tstate);
30508 if (PyErr_Occurred()) SWIG_fail;
30509 }
30510 Py_INCREF(Py_None); resultobj = Py_None;
30511 {
30512 if (temp3)
30513 delete arg3;
30514 }
30515 return resultobj;
30516 fail:
30517 {
30518 if (temp3)
30519 delete arg3;
30520 }
30521 return NULL;
30522 }
30523
30524
30525 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) {
30526 PyObject *resultobj;
30527 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30528 int arg2 ;
30529 wxString *arg3 = 0 ;
30530 bool temp3 = False ;
30531 PyObject * obj0 = 0 ;
30532 PyObject * obj1 = 0 ;
30533 PyObject * obj2 = 0 ;
30534 char *kwnames[] = {
30535 (char *) "self",(char *) "id",(char *) "text", NULL
30536 };
30537
30538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30541 arg2 = (int)SWIG_As_int(obj1);
30542 if (PyErr_Occurred()) SWIG_fail;
30543 {
30544 arg3 = wxString_in_helper(obj2);
30545 if (arg3 == NULL) SWIG_fail;
30546 temp3 = True;
30547 }
30548 {
30549 PyThreadState* __tstate = wxPyBeginAllowThreads();
30550 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30551
30552 wxPyEndAllowThreads(__tstate);
30553 if (PyErr_Occurred()) SWIG_fail;
30554 }
30555 Py_INCREF(Py_None); resultobj = Py_None;
30556 {
30557 if (temp3)
30558 delete arg3;
30559 }
30560 return resultobj;
30561 fail:
30562 {
30563 if (temp3)
30564 delete arg3;
30565 }
30566 return NULL;
30567 }
30568
30569
30570 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30571 PyObject *resultobj;
30572 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30573 wxWindow *arg2 = (wxWindow *) 0 ;
30574 PyObject * obj0 = 0 ;
30575 PyObject * obj1 = 0 ;
30576 char *kwnames[] = {
30577 (char *) "self",(char *) "window", NULL
30578 };
30579
30580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30583 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30585 {
30586 PyThreadState* __tstate = wxPyBeginAllowThreads();
30587 (arg1)->RemoveHelp(arg2);
30588
30589 wxPyEndAllowThreads(__tstate);
30590 if (PyErr_Occurred()) SWIG_fail;
30591 }
30592 Py_INCREF(Py_None); resultobj = Py_None;
30593 return resultobj;
30594 fail:
30595 return NULL;
30596 }
30597
30598
30599 static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
30600 PyObject *resultobj;
30601 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30602 PyObject * obj0 = 0 ;
30603 char *kwnames[] = {
30604 (char *) "self", NULL
30605 };
30606
30607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30610 {
30611 PyThreadState* __tstate = wxPyBeginAllowThreads();
30612 wxHelpProvider_Destroy(arg1);
30613
30614 wxPyEndAllowThreads(__tstate);
30615 if (PyErr_Occurred()) SWIG_fail;
30616 }
30617 Py_INCREF(Py_None); resultobj = Py_None;
30618 return resultobj;
30619 fail:
30620 return NULL;
30621 }
30622
30623
30624 static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) {
30625 PyObject *obj;
30626 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30627 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30628 Py_INCREF(obj);
30629 return Py_BuildValue((char *)"");
30630 }
30631 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) {
30632 PyObject *resultobj;
30633 wxSimpleHelpProvider *result;
30634 char *kwnames[] = {
30635 NULL
30636 };
30637
30638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30639 {
30640 PyThreadState* __tstate = wxPyBeginAllowThreads();
30641 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30642
30643 wxPyEndAllowThreads(__tstate);
30644 if (PyErr_Occurred()) SWIG_fail;
30645 }
30646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30647 return resultobj;
30648 fail:
30649 return NULL;
30650 }
30651
30652
30653 static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) {
30654 PyObject *obj;
30655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30656 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30657 Py_INCREF(obj);
30658 return Py_BuildValue((char *)"");
30659 }
30660 static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
30661 PyObject *resultobj;
30662 wxBitmap *arg1 = 0 ;
30663 wxCursor const &arg2_defvalue = wxNullCursor ;
30664 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30665 wxGenericDragImage *result;
30666 PyObject * obj0 = 0 ;
30667 PyObject * obj1 = 0 ;
30668 char *kwnames[] = {
30669 (char *) "image",(char *) "cursor", NULL
30670 };
30671
30672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30674 SWIG_POINTER_EXCEPTION | 0)) == -1)
30675 SWIG_fail;
30676 if (arg1 == NULL) {
30677 PyErr_SetString(PyExc_TypeError,"null reference");
30678 SWIG_fail;
30679 }
30680 if (obj1) {
30681 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30682 SWIG_POINTER_EXCEPTION | 0)) == -1)
30683 SWIG_fail;
30684 if (arg2 == NULL) {
30685 PyErr_SetString(PyExc_TypeError,"null reference");
30686 SWIG_fail;
30687 }
30688 }
30689 {
30690 if (!wxPyCheckForApp()) SWIG_fail;
30691 PyThreadState* __tstate = wxPyBeginAllowThreads();
30692 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30693
30694 wxPyEndAllowThreads(__tstate);
30695 if (PyErr_Occurred()) SWIG_fail;
30696 }
30697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30698 return resultobj;
30699 fail:
30700 return NULL;
30701 }
30702
30703
30704 static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) {
30705 PyObject *resultobj;
30706 wxIcon *arg1 = 0 ;
30707 wxCursor const &arg2_defvalue = wxNullCursor ;
30708 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30709 wxGenericDragImage *result;
30710 PyObject * obj0 = 0 ;
30711 PyObject * obj1 = 0 ;
30712 char *kwnames[] = {
30713 (char *) "image",(char *) "cursor", NULL
30714 };
30715
30716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
30717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
30718 SWIG_POINTER_EXCEPTION | 0)) == -1)
30719 SWIG_fail;
30720 if (arg1 == NULL) {
30721 PyErr_SetString(PyExc_TypeError,"null reference");
30722 SWIG_fail;
30723 }
30724 if (obj1) {
30725 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30726 SWIG_POINTER_EXCEPTION | 0)) == -1)
30727 SWIG_fail;
30728 if (arg2 == NULL) {
30729 PyErr_SetString(PyExc_TypeError,"null reference");
30730 SWIG_fail;
30731 }
30732 }
30733 {
30734 if (!wxPyCheckForApp()) SWIG_fail;
30735 PyThreadState* __tstate = wxPyBeginAllowThreads();
30736 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
30737
30738 wxPyEndAllowThreads(__tstate);
30739 if (PyErr_Occurred()) SWIG_fail;
30740 }
30741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30742 return resultobj;
30743 fail:
30744 return NULL;
30745 }
30746
30747
30748 static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) {
30749 PyObject *resultobj;
30750 wxString *arg1 = 0 ;
30751 wxCursor const &arg2_defvalue = wxNullCursor ;
30752 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30753 wxGenericDragImage *result;
30754 bool temp1 = False ;
30755 PyObject * obj0 = 0 ;
30756 PyObject * obj1 = 0 ;
30757 char *kwnames[] = {
30758 (char *) "str",(char *) "cursor", NULL
30759 };
30760
30761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
30762 {
30763 arg1 = wxString_in_helper(obj0);
30764 if (arg1 == NULL) SWIG_fail;
30765 temp1 = True;
30766 }
30767 if (obj1) {
30768 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30769 SWIG_POINTER_EXCEPTION | 0)) == -1)
30770 SWIG_fail;
30771 if (arg2 == NULL) {
30772 PyErr_SetString(PyExc_TypeError,"null reference");
30773 SWIG_fail;
30774 }
30775 }
30776 {
30777 if (!wxPyCheckForApp()) SWIG_fail;
30778 PyThreadState* __tstate = wxPyBeginAllowThreads();
30779 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
30780
30781 wxPyEndAllowThreads(__tstate);
30782 if (PyErr_Occurred()) SWIG_fail;
30783 }
30784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30785 {
30786 if (temp1)
30787 delete arg1;
30788 }
30789 return resultobj;
30790 fail:
30791 {
30792 if (temp1)
30793 delete arg1;
30794 }
30795 return NULL;
30796 }
30797
30798
30799 static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) {
30800 PyObject *resultobj;
30801 wxPyTreeCtrl *arg1 = 0 ;
30802 wxTreeItemId *arg2 = 0 ;
30803 wxGenericDragImage *result;
30804 PyObject * obj0 = 0 ;
30805 PyObject * obj1 = 0 ;
30806 char *kwnames[] = {
30807 (char *) "treeCtrl",(char *) "id", NULL
30808 };
30809
30810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
30811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
30812 SWIG_POINTER_EXCEPTION | 0)) == -1)
30813 SWIG_fail;
30814 if (arg1 == NULL) {
30815 PyErr_SetString(PyExc_TypeError,"null reference");
30816 SWIG_fail;
30817 }
30818 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
30819 SWIG_POINTER_EXCEPTION | 0)) == -1)
30820 SWIG_fail;
30821 if (arg2 == NULL) {
30822 PyErr_SetString(PyExc_TypeError,"null reference");
30823 SWIG_fail;
30824 }
30825 {
30826 if (!wxPyCheckForApp()) SWIG_fail;
30827 PyThreadState* __tstate = wxPyBeginAllowThreads();
30828 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
30829
30830 wxPyEndAllowThreads(__tstate);
30831 if (PyErr_Occurred()) SWIG_fail;
30832 }
30833 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30834 return resultobj;
30835 fail:
30836 return NULL;
30837 }
30838
30839
30840 static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) {
30841 PyObject *resultobj;
30842 wxPyListCtrl *arg1 = 0 ;
30843 long arg2 ;
30844 wxGenericDragImage *result;
30845 PyObject * obj0 = 0 ;
30846 PyObject * obj1 = 0 ;
30847 char *kwnames[] = {
30848 (char *) "listCtrl",(char *) "id", NULL
30849 };
30850
30851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
30852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
30853 SWIG_POINTER_EXCEPTION | 0)) == -1)
30854 SWIG_fail;
30855 if (arg1 == NULL) {
30856 PyErr_SetString(PyExc_TypeError,"null reference");
30857 SWIG_fail;
30858 }
30859 arg2 = (long)SWIG_As_long(obj1);
30860 if (PyErr_Occurred()) SWIG_fail;
30861 {
30862 if (!wxPyCheckForApp()) SWIG_fail;
30863 PyThreadState* __tstate = wxPyBeginAllowThreads();
30864 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
30865
30866 wxPyEndAllowThreads(__tstate);
30867 if (PyErr_Occurred()) SWIG_fail;
30868 }
30869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30870 return resultobj;
30871 fail:
30872 return NULL;
30873 }
30874
30875
30876 static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
30877 PyObject *resultobj;
30878 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30879 PyObject * obj0 = 0 ;
30880 char *kwnames[] = {
30881 (char *) "self", NULL
30882 };
30883
30884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
30885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30887 {
30888 PyThreadState* __tstate = wxPyBeginAllowThreads();
30889 delete arg1;
30890
30891 wxPyEndAllowThreads(__tstate);
30892 if (PyErr_Occurred()) SWIG_fail;
30893 }
30894 Py_INCREF(Py_None); resultobj = Py_None;
30895 return resultobj;
30896 fail:
30897 return NULL;
30898 }
30899
30900
30901 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
30902 PyObject *resultobj;
30903 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30904 wxBitmap *arg2 = (wxBitmap *) 0 ;
30905 PyObject * obj0 = 0 ;
30906 PyObject * obj1 = 0 ;
30907 char *kwnames[] = {
30908 (char *) "self",(char *) "bitmap", NULL
30909 };
30910
30911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
30912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30914 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
30915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30916 {
30917 PyThreadState* __tstate = wxPyBeginAllowThreads();
30918 (arg1)->SetBackingBitmap(arg2);
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 *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) {
30931 PyObject *resultobj;
30932 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30933 wxPoint *arg2 = 0 ;
30934 wxWindow *arg3 = (wxWindow *) 0 ;
30935 bool arg4 = (bool) False ;
30936 wxRect *arg5 = (wxRect *) NULL ;
30937 bool result;
30938 wxPoint temp2 ;
30939 PyObject * obj0 = 0 ;
30940 PyObject * obj1 = 0 ;
30941 PyObject * obj2 = 0 ;
30942 PyObject * obj3 = 0 ;
30943 PyObject * obj4 = 0 ;
30944 char *kwnames[] = {
30945 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
30946 };
30947
30948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30951 {
30952 arg2 = &temp2;
30953 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30954 }
30955 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30957 if (obj3) {
30958 arg4 = (bool)SWIG_As_bool(obj3);
30959 if (PyErr_Occurred()) SWIG_fail;
30960 }
30961 if (obj4) {
30962 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
30963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30964 }
30965 {
30966 PyThreadState* __tstate = wxPyBeginAllowThreads();
30967 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
30968
30969 wxPyEndAllowThreads(__tstate);
30970 if (PyErr_Occurred()) SWIG_fail;
30971 }
30972 {
30973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30974 }
30975 return resultobj;
30976 fail:
30977 return NULL;
30978 }
30979
30980
30981 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) {
30982 PyObject *resultobj;
30983 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30984 wxPoint *arg2 = 0 ;
30985 wxWindow *arg3 = (wxWindow *) 0 ;
30986 wxWindow *arg4 = (wxWindow *) 0 ;
30987 bool result;
30988 wxPoint temp2 ;
30989 PyObject * obj0 = 0 ;
30990 PyObject * obj1 = 0 ;
30991 PyObject * obj2 = 0 ;
30992 PyObject * obj3 = 0 ;
30993 char *kwnames[] = {
30994 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
30995 };
30996
30997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31000 {
31001 arg2 = &temp2;
31002 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31003 }
31004 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31006 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
31007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31008 {
31009 PyThreadState* __tstate = wxPyBeginAllowThreads();
31010 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
31011
31012 wxPyEndAllowThreads(__tstate);
31013 if (PyErr_Occurred()) SWIG_fail;
31014 }
31015 {
31016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31017 }
31018 return resultobj;
31019 fail:
31020 return NULL;
31021 }
31022
31023
31024 static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31025 PyObject *resultobj;
31026 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31027 bool result;
31028 PyObject * obj0 = 0 ;
31029 char *kwnames[] = {
31030 (char *) "self", NULL
31031 };
31032
31033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
31034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31036 {
31037 PyThreadState* __tstate = wxPyBeginAllowThreads();
31038 result = (bool)(arg1)->EndDrag();
31039
31040 wxPyEndAllowThreads(__tstate);
31041 if (PyErr_Occurred()) SWIG_fail;
31042 }
31043 {
31044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31045 }
31046 return resultobj;
31047 fail:
31048 return NULL;
31049 }
31050
31051
31052 static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) {
31053 PyObject *resultobj;
31054 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31055 wxPoint *arg2 = 0 ;
31056 bool result;
31057 wxPoint temp2 ;
31058 PyObject * obj0 = 0 ;
31059 PyObject * obj1 = 0 ;
31060 char *kwnames[] = {
31061 (char *) "self",(char *) "pt", NULL
31062 };
31063
31064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
31065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31067 {
31068 arg2 = &temp2;
31069 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31070 }
31071 {
31072 PyThreadState* __tstate = wxPyBeginAllowThreads();
31073 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
31074
31075 wxPyEndAllowThreads(__tstate);
31076 if (PyErr_Occurred()) SWIG_fail;
31077 }
31078 {
31079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31080 }
31081 return resultobj;
31082 fail:
31083 return NULL;
31084 }
31085
31086
31087 static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) {
31088 PyObject *resultobj;
31089 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31090 bool result;
31091 PyObject * obj0 = 0 ;
31092 char *kwnames[] = {
31093 (char *) "self", NULL
31094 };
31095
31096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
31097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31099 {
31100 PyThreadState* __tstate = wxPyBeginAllowThreads();
31101 result = (bool)(arg1)->Show();
31102
31103 wxPyEndAllowThreads(__tstate);
31104 if (PyErr_Occurred()) SWIG_fail;
31105 }
31106 {
31107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31108 }
31109 return resultobj;
31110 fail:
31111 return NULL;
31112 }
31113
31114
31115 static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
31116 PyObject *resultobj;
31117 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31118 bool result;
31119 PyObject * obj0 = 0 ;
31120 char *kwnames[] = {
31121 (char *) "self", NULL
31122 };
31123
31124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
31125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31127 {
31128 PyThreadState* __tstate = wxPyBeginAllowThreads();
31129 result = (bool)(arg1)->Hide();
31130
31131 wxPyEndAllowThreads(__tstate);
31132 if (PyErr_Occurred()) SWIG_fail;
31133 }
31134 {
31135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31136 }
31137 return resultobj;
31138 fail:
31139 return NULL;
31140 }
31141
31142
31143 static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) {
31144 PyObject *resultobj;
31145 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31146 wxPoint *arg2 = 0 ;
31147 wxRect result;
31148 wxPoint temp2 ;
31149 PyObject * obj0 = 0 ;
31150 PyObject * obj1 = 0 ;
31151 char *kwnames[] = {
31152 (char *) "self",(char *) "pos", NULL
31153 };
31154
31155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31158 {
31159 arg2 = &temp2;
31160 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31161 }
31162 {
31163 PyThreadState* __tstate = wxPyBeginAllowThreads();
31164 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31165
31166 wxPyEndAllowThreads(__tstate);
31167 if (PyErr_Occurred()) SWIG_fail;
31168 }
31169 {
31170 wxRect * resultptr;
31171 resultptr = new wxRect((wxRect &) result);
31172 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31173 }
31174 return resultobj;
31175 fail:
31176 return NULL;
31177 }
31178
31179
31180 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31181 PyObject *resultobj;
31182 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31183 wxDC *arg2 = 0 ;
31184 wxPoint *arg3 = 0 ;
31185 bool result;
31186 wxPoint temp3 ;
31187 PyObject * obj0 = 0 ;
31188 PyObject * obj1 = 0 ;
31189 PyObject * obj2 = 0 ;
31190 char *kwnames[] = {
31191 (char *) "self",(char *) "dc",(char *) "pos", NULL
31192 };
31193
31194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31197 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31198 SWIG_POINTER_EXCEPTION | 0)) == -1)
31199 SWIG_fail;
31200 if (arg2 == NULL) {
31201 PyErr_SetString(PyExc_TypeError,"null reference");
31202 SWIG_fail;
31203 }
31204 {
31205 arg3 = &temp3;
31206 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31207 }
31208 {
31209 PyThreadState* __tstate = wxPyBeginAllowThreads();
31210 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31211
31212 wxPyEndAllowThreads(__tstate);
31213 if (PyErr_Occurred()) SWIG_fail;
31214 }
31215 {
31216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31217 }
31218 return resultobj;
31219 fail:
31220 return NULL;
31221 }
31222
31223
31224 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31225 PyObject *resultobj;
31226 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31227 wxDC *arg2 = 0 ;
31228 wxMemoryDC *arg3 = 0 ;
31229 wxRect *arg4 = 0 ;
31230 wxRect *arg5 = 0 ;
31231 bool result;
31232 wxRect temp4 ;
31233 wxRect temp5 ;
31234 PyObject * obj0 = 0 ;
31235 PyObject * obj1 = 0 ;
31236 PyObject * obj2 = 0 ;
31237 PyObject * obj3 = 0 ;
31238 PyObject * obj4 = 0 ;
31239 char *kwnames[] = {
31240 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31241 };
31242
31243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31246 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31247 SWIG_POINTER_EXCEPTION | 0)) == -1)
31248 SWIG_fail;
31249 if (arg2 == NULL) {
31250 PyErr_SetString(PyExc_TypeError,"null reference");
31251 SWIG_fail;
31252 }
31253 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31254 SWIG_POINTER_EXCEPTION | 0)) == -1)
31255 SWIG_fail;
31256 if (arg3 == NULL) {
31257 PyErr_SetString(PyExc_TypeError,"null reference");
31258 SWIG_fail;
31259 }
31260 {
31261 arg4 = &temp4;
31262 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31263 }
31264 {
31265 arg5 = &temp5;
31266 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31267 }
31268 {
31269 PyThreadState* __tstate = wxPyBeginAllowThreads();
31270 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31271
31272 wxPyEndAllowThreads(__tstate);
31273 if (PyErr_Occurred()) SWIG_fail;
31274 }
31275 {
31276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31277 }
31278 return resultobj;
31279 fail:
31280 return NULL;
31281 }
31282
31283
31284 static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31285 PyObject *resultobj;
31286 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31287 wxPoint *arg2 = 0 ;
31288 wxPoint *arg3 = 0 ;
31289 bool arg4 ;
31290 bool arg5 ;
31291 bool result;
31292 wxPoint temp2 ;
31293 wxPoint temp3 ;
31294 PyObject * obj0 = 0 ;
31295 PyObject * obj1 = 0 ;
31296 PyObject * obj2 = 0 ;
31297 PyObject * obj3 = 0 ;
31298 PyObject * obj4 = 0 ;
31299 char *kwnames[] = {
31300 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31301 };
31302
31303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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 {
31311 arg3 = &temp3;
31312 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31313 }
31314 arg4 = (bool)SWIG_As_bool(obj3);
31315 if (PyErr_Occurred()) SWIG_fail;
31316 arg5 = (bool)SWIG_As_bool(obj4);
31317 if (PyErr_Occurred()) SWIG_fail;
31318 {
31319 PyThreadState* __tstate = wxPyBeginAllowThreads();
31320 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31321
31322 wxPyEndAllowThreads(__tstate);
31323 if (PyErr_Occurred()) SWIG_fail;
31324 }
31325 {
31326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31327 }
31328 return resultobj;
31329 fail:
31330 return NULL;
31331 }
31332
31333
31334 static PyObject * DragImage_swigregister(PyObject *, PyObject *args) {
31335 PyObject *obj;
31336 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31337 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31338 Py_INCREF(obj);
31339 return Py_BuildValue((char *)"");
31340 }
31341 static PyMethodDef SwigMethods[] = {
31342 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL },
31343 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL },
31344 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31345 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31346 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31347 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31348 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL },
31349 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31350 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31351 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31352 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31353 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31354 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31355 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31356 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31357 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31358 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31359 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31360 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31361 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL },
31362 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL },
31363 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL },
31364 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31365 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31366 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31367 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31368 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31369 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31370 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31371 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31372 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL },
31373 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL },
31374 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31375 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL },
31376 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL },
31377 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL },
31378 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31379 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31380 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31381 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31382 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31383 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL },
31384 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31385 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31386 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31387 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31388 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31389 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31390 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31391 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31392 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31393 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31394 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31395 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31396 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31397 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL },
31398 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31399 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31400 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31401 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31402 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31403 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31404 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL },
31405 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL },
31406 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL },
31407 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31408 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31409 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31410 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31411 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31412 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31413 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31414 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31415 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
31416 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
31417 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31418 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL },
31419 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
31420 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
31421 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31422 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31423 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL },
31424 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
31425 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
31426 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31427 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31428 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31429 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31430 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL },
31431 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL },
31432 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL },
31433 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31434 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31435 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL },
31436 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31437 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31438 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31439 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31440 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31441 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
31442 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31443 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL },
31444 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31445 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31446 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31447 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
31448 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL },
31449 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL },
31450 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31451 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31452 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL },
31453 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL },
31454 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31455 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31456 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
31457 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL },
31458 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL },
31459 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31460 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31461 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL },
31462 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31463 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31464 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
31465 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31466 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL },
31467 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31468 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31469 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31470 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31471 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL },
31472 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31473 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
31474 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL },
31475 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31476 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31477 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL },
31478 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31479 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31480 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31481 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31482 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31483 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31484 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31485 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
31486 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31487 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31488 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
31489 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31490 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31491 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31492 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31493 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
31494 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31495 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31496 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31497 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31498 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31499 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31500 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31501 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31502 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
31503 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31504 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL },
31505 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL },
31506 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31507 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31508 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31509 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31510 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31511 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31512 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL },
31513 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL },
31514 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL },
31515 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL },
31516 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31517 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL },
31518 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL },
31519 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31520 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31521 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
31522 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31523 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31524 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
31525 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
31526 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL },
31527 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL },
31528 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL },
31529 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL },
31530 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL },
31531 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL },
31532 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31533 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31534 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31535 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31536 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31537 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL },
31538 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31539 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31540 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL },
31541 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31542 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31543 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31544 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
31545 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
31546 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
31547 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
31548 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
31549 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
31550 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
31551 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31552 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31553 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31554 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31555 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31556 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31557 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31558 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL },
31559 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
31560 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31561 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL },
31562 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31563 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31564 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL },
31565 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31566 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL },
31567 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
31568 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
31569 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31570 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31571 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL },
31572 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31573 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31574 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31575 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31576 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
31577 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31578 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL },
31579 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
31580 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
31581 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31582 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31583 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31584 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31585 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31586 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31587 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31588 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31589 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31590 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31591 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL },
31592 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31593 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31594 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31595 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31596 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31597 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL },
31598 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31599 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31600 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31601 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31602 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31603 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL },
31604 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31605 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31606 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31607 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL },
31608 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
31609 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
31610 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31611 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31612 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31613 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31614 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31615 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
31616 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
31617 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
31618 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31619 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL },
31620 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL },
31621 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
31622 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
31623 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
31624 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31625 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL },
31626 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
31627 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
31628 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31629 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31630 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31631 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31632 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL },
31633 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL },
31634 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL },
31635 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31636 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31637 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31638 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31639 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31640 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31641 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31642 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31643 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
31644 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31645 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
31646 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31647 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
31648 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
31649 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
31650 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
31651 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL },
31652 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL },
31653 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL },
31654 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31655 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL },
31656 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31657 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31658 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL },
31659 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
31660 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
31661 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31662 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31663 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31664 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31665 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31666 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL },
31667 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL },
31668 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS, NULL },
31669 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31670 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
31671 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
31672 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31673 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31674 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31675 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
31676 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
31677 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31678 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
31679 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL },
31680 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL },
31681 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
31682 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS, NULL },
31683 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL },
31684 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31685 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31686 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31687 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS, NULL },
31688 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31689 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31690 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31691 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31692 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31693 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS, NULL },
31694 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL },
31695 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
31696 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31697 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
31698 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL },
31699 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL },
31700 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31701 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
31702 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31703 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL },
31704 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31705 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL },
31706 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL },
31707 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL },
31708 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31709 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31710 { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL },
31711 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL },
31712 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31713 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL },
31714 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL },
31715 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
31716 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
31717 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
31718 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL },
31719 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL },
31720 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
31721 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
31722 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
31723 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL },
31724 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
31725 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
31726 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
31727 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
31728 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL },
31729 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
31730 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31731 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
31732 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
31733 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL },
31734 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL },
31735 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31736 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31737 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31738 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31739 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31740 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31741 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
31742 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
31743 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
31744 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31745 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31746 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31747 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31748 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31749 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
31750 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
31751 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
31752 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
31753 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL },
31754 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL },
31755 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL },
31756 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
31757 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
31758 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL },
31759 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL },
31760 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL },
31761 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
31762 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
31763 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL },
31764 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL },
31765 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL },
31766 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL },
31767 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL },
31768 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL },
31769 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL },
31770 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
31771 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
31772 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
31773 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL },
31774 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL },
31775 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
31776 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31777 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31778 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31779 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31780 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL },
31781 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31782 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
31783 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
31784 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31785 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31786 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
31787 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
31788 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
31789 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL },
31790 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL },
31791 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL },
31792 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
31793 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
31794 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL },
31795 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31796 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL },
31797 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31798 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL },
31799 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
31800 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
31801 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31802 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31803 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31804 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL },
31805 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31806 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31807 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31808 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31809 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31810 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31811 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
31812 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31813 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31814 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31815 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
31816 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL },
31817 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
31818 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
31819 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
31820 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31821 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
31822 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
31823 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31824 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
31825 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL },
31826 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
31827 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL },
31828 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
31829 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31830 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
31831 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31832 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31833 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31834 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
31835 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
31836 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31837 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
31838 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
31839 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
31840 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
31841 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31842 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
31843 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31844 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31845 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31846 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31847 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31848 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL },
31849 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL },
31850 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL },
31851 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL },
31852 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
31853 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
31854 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL },
31855 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL },
31856 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL },
31857 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL },
31858 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL },
31859 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL },
31860 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL },
31861 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL },
31862 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL },
31863 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL },
31864 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL },
31865 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL },
31866 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
31867 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
31868 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL },
31869 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31870 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL },
31871 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL },
31872 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
31873 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
31874 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
31875 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
31876 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
31877 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
31878 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL },
31879 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL },
31880 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL },
31881 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
31882 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
31883 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31884 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31885 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31886 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
31887 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
31888 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
31889 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
31890 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
31891 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL },
31892 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL },
31893 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
31894 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
31895 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL },
31896 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31897 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31898 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31899 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
31900 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31901 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31902 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31903 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31904 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31905 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31906 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL },
31907 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL },
31908 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
31909 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
31910 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
31911 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
31912 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
31913 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
31914 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
31915 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
31916 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
31917 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
31918 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31919 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL },
31920 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31921 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
31922 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
31923 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
31924 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
31925 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
31926 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31927 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31928 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL },
31929 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31930 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
31931 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
31932 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31933 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31934 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31935 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL },
31936 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL },
31937 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL },
31938 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL },
31939 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL },
31940 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
31941 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
31942 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31943 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL },
31944 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL },
31945 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31946 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31947 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
31948 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL },
31949 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL },
31950 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31951 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
31952 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
31953 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL },
31954 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
31955 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL },
31956 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31957 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
31958 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL },
31959 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31960 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31961 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31962 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31963 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL },
31964 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL },
31965 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31966 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL },
31967 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL },
31968 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL },
31969 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31970 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL },
31971 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL },
31972 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL },
31973 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31974 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31975 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31976 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
31977 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
31978 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL },
31979 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
31980 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
31981 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
31982 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
31983 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
31984 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL },
31985 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL },
31986 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL },
31987 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL },
31988 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
31989 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
31990 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
31991 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
31992 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
31993 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL },
31994 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31995 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
31996 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
31997 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
31998 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
31999 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32000 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32001 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32002 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32003 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32004 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32005 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32006 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32007 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32008 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
32009 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL },
32010 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32011 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32012 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32013 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32014 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32015 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32016 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32017 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32018 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32019 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32020 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32021 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32022 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32023 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32024 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32025 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32026 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32027 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32028 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32029 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32030 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32031 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32032 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32033 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32034 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32035 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32036 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32037 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL },
32038 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32039 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32040 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32041 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32042 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32043 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL },
32044 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32045 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL },
32046 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL },
32047 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL },
32048 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32049 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32050 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL },
32051 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL },
32052 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL },
32053 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL },
32054 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32055 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32056 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL },
32057 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32058 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32059 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL },
32060 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
32061 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32062 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL },
32063 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
32064 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
32065 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32066 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32067 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL },
32068 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL },
32069 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL },
32070 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32071 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL },
32072 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32073 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32074 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32075 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32076 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32077 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL },
32078 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32079 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32080 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32081 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32082 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL },
32083 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32084 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL },
32085 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32086 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32087 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32088 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL },
32089 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32090 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32091 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32092 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL },
32093 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32094 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32095 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32096 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32097 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32098 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32099 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32100 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL },
32101 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32102 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32103 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL },
32104 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL },
32105 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL },
32106 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL },
32107 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32108 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32109 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32110 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
32111 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
32112 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32113 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32114 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32115 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32116 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32117 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32118 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32119 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32120 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32121 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32122 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32123 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32124 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32125 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
32126 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32127 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32128 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
32129 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
32130 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
32131 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
32132 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
32133 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
32134 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
32135 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32136 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32137 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
32138 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32139 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32140 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32141 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32142 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32143 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32144 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32145 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL },
32146 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32147 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32148 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32149 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32150 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL },
32151 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL },
32152 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL },
32153 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32154 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL },
32155 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32156 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32157 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32158 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL },
32159 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32160 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32161 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL },
32162 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL },
32163 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL },
32164 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32165 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32166 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL },
32167 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL },
32168 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32169 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32170 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32171 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32172 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL },
32173 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32174 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL },
32175 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL },
32176 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
32177 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL },
32178 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32179 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32180 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32181 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL },
32182 { NULL, NULL, 0, NULL }
32183 };
32184
32185
32186 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32187
32188 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
32189 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32190 }
32191 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
32192 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
32193 }
32194 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32195 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32196 }
32197 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32198 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32199 }
32200 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32201 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32202 }
32203 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32204 return (void *)((wxSizer *) ((wxGridSizer *) x));
32205 }
32206 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32207 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32208 }
32209 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32210 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32211 }
32212 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32213 return (void *)((wxSizer *) ((wxPySizer *) x));
32214 }
32215 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32216 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32217 }
32218 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32219 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32220 }
32221 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32222 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32223 }
32224 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32225 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32226 }
32227 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32228 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32229 }
32230 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32231 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32232 }
32233 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32234 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32235 }
32236 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32237 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32238 }
32239 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32240 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32241 }
32242 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32243 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32244 }
32245 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32246 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32247 }
32248 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
32249 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32250 }
32251 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32252 return (void *)((wxEvent *) ((wxPyEvent *) x));
32253 }
32254 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32255 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32256 }
32257 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32258 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32259 }
32260 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32261 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32262 }
32263 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32264 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32265 }
32266 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32267 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32268 }
32269 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32270 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32271 }
32272 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32273 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32274 }
32275 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32276 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32277 }
32278 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32279 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32280 }
32281 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32282 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32283 }
32284 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32285 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32286 }
32287 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32288 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32289 }
32290 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32291 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32292 }
32293 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32294 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32295 }
32296 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32297 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32298 }
32299 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32300 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32301 }
32302 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32303 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32304 }
32305 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32306 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32307 }
32308 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32309 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32310 }
32311 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32312 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32313 }
32314 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32315 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32316 }
32317 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32318 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32319 }
32320 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32321 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32322 }
32323 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32324 return (void *)((wxEvent *) ((wxShowEvent *) x));
32325 }
32326 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32327 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32328 }
32329 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32330 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32331 }
32332 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32333 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32334 }
32335 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32336 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32337 }
32338 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32339 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32340 }
32341 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32342 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32343 }
32344 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32345 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32346 }
32347 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32348 return (void *)((wxItemContainer *) ((wxComboBox *) x));
32349 }
32350 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32351 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32352 }
32353 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32354 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32355 }
32356 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32357 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32358 }
32359 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32360 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32361 }
32362 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32363 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32364 }
32365 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32366 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32367 }
32368 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
32369 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32370 }
32371 static void *_p_wxListBoxTo_p_wxControl(void *x) {
32372 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
32373 }
32374 static void *_p_wxChoiceTo_p_wxControl(void *x) {
32375 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
32376 }
32377 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32378 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32379 }
32380 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
32381 return (void *)((wxControl *) ((wxStaticBitmap *) x));
32382 }
32383 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32384 return (void *)((wxControl *) ((wxComboBox *) x));
32385 }
32386 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
32387 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32388 }
32389 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32390 return (void *)((wxControl *) ((wxStaticBox *) x));
32391 }
32392 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32393 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32394 }
32395 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32396 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32397 }
32398 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32399 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32400 }
32401 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32402 return (void *)((wxControl *) ((wxScrollBar *) x));
32403 }
32404 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32405 return (void *)((wxControl *) ((wxBookCtrl *) x));
32406 }
32407 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32408 return (void *)((wxControl *) ((wxRadioButton *) x));
32409 }
32410 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32411 return (void *)((wxControl *) ((wxToggleButton *) x));
32412 }
32413 static void *_p_wxGaugeTo_p_wxControl(void *x) {
32414 return (void *)((wxControl *) ((wxGauge *) x));
32415 }
32416 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32417 return (void *)((wxControl *) ((wxToolBarBase *) x));
32418 }
32419 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32420 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32421 }
32422 static void *_p_wxButtonTo_p_wxControl(void *x) {
32423 return (void *)((wxControl *) ((wxButton *) x));
32424 }
32425 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32426 return (void *)((wxControl *) ((wxSpinButton *) x));
32427 }
32428 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32429 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32430 }
32431 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32432 return (void *)((wxControl *) ((wxControlWithItems *) x));
32433 }
32434 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32435 return (void *)((wxControl *) ((wxRadioBox *) x));
32436 }
32437 static void *_p_wxNotebookTo_p_wxControl(void *x) {
32438 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32439 }
32440 static void *_p_wxListbookTo_p_wxControl(void *x) {
32441 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32442 }
32443 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32444 return (void *)((wxControl *) ((wxCheckBox *) x));
32445 }
32446 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32447 return (void *)((wxControl *) ((wxTextCtrl *) x));
32448 }
32449 static void *_p_wxListViewTo_p_wxControl(void *x) {
32450 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32451 }
32452 static void *_p_wxSliderTo_p_wxControl(void *x) {
32453 return (void *)((wxControl *) ((wxSlider *) x));
32454 }
32455 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32456 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32457 }
32458 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32459 return (void *)((wxControl *) ((wxPyControl *) x));
32460 }
32461 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32462 return (void *)((wxControl *) ((wxStaticLine *) x));
32463 }
32464 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32465 return (void *)((wxControl *) ((wxStaticText *) x));
32466 }
32467 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32468 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32469 }
32470 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32471 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32472 }
32473 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32474 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32475 }
32476 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32477 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32478 }
32479 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32480 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32481 }
32482 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32483 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32484 }
32485 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32486 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32487 }
32488 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32489 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32490 }
32491 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32492 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32493 }
32494 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32495 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32496 }
32497 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32498 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32499 }
32500 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32501 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32502 }
32503 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32504 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32505 }
32506 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32507 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32508 }
32509 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32510 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32511 }
32512 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32513 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32514 }
32515 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32516 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32517 }
32518 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32519 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32520 }
32521 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32522 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32523 }
32524 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32525 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32526 }
32527 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32528 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
32529 }
32530 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32531 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32532 }
32533 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32534 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32535 }
32536 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32537 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32538 }
32539 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32540 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32541 }
32542 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32543 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32544 }
32545 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32546 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32547 }
32548 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32549 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32550 }
32551 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32552 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32553 }
32554 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32555 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32556 }
32557 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32558 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32559 }
32560 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32561 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32562 }
32563 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32564 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32565 }
32566 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32567 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32568 }
32569 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32570 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32571 }
32572 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32573 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32574 }
32575 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32576 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32577 }
32578 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32579 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32580 }
32581 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32582 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32583 }
32584 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32585 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32586 }
32587 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32588 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32589 }
32590 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32591 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32592 }
32593 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32594 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32595 }
32596 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32597 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32598 }
32599 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32600 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32601 }
32602 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32603 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32604 }
32605 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32606 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32607 }
32608 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32609 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32610 }
32611 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32612 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32613 }
32614 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32615 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32616 }
32617 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32618 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32619 }
32620 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32621 return (void *)((wxButton *) ((wxBitmapButton *) x));
32622 }
32623 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32624 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32625 }
32626 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32627 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32628 }
32629 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32630 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32631 }
32632 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32633 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32634 }
32635 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32636 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32637 }
32638 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32639 return (void *)((wxObject *) ((wxSizerItem *) x));
32640 }
32641 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32642 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32643 }
32644 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32645 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32646 }
32647 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32648 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32649 }
32650 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32651 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32652 }
32653 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32654 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32655 }
32656 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32657 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32658 }
32659 static void *_p_wxSizerTo_p_wxObject(void *x) {
32660 return (void *)((wxObject *) ((wxSizer *) x));
32661 }
32662 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32663 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32664 }
32665 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32666 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32667 }
32668 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32669 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32670 }
32671 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32672 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32673 }
32674 static void *_p_wxEventTo_p_wxObject(void *x) {
32675 return (void *)((wxObject *) ((wxEvent *) x));
32676 }
32677 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32678 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32679 }
32680 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32681 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32682 }
32683 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32684 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32685 }
32686 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
32687 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32688 }
32689 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
32690 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32691 }
32692 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
32693 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32694 }
32695 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32696 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32697 }
32698 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32699 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32700 }
32701 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32702 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32703 }
32704 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32705 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32706 }
32707 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32708 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32709 }
32710 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32711 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32712 }
32713 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
32714 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
32715 }
32716 static void *_p_wxControlTo_p_wxObject(void *x) {
32717 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32718 }
32719 static void *_p_wxPyControlTo_p_wxObject(void *x) {
32720 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
32721 }
32722 static void *_p_wxGaugeTo_p_wxObject(void *x) {
32723 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
32724 }
32725 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
32726 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
32727 }
32728 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
32729 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
32730 }
32731 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
32732 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32733 }
32734 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32735 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32736 }
32737 static void *_p_wxChoiceTo_p_wxObject(void *x) {
32738 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32739 }
32740 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32741 return (void *)((wxObject *) ((wxFSFile *) x));
32742 }
32743 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32744 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32745 }
32746 static void *_p_wxListViewTo_p_wxObject(void *x) {
32747 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32748 }
32749 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
32750 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32751 }
32752 static void *_p_wxNotebookTo_p_wxObject(void *x) {
32753 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32754 }
32755 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32756 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32757 }
32758 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32759 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32760 }
32761 static void *_p_wxListbookTo_p_wxObject(void *x) {
32762 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32763 }
32764 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32765 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32766 }
32767 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
32768 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32769 }
32770 static void *_p_wxSliderTo_p_wxObject(void *x) {
32771 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
32772 }
32773 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32774 return (void *)((wxObject *) ((wxMenuItem *) x));
32775 }
32776 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32777 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32778 }
32779 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32780 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32781 }
32782 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32783 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32784 }
32785 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32786 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32787 }
32788 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32789 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32790 }
32791 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32792 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32793 }
32794 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32795 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32796 }
32797 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32798 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32799 }
32800 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
32801 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
32802 }
32803 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
32804 return (void *)((wxObject *) ((wxContextHelp *) x));
32805 }
32806 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32807 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32808 }
32809 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32810 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32811 }
32812 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32813 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32814 }
32815 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32816 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32817 }
32818 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32819 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32820 }
32821 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32822 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32823 }
32824 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32825 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32826 }
32827 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32828 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32829 }
32830 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32831 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32832 }
32833 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32834 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32835 }
32836 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32837 return (void *)((wxObject *) ((wxImageHandler *) x));
32838 }
32839 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32840 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32841 }
32842 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32843 return (void *)((wxObject *) ((wxEvtHandler *) x));
32844 }
32845 static void *_p_wxListEventTo_p_wxObject(void *x) {
32846 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32847 }
32848 static void *_p_wxListBoxTo_p_wxObject(void *x) {
32849 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32850 }
32851 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
32852 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32853 }
32854 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
32855 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32856 }
32857 static void *_p_wxButtonTo_p_wxObject(void *x) {
32858 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
32859 }
32860 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
32861 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32862 }
32863 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
32864 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
32865 }
32866 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
32867 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32868 }
32869 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32870 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32871 }
32872 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
32873 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
32874 }
32875 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
32876 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
32877 }
32878 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
32879 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
32880 }
32881 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
32882 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
32883 }
32884 static void *_p_wxListItemTo_p_wxObject(void *x) {
32885 return (void *)((wxObject *) ((wxListItem *) x));
32886 }
32887 static void *_p_wxImageTo_p_wxObject(void *x) {
32888 return (void *)((wxObject *) ((wxImage *) x));
32889 }
32890 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
32891 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
32892 }
32893 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32894 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32895 }
32896 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
32897 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32898 }
32899 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
32900 return (void *)((wxObject *) ((wxGenericDragImage *) x));
32901 }
32902 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
32903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32904 }
32905 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
32906 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32907 }
32908 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
32909 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32910 }
32911 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32912 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32913 }
32914 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32915 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32916 }
32917 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32918 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32919 }
32920 static void *_p_wxWindowTo_p_wxObject(void *x) {
32921 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32922 }
32923 static void *_p_wxMenuTo_p_wxObject(void *x) {
32924 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32925 }
32926 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32927 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32928 }
32929 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32930 return (void *)((wxObject *) ((wxFileSystem *) x));
32931 }
32932 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32933 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32934 }
32935 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32936 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32937 }
32938 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32939 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32940 }
32941 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32942 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32943 }
32944 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32945 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32946 }
32947 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32948 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32949 }
32950 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
32951 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32952 }
32953 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32954 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32955 }
32956 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32957 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32958 }
32959 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
32960 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
32961 }
32962 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32963 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32964 }
32965 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32966 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32967 }
32968 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32969 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32970 }
32971 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32972 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32973 }
32974 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
32975 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
32976 }
32977 static void *_p_wxToolBarTo_p_wxObject(void *x) {
32978 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32979 }
32980 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32981 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32982 }
32983 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32984 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32985 }
32986 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
32987 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
32988 }
32989 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
32990 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
32991 }
32992 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32993 return (void *)((wxWindow *) ((wxMenuBar *) x));
32994 }
32995 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
32996 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32997 }
32998 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
32999 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
33000 }
33001 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
33002 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
33003 }
33004 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
33005 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
33006 }
33007 static void *_p_wxControlTo_p_wxWindow(void *x) {
33008 return (void *)((wxWindow *) ((wxControl *) x));
33009 }
33010 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
33011 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
33012 }
33013 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
33014 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33015 }
33016 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
33017 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
33018 }
33019 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
33020 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
33021 }
33022 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
33023 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
33024 }
33025 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
33026 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
33027 }
33028 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33029 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33030 }
33031 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
33032 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
33033 }
33034 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
33035 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
33036 }
33037 static void *_p_wxListbookTo_p_wxWindow(void *x) {
33038 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33039 }
33040 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
33041 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
33042 }
33043 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
33044 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
33045 }
33046 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
33047 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
33048 }
33049 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
33050 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33051 }
33052 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
33053 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33054 }
33055 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
33056 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33057 }
33058 static void *_p_wxListViewTo_p_wxWindow(void *x) {
33059 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33060 }
33061 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
33062 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33063 }
33064 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
33065 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
33066 }
33067 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
33068 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
33069 }
33070 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
33071 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
33072 }
33073 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
33074 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
33075 }
33076 static void *_p_wxSliderTo_p_wxWindow(void *x) {
33077 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
33078 }
33079 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
33080 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
33081 }
33082 static void *_p_wxButtonTo_p_wxWindow(void *x) {
33083 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
33084 }
33085 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
33086 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
33087 }
33088 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
33089 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33090 }
33091 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
33092 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
33093 }
33094 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
33095 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33096 }
33097 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
33098 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
33099 }
33100 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
33101 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
33102 }
33103 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
33104 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
33105 }
33106 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
33107 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
33108 }
33109 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
33110 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
33111 }
33112 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
33113 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
33114 }
33115 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
33116 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33117 }
33118 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
33119 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33120 }
33121 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
33122 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
33123 }
33124 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
33125 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
33126 }
33127 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
33128 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
33129 }
33130 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
33131 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
33132 }
33133 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
33134 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
33135 }
33136 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
33137 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
33138 }
33139 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
33140 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
33141 }
33142 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
33143 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
33144 }
33145 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33146 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33147 }
33148 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33149 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33150 }
33151 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33152 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33153 }
33154 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33155 return (void *)((wxValidator *) ((wxPyValidator *) x));
33156 }
33157 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}};
33158 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}};
33159 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}};
33160 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}};
33161 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}};
33162 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}};
33163 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}};
33164 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}};
33165 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}};
33166 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}};
33167 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}};
33168 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}};
33169 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}};
33170 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}};
33171 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}};
33172 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}};
33173 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}};
33174 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}};
33175 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}};
33176 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}};
33177 static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33178 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}};
33179 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}};
33180 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}};
33181 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}};
33182 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}};
33183 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}};
33184 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}};
33185 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}};
33186 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}};
33187 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}};
33188 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}};
33189 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}};
33190 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}};
33191 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}};
33192 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}};
33193 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}};
33194 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}};
33195 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}};
33196 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}};
33197 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}};
33198 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}};
33199 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}};
33200 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}};
33201 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}};
33202 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}};
33203 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}};
33204 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}};
33205 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}};
33206 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}};
33207 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}};
33208 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}};
33209 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}};
33210 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}};
33211 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}};
33212 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}};
33213 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}};
33214 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}};
33215 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}};
33216 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}};
33217 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}};
33218 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}};
33219 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}};
33220 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}};
33221 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}};
33222 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}};
33223 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}};
33224 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}};
33225 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}};
33226 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}};
33227 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}};
33228 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}};
33229 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}};
33230 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}};
33231 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}};
33232 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}};
33233 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}};
33234 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}};
33235 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}};
33236 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33237 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}};
33238 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}};
33239 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}};
33240 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}};
33241 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}};
33242
33243 static swig_type_info *swig_types_initial[] = {
33244 _swigt__p_wxTextUrlEvent,
33245 _swigt__p_wxBookCtrlEvent,
33246 _swigt__p_wxSizer,
33247 _swigt__p_wxCheckBox,
33248 _swigt__p_wxPyTreeCtrl,
33249 _swigt__p_wxEvent,
33250 _swigt__p_wxGenericDirCtrl,
33251 _swigt__p_bool,
33252 _swigt__p_wxPyTreeItemData,
33253 _swigt__p_wxItemContainer,
33254 _swigt__p_wxPyListCtrl,
33255 _swigt__p_wxDirFilterListCtrl,
33256 _swigt__p_wxStaticLine,
33257 _swigt__p_wxControl,
33258 _swigt__p_wxPyControl,
33259 _swigt__p_wxGauge,
33260 _swigt__p_wxToolBarBase,
33261 _swigt__p_wxFont,
33262 _swigt__p_wxToggleButton,
33263 _swigt__p_wxRadioButton,
33264 _swigt__p_wxChoice,
33265 _swigt__p_wxMemoryDC,
33266 _swigt__p_wxListItemAttr,
33267 _swigt__p_void,
33268 _swigt__p_int,
33269 _swigt__p_wxSize,
33270 _swigt__p_wxDC,
33271 _swigt__p_wxListView,
33272 _swigt__p_wxIcon,
33273 _swigt__p_wxVisualAttributes,
33274 _swigt__p_wxTextCtrl,
33275 _swigt__p_wxNotebook,
33276 _swigt__p_wxNotifyEvent,
33277 _swigt__p_wxArrayString,
33278 _swigt__p_wxListbook,
33279 _swigt__p_wxStaticBitmap,
33280 _swigt__p_wxSlider,
33281 _swigt__p_wxStaticBox,
33282 _swigt__p_wxArrayInt,
33283 _swigt__p_wxContextHelp,
33284 _swigt__p_long,
33285 _swigt__p_wxEvtHandler,
33286 _swigt__p_wxListEvent,
33287 _swigt__p_wxCheckListBox,
33288 _swigt__p_wxListBox,
33289 _swigt__p_wxBookCtrl,
33290 _swigt__p_wxSpinButton,
33291 _swigt__p_wxButton,
33292 _swigt__p_wxBitmapButton,
33293 _swigt__p_wxRect,
33294 _swigt__p_wxContextHelpButton,
33295 _swigt__p_wxRadioBox,
33296 _swigt__p_wxScrollBar,
33297 _swigt__p_char,
33298 _swigt__p_wxTreeItemId,
33299 _swigt__p_wxComboBox,
33300 _swigt__p_wxHelpEvent,
33301 _swigt__p_wxListItem,
33302 _swigt__p_wxNotebookSizer,
33303 _swigt__p_wxSpinEvent,
33304 _swigt__p_wxGenericDragImage,
33305 _swigt__p_wxSpinCtrl,
33306 _swigt__p_wxImageList,
33307 _swigt__p_wxHelpProvider,
33308 _swigt__p_wxTextAttr,
33309 _swigt__p_wxSimpleHelpProvider,
33310 _swigt__p_wxPoint,
33311 _swigt__p_wxListbookEvent,
33312 _swigt__p_wxNotebookEvent,
33313 _swigt__p_wxObject,
33314 _swigt__p_wxCursor,
33315 _swigt__p_wxKeyEvent,
33316 _swigt__p_wxWindow,
33317 _swigt__p_wxString,
33318 _swigt__p_wxBitmap,
33319 _swigt__p_wxTreeEvent,
33320 _swigt__p_wxMouseEvent,
33321 _swigt__p_wxCommandEvent,
33322 _swigt__p_wxStaticText,
33323 _swigt__p_wxControlWithItems,
33324 _swigt__p_wxToolBarToolBase,
33325 _swigt__p_wxColour,
33326 _swigt__p_wxToolBar,
33327 _swigt__p_wxBookCtrlSizer,
33328 _swigt__p_wxValidator,
33329 0
33330 };
33331
33332
33333 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33334
33335 static swig_const_info swig_const_table[] = {
33336 {0, 0, 0, 0.0, 0, 0}};
33337
33338 #ifdef __cplusplus
33339 }
33340 #endif
33341
33342 #ifdef __cplusplus
33343 extern "C"
33344 #endif
33345 SWIGEXPORT(void) SWIG_init(void) {
33346 static PyObject *SWIG_globals = 0;
33347 static int typeinit = 0;
33348 PyObject *m, *d;
33349 int i;
33350 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33351 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33352 d = PyModule_GetDict(m);
33353
33354 if (!typeinit) {
33355 for (i = 0; swig_types_initial[i]; i++) {
33356 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33357 }
33358 typeinit = 1;
33359 }
33360 SWIG_InstallConstants(d,swig_const_table);
33361
33362 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33363 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33364 PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT));
33365 PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP));
33366 PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT));
33367 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM));
33368 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT));
33369 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW));
33370 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33371 PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE));
33372 PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE));
33373 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
33374 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED));
33375 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED));
33376 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED));
33377 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
33378 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
33379 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
33380 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL));
33381 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL));
33382 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH));
33383 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR));
33384 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
33385 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
33386 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
33387 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33388 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33389 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL));
33390 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL));
33391 PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY));
33392 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE));
33393 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB));
33394 PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT));
33395 PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER));
33396 PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT));
33397 PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE));
33398 PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH));
33399 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER));
33400 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD));
33401 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL));
33402 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL));
33403 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP));
33404 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP));
33405 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP));
33406 PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2));
33407 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT));
33408 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT));
33409 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE));
33410 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER));
33411 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT));
33412 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33413 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR));
33414 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33415 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE));
33416 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE));
33417 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT));
33418 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC));
33419 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE));
33420 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT));
33421 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT));
33422 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT));
33423 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT));
33424 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS));
33425 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN));
33426 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE));
33427 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT));
33428 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW));
33429 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND));
33430 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33431 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33432 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33433 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33434 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33435 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33436 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33437 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL));
33438 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL));
33439 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS));
33440 PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP));
33441 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33442 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33443 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33444 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33445 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33446 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33447 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33448 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH));
33449 PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP));
33450 PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT));
33451 PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT));
33452 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM));
33453 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE));
33454 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE));
33455 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON));
33456 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL));
33457 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM));
33458 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33459 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33460 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT));
33461 PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP));
33462 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM));
33463 PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT));
33464 PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT));
33465 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK));
33466 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33467 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33468 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON));
33469 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR));
33470 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL));
33471 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL));
33472 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL));
33473 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS));
33474 PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT));
33475 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE));
33476 PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS));
33477 PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT));
33478 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER));
33479 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN));
33480 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT));
33481 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT));
33482 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33483 PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES));
33484 PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES));
33485 PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON));
33486 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON));
33487 PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST));
33488 PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT));
33489 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP));
33490 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT));
33491 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE));
33492 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL));
33493 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS));
33494 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER));
33495 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER));
33496 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL));
33497 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING));
33498 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING));
33499 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE));
33500 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN));
33501 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT));
33502 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE));
33503 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT));
33504 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE));
33505 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA));
33506 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM));
33507 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH));
33508 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT));
33509 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE));
33510 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED));
33511 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED));
33512 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED));
33513 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT));
33514 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED));
33515 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED));
33516 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE));
33517 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED));
33518 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE));
33519 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE));
33520 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW));
33521 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE));
33522 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON));
33523 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL));
33524 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT));
33525 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON));
33526 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT));
33527 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT));
33528 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM));
33529 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE));
33530 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL));
33531 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW));
33532 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT));
33533 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT));
33534 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT));
33535 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT));
33536 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP));
33537 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID));
33538 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT));
33539 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT));
33540 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE));
33541 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER));
33542 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE));
33543 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER));
33544 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS));
33545 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON));
33546 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL));
33547 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP));
33548 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN));
33549 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT));
33550 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT));
33551 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33552 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33553 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33554 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33555 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33556 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33557 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33558 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33559 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33560 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33561 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33562 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33563 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33564 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33565 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33566 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33567 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33568 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33569 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33570 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33571 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33572 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33573
33574 // Map renamed classes back to their common name for OOR
33575 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33576
33577 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33578 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS));
33579 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS));
33580 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES));
33581 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT));
33582 PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE));
33583 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE));
33584 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED));
33585 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33586 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS));
33587 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT));
33588 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES));
33589 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT));
33590 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE));
33591 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS));
33592 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS));
33593 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS));
33594 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal));
33595 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected));
33596 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded));
33597 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded));
33598 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max));
33599 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE));
33600 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW));
33601 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE));
33602 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON));
33603 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON));
33604 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT));
33605 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL));
33606 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT));
33607 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON));
33608 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT));
33609 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT));
33610 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART));
33611 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART));
33612 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM));
33613 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33614 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33615 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33616 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33617 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33618 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33619 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33620 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33621 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33622 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33623 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33624 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33625 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33626 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33627 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33628 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33629 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33630 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33631 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33632 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33633
33634 // Map renamed classes back to their common name for OOR
33635 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33636 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33637
33638 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33639 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY));
33640 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST));
33641 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS));
33642 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL));
33643 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS));
33644 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP));
33645 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP));
33646 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33647 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33648
33649 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33650
33651 }
33652