]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
AssociateHandle and DissociateHandle
[wxWidgets.git] / wxPython / src / gtk / _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 int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; }
669 int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; }
670 int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; }
671
672 #include <wx/slider.h>
673
674
675 static const wxString wxPySliderNameStr(wxSliderNameStr);
676 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
677
678 #if !wxUSE_TOGGLEBTN
679 // implement dummy items for platforms that don't have this class
680
681 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
682
683 class wxToggleButton : public wxControl
684 {
685 public:
686 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
687 const wxPoint&, const wxSize&, long,
688 const wxValidator&, const wxString&)
689 { wxPyRaiseNotImplemented(); }
690
691 wxToggleButton()
692 { wxPyRaiseNotImplemented(); }
693 };
694 #endif
695
696 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
697
698 SWIGSTATICINLINE(PyObject* )
699 SWIG_From_unsigned_SS_long(unsigned long value)
700 {
701 return (value > LONG_MAX) ?
702 PyLong_FromUnsignedLong(value)
703 : PyInt_FromLong(swig_numeric_cast(value,long));
704 }
705
706 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
707 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
708 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
709 if (udata) {
710 Py_INCREF(udata->m_obj);
711 return udata->m_obj;
712 } else {
713 Py_INCREF(Py_None);
714 return Py_None;
715 }
716 }
717 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
718 self->SetClientData(new wxPyUserData(clientData));
719 }
720 wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
721 wxPyUserData* udata = NULL;
722 if (clientData && clientData != Py_None)
723 udata = new wxPyUserData(clientData);
724 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
725 shortHelp, longHelp, udata);
726 }
727 wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
728 wxPyUserData* udata = NULL;
729 if (clientData && clientData != Py_None)
730 udata = new wxPyUserData(clientData);
731 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
732 shortHelp, longHelp, udata);
733 }
734 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
735 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
736 if (udata) {
737 Py_INCREF(udata->m_obj);
738 return udata->m_obj;
739 } else {
740 Py_INCREF(Py_None);
741 return Py_None;
742 }
743 }
744 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
745 self->SetToolClientData(id, new wxPyUserData(clientData));
746 }
747
748 #include <wx/listctrl.h>
749
750 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
751 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
752 // Python aware sorting function for wxPyListCtrl
753 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
754 int retval = 0;
755 PyObject* func = (PyObject*)funcPtr;
756 bool blocked = wxPyBeginBlockThreads();
757
758 PyObject* args = Py_BuildValue("(ii)", item1, item2);
759 PyObject* result = PyEval_CallObject(func, args);
760 Py_DECREF(args);
761 if (result) {
762 retval = PyInt_AsLong(result);
763 Py_DECREF(result);
764 }
765
766 wxPyEndBlockThreads(blocked);
767 return retval;
768 }
769
770 // C++ Version of a Python aware class
771 class wxPyListCtrl : public wxListCtrl {
772 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
773 public:
774 wxPyListCtrl() : wxListCtrl() {}
775 wxPyListCtrl(wxWindow* parent, wxWindowID id,
776 const wxPoint& pos,
777 const wxSize& size,
778 long style,
779 const wxValidator& validator,
780 const wxString& name) :
781 wxListCtrl(parent, id, pos, size, style, validator, name) {}
782
783 bool Create(wxWindow* parent, wxWindowID id,
784 const wxPoint& pos,
785 const wxSize& size,
786 long style,
787 const wxValidator& validator,
788 const wxString& name) {
789 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
790 }
791
792 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
793 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
794 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
795
796 PYPRIVATE;
797 };
798
799 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
800
801 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
802 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
803 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
804
805 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
806 wxListItem item;
807 item.SetMask( wxLIST_MASK_STATE |
808 wxLIST_MASK_TEXT |
809 wxLIST_MASK_IMAGE |
810 wxLIST_MASK_DATA |
811 wxLIST_SET_ITEM |
812 wxLIST_MASK_WIDTH |
813 wxLIST_MASK_FORMAT
814 );
815 if (self->GetColumn(col, item))
816 return new wxListItem(item);
817 else
818 return NULL;
819 }
820 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
821 wxListItem* info = new wxListItem;
822 info->m_itemId = itemId;
823 info->m_col = col;
824 info->m_mask = 0xFFFF;
825 self->GetItem(*info);
826 return info;
827 }
828 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
829 wxPoint pos;
830 self->GetItemPosition(item, pos);
831 return pos;
832 }
833 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
834 wxRect rect;
835 self->GetItemRect(item, rect, code);
836 return rect;
837 }
838
839 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
840 if (!PyCallable_Check(func))
841 return False;
842 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
843 }
844 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
845
846
847
848 return (wxWindow*)self->m_mainWin;
849
850 }
851
852 #include <wx/treectrl.h>
853 #include "wx/wxPython/pytree.h"
854
855 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
856 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
857 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
858 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
859 // C++ version of Python aware wxTreeCtrl
860 class wxPyTreeCtrl : public wxTreeCtrl {
861 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
862 public:
863 wxPyTreeCtrl() : wxTreeCtrl() {}
864 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
865 const wxPoint& pos,
866 const wxSize& size,
867 long style,
868 const wxValidator& validator,
869 const wxString& name) :
870 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
871
872 bool Create(wxWindow *parent, wxWindowID id,
873 const wxPoint& pos,
874 const wxSize& size,
875 long style,
876 const wxValidator& validator,
877 const wxString& name) {
878 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
879 }
880
881
882 int OnCompareItems(const wxTreeItemId& item1,
883 const wxTreeItemId& item2) {
884 int rval = 0;
885 bool found;
886 bool blocked = wxPyBeginBlockThreads();
887 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
888 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
889 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
890 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
891 Py_DECREF(o1);
892 Py_DECREF(o2);
893 }
894 wxPyEndBlockThreads(blocked);
895 if (! found)
896 rval = wxTreeCtrl::OnCompareItems(item1, item2);
897 return rval;
898 }
899 PYPRIVATE;
900 };
901
902 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
903
904
905
906 #if UINT_MAX < LONG_MAX
907 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
908 #define SWIG_From_unsigned_SS_int SWIG_From_long
909 /*@@*/
910 #else
911 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
912 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
913 /*@@*/
914 #endif
915
916
917 SWIGSTATICINLINE(int)
918 SWIG_CheckUnsignedLongInRange(unsigned long value,
919 unsigned long max_value,
920 const char *errmsg)
921 {
922 if (value > max_value) {
923 if (errmsg) {
924 PyErr_Format(PyExc_OverflowError,
925 "value %ld is greater than '%s' minimum %ld",
926 value, errmsg, max_value);
927 }
928 return 0;
929 }
930 return 1;
931 }
932
933
934 #if UINT_MAX != ULONG_MAX
935 SWIGSTATICINLINE(int)
936 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
937 {
938 const char* errmsg = val ? "unsigned int" : 0;
939 unsigned long v;
940 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
941 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
942 if (val) *val = swig_numeric_cast(v, unsigned int);
943 return 1;
944 }
945 } else {
946 PyErr_Clear();
947 }
948 if (val) {
949 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
950 }
951 return 0;
952 }
953 #else
954 SWIGSTATICINLINE(unsigned int)
955 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
956 {
957 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
958 }
959 #endif
960
961
962 SWIGSTATICINLINE(unsigned int)
963 SWIG_As_unsigned_SS_int(PyObject* obj)
964 {
965 unsigned int v;
966 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
967 /*
968 this is needed to make valgrind/purify happier. the other
969 solution is throw an exception, but since this code should work
970 with plain C ....
971 */
972 memset((void*)&v, 0, sizeof(unsigned int));
973 }
974 return v;
975 }
976
977
978 SWIGSTATICINLINE(int)
979 SWIG_Check_unsigned_SS_int(PyObject* obj)
980 {
981 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
982 }
983
984 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
985 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
986 if (data == NULL) {
987 data = new wxPyTreeItemData();
988 data->SetId(item); // set the id
989 self->SetItemData(item, data);
990 }
991 return data;
992 }
993 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
994 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
995 if (data == NULL) {
996 data = new wxPyTreeItemData();
997 data->SetId(item); // set the id
998 self->SetItemData(item, data);
999 }
1000 return data->GetData();
1001 }
1002 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
1003 data->SetId(item); // set the id
1004 self->SetItemData(item, data);
1005 }
1006 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
1007 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
1008 if (data == NULL) {
1009 data = new wxPyTreeItemData(obj);
1010 data->SetId(item); // set the id
1011 self->SetItemData(item, data);
1012 } else
1013 data->SetData(obj);
1014 }
1015 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
1016 bool blocked = wxPyBeginBlockThreads();
1017 PyObject* rval = PyList_New(0);
1018 wxArrayTreeItemIds array;
1019 size_t num, x;
1020 num = self->GetSelections(array);
1021 for (x=0; x < num; x++) {
1022 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
1023 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
1024 PyList_Append(rval, item);
1025 Py_DECREF(item);
1026 }
1027 wxPyEndBlockThreads(blocked);
1028 return rval;
1029 }
1030 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
1031 void* cookie = 0;
1032 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
1033 bool blocked = wxPyBeginBlockThreads();
1034 PyObject* tup = PyTuple_New(2);
1035 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
1036 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1037 wxPyEndBlockThreads(blocked);
1038 return tup;
1039 }
1040 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
1041 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
1042 bool blocked = wxPyBeginBlockThreads();
1043 PyObject* tup = PyTuple_New(2);
1044 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
1045 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1046 wxPyEndBlockThreads(blocked);
1047 return tup;
1048 }
1049 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
1050 wxRect rect;
1051 if (self->GetBoundingRect(item, rect, textOnly)) {
1052 bool blocked = wxPyBeginBlockThreads();
1053 wxRect* r = new wxRect(rect);
1054 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
1055 wxPyEndBlockThreads(blocked);
1056 return val;
1057 }
1058 else
1059 RETURN_NONE();
1060 }
1061 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
1062
1063 SWIGSTATICINLINE(PyObject*)
1064 SWIG_From_bool(bool value)
1065 {
1066 PyObject *obj = value ? Py_True : Py_False;
1067 Py_INCREF(obj);
1068 return obj;
1069 }
1070
1071
1072 // C++ version of Python aware wxControl
1073 class wxPyControl : public wxControl
1074 {
1075 DECLARE_DYNAMIC_CLASS(wxPyControl)
1076 public:
1077 wxPyControl() : wxControl() {}
1078 wxPyControl(wxWindow* parent, const wxWindowID id,
1079 const wxPoint& pos = wxDefaultPosition,
1080 const wxSize& size = wxDefaultSize,
1081 long style = 0,
1082 const wxValidator& validator=wxDefaultValidator,
1083 const wxString& name = wxPyControlNameStr)
1084 : wxControl(parent, id, pos, size, style, validator, name) {}
1085
1086 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
1087
1088 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
1089 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
1090 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
1091 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
1092
1093 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
1094 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
1095 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
1096
1097 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
1098 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
1099
1100 DEC_PYCALLBACK__(InitDialog);
1101 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
1102 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
1103 DEC_PYCALLBACK_BOOL_(Validate);
1104
1105 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
1106 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
1107 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
1108
1109 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
1110 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
1111
1112 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1113 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
1114 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
1115
1116 PYPRIVATE;
1117 };
1118
1119 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
1120
1121 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
1122 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
1123 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
1124 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
1125
1126 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
1127 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
1128 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
1129
1130 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
1131 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
1132
1133 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
1134 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
1135 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
1136 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1137
1138 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1139 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1140 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1141
1142 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1143 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1144
1145 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
1146 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1147 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
1148
1149
1150
1151 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1152
1153 #include <wx/generic/dragimgg.h>
1154
1155 #ifdef __cplusplus
1156 extern "C" {
1157 #endif
1158 static int _wrap_ButtonNameStr_set(PyObject *) {
1159 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1160 return 1;
1161 }
1162
1163
1164 static PyObject *_wrap_ButtonNameStr_get() {
1165 PyObject *pyobj;
1166
1167 {
1168 #if wxUSE_UNICODE
1169 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1170 #else
1171 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1172 #endif
1173 }
1174 return pyobj;
1175 }
1176
1177
1178 static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) {
1179 PyObject *resultobj;
1180 wxWindow *arg1 = (wxWindow *) 0 ;
1181 int arg2 = (int) -1 ;
1182 wxString const &arg3_defvalue = wxPyEmptyString ;
1183 wxString *arg3 = (wxString *) &arg3_defvalue ;
1184 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1185 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1186 wxSize const &arg5_defvalue = wxDefaultSize ;
1187 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1188 long arg6 = (long) 0 ;
1189 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1190 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1191 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1192 wxString *arg8 = (wxString *) &arg8_defvalue ;
1193 wxButton *result;
1194 bool temp3 = False ;
1195 wxPoint temp4 ;
1196 wxSize temp5 ;
1197 bool temp8 = False ;
1198 PyObject * obj0 = 0 ;
1199 PyObject * obj1 = 0 ;
1200 PyObject * obj2 = 0 ;
1201 PyObject * obj3 = 0 ;
1202 PyObject * obj4 = 0 ;
1203 PyObject * obj5 = 0 ;
1204 PyObject * obj6 = 0 ;
1205 PyObject * obj7 = 0 ;
1206 char *kwnames[] = {
1207 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1208 };
1209
1210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1213 if (obj1) {
1214 arg2 = (int)SWIG_As_int(obj1);
1215 if (PyErr_Occurred()) SWIG_fail;
1216 }
1217 if (obj2) {
1218 {
1219 arg3 = wxString_in_helper(obj2);
1220 if (arg3 == NULL) SWIG_fail;
1221 temp3 = True;
1222 }
1223 }
1224 if (obj3) {
1225 {
1226 arg4 = &temp4;
1227 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1228 }
1229 }
1230 if (obj4) {
1231 {
1232 arg5 = &temp5;
1233 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1234 }
1235 }
1236 if (obj5) {
1237 arg6 = (long)SWIG_As_long(obj5);
1238 if (PyErr_Occurred()) SWIG_fail;
1239 }
1240 if (obj6) {
1241 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1242 SWIG_POINTER_EXCEPTION | 0)) == -1)
1243 SWIG_fail;
1244 if (arg7 == NULL) {
1245 PyErr_SetString(PyExc_TypeError,"null reference");
1246 SWIG_fail;
1247 }
1248 }
1249 if (obj7) {
1250 {
1251 arg8 = wxString_in_helper(obj7);
1252 if (arg8 == NULL) SWIG_fail;
1253 temp8 = True;
1254 }
1255 }
1256 {
1257 if (!wxPyCheckForApp()) SWIG_fail;
1258 PyThreadState* __tstate = wxPyBeginAllowThreads();
1259 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1260
1261 wxPyEndAllowThreads(__tstate);
1262 if (PyErr_Occurred()) SWIG_fail;
1263 }
1264 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1265 {
1266 if (temp3)
1267 delete arg3;
1268 }
1269 {
1270 if (temp8)
1271 delete arg8;
1272 }
1273 return resultobj;
1274 fail:
1275 {
1276 if (temp3)
1277 delete arg3;
1278 }
1279 {
1280 if (temp8)
1281 delete arg8;
1282 }
1283 return NULL;
1284 }
1285
1286
1287 static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) {
1288 PyObject *resultobj;
1289 wxButton *result;
1290 char *kwnames[] = {
1291 NULL
1292 };
1293
1294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1295 {
1296 if (!wxPyCheckForApp()) SWIG_fail;
1297 PyThreadState* __tstate = wxPyBeginAllowThreads();
1298 result = (wxButton *)new wxButton();
1299
1300 wxPyEndAllowThreads(__tstate);
1301 if (PyErr_Occurred()) SWIG_fail;
1302 }
1303 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1304 return resultobj;
1305 fail:
1306 return NULL;
1307 }
1308
1309
1310 static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1311 PyObject *resultobj;
1312 wxButton *arg1 = (wxButton *) 0 ;
1313 wxWindow *arg2 = (wxWindow *) 0 ;
1314 int arg3 = (int) -1 ;
1315 wxString const &arg4_defvalue = wxPyEmptyString ;
1316 wxString *arg4 = (wxString *) &arg4_defvalue ;
1317 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1318 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1319 wxSize const &arg6_defvalue = wxDefaultSize ;
1320 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1321 long arg7 = (long) 0 ;
1322 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1323 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1324 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1325 wxString *arg9 = (wxString *) &arg9_defvalue ;
1326 bool result;
1327 bool temp4 = False ;
1328 wxPoint temp5 ;
1329 wxSize temp6 ;
1330 bool temp9 = False ;
1331 PyObject * obj0 = 0 ;
1332 PyObject * obj1 = 0 ;
1333 PyObject * obj2 = 0 ;
1334 PyObject * obj3 = 0 ;
1335 PyObject * obj4 = 0 ;
1336 PyObject * obj5 = 0 ;
1337 PyObject * obj6 = 0 ;
1338 PyObject * obj7 = 0 ;
1339 PyObject * obj8 = 0 ;
1340 char *kwnames[] = {
1341 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1342 };
1343
1344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1347 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1349 if (obj2) {
1350 arg3 = (int)SWIG_As_int(obj2);
1351 if (PyErr_Occurred()) SWIG_fail;
1352 }
1353 if (obj3) {
1354 {
1355 arg4 = wxString_in_helper(obj3);
1356 if (arg4 == NULL) SWIG_fail;
1357 temp4 = True;
1358 }
1359 }
1360 if (obj4) {
1361 {
1362 arg5 = &temp5;
1363 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1364 }
1365 }
1366 if (obj5) {
1367 {
1368 arg6 = &temp6;
1369 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1370 }
1371 }
1372 if (obj6) {
1373 arg7 = (long)SWIG_As_long(obj6);
1374 if (PyErr_Occurred()) SWIG_fail;
1375 }
1376 if (obj7) {
1377 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1378 SWIG_POINTER_EXCEPTION | 0)) == -1)
1379 SWIG_fail;
1380 if (arg8 == NULL) {
1381 PyErr_SetString(PyExc_TypeError,"null reference");
1382 SWIG_fail;
1383 }
1384 }
1385 if (obj8) {
1386 {
1387 arg9 = wxString_in_helper(obj8);
1388 if (arg9 == NULL) SWIG_fail;
1389 temp9 = True;
1390 }
1391 }
1392 {
1393 PyThreadState* __tstate = wxPyBeginAllowThreads();
1394 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1395
1396 wxPyEndAllowThreads(__tstate);
1397 if (PyErr_Occurred()) SWIG_fail;
1398 }
1399 {
1400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1401 }
1402 {
1403 if (temp4)
1404 delete arg4;
1405 }
1406 {
1407 if (temp9)
1408 delete arg9;
1409 }
1410 return resultobj;
1411 fail:
1412 {
1413 if (temp4)
1414 delete arg4;
1415 }
1416 {
1417 if (temp9)
1418 delete arg9;
1419 }
1420 return NULL;
1421 }
1422
1423
1424 static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
1425 PyObject *resultobj;
1426 wxButton *arg1 = (wxButton *) 0 ;
1427 PyObject * obj0 = 0 ;
1428 char *kwnames[] = {
1429 (char *) "self", NULL
1430 };
1431
1432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1435 {
1436 PyThreadState* __tstate = wxPyBeginAllowThreads();
1437 (arg1)->SetDefault();
1438
1439 wxPyEndAllowThreads(__tstate);
1440 if (PyErr_Occurred()) SWIG_fail;
1441 }
1442 Py_INCREF(Py_None); resultobj = Py_None;
1443 return resultobj;
1444 fail:
1445 return NULL;
1446 }
1447
1448
1449 static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
1450 PyObject *resultobj;
1451 wxSize result;
1452 char *kwnames[] = {
1453 NULL
1454 };
1455
1456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1457 {
1458 PyThreadState* __tstate = wxPyBeginAllowThreads();
1459 result = wxButton::GetDefaultSize();
1460
1461 wxPyEndAllowThreads(__tstate);
1462 if (PyErr_Occurred()) SWIG_fail;
1463 }
1464 {
1465 wxSize * resultptr;
1466 resultptr = new wxSize((wxSize &) result);
1467 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1468 }
1469 return resultobj;
1470 fail:
1471 return NULL;
1472 }
1473
1474
1475 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
1476 PyObject *resultobj;
1477 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1478 wxVisualAttributes result;
1479 PyObject * obj0 = 0 ;
1480 char *kwnames[] = {
1481 (char *) "variant", NULL
1482 };
1483
1484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1485 if (obj0) {
1486 arg1 = (int)SWIG_As_int(obj0);
1487 if (PyErr_Occurred()) SWIG_fail;
1488 }
1489 {
1490 if (!wxPyCheckForApp()) SWIG_fail;
1491 PyThreadState* __tstate = wxPyBeginAllowThreads();
1492 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1493
1494 wxPyEndAllowThreads(__tstate);
1495 if (PyErr_Occurred()) SWIG_fail;
1496 }
1497 {
1498 wxVisualAttributes * resultptr;
1499 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1500 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1501 }
1502 return resultobj;
1503 fail:
1504 return NULL;
1505 }
1506
1507
1508 static PyObject * Button_swigregister(PyObject *, PyObject *args) {
1509 PyObject *obj;
1510 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1511 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1512 Py_INCREF(obj);
1513 return Py_BuildValue((char *)"");
1514 }
1515 static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1516 PyObject *resultobj;
1517 wxWindow *arg1 = (wxWindow *) 0 ;
1518 int arg2 = (int) -1 ;
1519 wxBitmap const &arg3_defvalue = wxNullBitmap ;
1520 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
1521 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1522 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1523 wxSize const &arg5_defvalue = wxDefaultSize ;
1524 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1525 long arg6 = (long) wxBU_AUTODRAW ;
1526 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1527 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1528 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1529 wxString *arg8 = (wxString *) &arg8_defvalue ;
1530 wxBitmapButton *result;
1531 wxPoint temp4 ;
1532 wxSize temp5 ;
1533 bool temp8 = False ;
1534 PyObject * obj0 = 0 ;
1535 PyObject * obj1 = 0 ;
1536 PyObject * obj2 = 0 ;
1537 PyObject * obj3 = 0 ;
1538 PyObject * obj4 = 0 ;
1539 PyObject * obj5 = 0 ;
1540 PyObject * obj6 = 0 ;
1541 PyObject * obj7 = 0 ;
1542 char *kwnames[] = {
1543 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1544 };
1545
1546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1549 if (obj1) {
1550 arg2 = (int)SWIG_As_int(obj1);
1551 if (PyErr_Occurred()) SWIG_fail;
1552 }
1553 if (obj2) {
1554 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1555 SWIG_POINTER_EXCEPTION | 0)) == -1)
1556 SWIG_fail;
1557 if (arg3 == NULL) {
1558 PyErr_SetString(PyExc_TypeError,"null reference");
1559 SWIG_fail;
1560 }
1561 }
1562 if (obj3) {
1563 {
1564 arg4 = &temp4;
1565 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1566 }
1567 }
1568 if (obj4) {
1569 {
1570 arg5 = &temp5;
1571 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1572 }
1573 }
1574 if (obj5) {
1575 arg6 = (long)SWIG_As_long(obj5);
1576 if (PyErr_Occurred()) SWIG_fail;
1577 }
1578 if (obj6) {
1579 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1580 SWIG_POINTER_EXCEPTION | 0)) == -1)
1581 SWIG_fail;
1582 if (arg7 == NULL) {
1583 PyErr_SetString(PyExc_TypeError,"null reference");
1584 SWIG_fail;
1585 }
1586 }
1587 if (obj7) {
1588 {
1589 arg8 = wxString_in_helper(obj7);
1590 if (arg8 == NULL) SWIG_fail;
1591 temp8 = True;
1592 }
1593 }
1594 {
1595 if (!wxPyCheckForApp()) SWIG_fail;
1596 PyThreadState* __tstate = wxPyBeginAllowThreads();
1597 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1598
1599 wxPyEndAllowThreads(__tstate);
1600 if (PyErr_Occurred()) SWIG_fail;
1601 }
1602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1603 {
1604 if (temp8)
1605 delete arg8;
1606 }
1607 return resultobj;
1608 fail:
1609 {
1610 if (temp8)
1611 delete arg8;
1612 }
1613 return NULL;
1614 }
1615
1616
1617 static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1618 PyObject *resultobj;
1619 wxBitmapButton *result;
1620 char *kwnames[] = {
1621 NULL
1622 };
1623
1624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1625 {
1626 if (!wxPyCheckForApp()) SWIG_fail;
1627 PyThreadState* __tstate = wxPyBeginAllowThreads();
1628 result = (wxBitmapButton *)new wxBitmapButton();
1629
1630 wxPyEndAllowThreads(__tstate);
1631 if (PyErr_Occurred()) SWIG_fail;
1632 }
1633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1634 return resultobj;
1635 fail:
1636 return NULL;
1637 }
1638
1639
1640 static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1641 PyObject *resultobj;
1642 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1643 wxWindow *arg2 = (wxWindow *) 0 ;
1644 int arg3 = (int) -1 ;
1645 wxBitmap const &arg4_defvalue = wxNullBitmap ;
1646 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1647 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1648 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1649 wxSize const &arg6_defvalue = wxDefaultSize ;
1650 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1651 long arg7 = (long) wxBU_AUTODRAW ;
1652 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1653 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1654 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1655 wxString *arg9 = (wxString *) &arg9_defvalue ;
1656 bool result;
1657 wxPoint temp5 ;
1658 wxSize temp6 ;
1659 bool temp9 = False ;
1660 PyObject * obj0 = 0 ;
1661 PyObject * obj1 = 0 ;
1662 PyObject * obj2 = 0 ;
1663 PyObject * obj3 = 0 ;
1664 PyObject * obj4 = 0 ;
1665 PyObject * obj5 = 0 ;
1666 PyObject * obj6 = 0 ;
1667 PyObject * obj7 = 0 ;
1668 PyObject * obj8 = 0 ;
1669 char *kwnames[] = {
1670 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1671 };
1672
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1676 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1678 if (obj2) {
1679 arg3 = (int)SWIG_As_int(obj2);
1680 if (PyErr_Occurred()) SWIG_fail;
1681 }
1682 if (obj3) {
1683 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1684 SWIG_POINTER_EXCEPTION | 0)) == -1)
1685 SWIG_fail;
1686 if (arg4 == NULL) {
1687 PyErr_SetString(PyExc_TypeError,"null reference");
1688 SWIG_fail;
1689 }
1690 }
1691 if (obj4) {
1692 {
1693 arg5 = &temp5;
1694 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1695 }
1696 }
1697 if (obj5) {
1698 {
1699 arg6 = &temp6;
1700 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1701 }
1702 }
1703 if (obj6) {
1704 arg7 = (long)SWIG_As_long(obj6);
1705 if (PyErr_Occurred()) SWIG_fail;
1706 }
1707 if (obj7) {
1708 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1709 SWIG_POINTER_EXCEPTION | 0)) == -1)
1710 SWIG_fail;
1711 if (arg8 == NULL) {
1712 PyErr_SetString(PyExc_TypeError,"null reference");
1713 SWIG_fail;
1714 }
1715 }
1716 if (obj8) {
1717 {
1718 arg9 = wxString_in_helper(obj8);
1719 if (arg9 == NULL) SWIG_fail;
1720 temp9 = True;
1721 }
1722 }
1723 {
1724 PyThreadState* __tstate = wxPyBeginAllowThreads();
1725 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1726
1727 wxPyEndAllowThreads(__tstate);
1728 if (PyErr_Occurred()) SWIG_fail;
1729 }
1730 {
1731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1732 }
1733 {
1734 if (temp9)
1735 delete arg9;
1736 }
1737 return resultobj;
1738 fail:
1739 {
1740 if (temp9)
1741 delete arg9;
1742 }
1743 return NULL;
1744 }
1745
1746
1747 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1748 PyObject *resultobj;
1749 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1750 wxBitmap result;
1751 PyObject * obj0 = 0 ;
1752 char *kwnames[] = {
1753 (char *) "self", NULL
1754 };
1755
1756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1759 {
1760 PyThreadState* __tstate = wxPyBeginAllowThreads();
1761 result = (arg1)->GetBitmapLabel();
1762
1763 wxPyEndAllowThreads(__tstate);
1764 if (PyErr_Occurred()) SWIG_fail;
1765 }
1766 {
1767 wxBitmap * resultptr;
1768 resultptr = new wxBitmap((wxBitmap &) result);
1769 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1770 }
1771 return resultobj;
1772 fail:
1773 return NULL;
1774 }
1775
1776
1777 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1778 PyObject *resultobj;
1779 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1780 wxBitmap result;
1781 PyObject * obj0 = 0 ;
1782 char *kwnames[] = {
1783 (char *) "self", NULL
1784 };
1785
1786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1789 {
1790 PyThreadState* __tstate = wxPyBeginAllowThreads();
1791 result = (arg1)->GetBitmapDisabled();
1792
1793 wxPyEndAllowThreads(__tstate);
1794 if (PyErr_Occurred()) SWIG_fail;
1795 }
1796 {
1797 wxBitmap * resultptr;
1798 resultptr = new wxBitmap((wxBitmap &) result);
1799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1800 }
1801 return resultobj;
1802 fail:
1803 return NULL;
1804 }
1805
1806
1807 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1808 PyObject *resultobj;
1809 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1810 wxBitmap result;
1811 PyObject * obj0 = 0 ;
1812 char *kwnames[] = {
1813 (char *) "self", NULL
1814 };
1815
1816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1819 {
1820 PyThreadState* __tstate = wxPyBeginAllowThreads();
1821 result = (arg1)->GetBitmapFocus();
1822
1823 wxPyEndAllowThreads(__tstate);
1824 if (PyErr_Occurred()) SWIG_fail;
1825 }
1826 {
1827 wxBitmap * resultptr;
1828 resultptr = new wxBitmap((wxBitmap &) result);
1829 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1830 }
1831 return resultobj;
1832 fail:
1833 return NULL;
1834 }
1835
1836
1837 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1838 PyObject *resultobj;
1839 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1840 wxBitmap result;
1841 PyObject * obj0 = 0 ;
1842 char *kwnames[] = {
1843 (char *) "self", NULL
1844 };
1845
1846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1849 {
1850 PyThreadState* __tstate = wxPyBeginAllowThreads();
1851 result = (arg1)->GetBitmapSelected();
1852
1853 wxPyEndAllowThreads(__tstate);
1854 if (PyErr_Occurred()) SWIG_fail;
1855 }
1856 {
1857 wxBitmap * resultptr;
1858 resultptr = new wxBitmap((wxBitmap &) result);
1859 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1860 }
1861 return resultobj;
1862 fail:
1863 return NULL;
1864 }
1865
1866
1867 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1868 PyObject *resultobj;
1869 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1870 wxBitmap *arg2 = 0 ;
1871 PyObject * obj0 = 0 ;
1872 PyObject * obj1 = 0 ;
1873 char *kwnames[] = {
1874 (char *) "self",(char *) "bitmap", NULL
1875 };
1876
1877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1881 SWIG_POINTER_EXCEPTION | 0)) == -1)
1882 SWIG_fail;
1883 if (arg2 == NULL) {
1884 PyErr_SetString(PyExc_TypeError,"null reference");
1885 SWIG_fail;
1886 }
1887 {
1888 PyThreadState* __tstate = wxPyBeginAllowThreads();
1889 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1890
1891 wxPyEndAllowThreads(__tstate);
1892 if (PyErr_Occurred()) SWIG_fail;
1893 }
1894 Py_INCREF(Py_None); resultobj = Py_None;
1895 return resultobj;
1896 fail:
1897 return NULL;
1898 }
1899
1900
1901 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1902 PyObject *resultobj;
1903 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1904 wxBitmap *arg2 = 0 ;
1905 PyObject * obj0 = 0 ;
1906 PyObject * obj1 = 0 ;
1907 char *kwnames[] = {
1908 (char *) "self",(char *) "bitmap", NULL
1909 };
1910
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1914 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1915 SWIG_POINTER_EXCEPTION | 0)) == -1)
1916 SWIG_fail;
1917 if (arg2 == NULL) {
1918 PyErr_SetString(PyExc_TypeError,"null reference");
1919 SWIG_fail;
1920 }
1921 {
1922 PyThreadState* __tstate = wxPyBeginAllowThreads();
1923 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1924
1925 wxPyEndAllowThreads(__tstate);
1926 if (PyErr_Occurred()) SWIG_fail;
1927 }
1928 Py_INCREF(Py_None); resultobj = Py_None;
1929 return resultobj;
1930 fail:
1931 return NULL;
1932 }
1933
1934
1935 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1936 PyObject *resultobj;
1937 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1938 wxBitmap *arg2 = 0 ;
1939 PyObject * obj0 = 0 ;
1940 PyObject * obj1 = 0 ;
1941 char *kwnames[] = {
1942 (char *) "self",(char *) "bitmap", NULL
1943 };
1944
1945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1948 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1949 SWIG_POINTER_EXCEPTION | 0)) == -1)
1950 SWIG_fail;
1951 if (arg2 == NULL) {
1952 PyErr_SetString(PyExc_TypeError,"null reference");
1953 SWIG_fail;
1954 }
1955 {
1956 PyThreadState* __tstate = wxPyBeginAllowThreads();
1957 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1958
1959 wxPyEndAllowThreads(__tstate);
1960 if (PyErr_Occurred()) SWIG_fail;
1961 }
1962 Py_INCREF(Py_None); resultobj = Py_None;
1963 return resultobj;
1964 fail:
1965 return NULL;
1966 }
1967
1968
1969 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1970 PyObject *resultobj;
1971 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1972 wxBitmap *arg2 = 0 ;
1973 PyObject * obj0 = 0 ;
1974 PyObject * obj1 = 0 ;
1975 char *kwnames[] = {
1976 (char *) "self",(char *) "bitmap", NULL
1977 };
1978
1979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1982 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1983 SWIG_POINTER_EXCEPTION | 0)) == -1)
1984 SWIG_fail;
1985 if (arg2 == NULL) {
1986 PyErr_SetString(PyExc_TypeError,"null reference");
1987 SWIG_fail;
1988 }
1989 {
1990 PyThreadState* __tstate = wxPyBeginAllowThreads();
1991 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1992
1993 wxPyEndAllowThreads(__tstate);
1994 if (PyErr_Occurred()) SWIG_fail;
1995 }
1996 Py_INCREF(Py_None); resultobj = Py_None;
1997 return resultobj;
1998 fail:
1999 return NULL;
2000 }
2001
2002
2003 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
2004 PyObject *resultobj;
2005 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2006 int arg2 ;
2007 int arg3 ;
2008 PyObject * obj0 = 0 ;
2009 PyObject * obj1 = 0 ;
2010 PyObject * obj2 = 0 ;
2011 char *kwnames[] = {
2012 (char *) "self",(char *) "x",(char *) "y", NULL
2013 };
2014
2015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
2016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2018 arg2 = (int)SWIG_As_int(obj1);
2019 if (PyErr_Occurred()) SWIG_fail;
2020 arg3 = (int)SWIG_As_int(obj2);
2021 if (PyErr_Occurred()) SWIG_fail;
2022 {
2023 PyThreadState* __tstate = wxPyBeginAllowThreads();
2024 (arg1)->SetMargins(arg2,arg3);
2025
2026 wxPyEndAllowThreads(__tstate);
2027 if (PyErr_Occurred()) SWIG_fail;
2028 }
2029 Py_INCREF(Py_None); resultobj = Py_None;
2030 return resultobj;
2031 fail:
2032 return NULL;
2033 }
2034
2035
2036 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) {
2037 PyObject *resultobj;
2038 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2039 int result;
2040 PyObject * obj0 = 0 ;
2041 char *kwnames[] = {
2042 (char *) "self", NULL
2043 };
2044
2045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
2046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2048 {
2049 PyThreadState* __tstate = wxPyBeginAllowThreads();
2050 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
2051
2052 wxPyEndAllowThreads(__tstate);
2053 if (PyErr_Occurred()) SWIG_fail;
2054 }
2055 resultobj = SWIG_From_int((int)result);
2056 return resultobj;
2057 fail:
2058 return NULL;
2059 }
2060
2061
2062 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) {
2063 PyObject *resultobj;
2064 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2065 int result;
2066 PyObject * obj0 = 0 ;
2067 char *kwnames[] = {
2068 (char *) "self", NULL
2069 };
2070
2071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
2072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2074 {
2075 PyThreadState* __tstate = wxPyBeginAllowThreads();
2076 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
2077
2078 wxPyEndAllowThreads(__tstate);
2079 if (PyErr_Occurred()) SWIG_fail;
2080 }
2081 resultobj = SWIG_From_int((int)result);
2082 return resultobj;
2083 fail:
2084 return NULL;
2085 }
2086
2087
2088 static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) {
2089 PyObject *obj;
2090 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2091 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
2092 Py_INCREF(obj);
2093 return Py_BuildValue((char *)"");
2094 }
2095 static int _wrap_CheckBoxNameStr_set(PyObject *) {
2096 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
2097 return 1;
2098 }
2099
2100
2101 static PyObject *_wrap_CheckBoxNameStr_get() {
2102 PyObject *pyobj;
2103
2104 {
2105 #if wxUSE_UNICODE
2106 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2107 #else
2108 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2109 #endif
2110 }
2111 return pyobj;
2112 }
2113
2114
2115 static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2116 PyObject *resultobj;
2117 wxWindow *arg1 = (wxWindow *) 0 ;
2118 int arg2 = (int) -1 ;
2119 wxString const &arg3_defvalue = wxPyEmptyString ;
2120 wxString *arg3 = (wxString *) &arg3_defvalue ;
2121 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2122 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2123 wxSize const &arg5_defvalue = wxDefaultSize ;
2124 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2125 long arg6 = (long) 0 ;
2126 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2127 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2128 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
2129 wxString *arg8 = (wxString *) &arg8_defvalue ;
2130 wxCheckBox *result;
2131 bool temp3 = False ;
2132 wxPoint temp4 ;
2133 wxSize temp5 ;
2134 bool temp8 = False ;
2135 PyObject * obj0 = 0 ;
2136 PyObject * obj1 = 0 ;
2137 PyObject * obj2 = 0 ;
2138 PyObject * obj3 = 0 ;
2139 PyObject * obj4 = 0 ;
2140 PyObject * obj5 = 0 ;
2141 PyObject * obj6 = 0 ;
2142 PyObject * obj7 = 0 ;
2143 char *kwnames[] = {
2144 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2145 };
2146
2147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2150 if (obj1) {
2151 arg2 = (int)SWIG_As_int(obj1);
2152 if (PyErr_Occurred()) SWIG_fail;
2153 }
2154 if (obj2) {
2155 {
2156 arg3 = wxString_in_helper(obj2);
2157 if (arg3 == NULL) SWIG_fail;
2158 temp3 = True;
2159 }
2160 }
2161 if (obj3) {
2162 {
2163 arg4 = &temp4;
2164 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2165 }
2166 }
2167 if (obj4) {
2168 {
2169 arg5 = &temp5;
2170 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2171 }
2172 }
2173 if (obj5) {
2174 arg6 = (long)SWIG_As_long(obj5);
2175 if (PyErr_Occurred()) SWIG_fail;
2176 }
2177 if (obj6) {
2178 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2179 SWIG_POINTER_EXCEPTION | 0)) == -1)
2180 SWIG_fail;
2181 if (arg7 == NULL) {
2182 PyErr_SetString(PyExc_TypeError,"null reference");
2183 SWIG_fail;
2184 }
2185 }
2186 if (obj7) {
2187 {
2188 arg8 = wxString_in_helper(obj7);
2189 if (arg8 == NULL) SWIG_fail;
2190 temp8 = True;
2191 }
2192 }
2193 {
2194 if (!wxPyCheckForApp()) SWIG_fail;
2195 PyThreadState* __tstate = wxPyBeginAllowThreads();
2196 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2197
2198 wxPyEndAllowThreads(__tstate);
2199 if (PyErr_Occurred()) SWIG_fail;
2200 }
2201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2202 {
2203 if (temp3)
2204 delete arg3;
2205 }
2206 {
2207 if (temp8)
2208 delete arg8;
2209 }
2210 return resultobj;
2211 fail:
2212 {
2213 if (temp3)
2214 delete arg3;
2215 }
2216 {
2217 if (temp8)
2218 delete arg8;
2219 }
2220 return NULL;
2221 }
2222
2223
2224 static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2225 PyObject *resultobj;
2226 wxCheckBox *result;
2227 char *kwnames[] = {
2228 NULL
2229 };
2230
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2232 {
2233 if (!wxPyCheckForApp()) SWIG_fail;
2234 PyThreadState* __tstate = wxPyBeginAllowThreads();
2235 result = (wxCheckBox *)new wxCheckBox();
2236
2237 wxPyEndAllowThreads(__tstate);
2238 if (PyErr_Occurred()) SWIG_fail;
2239 }
2240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2241 return resultobj;
2242 fail:
2243 return NULL;
2244 }
2245
2246
2247 static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2248 PyObject *resultobj;
2249 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2250 wxWindow *arg2 = (wxWindow *) 0 ;
2251 int arg3 = (int) -1 ;
2252 wxString const &arg4_defvalue = wxPyEmptyString ;
2253 wxString *arg4 = (wxString *) &arg4_defvalue ;
2254 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2255 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2256 wxSize const &arg6_defvalue = wxDefaultSize ;
2257 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2258 long arg7 = (long) 0 ;
2259 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2260 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2261 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2262 wxString *arg9 = (wxString *) &arg9_defvalue ;
2263 bool result;
2264 bool temp4 = False ;
2265 wxPoint temp5 ;
2266 wxSize temp6 ;
2267 bool temp9 = False ;
2268 PyObject * obj0 = 0 ;
2269 PyObject * obj1 = 0 ;
2270 PyObject * obj2 = 0 ;
2271 PyObject * obj3 = 0 ;
2272 PyObject * obj4 = 0 ;
2273 PyObject * obj5 = 0 ;
2274 PyObject * obj6 = 0 ;
2275 PyObject * obj7 = 0 ;
2276 PyObject * obj8 = 0 ;
2277 char *kwnames[] = {
2278 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2279 };
2280
2281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2286 if (obj2) {
2287 arg3 = (int)SWIG_As_int(obj2);
2288 if (PyErr_Occurred()) SWIG_fail;
2289 }
2290 if (obj3) {
2291 {
2292 arg4 = wxString_in_helper(obj3);
2293 if (arg4 == NULL) SWIG_fail;
2294 temp4 = True;
2295 }
2296 }
2297 if (obj4) {
2298 {
2299 arg5 = &temp5;
2300 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2301 }
2302 }
2303 if (obj5) {
2304 {
2305 arg6 = &temp6;
2306 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2307 }
2308 }
2309 if (obj6) {
2310 arg7 = (long)SWIG_As_long(obj6);
2311 if (PyErr_Occurred()) SWIG_fail;
2312 }
2313 if (obj7) {
2314 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2315 SWIG_POINTER_EXCEPTION | 0)) == -1)
2316 SWIG_fail;
2317 if (arg8 == NULL) {
2318 PyErr_SetString(PyExc_TypeError,"null reference");
2319 SWIG_fail;
2320 }
2321 }
2322 if (obj8) {
2323 {
2324 arg9 = wxString_in_helper(obj8);
2325 if (arg9 == NULL) SWIG_fail;
2326 temp9 = True;
2327 }
2328 }
2329 {
2330 PyThreadState* __tstate = wxPyBeginAllowThreads();
2331 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2332
2333 wxPyEndAllowThreads(__tstate);
2334 if (PyErr_Occurred()) SWIG_fail;
2335 }
2336 {
2337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2338 }
2339 {
2340 if (temp4)
2341 delete arg4;
2342 }
2343 {
2344 if (temp9)
2345 delete arg9;
2346 }
2347 return resultobj;
2348 fail:
2349 {
2350 if (temp4)
2351 delete arg4;
2352 }
2353 {
2354 if (temp9)
2355 delete arg9;
2356 }
2357 return NULL;
2358 }
2359
2360
2361 static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2362 PyObject *resultobj;
2363 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2364 bool result;
2365 PyObject * obj0 = 0 ;
2366 char *kwnames[] = {
2367 (char *) "self", NULL
2368 };
2369
2370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2373 {
2374 PyThreadState* __tstate = wxPyBeginAllowThreads();
2375 result = (bool)(arg1)->GetValue();
2376
2377 wxPyEndAllowThreads(__tstate);
2378 if (PyErr_Occurred()) SWIG_fail;
2379 }
2380 {
2381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2382 }
2383 return resultobj;
2384 fail:
2385 return NULL;
2386 }
2387
2388
2389 static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
2390 PyObject *resultobj;
2391 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2392 bool result;
2393 PyObject * obj0 = 0 ;
2394 char *kwnames[] = {
2395 (char *) "self", NULL
2396 };
2397
2398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2401 {
2402 PyThreadState* __tstate = wxPyBeginAllowThreads();
2403 result = (bool)(arg1)->IsChecked();
2404
2405 wxPyEndAllowThreads(__tstate);
2406 if (PyErr_Occurred()) SWIG_fail;
2407 }
2408 {
2409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2410 }
2411 return resultobj;
2412 fail:
2413 return NULL;
2414 }
2415
2416
2417 static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2418 PyObject *resultobj;
2419 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2420 bool arg2 ;
2421 PyObject * obj0 = 0 ;
2422 PyObject * obj1 = 0 ;
2423 char *kwnames[] = {
2424 (char *) "self",(char *) "state", NULL
2425 };
2426
2427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2430 arg2 = (bool)SWIG_As_bool(obj1);
2431 if (PyErr_Occurred()) SWIG_fail;
2432 {
2433 PyThreadState* __tstate = wxPyBeginAllowThreads();
2434 (arg1)->SetValue(arg2);
2435
2436 wxPyEndAllowThreads(__tstate);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 }
2439 Py_INCREF(Py_None); resultobj = Py_None;
2440 return resultobj;
2441 fail:
2442 return NULL;
2443 }
2444
2445
2446 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2447 PyObject *resultobj;
2448 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2449 int result;
2450 PyObject * obj0 = 0 ;
2451 char *kwnames[] = {
2452 (char *) "self", NULL
2453 };
2454
2455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2458 {
2459 PyThreadState* __tstate = wxPyBeginAllowThreads();
2460 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2461
2462 wxPyEndAllowThreads(__tstate);
2463 if (PyErr_Occurred()) SWIG_fail;
2464 }
2465 resultobj = SWIG_From_int((int)result);
2466 return resultobj;
2467 fail:
2468 return NULL;
2469 }
2470
2471
2472 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2473 PyObject *resultobj;
2474 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2475 int arg2 ;
2476 PyObject * obj0 = 0 ;
2477 PyObject * obj1 = 0 ;
2478 char *kwnames[] = {
2479 (char *) "self",(char *) "state", NULL
2480 };
2481
2482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2485 arg2 = (int)SWIG_As_int(obj1);
2486 if (PyErr_Occurred()) SWIG_fail;
2487 {
2488 PyThreadState* __tstate = wxPyBeginAllowThreads();
2489 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2490
2491 wxPyEndAllowThreads(__tstate);
2492 if (PyErr_Occurred()) SWIG_fail;
2493 }
2494 Py_INCREF(Py_None); resultobj = Py_None;
2495 return resultobj;
2496 fail:
2497 return NULL;
2498 }
2499
2500
2501 static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) {
2502 PyObject *resultobj;
2503 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2504 bool result;
2505 PyObject * obj0 = 0 ;
2506 char *kwnames[] = {
2507 (char *) "self", NULL
2508 };
2509
2510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2513 {
2514 PyThreadState* __tstate = wxPyBeginAllowThreads();
2515 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2516
2517 wxPyEndAllowThreads(__tstate);
2518 if (PyErr_Occurred()) SWIG_fail;
2519 }
2520 {
2521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2522 }
2523 return resultobj;
2524 fail:
2525 return NULL;
2526 }
2527
2528
2529 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) {
2530 PyObject *resultobj;
2531 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2532 bool result;
2533 PyObject * obj0 = 0 ;
2534 char *kwnames[] = {
2535 (char *) "self", NULL
2536 };
2537
2538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2541 {
2542 PyThreadState* __tstate = wxPyBeginAllowThreads();
2543 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2544
2545 wxPyEndAllowThreads(__tstate);
2546 if (PyErr_Occurred()) SWIG_fail;
2547 }
2548 {
2549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2550 }
2551 return resultobj;
2552 fail:
2553 return NULL;
2554 }
2555
2556
2557 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
2558 PyObject *resultobj;
2559 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2560 wxVisualAttributes result;
2561 PyObject * obj0 = 0 ;
2562 char *kwnames[] = {
2563 (char *) "variant", NULL
2564 };
2565
2566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2567 if (obj0) {
2568 arg1 = (int)SWIG_As_int(obj0);
2569 if (PyErr_Occurred()) SWIG_fail;
2570 }
2571 {
2572 if (!wxPyCheckForApp()) SWIG_fail;
2573 PyThreadState* __tstate = wxPyBeginAllowThreads();
2574 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2575
2576 wxPyEndAllowThreads(__tstate);
2577 if (PyErr_Occurred()) SWIG_fail;
2578 }
2579 {
2580 wxVisualAttributes * resultptr;
2581 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2582 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2583 }
2584 return resultobj;
2585 fail:
2586 return NULL;
2587 }
2588
2589
2590 static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) {
2591 PyObject *obj;
2592 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2593 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2594 Py_INCREF(obj);
2595 return Py_BuildValue((char *)"");
2596 }
2597 static int _wrap_ChoiceNameStr_set(PyObject *) {
2598 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2599 return 1;
2600 }
2601
2602
2603 static PyObject *_wrap_ChoiceNameStr_get() {
2604 PyObject *pyobj;
2605
2606 {
2607 #if wxUSE_UNICODE
2608 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2609 #else
2610 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2611 #endif
2612 }
2613 return pyobj;
2614 }
2615
2616
2617 static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) {
2618 PyObject *resultobj;
2619 wxWindow *arg1 = (wxWindow *) 0 ;
2620 int arg2 = (int) -1 ;
2621 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2622 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2623 wxSize const &arg4_defvalue = wxDefaultSize ;
2624 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2625 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2626 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2627 long arg6 = (long) 0 ;
2628 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2629 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2630 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2631 wxString *arg8 = (wxString *) &arg8_defvalue ;
2632 wxChoice *result;
2633 wxPoint temp3 ;
2634 wxSize temp4 ;
2635 bool temp5 = False ;
2636 bool temp8 = False ;
2637 PyObject * obj0 = 0 ;
2638 PyObject * obj1 = 0 ;
2639 PyObject * obj2 = 0 ;
2640 PyObject * obj3 = 0 ;
2641 PyObject * obj4 = 0 ;
2642 PyObject * obj5 = 0 ;
2643 PyObject * obj6 = 0 ;
2644 PyObject * obj7 = 0 ;
2645 char *kwnames[] = {
2646 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2647 };
2648
2649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2652 if (obj1) {
2653 arg2 = (int)SWIG_As_int(obj1);
2654 if (PyErr_Occurred()) SWIG_fail;
2655 }
2656 if (obj2) {
2657 {
2658 arg3 = &temp3;
2659 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2660 }
2661 }
2662 if (obj3) {
2663 {
2664 arg4 = &temp4;
2665 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2666 }
2667 }
2668 if (obj4) {
2669 {
2670 if (! PySequence_Check(obj4)) {
2671 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2672 SWIG_fail;
2673 }
2674 arg5 = new wxArrayString;
2675 temp5 = True;
2676 int i, len=PySequence_Length(obj4);
2677 for (i=0; i<len; i++) {
2678 PyObject* item = PySequence_GetItem(obj4, i);
2679 #if wxUSE_UNICODE
2680 PyObject* str = PyObject_Unicode(item);
2681 #else
2682 PyObject* str = PyObject_Str(item);
2683 #endif
2684 if (PyErr_Occurred()) SWIG_fail;
2685 arg5->Add(Py2wxString(str));
2686 Py_DECREF(item);
2687 Py_DECREF(str);
2688 }
2689 }
2690 }
2691 if (obj5) {
2692 arg6 = (long)SWIG_As_long(obj5);
2693 if (PyErr_Occurred()) SWIG_fail;
2694 }
2695 if (obj6) {
2696 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2697 SWIG_POINTER_EXCEPTION | 0)) == -1)
2698 SWIG_fail;
2699 if (arg7 == NULL) {
2700 PyErr_SetString(PyExc_TypeError,"null reference");
2701 SWIG_fail;
2702 }
2703 }
2704 if (obj7) {
2705 {
2706 arg8 = wxString_in_helper(obj7);
2707 if (arg8 == NULL) SWIG_fail;
2708 temp8 = True;
2709 }
2710 }
2711 {
2712 if (!wxPyCheckForApp()) SWIG_fail;
2713 PyThreadState* __tstate = wxPyBeginAllowThreads();
2714 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2715
2716 wxPyEndAllowThreads(__tstate);
2717 if (PyErr_Occurred()) SWIG_fail;
2718 }
2719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2720 {
2721 if (temp5) delete arg5;
2722 }
2723 {
2724 if (temp8)
2725 delete arg8;
2726 }
2727 return resultobj;
2728 fail:
2729 {
2730 if (temp5) delete arg5;
2731 }
2732 {
2733 if (temp8)
2734 delete arg8;
2735 }
2736 return NULL;
2737 }
2738
2739
2740 static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) {
2741 PyObject *resultobj;
2742 wxChoice *result;
2743 char *kwnames[] = {
2744 NULL
2745 };
2746
2747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2748 {
2749 if (!wxPyCheckForApp()) SWIG_fail;
2750 PyThreadState* __tstate = wxPyBeginAllowThreads();
2751 result = (wxChoice *)new wxChoice();
2752
2753 wxPyEndAllowThreads(__tstate);
2754 if (PyErr_Occurred()) SWIG_fail;
2755 }
2756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2757 return resultobj;
2758 fail:
2759 return NULL;
2760 }
2761
2762
2763 static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2764 PyObject *resultobj;
2765 wxChoice *arg1 = (wxChoice *) 0 ;
2766 wxWindow *arg2 = (wxWindow *) 0 ;
2767 int arg3 = (int) -1 ;
2768 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2769 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2770 wxSize const &arg5_defvalue = wxDefaultSize ;
2771 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2772 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2773 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2774 long arg7 = (long) 0 ;
2775 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2776 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2777 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2778 wxString *arg9 = (wxString *) &arg9_defvalue ;
2779 bool result;
2780 wxPoint temp4 ;
2781 wxSize temp5 ;
2782 bool temp6 = False ;
2783 bool temp9 = False ;
2784 PyObject * obj0 = 0 ;
2785 PyObject * obj1 = 0 ;
2786 PyObject * obj2 = 0 ;
2787 PyObject * obj3 = 0 ;
2788 PyObject * obj4 = 0 ;
2789 PyObject * obj5 = 0 ;
2790 PyObject * obj6 = 0 ;
2791 PyObject * obj7 = 0 ;
2792 PyObject * obj8 = 0 ;
2793 char *kwnames[] = {
2794 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2795 };
2796
2797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2802 if (obj2) {
2803 arg3 = (int)SWIG_As_int(obj2);
2804 if (PyErr_Occurred()) SWIG_fail;
2805 }
2806 if (obj3) {
2807 {
2808 arg4 = &temp4;
2809 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2810 }
2811 }
2812 if (obj4) {
2813 {
2814 arg5 = &temp5;
2815 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2816 }
2817 }
2818 if (obj5) {
2819 {
2820 if (! PySequence_Check(obj5)) {
2821 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2822 SWIG_fail;
2823 }
2824 arg6 = new wxArrayString;
2825 temp6 = True;
2826 int i, len=PySequence_Length(obj5);
2827 for (i=0; i<len; i++) {
2828 PyObject* item = PySequence_GetItem(obj5, i);
2829 #if wxUSE_UNICODE
2830 PyObject* str = PyObject_Unicode(item);
2831 #else
2832 PyObject* str = PyObject_Str(item);
2833 #endif
2834 if (PyErr_Occurred()) SWIG_fail;
2835 arg6->Add(Py2wxString(str));
2836 Py_DECREF(item);
2837 Py_DECREF(str);
2838 }
2839 }
2840 }
2841 if (obj6) {
2842 arg7 = (long)SWIG_As_long(obj6);
2843 if (PyErr_Occurred()) SWIG_fail;
2844 }
2845 if (obj7) {
2846 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2847 SWIG_POINTER_EXCEPTION | 0)) == -1)
2848 SWIG_fail;
2849 if (arg8 == NULL) {
2850 PyErr_SetString(PyExc_TypeError,"null reference");
2851 SWIG_fail;
2852 }
2853 }
2854 if (obj8) {
2855 {
2856 arg9 = wxString_in_helper(obj8);
2857 if (arg9 == NULL) SWIG_fail;
2858 temp9 = True;
2859 }
2860 }
2861 {
2862 PyThreadState* __tstate = wxPyBeginAllowThreads();
2863 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2864
2865 wxPyEndAllowThreads(__tstate);
2866 if (PyErr_Occurred()) SWIG_fail;
2867 }
2868 {
2869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2870 }
2871 {
2872 if (temp6) delete arg6;
2873 }
2874 {
2875 if (temp9)
2876 delete arg9;
2877 }
2878 return resultobj;
2879 fail:
2880 {
2881 if (temp6) delete arg6;
2882 }
2883 {
2884 if (temp9)
2885 delete arg9;
2886 }
2887 return NULL;
2888 }
2889
2890
2891 static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2892 PyObject *resultobj;
2893 wxChoice *arg1 = (wxChoice *) 0 ;
2894 int arg2 ;
2895 PyObject * obj0 = 0 ;
2896 PyObject * obj1 = 0 ;
2897 char *kwnames[] = {
2898 (char *) "self",(char *) "n", NULL
2899 };
2900
2901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2904 arg2 = (int)SWIG_As_int(obj1);
2905 if (PyErr_Occurred()) SWIG_fail;
2906 {
2907 PyThreadState* __tstate = wxPyBeginAllowThreads();
2908 (arg1)->SetSelection(arg2);
2909
2910 wxPyEndAllowThreads(__tstate);
2911 if (PyErr_Occurred()) SWIG_fail;
2912 }
2913 Py_INCREF(Py_None); resultobj = Py_None;
2914 return resultobj;
2915 fail:
2916 return NULL;
2917 }
2918
2919
2920 static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2921 PyObject *resultobj;
2922 wxChoice *arg1 = (wxChoice *) 0 ;
2923 wxString *arg2 = 0 ;
2924 bool result;
2925 bool temp2 = False ;
2926 PyObject * obj0 = 0 ;
2927 PyObject * obj1 = 0 ;
2928 char *kwnames[] = {
2929 (char *) "self",(char *) "string", NULL
2930 };
2931
2932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2935 {
2936 arg2 = wxString_in_helper(obj1);
2937 if (arg2 == NULL) SWIG_fail;
2938 temp2 = True;
2939 }
2940 {
2941 PyThreadState* __tstate = wxPyBeginAllowThreads();
2942 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2943
2944 wxPyEndAllowThreads(__tstate);
2945 if (PyErr_Occurred()) SWIG_fail;
2946 }
2947 {
2948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2949 }
2950 {
2951 if (temp2)
2952 delete arg2;
2953 }
2954 return resultobj;
2955 fail:
2956 {
2957 if (temp2)
2958 delete arg2;
2959 }
2960 return NULL;
2961 }
2962
2963
2964 static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
2965 PyObject *resultobj;
2966 wxChoice *arg1 = (wxChoice *) 0 ;
2967 int arg2 ;
2968 wxString *arg3 = 0 ;
2969 bool temp3 = False ;
2970 PyObject * obj0 = 0 ;
2971 PyObject * obj1 = 0 ;
2972 PyObject * obj2 = 0 ;
2973 char *kwnames[] = {
2974 (char *) "self",(char *) "n",(char *) "string", NULL
2975 };
2976
2977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2980 arg2 = (int)SWIG_As_int(obj1);
2981 if (PyErr_Occurred()) SWIG_fail;
2982 {
2983 arg3 = wxString_in_helper(obj2);
2984 if (arg3 == NULL) SWIG_fail;
2985 temp3 = True;
2986 }
2987 {
2988 PyThreadState* __tstate = wxPyBeginAllowThreads();
2989 (arg1)->SetString(arg2,(wxString const &)*arg3);
2990
2991 wxPyEndAllowThreads(__tstate);
2992 if (PyErr_Occurred()) SWIG_fail;
2993 }
2994 Py_INCREF(Py_None); resultobj = Py_None;
2995 {
2996 if (temp3)
2997 delete arg3;
2998 }
2999 return resultobj;
3000 fail:
3001 {
3002 if (temp3)
3003 delete arg3;
3004 }
3005 return NULL;
3006 }
3007
3008
3009 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3010 PyObject *resultobj;
3011 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3012 wxVisualAttributes result;
3013 PyObject * obj0 = 0 ;
3014 char *kwnames[] = {
3015 (char *) "variant", NULL
3016 };
3017
3018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3019 if (obj0) {
3020 arg1 = (int)SWIG_As_int(obj0);
3021 if (PyErr_Occurred()) SWIG_fail;
3022 }
3023 {
3024 if (!wxPyCheckForApp()) SWIG_fail;
3025 PyThreadState* __tstate = wxPyBeginAllowThreads();
3026 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
3027
3028 wxPyEndAllowThreads(__tstate);
3029 if (PyErr_Occurred()) SWIG_fail;
3030 }
3031 {
3032 wxVisualAttributes * resultptr;
3033 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3034 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3035 }
3036 return resultobj;
3037 fail:
3038 return NULL;
3039 }
3040
3041
3042 static PyObject * Choice_swigregister(PyObject *, PyObject *args) {
3043 PyObject *obj;
3044 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3045 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
3046 Py_INCREF(obj);
3047 return Py_BuildValue((char *)"");
3048 }
3049 static int _wrap_ComboBoxNameStr_set(PyObject *) {
3050 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
3051 return 1;
3052 }
3053
3054
3055 static PyObject *_wrap_ComboBoxNameStr_get() {
3056 PyObject *pyobj;
3057
3058 {
3059 #if wxUSE_UNICODE
3060 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3061 #else
3062 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3063 #endif
3064 }
3065 return pyobj;
3066 }
3067
3068
3069 static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3070 PyObject *resultobj;
3071 wxWindow *arg1 = (wxWindow *) 0 ;
3072 int arg2 = (int) -1 ;
3073 wxString const &arg3_defvalue = wxPyEmptyString ;
3074 wxString *arg3 = (wxString *) &arg3_defvalue ;
3075 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3076 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3077 wxSize const &arg5_defvalue = wxDefaultSize ;
3078 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3079 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
3080 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
3081 long arg7 = (long) 0 ;
3082 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3083 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3084 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
3085 wxString *arg9 = (wxString *) &arg9_defvalue ;
3086 wxComboBox *result;
3087 bool temp3 = False ;
3088 wxPoint temp4 ;
3089 wxSize temp5 ;
3090 bool temp6 = False ;
3091 bool temp9 = False ;
3092 PyObject * obj0 = 0 ;
3093 PyObject * obj1 = 0 ;
3094 PyObject * obj2 = 0 ;
3095 PyObject * obj3 = 0 ;
3096 PyObject * obj4 = 0 ;
3097 PyObject * obj5 = 0 ;
3098 PyObject * obj6 = 0 ;
3099 PyObject * obj7 = 0 ;
3100 PyObject * obj8 = 0 ;
3101 char *kwnames[] = {
3102 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3103 };
3104
3105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3108 if (obj1) {
3109 arg2 = (int)SWIG_As_int(obj1);
3110 if (PyErr_Occurred()) SWIG_fail;
3111 }
3112 if (obj2) {
3113 {
3114 arg3 = wxString_in_helper(obj2);
3115 if (arg3 == NULL) SWIG_fail;
3116 temp3 = True;
3117 }
3118 }
3119 if (obj3) {
3120 {
3121 arg4 = &temp4;
3122 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3123 }
3124 }
3125 if (obj4) {
3126 {
3127 arg5 = &temp5;
3128 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3129 }
3130 }
3131 if (obj5) {
3132 {
3133 if (! PySequence_Check(obj5)) {
3134 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3135 SWIG_fail;
3136 }
3137 arg6 = new wxArrayString;
3138 temp6 = True;
3139 int i, len=PySequence_Length(obj5);
3140 for (i=0; i<len; i++) {
3141 PyObject* item = PySequence_GetItem(obj5, i);
3142 #if wxUSE_UNICODE
3143 PyObject* str = PyObject_Unicode(item);
3144 #else
3145 PyObject* str = PyObject_Str(item);
3146 #endif
3147 if (PyErr_Occurred()) SWIG_fail;
3148 arg6->Add(Py2wxString(str));
3149 Py_DECREF(item);
3150 Py_DECREF(str);
3151 }
3152 }
3153 }
3154 if (obj6) {
3155 arg7 = (long)SWIG_As_long(obj6);
3156 if (PyErr_Occurred()) SWIG_fail;
3157 }
3158 if (obj7) {
3159 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3160 SWIG_POINTER_EXCEPTION | 0)) == -1)
3161 SWIG_fail;
3162 if (arg8 == NULL) {
3163 PyErr_SetString(PyExc_TypeError,"null reference");
3164 SWIG_fail;
3165 }
3166 }
3167 if (obj8) {
3168 {
3169 arg9 = wxString_in_helper(obj8);
3170 if (arg9 == NULL) SWIG_fail;
3171 temp9 = True;
3172 }
3173 }
3174 {
3175 if (!wxPyCheckForApp()) SWIG_fail;
3176 PyThreadState* __tstate = wxPyBeginAllowThreads();
3177 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3178
3179 wxPyEndAllowThreads(__tstate);
3180 if (PyErr_Occurred()) SWIG_fail;
3181 }
3182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3183 {
3184 if (temp3)
3185 delete arg3;
3186 }
3187 {
3188 if (temp6) delete arg6;
3189 }
3190 {
3191 if (temp9)
3192 delete arg9;
3193 }
3194 return resultobj;
3195 fail:
3196 {
3197 if (temp3)
3198 delete arg3;
3199 }
3200 {
3201 if (temp6) delete arg6;
3202 }
3203 {
3204 if (temp9)
3205 delete arg9;
3206 }
3207 return NULL;
3208 }
3209
3210
3211 static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3212 PyObject *resultobj;
3213 wxComboBox *result;
3214 char *kwnames[] = {
3215 NULL
3216 };
3217
3218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3219 {
3220 if (!wxPyCheckForApp()) SWIG_fail;
3221 PyThreadState* __tstate = wxPyBeginAllowThreads();
3222 result = (wxComboBox *)new wxComboBox();
3223
3224 wxPyEndAllowThreads(__tstate);
3225 if (PyErr_Occurred()) SWIG_fail;
3226 }
3227 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3228 return resultobj;
3229 fail:
3230 return NULL;
3231 }
3232
3233
3234 static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
3235 PyObject *resultobj;
3236 wxComboBox *arg1 = (wxComboBox *) 0 ;
3237 wxWindow *arg2 = (wxWindow *) 0 ;
3238 int arg3 = (int) -1 ;
3239 wxString const &arg4_defvalue = wxPyEmptyString ;
3240 wxString *arg4 = (wxString *) &arg4_defvalue ;
3241 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3242 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3243 wxSize const &arg6_defvalue = wxDefaultSize ;
3244 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3245 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3246 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3247 long arg8 = (long) 0 ;
3248 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3249 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3250 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3251 wxString *arg10 = (wxString *) &arg10_defvalue ;
3252 bool result;
3253 bool temp4 = False ;
3254 wxPoint temp5 ;
3255 wxSize temp6 ;
3256 bool temp7 = False ;
3257 bool temp10 = False ;
3258 PyObject * obj0 = 0 ;
3259 PyObject * obj1 = 0 ;
3260 PyObject * obj2 = 0 ;
3261 PyObject * obj3 = 0 ;
3262 PyObject * obj4 = 0 ;
3263 PyObject * obj5 = 0 ;
3264 PyObject * obj6 = 0 ;
3265 PyObject * obj7 = 0 ;
3266 PyObject * obj8 = 0 ;
3267 PyObject * obj9 = 0 ;
3268 char *kwnames[] = {
3269 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3270 };
3271
3272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3277 if (obj2) {
3278 arg3 = (int)SWIG_As_int(obj2);
3279 if (PyErr_Occurred()) SWIG_fail;
3280 }
3281 if (obj3) {
3282 {
3283 arg4 = wxString_in_helper(obj3);
3284 if (arg4 == NULL) SWIG_fail;
3285 temp4 = True;
3286 }
3287 }
3288 if (obj4) {
3289 {
3290 arg5 = &temp5;
3291 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3292 }
3293 }
3294 if (obj5) {
3295 {
3296 arg6 = &temp6;
3297 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3298 }
3299 }
3300 if (obj6) {
3301 {
3302 if (! PySequence_Check(obj6)) {
3303 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3304 SWIG_fail;
3305 }
3306 arg7 = new wxArrayString;
3307 temp7 = True;
3308 int i, len=PySequence_Length(obj6);
3309 for (i=0; i<len; i++) {
3310 PyObject* item = PySequence_GetItem(obj6, i);
3311 #if wxUSE_UNICODE
3312 PyObject* str = PyObject_Unicode(item);
3313 #else
3314 PyObject* str = PyObject_Str(item);
3315 #endif
3316 if (PyErr_Occurred()) SWIG_fail;
3317 arg7->Add(Py2wxString(str));
3318 Py_DECREF(item);
3319 Py_DECREF(str);
3320 }
3321 }
3322 }
3323 if (obj7) {
3324 arg8 = (long)SWIG_As_long(obj7);
3325 if (PyErr_Occurred()) SWIG_fail;
3326 }
3327 if (obj8) {
3328 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3329 SWIG_POINTER_EXCEPTION | 0)) == -1)
3330 SWIG_fail;
3331 if (arg9 == NULL) {
3332 PyErr_SetString(PyExc_TypeError,"null reference");
3333 SWIG_fail;
3334 }
3335 }
3336 if (obj9) {
3337 {
3338 arg10 = wxString_in_helper(obj9);
3339 if (arg10 == NULL) SWIG_fail;
3340 temp10 = True;
3341 }
3342 }
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
3346
3347 wxPyEndAllowThreads(__tstate);
3348 if (PyErr_Occurred()) SWIG_fail;
3349 }
3350 {
3351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3352 }
3353 {
3354 if (temp4)
3355 delete arg4;
3356 }
3357 {
3358 if (temp7) delete arg7;
3359 }
3360 {
3361 if (temp10)
3362 delete arg10;
3363 }
3364 return resultobj;
3365 fail:
3366 {
3367 if (temp4)
3368 delete arg4;
3369 }
3370 {
3371 if (temp7) delete arg7;
3372 }
3373 {
3374 if (temp10)
3375 delete arg10;
3376 }
3377 return NULL;
3378 }
3379
3380
3381 static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3382 PyObject *resultobj;
3383 wxComboBox *arg1 = (wxComboBox *) 0 ;
3384 wxString result;
3385 PyObject * obj0 = 0 ;
3386 char *kwnames[] = {
3387 (char *) "self", NULL
3388 };
3389
3390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3393 {
3394 PyThreadState* __tstate = wxPyBeginAllowThreads();
3395 result = ((wxComboBox const *)arg1)->GetValue();
3396
3397 wxPyEndAllowThreads(__tstate);
3398 if (PyErr_Occurred()) SWIG_fail;
3399 }
3400 {
3401 #if wxUSE_UNICODE
3402 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3403 #else
3404 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3405 #endif
3406 }
3407 return resultobj;
3408 fail:
3409 return NULL;
3410 }
3411
3412
3413 static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3414 PyObject *resultobj;
3415 wxComboBox *arg1 = (wxComboBox *) 0 ;
3416 wxString *arg2 = 0 ;
3417 bool temp2 = False ;
3418 PyObject * obj0 = 0 ;
3419 PyObject * obj1 = 0 ;
3420 char *kwnames[] = {
3421 (char *) "self",(char *) "value", NULL
3422 };
3423
3424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3427 {
3428 arg2 = wxString_in_helper(obj1);
3429 if (arg2 == NULL) SWIG_fail;
3430 temp2 = True;
3431 }
3432 {
3433 PyThreadState* __tstate = wxPyBeginAllowThreads();
3434 (arg1)->SetValue((wxString const &)*arg2);
3435
3436 wxPyEndAllowThreads(__tstate);
3437 if (PyErr_Occurred()) SWIG_fail;
3438 }
3439 Py_INCREF(Py_None); resultobj = Py_None;
3440 {
3441 if (temp2)
3442 delete arg2;
3443 }
3444 return resultobj;
3445 fail:
3446 {
3447 if (temp2)
3448 delete arg2;
3449 }
3450 return NULL;
3451 }
3452
3453
3454 static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
3455 PyObject *resultobj;
3456 wxComboBox *arg1 = (wxComboBox *) 0 ;
3457 PyObject * obj0 = 0 ;
3458 char *kwnames[] = {
3459 (char *) "self", NULL
3460 };
3461
3462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3465 {
3466 PyThreadState* __tstate = wxPyBeginAllowThreads();
3467 (arg1)->Copy();
3468
3469 wxPyEndAllowThreads(__tstate);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 }
3472 Py_INCREF(Py_None); resultobj = Py_None;
3473 return resultobj;
3474 fail:
3475 return NULL;
3476 }
3477
3478
3479 static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
3480 PyObject *resultobj;
3481 wxComboBox *arg1 = (wxComboBox *) 0 ;
3482 PyObject * obj0 = 0 ;
3483 char *kwnames[] = {
3484 (char *) "self", NULL
3485 };
3486
3487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3490 {
3491 PyThreadState* __tstate = wxPyBeginAllowThreads();
3492 (arg1)->Cut();
3493
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 Py_INCREF(Py_None); resultobj = Py_None;
3498 return resultobj;
3499 fail:
3500 return NULL;
3501 }
3502
3503
3504 static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
3505 PyObject *resultobj;
3506 wxComboBox *arg1 = (wxComboBox *) 0 ;
3507 PyObject * obj0 = 0 ;
3508 char *kwnames[] = {
3509 (char *) "self", NULL
3510 };
3511
3512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3515 {
3516 PyThreadState* __tstate = wxPyBeginAllowThreads();
3517 (arg1)->Paste();
3518
3519 wxPyEndAllowThreads(__tstate);
3520 if (PyErr_Occurred()) SWIG_fail;
3521 }
3522 Py_INCREF(Py_None); resultobj = Py_None;
3523 return resultobj;
3524 fail:
3525 return NULL;
3526 }
3527
3528
3529 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3530 PyObject *resultobj;
3531 wxComboBox *arg1 = (wxComboBox *) 0 ;
3532 long arg2 ;
3533 PyObject * obj0 = 0 ;
3534 PyObject * obj1 = 0 ;
3535 char *kwnames[] = {
3536 (char *) "self",(char *) "pos", NULL
3537 };
3538
3539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3542 arg2 = (long)SWIG_As_long(obj1);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 {
3545 PyThreadState* __tstate = wxPyBeginAllowThreads();
3546 (arg1)->SetInsertionPoint(arg2);
3547
3548 wxPyEndAllowThreads(__tstate);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 }
3551 Py_INCREF(Py_None); resultobj = Py_None;
3552 return resultobj;
3553 fail:
3554 return NULL;
3555 }
3556
3557
3558 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3559 PyObject *resultobj;
3560 wxComboBox *arg1 = (wxComboBox *) 0 ;
3561 long result;
3562 PyObject * obj0 = 0 ;
3563 char *kwnames[] = {
3564 (char *) "self", NULL
3565 };
3566
3567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3570 {
3571 PyThreadState* __tstate = wxPyBeginAllowThreads();
3572 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3573
3574 wxPyEndAllowThreads(__tstate);
3575 if (PyErr_Occurred()) SWIG_fail;
3576 }
3577 resultobj = SWIG_From_long((long)result);
3578 return resultobj;
3579 fail:
3580 return NULL;
3581 }
3582
3583
3584 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3585 PyObject *resultobj;
3586 wxComboBox *arg1 = (wxComboBox *) 0 ;
3587 long result;
3588 PyObject * obj0 = 0 ;
3589 char *kwnames[] = {
3590 (char *) "self", NULL
3591 };
3592
3593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3596 {
3597 PyThreadState* __tstate = wxPyBeginAllowThreads();
3598 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3599
3600 wxPyEndAllowThreads(__tstate);
3601 if (PyErr_Occurred()) SWIG_fail;
3602 }
3603 resultobj = SWIG_From_long((long)result);
3604 return resultobj;
3605 fail:
3606 return NULL;
3607 }
3608
3609
3610 static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
3611 PyObject *resultobj;
3612 wxComboBox *arg1 = (wxComboBox *) 0 ;
3613 long arg2 ;
3614 long arg3 ;
3615 wxString *arg4 = 0 ;
3616 bool temp4 = False ;
3617 PyObject * obj0 = 0 ;
3618 PyObject * obj1 = 0 ;
3619 PyObject * obj2 = 0 ;
3620 PyObject * obj3 = 0 ;
3621 char *kwnames[] = {
3622 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3623 };
3624
3625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3628 arg2 = (long)SWIG_As_long(obj1);
3629 if (PyErr_Occurred()) SWIG_fail;
3630 arg3 = (long)SWIG_As_long(obj2);
3631 if (PyErr_Occurred()) SWIG_fail;
3632 {
3633 arg4 = wxString_in_helper(obj3);
3634 if (arg4 == NULL) SWIG_fail;
3635 temp4 = True;
3636 }
3637 {
3638 PyThreadState* __tstate = wxPyBeginAllowThreads();
3639 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3640
3641 wxPyEndAllowThreads(__tstate);
3642 if (PyErr_Occurred()) SWIG_fail;
3643 }
3644 Py_INCREF(Py_None); resultobj = Py_None;
3645 {
3646 if (temp4)
3647 delete arg4;
3648 }
3649 return resultobj;
3650 fail:
3651 {
3652 if (temp4)
3653 delete arg4;
3654 }
3655 return NULL;
3656 }
3657
3658
3659 static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3660 PyObject *resultobj;
3661 wxComboBox *arg1 = (wxComboBox *) 0 ;
3662 int arg2 ;
3663 PyObject * obj0 = 0 ;
3664 PyObject * obj1 = 0 ;
3665 char *kwnames[] = {
3666 (char *) "self",(char *) "n", NULL
3667 };
3668
3669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3672 arg2 = (int)SWIG_As_int(obj1);
3673 if (PyErr_Occurred()) SWIG_fail;
3674 {
3675 PyThreadState* __tstate = wxPyBeginAllowThreads();
3676 (arg1)->SetSelection(arg2);
3677
3678 wxPyEndAllowThreads(__tstate);
3679 if (PyErr_Occurred()) SWIG_fail;
3680 }
3681 Py_INCREF(Py_None); resultobj = Py_None;
3682 return resultobj;
3683 fail:
3684 return NULL;
3685 }
3686
3687
3688 static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) {
3689 PyObject *resultobj;
3690 wxComboBox *arg1 = (wxComboBox *) 0 ;
3691 long arg2 ;
3692 long arg3 ;
3693 PyObject * obj0 = 0 ;
3694 PyObject * obj1 = 0 ;
3695 PyObject * obj2 = 0 ;
3696 char *kwnames[] = {
3697 (char *) "self",(char *) "from",(char *) "to", NULL
3698 };
3699
3700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3703 arg2 = (long)SWIG_As_long(obj1);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 arg3 = (long)SWIG_As_long(obj2);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 {
3708 PyThreadState* __tstate = wxPyBeginAllowThreads();
3709 (arg1)->SetSelection(arg2,arg3);
3710
3711 wxPyEndAllowThreads(__tstate);
3712 if (PyErr_Occurred()) SWIG_fail;
3713 }
3714 Py_INCREF(Py_None); resultobj = Py_None;
3715 return resultobj;
3716 fail:
3717 return NULL;
3718 }
3719
3720
3721 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3722 PyObject *resultobj;
3723 wxComboBox *arg1 = (wxComboBox *) 0 ;
3724 wxString *arg2 = 0 ;
3725 bool result;
3726 bool temp2 = False ;
3727 PyObject * obj0 = 0 ;
3728 PyObject * obj1 = 0 ;
3729 char *kwnames[] = {
3730 (char *) "self",(char *) "string", NULL
3731 };
3732
3733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3736 {
3737 arg2 = wxString_in_helper(obj1);
3738 if (arg2 == NULL) SWIG_fail;
3739 temp2 = True;
3740 }
3741 {
3742 PyThreadState* __tstate = wxPyBeginAllowThreads();
3743 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3744
3745 wxPyEndAllowThreads(__tstate);
3746 if (PyErr_Occurred()) SWIG_fail;
3747 }
3748 {
3749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3750 }
3751 {
3752 if (temp2)
3753 delete arg2;
3754 }
3755 return resultobj;
3756 fail:
3757 {
3758 if (temp2)
3759 delete arg2;
3760 }
3761 return NULL;
3762 }
3763
3764
3765 static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
3766 PyObject *resultobj;
3767 wxComboBox *arg1 = (wxComboBox *) 0 ;
3768 int arg2 ;
3769 wxString *arg3 = 0 ;
3770 bool temp3 = False ;
3771 PyObject * obj0 = 0 ;
3772 PyObject * obj1 = 0 ;
3773 PyObject * obj2 = 0 ;
3774 char *kwnames[] = {
3775 (char *) "self",(char *) "n",(char *) "string", NULL
3776 };
3777
3778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3781 arg2 = (int)SWIG_As_int(obj1);
3782 if (PyErr_Occurred()) SWIG_fail;
3783 {
3784 arg3 = wxString_in_helper(obj2);
3785 if (arg3 == NULL) SWIG_fail;
3786 temp3 = True;
3787 }
3788 {
3789 PyThreadState* __tstate = wxPyBeginAllowThreads();
3790 (arg1)->SetString(arg2,(wxString const &)*arg3);
3791
3792 wxPyEndAllowThreads(__tstate);
3793 if (PyErr_Occurred()) SWIG_fail;
3794 }
3795 Py_INCREF(Py_None); resultobj = Py_None;
3796 {
3797 if (temp3)
3798 delete arg3;
3799 }
3800 return resultobj;
3801 fail:
3802 {
3803 if (temp3)
3804 delete arg3;
3805 }
3806 return NULL;
3807 }
3808
3809
3810 static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3811 PyObject *resultobj;
3812 wxComboBox *arg1 = (wxComboBox *) 0 ;
3813 bool arg2 ;
3814 PyObject * obj0 = 0 ;
3815 PyObject * obj1 = 0 ;
3816 char *kwnames[] = {
3817 (char *) "self",(char *) "editable", NULL
3818 };
3819
3820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3823 arg2 = (bool)SWIG_As_bool(obj1);
3824 if (PyErr_Occurred()) SWIG_fail;
3825 {
3826 PyThreadState* __tstate = wxPyBeginAllowThreads();
3827 (arg1)->SetEditable(arg2);
3828
3829 wxPyEndAllowThreads(__tstate);
3830 if (PyErr_Occurred()) SWIG_fail;
3831 }
3832 Py_INCREF(Py_None); resultobj = Py_None;
3833 return resultobj;
3834 fail:
3835 return NULL;
3836 }
3837
3838
3839 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
3840 PyObject *resultobj;
3841 wxComboBox *arg1 = (wxComboBox *) 0 ;
3842 PyObject * obj0 = 0 ;
3843 char *kwnames[] = {
3844 (char *) "self", NULL
3845 };
3846
3847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3850 {
3851 PyThreadState* __tstate = wxPyBeginAllowThreads();
3852 (arg1)->SetInsertionPointEnd();
3853
3854 wxPyEndAllowThreads(__tstate);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 }
3857 Py_INCREF(Py_None); resultobj = Py_None;
3858 return resultobj;
3859 fail:
3860 return NULL;
3861 }
3862
3863
3864 static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
3865 PyObject *resultobj;
3866 wxComboBox *arg1 = (wxComboBox *) 0 ;
3867 long arg2 ;
3868 long arg3 ;
3869 PyObject * obj0 = 0 ;
3870 PyObject * obj1 = 0 ;
3871 PyObject * obj2 = 0 ;
3872 char *kwnames[] = {
3873 (char *) "self",(char *) "from",(char *) "to", NULL
3874 };
3875
3876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3879 arg2 = (long)SWIG_As_long(obj1);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 arg3 = (long)SWIG_As_long(obj2);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 {
3884 PyThreadState* __tstate = wxPyBeginAllowThreads();
3885 (arg1)->Remove(arg2,arg3);
3886
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 Py_INCREF(Py_None); resultobj = Py_None;
3891 return resultobj;
3892 fail:
3893 return NULL;
3894 }
3895
3896
3897 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj;
3899 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3900 wxVisualAttributes result;
3901 PyObject * obj0 = 0 ;
3902 char *kwnames[] = {
3903 (char *) "variant", NULL
3904 };
3905
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3907 if (obj0) {
3908 arg1 = (int)SWIG_As_int(obj0);
3909 if (PyErr_Occurred()) SWIG_fail;
3910 }
3911 {
3912 if (!wxPyCheckForApp()) SWIG_fail;
3913 PyThreadState* __tstate = wxPyBeginAllowThreads();
3914 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3915
3916 wxPyEndAllowThreads(__tstate);
3917 if (PyErr_Occurred()) SWIG_fail;
3918 }
3919 {
3920 wxVisualAttributes * resultptr;
3921 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3922 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3923 }
3924 return resultobj;
3925 fail:
3926 return NULL;
3927 }
3928
3929
3930 static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) {
3931 PyObject *obj;
3932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3933 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3934 Py_INCREF(obj);
3935 return Py_BuildValue((char *)"");
3936 }
3937 static int _wrap_GaugeNameStr_set(PyObject *) {
3938 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3939 return 1;
3940 }
3941
3942
3943 static PyObject *_wrap_GaugeNameStr_get() {
3944 PyObject *pyobj;
3945
3946 {
3947 #if wxUSE_UNICODE
3948 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3949 #else
3950 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3951 #endif
3952 }
3953 return pyobj;
3954 }
3955
3956
3957 static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) {
3958 PyObject *resultobj;
3959 wxWindow *arg1 = (wxWindow *) 0 ;
3960 int arg2 = (int) -1 ;
3961 int arg3 = (int) 100 ;
3962 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3963 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3964 wxSize const &arg5_defvalue = wxDefaultSize ;
3965 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3966 long arg6 = (long) wxGA_HORIZONTAL ;
3967 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3968 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3969 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3970 wxString *arg8 = (wxString *) &arg8_defvalue ;
3971 wxGauge *result;
3972 wxPoint temp4 ;
3973 wxSize temp5 ;
3974 bool temp8 = False ;
3975 PyObject * obj0 = 0 ;
3976 PyObject * obj1 = 0 ;
3977 PyObject * obj2 = 0 ;
3978 PyObject * obj3 = 0 ;
3979 PyObject * obj4 = 0 ;
3980 PyObject * obj5 = 0 ;
3981 PyObject * obj6 = 0 ;
3982 PyObject * obj7 = 0 ;
3983 char *kwnames[] = {
3984 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3985 };
3986
3987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3990 if (obj1) {
3991 arg2 = (int)SWIG_As_int(obj1);
3992 if (PyErr_Occurred()) SWIG_fail;
3993 }
3994 if (obj2) {
3995 arg3 = (int)SWIG_As_int(obj2);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 if (obj3) {
3999 {
4000 arg4 = &temp4;
4001 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4002 }
4003 }
4004 if (obj4) {
4005 {
4006 arg5 = &temp5;
4007 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4008 }
4009 }
4010 if (obj5) {
4011 arg6 = (long)SWIG_As_long(obj5);
4012 if (PyErr_Occurred()) SWIG_fail;
4013 }
4014 if (obj6) {
4015 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
4016 SWIG_POINTER_EXCEPTION | 0)) == -1)
4017 SWIG_fail;
4018 if (arg7 == NULL) {
4019 PyErr_SetString(PyExc_TypeError,"null reference");
4020 SWIG_fail;
4021 }
4022 }
4023 if (obj7) {
4024 {
4025 arg8 = wxString_in_helper(obj7);
4026 if (arg8 == NULL) SWIG_fail;
4027 temp8 = True;
4028 }
4029 }
4030 {
4031 if (!wxPyCheckForApp()) SWIG_fail;
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4034
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4039 {
4040 if (temp8)
4041 delete arg8;
4042 }
4043 return resultobj;
4044 fail:
4045 {
4046 if (temp8)
4047 delete arg8;
4048 }
4049 return NULL;
4050 }
4051
4052
4053 static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) {
4054 PyObject *resultobj;
4055 wxGauge *result;
4056 char *kwnames[] = {
4057 NULL
4058 };
4059
4060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
4061 {
4062 if (!wxPyCheckForApp()) SWIG_fail;
4063 PyThreadState* __tstate = wxPyBeginAllowThreads();
4064 result = (wxGauge *)new wxGauge();
4065
4066 wxPyEndAllowThreads(__tstate);
4067 if (PyErr_Occurred()) SWIG_fail;
4068 }
4069 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4070 return resultobj;
4071 fail:
4072 return NULL;
4073 }
4074
4075
4076 static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4077 PyObject *resultobj;
4078 wxGauge *arg1 = (wxGauge *) 0 ;
4079 wxWindow *arg2 = (wxWindow *) 0 ;
4080 int arg3 = (int) -1 ;
4081 int arg4 = (int) 100 ;
4082 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4083 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4084 wxSize const &arg6_defvalue = wxDefaultSize ;
4085 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4086 long arg7 = (long) wxGA_HORIZONTAL ;
4087 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4088 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4089 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
4090 wxString *arg9 = (wxString *) &arg9_defvalue ;
4091 bool result;
4092 wxPoint temp5 ;
4093 wxSize temp6 ;
4094 bool temp9 = False ;
4095 PyObject * obj0 = 0 ;
4096 PyObject * obj1 = 0 ;
4097 PyObject * obj2 = 0 ;
4098 PyObject * obj3 = 0 ;
4099 PyObject * obj4 = 0 ;
4100 PyObject * obj5 = 0 ;
4101 PyObject * obj6 = 0 ;
4102 PyObject * obj7 = 0 ;
4103 PyObject * obj8 = 0 ;
4104 char *kwnames[] = {
4105 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4106 };
4107
4108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4111 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4113 if (obj2) {
4114 arg3 = (int)SWIG_As_int(obj2);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 if (obj3) {
4118 arg4 = (int)SWIG_As_int(obj3);
4119 if (PyErr_Occurred()) SWIG_fail;
4120 }
4121 if (obj4) {
4122 {
4123 arg5 = &temp5;
4124 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4125 }
4126 }
4127 if (obj5) {
4128 {
4129 arg6 = &temp6;
4130 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4131 }
4132 }
4133 if (obj6) {
4134 arg7 = (long)SWIG_As_long(obj6);
4135 if (PyErr_Occurred()) SWIG_fail;
4136 }
4137 if (obj7) {
4138 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
4139 SWIG_POINTER_EXCEPTION | 0)) == -1)
4140 SWIG_fail;
4141 if (arg8 == NULL) {
4142 PyErr_SetString(PyExc_TypeError,"null reference");
4143 SWIG_fail;
4144 }
4145 }
4146 if (obj8) {
4147 {
4148 arg9 = wxString_in_helper(obj8);
4149 if (arg9 == NULL) SWIG_fail;
4150 temp9 = True;
4151 }
4152 }
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4156
4157 wxPyEndAllowThreads(__tstate);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 }
4160 {
4161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4162 }
4163 {
4164 if (temp9)
4165 delete arg9;
4166 }
4167 return resultobj;
4168 fail:
4169 {
4170 if (temp9)
4171 delete arg9;
4172 }
4173 return NULL;
4174 }
4175
4176
4177 static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj;
4179 wxGauge *arg1 = (wxGauge *) 0 ;
4180 int arg2 ;
4181 PyObject * obj0 = 0 ;
4182 PyObject * obj1 = 0 ;
4183 char *kwnames[] = {
4184 (char *) "self",(char *) "range", NULL
4185 };
4186
4187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4190 arg2 = (int)SWIG_As_int(obj1);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 {
4193 PyThreadState* __tstate = wxPyBeginAllowThreads();
4194 (arg1)->SetRange(arg2);
4195
4196 wxPyEndAllowThreads(__tstate);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 }
4199 Py_INCREF(Py_None); resultobj = Py_None;
4200 return resultobj;
4201 fail:
4202 return NULL;
4203 }
4204
4205
4206 static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4207 PyObject *resultobj;
4208 wxGauge *arg1 = (wxGauge *) 0 ;
4209 int result;
4210 PyObject * obj0 = 0 ;
4211 char *kwnames[] = {
4212 (char *) "self", NULL
4213 };
4214
4215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 result = (int)((wxGauge const *)arg1)->GetRange();
4221
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 resultobj = SWIG_From_int((int)result);
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj;
4234 wxGauge *arg1 = (wxGauge *) 0 ;
4235 int arg2 ;
4236 PyObject * obj0 = 0 ;
4237 PyObject * obj1 = 0 ;
4238 char *kwnames[] = {
4239 (char *) "self",(char *) "pos", NULL
4240 };
4241
4242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4245 arg2 = (int)SWIG_As_int(obj1);
4246 if (PyErr_Occurred()) SWIG_fail;
4247 {
4248 PyThreadState* __tstate = wxPyBeginAllowThreads();
4249 (arg1)->SetValue(arg2);
4250
4251 wxPyEndAllowThreads(__tstate);
4252 if (PyErr_Occurred()) SWIG_fail;
4253 }
4254 Py_INCREF(Py_None); resultobj = Py_None;
4255 return resultobj;
4256 fail:
4257 return NULL;
4258 }
4259
4260
4261 static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4262 PyObject *resultobj;
4263 wxGauge *arg1 = (wxGauge *) 0 ;
4264 int result;
4265 PyObject * obj0 = 0 ;
4266 char *kwnames[] = {
4267 (char *) "self", NULL
4268 };
4269
4270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 result = (int)((wxGauge const *)arg1)->GetValue();
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 resultobj = SWIG_From_int((int)result);
4281 return resultobj;
4282 fail:
4283 return NULL;
4284 }
4285
4286
4287 static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj;
4289 wxGauge *arg1 = (wxGauge *) 0 ;
4290 bool result;
4291 PyObject * obj0 = 0 ;
4292 char *kwnames[] = {
4293 (char *) "self", NULL
4294 };
4295
4296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4299 {
4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
4301 result = (bool)((wxGauge const *)arg1)->IsVertical();
4302
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 {
4307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4308 }
4309 return resultobj;
4310 fail:
4311 return NULL;
4312 }
4313
4314
4315 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4316 PyObject *resultobj;
4317 wxGauge *arg1 = (wxGauge *) 0 ;
4318 int arg2 ;
4319 PyObject * obj0 = 0 ;
4320 PyObject * obj1 = 0 ;
4321 char *kwnames[] = {
4322 (char *) "self",(char *) "w", NULL
4323 };
4324
4325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4328 arg2 = (int)SWIG_As_int(obj1);
4329 if (PyErr_Occurred()) SWIG_fail;
4330 {
4331 PyThreadState* __tstate = wxPyBeginAllowThreads();
4332 (arg1)->SetShadowWidth(arg2);
4333
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 Py_INCREF(Py_None); resultobj = Py_None;
4338 return resultobj;
4339 fail:
4340 return NULL;
4341 }
4342
4343
4344 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj;
4346 wxGauge *arg1 = (wxGauge *) 0 ;
4347 int result;
4348 PyObject * obj0 = 0 ;
4349 char *kwnames[] = {
4350 (char *) "self", NULL
4351 };
4352
4353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4356 {
4357 PyThreadState* __tstate = wxPyBeginAllowThreads();
4358 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4359
4360 wxPyEndAllowThreads(__tstate);
4361 if (PyErr_Occurred()) SWIG_fail;
4362 }
4363 resultobj = SWIG_From_int((int)result);
4364 return resultobj;
4365 fail:
4366 return NULL;
4367 }
4368
4369
4370 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4371 PyObject *resultobj;
4372 wxGauge *arg1 = (wxGauge *) 0 ;
4373 int arg2 ;
4374 PyObject * obj0 = 0 ;
4375 PyObject * obj1 = 0 ;
4376 char *kwnames[] = {
4377 (char *) "self",(char *) "w", NULL
4378 };
4379
4380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4383 arg2 = (int)SWIG_As_int(obj1);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 {
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 (arg1)->SetBezelFace(arg2);
4388
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 Py_INCREF(Py_None); resultobj = Py_None;
4393 return resultobj;
4394 fail:
4395 return NULL;
4396 }
4397
4398
4399 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj;
4401 wxGauge *arg1 = (wxGauge *) 0 ;
4402 int result;
4403 PyObject * obj0 = 0 ;
4404 char *kwnames[] = {
4405 (char *) "self", NULL
4406 };
4407
4408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4411 {
4412 PyThreadState* __tstate = wxPyBeginAllowThreads();
4413 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4414
4415 wxPyEndAllowThreads(__tstate);
4416 if (PyErr_Occurred()) SWIG_fail;
4417 }
4418 resultobj = SWIG_From_int((int)result);
4419 return resultobj;
4420 fail:
4421 return NULL;
4422 }
4423
4424
4425 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4426 PyObject *resultobj;
4427 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4428 wxVisualAttributes result;
4429 PyObject * obj0 = 0 ;
4430 char *kwnames[] = {
4431 (char *) "variant", NULL
4432 };
4433
4434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4435 if (obj0) {
4436 arg1 = (int)SWIG_As_int(obj0);
4437 if (PyErr_Occurred()) SWIG_fail;
4438 }
4439 {
4440 if (!wxPyCheckForApp()) SWIG_fail;
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
4442 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4443
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 {
4448 wxVisualAttributes * resultptr;
4449 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4450 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4451 }
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 static PyObject * Gauge_swigregister(PyObject *, PyObject *args) {
4459 PyObject *obj;
4460 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4461 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4462 Py_INCREF(obj);
4463 return Py_BuildValue((char *)"");
4464 }
4465 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
4466 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4467 return 1;
4468 }
4469
4470
4471 static PyObject *_wrap_StaticBitmapNameStr_get() {
4472 PyObject *pyobj;
4473
4474 {
4475 #if wxUSE_UNICODE
4476 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4477 #else
4478 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4479 #endif
4480 }
4481 return pyobj;
4482 }
4483
4484
4485 static int _wrap_StaticBoxNameStr_set(PyObject *) {
4486 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4487 return 1;
4488 }
4489
4490
4491 static PyObject *_wrap_StaticBoxNameStr_get() {
4492 PyObject *pyobj;
4493
4494 {
4495 #if wxUSE_UNICODE
4496 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4497 #else
4498 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4499 #endif
4500 }
4501 return pyobj;
4502 }
4503
4504
4505 static int _wrap_StaticTextNameStr_set(PyObject *) {
4506 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4507 return 1;
4508 }
4509
4510
4511 static PyObject *_wrap_StaticTextNameStr_get() {
4512 PyObject *pyobj;
4513
4514 {
4515 #if wxUSE_UNICODE
4516 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4517 #else
4518 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4519 #endif
4520 }
4521 return pyobj;
4522 }
4523
4524
4525 static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4526 PyObject *resultobj;
4527 wxWindow *arg1 = (wxWindow *) 0 ;
4528 int arg2 = (int) -1 ;
4529 wxString const &arg3_defvalue = wxPyEmptyString ;
4530 wxString *arg3 = (wxString *) &arg3_defvalue ;
4531 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4532 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4533 wxSize const &arg5_defvalue = wxDefaultSize ;
4534 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4535 long arg6 = (long) 0 ;
4536 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4537 wxString *arg7 = (wxString *) &arg7_defvalue ;
4538 wxStaticBox *result;
4539 bool temp3 = False ;
4540 wxPoint temp4 ;
4541 wxSize temp5 ;
4542 bool temp7 = False ;
4543 PyObject * obj0 = 0 ;
4544 PyObject * obj1 = 0 ;
4545 PyObject * obj2 = 0 ;
4546 PyObject * obj3 = 0 ;
4547 PyObject * obj4 = 0 ;
4548 PyObject * obj5 = 0 ;
4549 PyObject * obj6 = 0 ;
4550 char *kwnames[] = {
4551 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4552 };
4553
4554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4557 if (obj1) {
4558 arg2 = (int)SWIG_As_int(obj1);
4559 if (PyErr_Occurred()) SWIG_fail;
4560 }
4561 if (obj2) {
4562 {
4563 arg3 = wxString_in_helper(obj2);
4564 if (arg3 == NULL) SWIG_fail;
4565 temp3 = True;
4566 }
4567 }
4568 if (obj3) {
4569 {
4570 arg4 = &temp4;
4571 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4572 }
4573 }
4574 if (obj4) {
4575 {
4576 arg5 = &temp5;
4577 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4578 }
4579 }
4580 if (obj5) {
4581 arg6 = (long)SWIG_As_long(obj5);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 if (obj6) {
4585 {
4586 arg7 = wxString_in_helper(obj6);
4587 if (arg7 == NULL) SWIG_fail;
4588 temp7 = True;
4589 }
4590 }
4591 {
4592 if (!wxPyCheckForApp()) SWIG_fail;
4593 PyThreadState* __tstate = wxPyBeginAllowThreads();
4594 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4595
4596 wxPyEndAllowThreads(__tstate);
4597 if (PyErr_Occurred()) SWIG_fail;
4598 }
4599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4600 {
4601 if (temp3)
4602 delete arg3;
4603 }
4604 {
4605 if (temp7)
4606 delete arg7;
4607 }
4608 return resultobj;
4609 fail:
4610 {
4611 if (temp3)
4612 delete arg3;
4613 }
4614 {
4615 if (temp7)
4616 delete arg7;
4617 }
4618 return NULL;
4619 }
4620
4621
4622 static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4623 PyObject *resultobj;
4624 wxStaticBox *result;
4625 char *kwnames[] = {
4626 NULL
4627 };
4628
4629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4630 {
4631 if (!wxPyCheckForApp()) SWIG_fail;
4632 PyThreadState* __tstate = wxPyBeginAllowThreads();
4633 result = (wxStaticBox *)new wxStaticBox();
4634
4635 wxPyEndAllowThreads(__tstate);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj;
4647 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4648 wxWindow *arg2 = (wxWindow *) 0 ;
4649 int arg3 = (int) -1 ;
4650 wxString const &arg4_defvalue = wxPyEmptyString ;
4651 wxString *arg4 = (wxString *) &arg4_defvalue ;
4652 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4653 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4654 wxSize const &arg6_defvalue = wxDefaultSize ;
4655 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4656 long arg7 = (long) 0 ;
4657 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4658 wxString *arg8 = (wxString *) &arg8_defvalue ;
4659 bool result;
4660 bool temp4 = False ;
4661 wxPoint temp5 ;
4662 wxSize temp6 ;
4663 bool temp8 = False ;
4664 PyObject * obj0 = 0 ;
4665 PyObject * obj1 = 0 ;
4666 PyObject * obj2 = 0 ;
4667 PyObject * obj3 = 0 ;
4668 PyObject * obj4 = 0 ;
4669 PyObject * obj5 = 0 ;
4670 PyObject * obj6 = 0 ;
4671 PyObject * obj7 = 0 ;
4672 char *kwnames[] = {
4673 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4674 };
4675
4676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4681 if (obj2) {
4682 arg3 = (int)SWIG_As_int(obj2);
4683 if (PyErr_Occurred()) SWIG_fail;
4684 }
4685 if (obj3) {
4686 {
4687 arg4 = wxString_in_helper(obj3);
4688 if (arg4 == NULL) SWIG_fail;
4689 temp4 = True;
4690 }
4691 }
4692 if (obj4) {
4693 {
4694 arg5 = &temp5;
4695 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4696 }
4697 }
4698 if (obj5) {
4699 {
4700 arg6 = &temp6;
4701 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4702 }
4703 }
4704 if (obj6) {
4705 arg7 = (long)SWIG_As_long(obj6);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 if (obj7) {
4709 {
4710 arg8 = wxString_in_helper(obj7);
4711 if (arg8 == NULL) SWIG_fail;
4712 temp8 = True;
4713 }
4714 }
4715 {
4716 PyThreadState* __tstate = wxPyBeginAllowThreads();
4717 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4718
4719 wxPyEndAllowThreads(__tstate);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 }
4722 {
4723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4724 }
4725 {
4726 if (temp4)
4727 delete arg4;
4728 }
4729 {
4730 if (temp8)
4731 delete arg8;
4732 }
4733 return resultobj;
4734 fail:
4735 {
4736 if (temp4)
4737 delete arg4;
4738 }
4739 {
4740 if (temp8)
4741 delete arg8;
4742 }
4743 return NULL;
4744 }
4745
4746
4747 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4748 PyObject *resultobj;
4749 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4750 wxVisualAttributes result;
4751 PyObject * obj0 = 0 ;
4752 char *kwnames[] = {
4753 (char *) "variant", NULL
4754 };
4755
4756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4757 if (obj0) {
4758 arg1 = (int)SWIG_As_int(obj0);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 {
4762 if (!wxPyCheckForApp()) SWIG_fail;
4763 PyThreadState* __tstate = wxPyBeginAllowThreads();
4764 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4765
4766 wxPyEndAllowThreads(__tstate);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 {
4770 wxVisualAttributes * resultptr;
4771 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4772 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4773 }
4774 return resultobj;
4775 fail:
4776 return NULL;
4777 }
4778
4779
4780 static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) {
4781 PyObject *obj;
4782 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4783 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4784 Py_INCREF(obj);
4785 return Py_BuildValue((char *)"");
4786 }
4787 static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4788 PyObject *resultobj;
4789 wxWindow *arg1 = (wxWindow *) 0 ;
4790 int arg2 = (int) -1 ;
4791 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4792 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4793 wxSize const &arg4_defvalue = wxDefaultSize ;
4794 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4795 long arg5 = (long) wxLI_HORIZONTAL ;
4796 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4797 wxString *arg6 = (wxString *) &arg6_defvalue ;
4798 wxStaticLine *result;
4799 wxPoint temp3 ;
4800 wxSize temp4 ;
4801 bool temp6 = False ;
4802 PyObject * obj0 = 0 ;
4803 PyObject * obj1 = 0 ;
4804 PyObject * obj2 = 0 ;
4805 PyObject * obj3 = 0 ;
4806 PyObject * obj4 = 0 ;
4807 PyObject * obj5 = 0 ;
4808 char *kwnames[] = {
4809 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4810 };
4811
4812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4815 if (obj1) {
4816 arg2 = (int)SWIG_As_int(obj1);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 if (obj2) {
4820 {
4821 arg3 = &temp3;
4822 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4823 }
4824 }
4825 if (obj3) {
4826 {
4827 arg4 = &temp4;
4828 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4829 }
4830 }
4831 if (obj4) {
4832 arg5 = (long)SWIG_As_long(obj4);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 if (obj5) {
4836 {
4837 arg6 = wxString_in_helper(obj5);
4838 if (arg6 == NULL) SWIG_fail;
4839 temp6 = True;
4840 }
4841 }
4842 {
4843 if (!wxPyCheckForApp()) SWIG_fail;
4844 PyThreadState* __tstate = wxPyBeginAllowThreads();
4845 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4846
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4851 {
4852 if (temp6)
4853 delete arg6;
4854 }
4855 return resultobj;
4856 fail:
4857 {
4858 if (temp6)
4859 delete arg6;
4860 }
4861 return NULL;
4862 }
4863
4864
4865 static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj;
4867 wxStaticLine *result;
4868 char *kwnames[] = {
4869 NULL
4870 };
4871
4872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4873 {
4874 if (!wxPyCheckForApp()) SWIG_fail;
4875 PyThreadState* __tstate = wxPyBeginAllowThreads();
4876 result = (wxStaticLine *)new wxStaticLine();
4877
4878 wxPyEndAllowThreads(__tstate);
4879 if (PyErr_Occurred()) SWIG_fail;
4880 }
4881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4882 return resultobj;
4883 fail:
4884 return NULL;
4885 }
4886
4887
4888 static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4889 PyObject *resultobj;
4890 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4891 wxWindow *arg2 = (wxWindow *) 0 ;
4892 int arg3 = (int) -1 ;
4893 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4894 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4895 wxSize const &arg5_defvalue = wxDefaultSize ;
4896 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4897 long arg6 = (long) wxLI_HORIZONTAL ;
4898 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4899 wxString *arg7 = (wxString *) &arg7_defvalue ;
4900 bool result;
4901 wxPoint temp4 ;
4902 wxSize temp5 ;
4903 bool temp7 = False ;
4904 PyObject * obj0 = 0 ;
4905 PyObject * obj1 = 0 ;
4906 PyObject * obj2 = 0 ;
4907 PyObject * obj3 = 0 ;
4908 PyObject * obj4 = 0 ;
4909 PyObject * obj5 = 0 ;
4910 PyObject * obj6 = 0 ;
4911 char *kwnames[] = {
4912 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4913 };
4914
4915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4918 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4920 if (obj2) {
4921 arg3 = (int)SWIG_As_int(obj2);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 }
4924 if (obj3) {
4925 {
4926 arg4 = &temp4;
4927 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4928 }
4929 }
4930 if (obj4) {
4931 {
4932 arg5 = &temp5;
4933 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4934 }
4935 }
4936 if (obj5) {
4937 arg6 = (long)SWIG_As_long(obj5);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 if (obj6) {
4941 {
4942 arg7 = wxString_in_helper(obj6);
4943 if (arg7 == NULL) SWIG_fail;
4944 temp7 = True;
4945 }
4946 }
4947 {
4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
4949 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4950
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 {
4955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4956 }
4957 {
4958 if (temp7)
4959 delete arg7;
4960 }
4961 return resultobj;
4962 fail:
4963 {
4964 if (temp7)
4965 delete arg7;
4966 }
4967 return NULL;
4968 }
4969
4970
4971 static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4972 PyObject *resultobj;
4973 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4974 bool result;
4975 PyObject * obj0 = 0 ;
4976 char *kwnames[] = {
4977 (char *) "self", NULL
4978 };
4979
4980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4986
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 {
4991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4992 }
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj;
5001 int result;
5002 char *kwnames[] = {
5003 NULL
5004 };
5005
5006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
5009 result = (int)wxStaticLine::GetDefaultSize();
5010
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 resultobj = SWIG_From_int((int)result);
5015 return resultobj;
5016 fail:
5017 return NULL;
5018 }
5019
5020
5021 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj;
5023 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5024 wxVisualAttributes result;
5025 PyObject * obj0 = 0 ;
5026 char *kwnames[] = {
5027 (char *) "variant", NULL
5028 };
5029
5030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5031 if (obj0) {
5032 arg1 = (int)SWIG_As_int(obj0);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 }
5035 {
5036 if (!wxPyCheckForApp()) SWIG_fail;
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
5039
5040 wxPyEndAllowThreads(__tstate);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 }
5043 {
5044 wxVisualAttributes * resultptr;
5045 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5046 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5047 }
5048 return resultobj;
5049 fail:
5050 return NULL;
5051 }
5052
5053
5054 static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) {
5055 PyObject *obj;
5056 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5057 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
5058 Py_INCREF(obj);
5059 return Py_BuildValue((char *)"");
5060 }
5061 static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj;
5063 wxWindow *arg1 = (wxWindow *) 0 ;
5064 int arg2 = (int) -1 ;
5065 wxString const &arg3_defvalue = wxPyEmptyString ;
5066 wxString *arg3 = (wxString *) &arg3_defvalue ;
5067 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5068 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5069 wxSize const &arg5_defvalue = wxDefaultSize ;
5070 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5071 long arg6 = (long) 0 ;
5072 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5073 wxString *arg7 = (wxString *) &arg7_defvalue ;
5074 wxStaticText *result;
5075 bool temp3 = False ;
5076 wxPoint temp4 ;
5077 wxSize temp5 ;
5078 bool temp7 = False ;
5079 PyObject * obj0 = 0 ;
5080 PyObject * obj1 = 0 ;
5081 PyObject * obj2 = 0 ;
5082 PyObject * obj3 = 0 ;
5083 PyObject * obj4 = 0 ;
5084 PyObject * obj5 = 0 ;
5085 PyObject * obj6 = 0 ;
5086 char *kwnames[] = {
5087 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5088 };
5089
5090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5093 if (obj1) {
5094 arg2 = (int)SWIG_As_int(obj1);
5095 if (PyErr_Occurred()) SWIG_fail;
5096 }
5097 if (obj2) {
5098 {
5099 arg3 = wxString_in_helper(obj2);
5100 if (arg3 == NULL) SWIG_fail;
5101 temp3 = True;
5102 }
5103 }
5104 if (obj3) {
5105 {
5106 arg4 = &temp4;
5107 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5108 }
5109 }
5110 if (obj4) {
5111 {
5112 arg5 = &temp5;
5113 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5114 }
5115 }
5116 if (obj5) {
5117 arg6 = (long)SWIG_As_long(obj5);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
5120 if (obj6) {
5121 {
5122 arg7 = wxString_in_helper(obj6);
5123 if (arg7 == NULL) SWIG_fail;
5124 temp7 = True;
5125 }
5126 }
5127 {
5128 if (!wxPyCheckForApp()) SWIG_fail;
5129 PyThreadState* __tstate = wxPyBeginAllowThreads();
5130 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5131
5132 wxPyEndAllowThreads(__tstate);
5133 if (PyErr_Occurred()) SWIG_fail;
5134 }
5135 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5136 {
5137 if (temp3)
5138 delete arg3;
5139 }
5140 {
5141 if (temp7)
5142 delete arg7;
5143 }
5144 return resultobj;
5145 fail:
5146 {
5147 if (temp3)
5148 delete arg3;
5149 }
5150 {
5151 if (temp7)
5152 delete arg7;
5153 }
5154 return NULL;
5155 }
5156
5157
5158 static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5159 PyObject *resultobj;
5160 wxStaticText *result;
5161 char *kwnames[] = {
5162 NULL
5163 };
5164
5165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
5166 {
5167 if (!wxPyCheckForApp()) SWIG_fail;
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (wxStaticText *)new wxStaticText();
5170
5171 wxPyEndAllowThreads(__tstate);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 }
5174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5175 return resultobj;
5176 fail:
5177 return NULL;
5178 }
5179
5180
5181 static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5182 PyObject *resultobj;
5183 wxStaticText *arg1 = (wxStaticText *) 0 ;
5184 wxWindow *arg2 = (wxWindow *) 0 ;
5185 int arg3 = (int) -1 ;
5186 wxString const &arg4_defvalue = wxPyEmptyString ;
5187 wxString *arg4 = (wxString *) &arg4_defvalue ;
5188 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5189 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5190 wxSize const &arg6_defvalue = wxDefaultSize ;
5191 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5192 long arg7 = (long) 0 ;
5193 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
5194 wxString *arg8 = (wxString *) &arg8_defvalue ;
5195 bool result;
5196 bool temp4 = False ;
5197 wxPoint temp5 ;
5198 wxSize temp6 ;
5199 bool temp8 = False ;
5200 PyObject * obj0 = 0 ;
5201 PyObject * obj1 = 0 ;
5202 PyObject * obj2 = 0 ;
5203 PyObject * obj3 = 0 ;
5204 PyObject * obj4 = 0 ;
5205 PyObject * obj5 = 0 ;
5206 PyObject * obj6 = 0 ;
5207 PyObject * obj7 = 0 ;
5208 char *kwnames[] = {
5209 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5210 };
5211
5212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5215 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5217 if (obj2) {
5218 arg3 = (int)SWIG_As_int(obj2);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 }
5221 if (obj3) {
5222 {
5223 arg4 = wxString_in_helper(obj3);
5224 if (arg4 == NULL) SWIG_fail;
5225 temp4 = True;
5226 }
5227 }
5228 if (obj4) {
5229 {
5230 arg5 = &temp5;
5231 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5232 }
5233 }
5234 if (obj5) {
5235 {
5236 arg6 = &temp6;
5237 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5238 }
5239 }
5240 if (obj6) {
5241 arg7 = (long)SWIG_As_long(obj6);
5242 if (PyErr_Occurred()) SWIG_fail;
5243 }
5244 if (obj7) {
5245 {
5246 arg8 = wxString_in_helper(obj7);
5247 if (arg8 == NULL) SWIG_fail;
5248 temp8 = True;
5249 }
5250 }
5251 {
5252 PyThreadState* __tstate = wxPyBeginAllowThreads();
5253 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5254
5255 wxPyEndAllowThreads(__tstate);
5256 if (PyErr_Occurred()) SWIG_fail;
5257 }
5258 {
5259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5260 }
5261 {
5262 if (temp4)
5263 delete arg4;
5264 }
5265 {
5266 if (temp8)
5267 delete arg8;
5268 }
5269 return resultobj;
5270 fail:
5271 {
5272 if (temp4)
5273 delete arg4;
5274 }
5275 {
5276 if (temp8)
5277 delete arg8;
5278 }
5279 return NULL;
5280 }
5281
5282
5283 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5284 PyObject *resultobj;
5285 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5286 wxVisualAttributes result;
5287 PyObject * obj0 = 0 ;
5288 char *kwnames[] = {
5289 (char *) "variant", NULL
5290 };
5291
5292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5293 if (obj0) {
5294 arg1 = (int)SWIG_As_int(obj0);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 {
5298 if (!wxPyCheckForApp()) SWIG_fail;
5299 PyThreadState* __tstate = wxPyBeginAllowThreads();
5300 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5301
5302 wxPyEndAllowThreads(__tstate);
5303 if (PyErr_Occurred()) SWIG_fail;
5304 }
5305 {
5306 wxVisualAttributes * resultptr;
5307 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5308 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5309 }
5310 return resultobj;
5311 fail:
5312 return NULL;
5313 }
5314
5315
5316 static PyObject * StaticText_swigregister(PyObject *, PyObject *args) {
5317 PyObject *obj;
5318 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5319 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5320 Py_INCREF(obj);
5321 return Py_BuildValue((char *)"");
5322 }
5323 static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5324 PyObject *resultobj;
5325 wxWindow *arg1 = (wxWindow *) 0 ;
5326 int arg2 = (int) -1 ;
5327 wxBitmap const &arg3_defvalue = wxNullBitmap ;
5328 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
5329 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5330 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5331 wxSize const &arg5_defvalue = wxDefaultSize ;
5332 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5333 long arg6 = (long) 0 ;
5334 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5335 wxString *arg7 = (wxString *) &arg7_defvalue ;
5336 wxStaticBitmap *result;
5337 wxPoint temp4 ;
5338 wxSize temp5 ;
5339 bool temp7 = False ;
5340 PyObject * obj0 = 0 ;
5341 PyObject * obj1 = 0 ;
5342 PyObject * obj2 = 0 ;
5343 PyObject * obj3 = 0 ;
5344 PyObject * obj4 = 0 ;
5345 PyObject * obj5 = 0 ;
5346 PyObject * obj6 = 0 ;
5347 char *kwnames[] = {
5348 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5349 };
5350
5351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5354 if (obj1) {
5355 arg2 = (int)SWIG_As_int(obj1);
5356 if (PyErr_Occurred()) SWIG_fail;
5357 }
5358 if (obj2) {
5359 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5360 SWIG_POINTER_EXCEPTION | 0)) == -1)
5361 SWIG_fail;
5362 if (arg3 == NULL) {
5363 PyErr_SetString(PyExc_TypeError,"null reference");
5364 SWIG_fail;
5365 }
5366 }
5367 if (obj3) {
5368 {
5369 arg4 = &temp4;
5370 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5371 }
5372 }
5373 if (obj4) {
5374 {
5375 arg5 = &temp5;
5376 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5377 }
5378 }
5379 if (obj5) {
5380 arg6 = (long)SWIG_As_long(obj5);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 }
5383 if (obj6) {
5384 {
5385 arg7 = wxString_in_helper(obj6);
5386 if (arg7 == NULL) SWIG_fail;
5387 temp7 = True;
5388 }
5389 }
5390 {
5391 if (!wxPyCheckForApp()) SWIG_fail;
5392 PyThreadState* __tstate = wxPyBeginAllowThreads();
5393 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5394
5395 wxPyEndAllowThreads(__tstate);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5399 {
5400 if (temp7)
5401 delete arg7;
5402 }
5403 return resultobj;
5404 fail:
5405 {
5406 if (temp7)
5407 delete arg7;
5408 }
5409 return NULL;
5410 }
5411
5412
5413 static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5414 PyObject *resultobj;
5415 wxStaticBitmap *result;
5416 char *kwnames[] = {
5417 NULL
5418 };
5419
5420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5421 {
5422 if (!wxPyCheckForApp()) SWIG_fail;
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 result = (wxStaticBitmap *)new wxStaticBitmap();
5425
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
5428 }
5429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5430 return resultobj;
5431 fail:
5432 return NULL;
5433 }
5434
5435
5436 static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5437 PyObject *resultobj;
5438 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5439 wxWindow *arg2 = (wxWindow *) 0 ;
5440 int arg3 = (int) -1 ;
5441 wxBitmap const &arg4_defvalue = wxNullBitmap ;
5442 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
5443 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5444 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5445 wxSize const &arg6_defvalue = wxDefaultSize ;
5446 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5447 long arg7 = (long) 0 ;
5448 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5449 wxString *arg8 = (wxString *) &arg8_defvalue ;
5450 bool result;
5451 wxPoint temp5 ;
5452 wxSize temp6 ;
5453 bool temp8 = False ;
5454 PyObject * obj0 = 0 ;
5455 PyObject * obj1 = 0 ;
5456 PyObject * obj2 = 0 ;
5457 PyObject * obj3 = 0 ;
5458 PyObject * obj4 = 0 ;
5459 PyObject * obj5 = 0 ;
5460 PyObject * obj6 = 0 ;
5461 PyObject * obj7 = 0 ;
5462 char *kwnames[] = {
5463 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5464 };
5465
5466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5471 if (obj2) {
5472 arg3 = (int)SWIG_As_int(obj2);
5473 if (PyErr_Occurred()) SWIG_fail;
5474 }
5475 if (obj3) {
5476 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5477 SWIG_POINTER_EXCEPTION | 0)) == -1)
5478 SWIG_fail;
5479 if (arg4 == NULL) {
5480 PyErr_SetString(PyExc_TypeError,"null reference");
5481 SWIG_fail;
5482 }
5483 }
5484 if (obj4) {
5485 {
5486 arg5 = &temp5;
5487 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5488 }
5489 }
5490 if (obj5) {
5491 {
5492 arg6 = &temp6;
5493 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5494 }
5495 }
5496 if (obj6) {
5497 arg7 = (long)SWIG_As_long(obj6);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 if (obj7) {
5501 {
5502 arg8 = wxString_in_helper(obj7);
5503 if (arg8 == NULL) SWIG_fail;
5504 temp8 = True;
5505 }
5506 }
5507 {
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5510
5511 wxPyEndAllowThreads(__tstate);
5512 if (PyErr_Occurred()) SWIG_fail;
5513 }
5514 {
5515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5516 }
5517 {
5518 if (temp8)
5519 delete arg8;
5520 }
5521 return resultobj;
5522 fail:
5523 {
5524 if (temp8)
5525 delete arg8;
5526 }
5527 return NULL;
5528 }
5529
5530
5531 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5532 PyObject *resultobj;
5533 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5534 wxBitmap result;
5535 PyObject * obj0 = 0 ;
5536 char *kwnames[] = {
5537 (char *) "self", NULL
5538 };
5539
5540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5543 {
5544 PyThreadState* __tstate = wxPyBeginAllowThreads();
5545 result = (arg1)->GetBitmap();
5546
5547 wxPyEndAllowThreads(__tstate);
5548 if (PyErr_Occurred()) SWIG_fail;
5549 }
5550 {
5551 wxBitmap * resultptr;
5552 resultptr = new wxBitmap((wxBitmap &) result);
5553 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5554 }
5555 return resultobj;
5556 fail:
5557 return NULL;
5558 }
5559
5560
5561 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5562 PyObject *resultobj;
5563 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5564 wxBitmap *arg2 = 0 ;
5565 PyObject * obj0 = 0 ;
5566 PyObject * obj1 = 0 ;
5567 char *kwnames[] = {
5568 (char *) "self",(char *) "bitmap", NULL
5569 };
5570
5571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5574 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5575 SWIG_POINTER_EXCEPTION | 0)) == -1)
5576 SWIG_fail;
5577 if (arg2 == NULL) {
5578 PyErr_SetString(PyExc_TypeError,"null reference");
5579 SWIG_fail;
5580 }
5581 {
5582 PyThreadState* __tstate = wxPyBeginAllowThreads();
5583 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5584
5585 wxPyEndAllowThreads(__tstate);
5586 if (PyErr_Occurred()) SWIG_fail;
5587 }
5588 Py_INCREF(Py_None); resultobj = Py_None;
5589 return resultobj;
5590 fail:
5591 return NULL;
5592 }
5593
5594
5595 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5596 PyObject *resultobj;
5597 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5598 wxIcon *arg2 = 0 ;
5599 PyObject * obj0 = 0 ;
5600 PyObject * obj1 = 0 ;
5601 char *kwnames[] = {
5602 (char *) "self",(char *) "icon", NULL
5603 };
5604
5605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5608 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5609 SWIG_POINTER_EXCEPTION | 0)) == -1)
5610 SWIG_fail;
5611 if (arg2 == NULL) {
5612 PyErr_SetString(PyExc_TypeError,"null reference");
5613 SWIG_fail;
5614 }
5615 {
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 (arg1)->SetIcon((wxIcon const &)*arg2);
5618
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 Py_INCREF(Py_None); resultobj = Py_None;
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj;
5631 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5632 wxVisualAttributes result;
5633 PyObject * obj0 = 0 ;
5634 char *kwnames[] = {
5635 (char *) "variant", NULL
5636 };
5637
5638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5639 if (obj0) {
5640 arg1 = (int)SWIG_As_int(obj0);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 }
5643 {
5644 if (!wxPyCheckForApp()) SWIG_fail;
5645 PyThreadState* __tstate = wxPyBeginAllowThreads();
5646 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5647
5648 wxPyEndAllowThreads(__tstate);
5649 if (PyErr_Occurred()) SWIG_fail;
5650 }
5651 {
5652 wxVisualAttributes * resultptr;
5653 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5654 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5655 }
5656 return resultobj;
5657 fail:
5658 return NULL;
5659 }
5660
5661
5662 static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) {
5663 PyObject *obj;
5664 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5665 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5666 Py_INCREF(obj);
5667 return Py_BuildValue((char *)"");
5668 }
5669 static int _wrap_ListBoxNameStr_set(PyObject *) {
5670 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5671 return 1;
5672 }
5673
5674
5675 static PyObject *_wrap_ListBoxNameStr_get() {
5676 PyObject *pyobj;
5677
5678 {
5679 #if wxUSE_UNICODE
5680 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5681 #else
5682 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5683 #endif
5684 }
5685 return pyobj;
5686 }
5687
5688
5689 static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5690 PyObject *resultobj;
5691 wxWindow *arg1 = (wxWindow *) 0 ;
5692 int arg2 = (int) -1 ;
5693 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5694 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5695 wxSize const &arg4_defvalue = wxDefaultSize ;
5696 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5697 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5698 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5699 long arg6 = (long) 0 ;
5700 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5701 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5702 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5703 wxString *arg8 = (wxString *) &arg8_defvalue ;
5704 wxListBox *result;
5705 wxPoint temp3 ;
5706 wxSize temp4 ;
5707 bool temp5 = False ;
5708 bool temp8 = False ;
5709 PyObject * obj0 = 0 ;
5710 PyObject * obj1 = 0 ;
5711 PyObject * obj2 = 0 ;
5712 PyObject * obj3 = 0 ;
5713 PyObject * obj4 = 0 ;
5714 PyObject * obj5 = 0 ;
5715 PyObject * obj6 = 0 ;
5716 PyObject * obj7 = 0 ;
5717 char *kwnames[] = {
5718 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5719 };
5720
5721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5724 if (obj1) {
5725 arg2 = (int)SWIG_As_int(obj1);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 if (obj2) {
5729 {
5730 arg3 = &temp3;
5731 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5732 }
5733 }
5734 if (obj3) {
5735 {
5736 arg4 = &temp4;
5737 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5738 }
5739 }
5740 if (obj4) {
5741 {
5742 if (! PySequence_Check(obj4)) {
5743 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5744 SWIG_fail;
5745 }
5746 arg5 = new wxArrayString;
5747 temp5 = True;
5748 int i, len=PySequence_Length(obj4);
5749 for (i=0; i<len; i++) {
5750 PyObject* item = PySequence_GetItem(obj4, i);
5751 #if wxUSE_UNICODE
5752 PyObject* str = PyObject_Unicode(item);
5753 #else
5754 PyObject* str = PyObject_Str(item);
5755 #endif
5756 if (PyErr_Occurred()) SWIG_fail;
5757 arg5->Add(Py2wxString(str));
5758 Py_DECREF(item);
5759 Py_DECREF(str);
5760 }
5761 }
5762 }
5763 if (obj5) {
5764 arg6 = (long)SWIG_As_long(obj5);
5765 if (PyErr_Occurred()) SWIG_fail;
5766 }
5767 if (obj6) {
5768 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5769 SWIG_POINTER_EXCEPTION | 0)) == -1)
5770 SWIG_fail;
5771 if (arg7 == NULL) {
5772 PyErr_SetString(PyExc_TypeError,"null reference");
5773 SWIG_fail;
5774 }
5775 }
5776 if (obj7) {
5777 {
5778 arg8 = wxString_in_helper(obj7);
5779 if (arg8 == NULL) SWIG_fail;
5780 temp8 = True;
5781 }
5782 }
5783 {
5784 if (!wxPyCheckForApp()) SWIG_fail;
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5787
5788 wxPyEndAllowThreads(__tstate);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 }
5791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5792 {
5793 if (temp5) delete arg5;
5794 }
5795 {
5796 if (temp8)
5797 delete arg8;
5798 }
5799 return resultobj;
5800 fail:
5801 {
5802 if (temp5) delete arg5;
5803 }
5804 {
5805 if (temp8)
5806 delete arg8;
5807 }
5808 return NULL;
5809 }
5810
5811
5812 static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5813 PyObject *resultobj;
5814 wxListBox *result;
5815 char *kwnames[] = {
5816 NULL
5817 };
5818
5819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5820 {
5821 if (!wxPyCheckForApp()) SWIG_fail;
5822 PyThreadState* __tstate = wxPyBeginAllowThreads();
5823 result = (wxListBox *)new wxListBox();
5824
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5829 return resultobj;
5830 fail:
5831 return NULL;
5832 }
5833
5834
5835 static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj;
5837 wxListBox *arg1 = (wxListBox *) 0 ;
5838 wxWindow *arg2 = (wxWindow *) 0 ;
5839 int arg3 = (int) -1 ;
5840 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5841 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5842 wxSize const &arg5_defvalue = wxDefaultSize ;
5843 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5844 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5845 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5846 long arg7 = (long) 0 ;
5847 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5848 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5849 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5850 wxString *arg9 = (wxString *) &arg9_defvalue ;
5851 bool result;
5852 wxPoint temp4 ;
5853 wxSize temp5 ;
5854 bool temp6 = False ;
5855 bool temp9 = False ;
5856 PyObject * obj0 = 0 ;
5857 PyObject * obj1 = 0 ;
5858 PyObject * obj2 = 0 ;
5859 PyObject * obj3 = 0 ;
5860 PyObject * obj4 = 0 ;
5861 PyObject * obj5 = 0 ;
5862 PyObject * obj6 = 0 ;
5863 PyObject * obj7 = 0 ;
5864 PyObject * obj8 = 0 ;
5865 char *kwnames[] = {
5866 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5867 };
5868
5869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5872 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5874 if (obj2) {
5875 arg3 = (int)SWIG_As_int(obj2);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 if (obj3) {
5879 {
5880 arg4 = &temp4;
5881 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5882 }
5883 }
5884 if (obj4) {
5885 {
5886 arg5 = &temp5;
5887 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5888 }
5889 }
5890 if (obj5) {
5891 {
5892 if (! PySequence_Check(obj5)) {
5893 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5894 SWIG_fail;
5895 }
5896 arg6 = new wxArrayString;
5897 temp6 = True;
5898 int i, len=PySequence_Length(obj5);
5899 for (i=0; i<len; i++) {
5900 PyObject* item = PySequence_GetItem(obj5, i);
5901 #if wxUSE_UNICODE
5902 PyObject* str = PyObject_Unicode(item);
5903 #else
5904 PyObject* str = PyObject_Str(item);
5905 #endif
5906 if (PyErr_Occurred()) SWIG_fail;
5907 arg6->Add(Py2wxString(str));
5908 Py_DECREF(item);
5909 Py_DECREF(str);
5910 }
5911 }
5912 }
5913 if (obj6) {
5914 arg7 = (long)SWIG_As_long(obj6);
5915 if (PyErr_Occurred()) SWIG_fail;
5916 }
5917 if (obj7) {
5918 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5919 SWIG_POINTER_EXCEPTION | 0)) == -1)
5920 SWIG_fail;
5921 if (arg8 == NULL) {
5922 PyErr_SetString(PyExc_TypeError,"null reference");
5923 SWIG_fail;
5924 }
5925 }
5926 if (obj8) {
5927 {
5928 arg9 = wxString_in_helper(obj8);
5929 if (arg9 == NULL) SWIG_fail;
5930 temp9 = True;
5931 }
5932 }
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5936
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 {
5941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5942 }
5943 {
5944 if (temp6) delete arg6;
5945 }
5946 {
5947 if (temp9)
5948 delete arg9;
5949 }
5950 return resultobj;
5951 fail:
5952 {
5953 if (temp6) delete arg6;
5954 }
5955 {
5956 if (temp9)
5957 delete arg9;
5958 }
5959 return NULL;
5960 }
5961
5962
5963 static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
5964 PyObject *resultobj;
5965 wxListBox *arg1 = (wxListBox *) 0 ;
5966 wxString *arg2 = 0 ;
5967 int arg3 ;
5968 PyObject *arg4 = (PyObject *) NULL ;
5969 bool temp2 = False ;
5970 PyObject * obj0 = 0 ;
5971 PyObject * obj1 = 0 ;
5972 PyObject * obj2 = 0 ;
5973 PyObject * obj3 = 0 ;
5974 char *kwnames[] = {
5975 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5976 };
5977
5978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5981 {
5982 arg2 = wxString_in_helper(obj1);
5983 if (arg2 == NULL) SWIG_fail;
5984 temp2 = True;
5985 }
5986 arg3 = (int)SWIG_As_int(obj2);
5987 if (PyErr_Occurred()) SWIG_fail;
5988 if (obj3) {
5989 arg4 = obj3;
5990 }
5991 {
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5994
5995 wxPyEndAllowThreads(__tstate);
5996 if (PyErr_Occurred()) SWIG_fail;
5997 }
5998 Py_INCREF(Py_None); resultobj = Py_None;
5999 {
6000 if (temp2)
6001 delete arg2;
6002 }
6003 return resultobj;
6004 fail:
6005 {
6006 if (temp2)
6007 delete arg2;
6008 }
6009 return NULL;
6010 }
6011
6012
6013 static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) {
6014 PyObject *resultobj;
6015 wxListBox *arg1 = (wxListBox *) 0 ;
6016 wxArrayString *arg2 = 0 ;
6017 int arg3 ;
6018 bool temp2 = False ;
6019 PyObject * obj0 = 0 ;
6020 PyObject * obj1 = 0 ;
6021 PyObject * obj2 = 0 ;
6022 char *kwnames[] = {
6023 (char *) "self",(char *) "items",(char *) "pos", NULL
6024 };
6025
6026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
6027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6029 {
6030 if (! PySequence_Check(obj1)) {
6031 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6032 SWIG_fail;
6033 }
6034 arg2 = new wxArrayString;
6035 temp2 = True;
6036 int i, len=PySequence_Length(obj1);
6037 for (i=0; i<len; i++) {
6038 PyObject* item = PySequence_GetItem(obj1, i);
6039 #if wxUSE_UNICODE
6040 PyObject* str = PyObject_Unicode(item);
6041 #else
6042 PyObject* str = PyObject_Str(item);
6043 #endif
6044 if (PyErr_Occurred()) SWIG_fail;
6045 arg2->Add(Py2wxString(str));
6046 Py_DECREF(item);
6047 Py_DECREF(str);
6048 }
6049 }
6050 arg3 = (int)SWIG_As_int(obj2);
6051 if (PyErr_Occurred()) SWIG_fail;
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
6055
6056 wxPyEndAllowThreads(__tstate);
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 Py_INCREF(Py_None); resultobj = Py_None;
6060 {
6061 if (temp2) delete arg2;
6062 }
6063 return resultobj;
6064 fail:
6065 {
6066 if (temp2) delete arg2;
6067 }
6068 return NULL;
6069 }
6070
6071
6072 static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) {
6073 PyObject *resultobj;
6074 wxListBox *arg1 = (wxListBox *) 0 ;
6075 wxArrayString *arg2 = 0 ;
6076 bool temp2 = False ;
6077 PyObject * obj0 = 0 ;
6078 PyObject * obj1 = 0 ;
6079 char *kwnames[] = {
6080 (char *) "self",(char *) "items", NULL
6081 };
6082
6083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
6084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6086 {
6087 if (! PySequence_Check(obj1)) {
6088 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6089 SWIG_fail;
6090 }
6091 arg2 = new wxArrayString;
6092 temp2 = True;
6093 int i, len=PySequence_Length(obj1);
6094 for (i=0; i<len; i++) {
6095 PyObject* item = PySequence_GetItem(obj1, i);
6096 #if wxUSE_UNICODE
6097 PyObject* str = PyObject_Unicode(item);
6098 #else
6099 PyObject* str = PyObject_Str(item);
6100 #endif
6101 if (PyErr_Occurred()) SWIG_fail;
6102 arg2->Add(Py2wxString(str));
6103 Py_DECREF(item);
6104 Py_DECREF(str);
6105 }
6106 }
6107 {
6108 PyThreadState* __tstate = wxPyBeginAllowThreads();
6109 (arg1)->Set((wxArrayString const &)*arg2);
6110
6111 wxPyEndAllowThreads(__tstate);
6112 if (PyErr_Occurred()) SWIG_fail;
6113 }
6114 Py_INCREF(Py_None); resultobj = Py_None;
6115 {
6116 if (temp2) delete arg2;
6117 }
6118 return resultobj;
6119 fail:
6120 {
6121 if (temp2) delete arg2;
6122 }
6123 return NULL;
6124 }
6125
6126
6127 static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
6128 PyObject *resultobj;
6129 wxListBox *arg1 = (wxListBox *) 0 ;
6130 int arg2 ;
6131 bool result;
6132 PyObject * obj0 = 0 ;
6133 PyObject * obj1 = 0 ;
6134 char *kwnames[] = {
6135 (char *) "self",(char *) "n", NULL
6136 };
6137
6138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
6139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6141 arg2 = (int)SWIG_As_int(obj1);
6142 if (PyErr_Occurred()) SWIG_fail;
6143 {
6144 PyThreadState* __tstate = wxPyBeginAllowThreads();
6145 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
6146
6147 wxPyEndAllowThreads(__tstate);
6148 if (PyErr_Occurred()) SWIG_fail;
6149 }
6150 {
6151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6152 }
6153 return resultobj;
6154 fail:
6155 return NULL;
6156 }
6157
6158
6159 static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6160 PyObject *resultobj;
6161 wxListBox *arg1 = (wxListBox *) 0 ;
6162 int arg2 ;
6163 bool arg3 = (bool) True ;
6164 PyObject * obj0 = 0 ;
6165 PyObject * obj1 = 0 ;
6166 PyObject * obj2 = 0 ;
6167 char *kwnames[] = {
6168 (char *) "self",(char *) "n",(char *) "select", NULL
6169 };
6170
6171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6174 arg2 = (int)SWIG_As_int(obj1);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 if (obj2) {
6177 arg3 = (bool)SWIG_As_bool(obj2);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 (arg1)->SetSelection(arg2,arg3);
6183
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
6187 Py_INCREF(Py_None); resultobj = Py_None;
6188 return resultobj;
6189 fail:
6190 return NULL;
6191 }
6192
6193
6194 static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) {
6195 PyObject *resultobj;
6196 wxListBox *arg1 = (wxListBox *) 0 ;
6197 int arg2 ;
6198 PyObject * obj0 = 0 ;
6199 PyObject * obj1 = 0 ;
6200 char *kwnames[] = {
6201 (char *) "self",(char *) "n", NULL
6202 };
6203
6204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
6205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6207 arg2 = (int)SWIG_As_int(obj1);
6208 if (PyErr_Occurred()) SWIG_fail;
6209 {
6210 PyThreadState* __tstate = wxPyBeginAllowThreads();
6211 (arg1)->Select(arg2);
6212
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 Py_INCREF(Py_None); resultobj = Py_None;
6217 return resultobj;
6218 fail:
6219 return NULL;
6220 }
6221
6222
6223 static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) {
6224 PyObject *resultobj;
6225 wxListBox *arg1 = (wxListBox *) 0 ;
6226 int arg2 ;
6227 PyObject * obj0 = 0 ;
6228 PyObject * obj1 = 0 ;
6229 char *kwnames[] = {
6230 (char *) "self",(char *) "n", NULL
6231 };
6232
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6236 arg2 = (int)SWIG_As_int(obj1);
6237 if (PyErr_Occurred()) SWIG_fail;
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 (arg1)->Deselect(arg2);
6241
6242 wxPyEndAllowThreads(__tstate);
6243 if (PyErr_Occurred()) SWIG_fail;
6244 }
6245 Py_INCREF(Py_None); resultobj = Py_None;
6246 return resultobj;
6247 fail:
6248 return NULL;
6249 }
6250
6251
6252 static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
6253 PyObject *resultobj;
6254 wxListBox *arg1 = (wxListBox *) 0 ;
6255 int arg2 = (int) -1 ;
6256 PyObject * obj0 = 0 ;
6257 PyObject * obj1 = 0 ;
6258 char *kwnames[] = {
6259 (char *) "self",(char *) "itemToLeaveSelected", NULL
6260 };
6261
6262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6265 if (obj1) {
6266 arg2 = (int)SWIG_As_int(obj1);
6267 if (PyErr_Occurred()) SWIG_fail;
6268 }
6269 {
6270 PyThreadState* __tstate = wxPyBeginAllowThreads();
6271 (arg1)->DeselectAll(arg2);
6272
6273 wxPyEndAllowThreads(__tstate);
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 Py_INCREF(Py_None); resultobj = Py_None;
6277 return resultobj;
6278 fail:
6279 return NULL;
6280 }
6281
6282
6283 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6284 PyObject *resultobj;
6285 wxListBox *arg1 = (wxListBox *) 0 ;
6286 wxString *arg2 = 0 ;
6287 bool arg3 = (bool) True ;
6288 bool result;
6289 bool temp2 = False ;
6290 PyObject * obj0 = 0 ;
6291 PyObject * obj1 = 0 ;
6292 PyObject * obj2 = 0 ;
6293 char *kwnames[] = {
6294 (char *) "self",(char *) "s",(char *) "select", NULL
6295 };
6296
6297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6300 {
6301 arg2 = wxString_in_helper(obj1);
6302 if (arg2 == NULL) SWIG_fail;
6303 temp2 = True;
6304 }
6305 if (obj2) {
6306 arg3 = (bool)SWIG_As_bool(obj2);
6307 if (PyErr_Occurred()) SWIG_fail;
6308 }
6309 {
6310 PyThreadState* __tstate = wxPyBeginAllowThreads();
6311 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6312
6313 wxPyEndAllowThreads(__tstate);
6314 if (PyErr_Occurred()) SWIG_fail;
6315 }
6316 {
6317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6318 }
6319 {
6320 if (temp2)
6321 delete arg2;
6322 }
6323 return resultobj;
6324 fail:
6325 {
6326 if (temp2)
6327 delete arg2;
6328 }
6329 return NULL;
6330 }
6331
6332
6333 static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
6334 PyObject *resultobj;
6335 wxListBox *arg1 = (wxListBox *) 0 ;
6336 PyObject *result;
6337 PyObject * obj0 = 0 ;
6338 char *kwnames[] = {
6339 (char *) "self", NULL
6340 };
6341
6342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6345 {
6346 PyThreadState* __tstate = wxPyBeginAllowThreads();
6347 result = (PyObject *)wxListBox_GetSelections(arg1);
6348
6349 wxPyEndAllowThreads(__tstate);
6350 if (PyErr_Occurred()) SWIG_fail;
6351 }
6352 resultobj = result;
6353 return resultobj;
6354 fail:
6355 return NULL;
6356 }
6357
6358
6359 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) {
6360 PyObject *resultobj;
6361 wxListBox *arg1 = (wxListBox *) 0 ;
6362 int arg2 ;
6363 PyObject * obj0 = 0 ;
6364 PyObject * obj1 = 0 ;
6365 char *kwnames[] = {
6366 (char *) "self",(char *) "n", NULL
6367 };
6368
6369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6372 arg2 = (int)SWIG_As_int(obj1);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 (arg1)->SetFirstItem(arg2);
6377
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 Py_INCREF(Py_None); resultobj = Py_None;
6382 return resultobj;
6383 fail:
6384 return NULL;
6385 }
6386
6387
6388 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) {
6389 PyObject *resultobj;
6390 wxListBox *arg1 = (wxListBox *) 0 ;
6391 wxString *arg2 = 0 ;
6392 bool temp2 = False ;
6393 PyObject * obj0 = 0 ;
6394 PyObject * obj1 = 0 ;
6395 char *kwnames[] = {
6396 (char *) "self",(char *) "s", NULL
6397 };
6398
6399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6402 {
6403 arg2 = wxString_in_helper(obj1);
6404 if (arg2 == NULL) SWIG_fail;
6405 temp2 = True;
6406 }
6407 {
6408 PyThreadState* __tstate = wxPyBeginAllowThreads();
6409 (arg1)->SetFirstItem((wxString const &)*arg2);
6410
6411 wxPyEndAllowThreads(__tstate);
6412 if (PyErr_Occurred()) SWIG_fail;
6413 }
6414 Py_INCREF(Py_None); resultobj = Py_None;
6415 {
6416 if (temp2)
6417 delete arg2;
6418 }
6419 return resultobj;
6420 fail:
6421 {
6422 if (temp2)
6423 delete arg2;
6424 }
6425 return NULL;
6426 }
6427
6428
6429 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6430 PyObject *resultobj;
6431 wxListBox *arg1 = (wxListBox *) 0 ;
6432 int arg2 ;
6433 PyObject * obj0 = 0 ;
6434 PyObject * obj1 = 0 ;
6435 char *kwnames[] = {
6436 (char *) "self",(char *) "n", NULL
6437 };
6438
6439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6442 arg2 = (int)SWIG_As_int(obj1);
6443 if (PyErr_Occurred()) SWIG_fail;
6444 {
6445 PyThreadState* __tstate = wxPyBeginAllowThreads();
6446 (arg1)->EnsureVisible(arg2);
6447
6448 wxPyEndAllowThreads(__tstate);
6449 if (PyErr_Occurred()) SWIG_fail;
6450 }
6451 Py_INCREF(Py_None); resultobj = Py_None;
6452 return resultobj;
6453 fail:
6454 return NULL;
6455 }
6456
6457
6458 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6459 PyObject *resultobj;
6460 wxListBox *arg1 = (wxListBox *) 0 ;
6461 wxString *arg2 = 0 ;
6462 bool temp2 = False ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 char *kwnames[] = {
6466 (char *) "self",(char *) "s", NULL
6467 };
6468
6469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6472 {
6473 arg2 = wxString_in_helper(obj1);
6474 if (arg2 == NULL) SWIG_fail;
6475 temp2 = True;
6476 }
6477 {
6478 PyThreadState* __tstate = wxPyBeginAllowThreads();
6479 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6480
6481 wxPyEndAllowThreads(__tstate);
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 Py_INCREF(Py_None); resultobj = Py_None;
6485 {
6486 if (temp2)
6487 delete arg2;
6488 }
6489 return resultobj;
6490 fail:
6491 {
6492 if (temp2)
6493 delete arg2;
6494 }
6495 return NULL;
6496 }
6497
6498
6499 static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) {
6500 PyObject *resultobj;
6501 wxListBox *arg1 = (wxListBox *) 0 ;
6502 bool result;
6503 PyObject * obj0 = 0 ;
6504 char *kwnames[] = {
6505 (char *) "self", NULL
6506 };
6507
6508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6511 {
6512 PyThreadState* __tstate = wxPyBeginAllowThreads();
6513 result = (bool)((wxListBox const *)arg1)->IsSorted();
6514
6515 wxPyEndAllowThreads(__tstate);
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 {
6519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6520 }
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6528 PyObject *resultobj;
6529 wxListBox *arg1 = (wxListBox *) 0 ;
6530 int arg2 ;
6531 wxColour *arg3 = 0 ;
6532 wxColour temp3 ;
6533 PyObject * obj0 = 0 ;
6534 PyObject * obj1 = 0 ;
6535 PyObject * obj2 = 0 ;
6536 char *kwnames[] = {
6537 (char *) "self",(char *) "item",(char *) "c", NULL
6538 };
6539
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6543 arg2 = (int)SWIG_As_int(obj1);
6544 if (PyErr_Occurred()) SWIG_fail;
6545 {
6546 arg3 = &temp3;
6547 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6548 }
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6552
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 Py_INCREF(Py_None); resultobj = Py_None;
6557 return resultobj;
6558 fail:
6559 return NULL;
6560 }
6561
6562
6563 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj;
6565 wxListBox *arg1 = (wxListBox *) 0 ;
6566 int arg2 ;
6567 wxColour *arg3 = 0 ;
6568 wxColour temp3 ;
6569 PyObject * obj0 = 0 ;
6570 PyObject * obj1 = 0 ;
6571 PyObject * obj2 = 0 ;
6572 char *kwnames[] = {
6573 (char *) "self",(char *) "item",(char *) "c", NULL
6574 };
6575
6576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6579 arg2 = (int)SWIG_As_int(obj1);
6580 if (PyErr_Occurred()) SWIG_fail;
6581 {
6582 arg3 = &temp3;
6583 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6584 }
6585 {
6586 PyThreadState* __tstate = wxPyBeginAllowThreads();
6587 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6588
6589 wxPyEndAllowThreads(__tstate);
6590 if (PyErr_Occurred()) SWIG_fail;
6591 }
6592 Py_INCREF(Py_None); resultobj = Py_None;
6593 return resultobj;
6594 fail:
6595 return NULL;
6596 }
6597
6598
6599 static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
6600 PyObject *resultobj;
6601 wxListBox *arg1 = (wxListBox *) 0 ;
6602 int arg2 ;
6603 wxFont *arg3 = 0 ;
6604 PyObject * obj0 = 0 ;
6605 PyObject * obj1 = 0 ;
6606 PyObject * obj2 = 0 ;
6607 char *kwnames[] = {
6608 (char *) "self",(char *) "item",(char *) "f", NULL
6609 };
6610
6611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6614 arg2 = (int)SWIG_As_int(obj1);
6615 if (PyErr_Occurred()) SWIG_fail;
6616 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6617 SWIG_POINTER_EXCEPTION | 0)) == -1)
6618 SWIG_fail;
6619 if (arg3 == NULL) {
6620 PyErr_SetString(PyExc_TypeError,"null reference");
6621 SWIG_fail;
6622 }
6623 {
6624 PyThreadState* __tstate = wxPyBeginAllowThreads();
6625 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6626
6627 wxPyEndAllowThreads(__tstate);
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 Py_INCREF(Py_None); resultobj = Py_None;
6631 return resultobj;
6632 fail:
6633 return NULL;
6634 }
6635
6636
6637 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj;
6639 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6640 wxVisualAttributes result;
6641 PyObject * obj0 = 0 ;
6642 char *kwnames[] = {
6643 (char *) "variant", NULL
6644 };
6645
6646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6647 if (obj0) {
6648 arg1 = (int)SWIG_As_int(obj0);
6649 if (PyErr_Occurred()) SWIG_fail;
6650 }
6651 {
6652 if (!wxPyCheckForApp()) SWIG_fail;
6653 PyThreadState* __tstate = wxPyBeginAllowThreads();
6654 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6655
6656 wxPyEndAllowThreads(__tstate);
6657 if (PyErr_Occurred()) SWIG_fail;
6658 }
6659 {
6660 wxVisualAttributes * resultptr;
6661 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6662 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6663 }
6664 return resultobj;
6665 fail:
6666 return NULL;
6667 }
6668
6669
6670 static PyObject * ListBox_swigregister(PyObject *, PyObject *args) {
6671 PyObject *obj;
6672 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6673 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6674 Py_INCREF(obj);
6675 return Py_BuildValue((char *)"");
6676 }
6677 static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6678 PyObject *resultobj;
6679 wxWindow *arg1 = (wxWindow *) 0 ;
6680 int arg2 = (int) -1 ;
6681 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6682 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6683 wxSize const &arg4_defvalue = wxDefaultSize ;
6684 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6685 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6686 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6687 long arg6 = (long) 0 ;
6688 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6689 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6690 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6691 wxString *arg8 = (wxString *) &arg8_defvalue ;
6692 wxCheckListBox *result;
6693 wxPoint temp3 ;
6694 wxSize temp4 ;
6695 bool temp5 = False ;
6696 bool temp8 = False ;
6697 PyObject * obj0 = 0 ;
6698 PyObject * obj1 = 0 ;
6699 PyObject * obj2 = 0 ;
6700 PyObject * obj3 = 0 ;
6701 PyObject * obj4 = 0 ;
6702 PyObject * obj5 = 0 ;
6703 PyObject * obj6 = 0 ;
6704 PyObject * obj7 = 0 ;
6705 char *kwnames[] = {
6706 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6707 };
6708
6709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6712 if (obj1) {
6713 arg2 = (int)SWIG_As_int(obj1);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 if (obj2) {
6717 {
6718 arg3 = &temp3;
6719 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6720 }
6721 }
6722 if (obj3) {
6723 {
6724 arg4 = &temp4;
6725 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6726 }
6727 }
6728 if (obj4) {
6729 {
6730 if (! PySequence_Check(obj4)) {
6731 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6732 SWIG_fail;
6733 }
6734 arg5 = new wxArrayString;
6735 temp5 = True;
6736 int i, len=PySequence_Length(obj4);
6737 for (i=0; i<len; i++) {
6738 PyObject* item = PySequence_GetItem(obj4, i);
6739 #if wxUSE_UNICODE
6740 PyObject* str = PyObject_Unicode(item);
6741 #else
6742 PyObject* str = PyObject_Str(item);
6743 #endif
6744 if (PyErr_Occurred()) SWIG_fail;
6745 arg5->Add(Py2wxString(str));
6746 Py_DECREF(item);
6747 Py_DECREF(str);
6748 }
6749 }
6750 }
6751 if (obj5) {
6752 arg6 = (long)SWIG_As_long(obj5);
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 if (obj6) {
6756 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6757 SWIG_POINTER_EXCEPTION | 0)) == -1)
6758 SWIG_fail;
6759 if (arg7 == NULL) {
6760 PyErr_SetString(PyExc_TypeError,"null reference");
6761 SWIG_fail;
6762 }
6763 }
6764 if (obj7) {
6765 {
6766 arg8 = wxString_in_helper(obj7);
6767 if (arg8 == NULL) SWIG_fail;
6768 temp8 = True;
6769 }
6770 }
6771 {
6772 if (!wxPyCheckForApp()) SWIG_fail;
6773 PyThreadState* __tstate = wxPyBeginAllowThreads();
6774 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6775
6776 wxPyEndAllowThreads(__tstate);
6777 if (PyErr_Occurred()) SWIG_fail;
6778 }
6779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6780 {
6781 if (temp5) delete arg5;
6782 }
6783 {
6784 if (temp8)
6785 delete arg8;
6786 }
6787 return resultobj;
6788 fail:
6789 {
6790 if (temp5) delete arg5;
6791 }
6792 {
6793 if (temp8)
6794 delete arg8;
6795 }
6796 return NULL;
6797 }
6798
6799
6800 static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj;
6802 wxCheckListBox *result;
6803 char *kwnames[] = {
6804 NULL
6805 };
6806
6807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6808 {
6809 if (!wxPyCheckForApp()) SWIG_fail;
6810 PyThreadState* __tstate = wxPyBeginAllowThreads();
6811 result = (wxCheckListBox *)new wxCheckListBox();
6812
6813 wxPyEndAllowThreads(__tstate);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 }
6816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6817 return resultobj;
6818 fail:
6819 return NULL;
6820 }
6821
6822
6823 static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6824 PyObject *resultobj;
6825 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6826 wxWindow *arg2 = (wxWindow *) 0 ;
6827 int arg3 = (int) -1 ;
6828 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6829 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6830 wxSize const &arg5_defvalue = wxDefaultSize ;
6831 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6832 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6833 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6834 long arg7 = (long) 0 ;
6835 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6836 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6837 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6838 wxString *arg9 = (wxString *) &arg9_defvalue ;
6839 bool result;
6840 wxPoint temp4 ;
6841 wxSize temp5 ;
6842 bool temp6 = False ;
6843 bool temp9 = False ;
6844 PyObject * obj0 = 0 ;
6845 PyObject * obj1 = 0 ;
6846 PyObject * obj2 = 0 ;
6847 PyObject * obj3 = 0 ;
6848 PyObject * obj4 = 0 ;
6849 PyObject * obj5 = 0 ;
6850 PyObject * obj6 = 0 ;
6851 PyObject * obj7 = 0 ;
6852 PyObject * obj8 = 0 ;
6853 char *kwnames[] = {
6854 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6855 };
6856
6857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6860 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6862 if (obj2) {
6863 arg3 = (int)SWIG_As_int(obj2);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 if (obj3) {
6867 {
6868 arg4 = &temp4;
6869 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6870 }
6871 }
6872 if (obj4) {
6873 {
6874 arg5 = &temp5;
6875 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6876 }
6877 }
6878 if (obj5) {
6879 {
6880 if (! PySequence_Check(obj5)) {
6881 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6882 SWIG_fail;
6883 }
6884 arg6 = new wxArrayString;
6885 temp6 = True;
6886 int i, len=PySequence_Length(obj5);
6887 for (i=0; i<len; i++) {
6888 PyObject* item = PySequence_GetItem(obj5, i);
6889 #if wxUSE_UNICODE
6890 PyObject* str = PyObject_Unicode(item);
6891 #else
6892 PyObject* str = PyObject_Str(item);
6893 #endif
6894 if (PyErr_Occurred()) SWIG_fail;
6895 arg6->Add(Py2wxString(str));
6896 Py_DECREF(item);
6897 Py_DECREF(str);
6898 }
6899 }
6900 }
6901 if (obj6) {
6902 arg7 = (long)SWIG_As_long(obj6);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 if (obj7) {
6906 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6907 SWIG_POINTER_EXCEPTION | 0)) == -1)
6908 SWIG_fail;
6909 if (arg8 == NULL) {
6910 PyErr_SetString(PyExc_TypeError,"null reference");
6911 SWIG_fail;
6912 }
6913 }
6914 if (obj8) {
6915 {
6916 arg9 = wxString_in_helper(obj8);
6917 if (arg9 == NULL) SWIG_fail;
6918 temp9 = True;
6919 }
6920 }
6921 {
6922 PyThreadState* __tstate = wxPyBeginAllowThreads();
6923 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6924
6925 wxPyEndAllowThreads(__tstate);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
6928 {
6929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6930 }
6931 {
6932 if (temp6) delete arg6;
6933 }
6934 {
6935 if (temp9)
6936 delete arg9;
6937 }
6938 return resultobj;
6939 fail:
6940 {
6941 if (temp6) delete arg6;
6942 }
6943 {
6944 if (temp9)
6945 delete arg9;
6946 }
6947 return NULL;
6948 }
6949
6950
6951 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
6952 PyObject *resultobj;
6953 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6954 int arg2 ;
6955 bool result;
6956 PyObject * obj0 = 0 ;
6957 PyObject * obj1 = 0 ;
6958 char *kwnames[] = {
6959 (char *) "self",(char *) "index", NULL
6960 };
6961
6962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6965 arg2 = (int)SWIG_As_int(obj1);
6966 if (PyErr_Occurred()) SWIG_fail;
6967 {
6968 PyThreadState* __tstate = wxPyBeginAllowThreads();
6969 result = (bool)(arg1)->IsChecked(arg2);
6970
6971 wxPyEndAllowThreads(__tstate);
6972 if (PyErr_Occurred()) SWIG_fail;
6973 }
6974 {
6975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6976 }
6977 return resultobj;
6978 fail:
6979 return NULL;
6980 }
6981
6982
6983 static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) {
6984 PyObject *resultobj;
6985 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6986 int arg2 ;
6987 int arg3 = (int) True ;
6988 PyObject * obj0 = 0 ;
6989 PyObject * obj1 = 0 ;
6990 PyObject * obj2 = 0 ;
6991 char *kwnames[] = {
6992 (char *) "self",(char *) "index",(char *) "check", NULL
6993 };
6994
6995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6998 arg2 = (int)SWIG_As_int(obj1);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 if (obj2) {
7001 arg3 = (int)SWIG_As_int(obj2);
7002 if (PyErr_Occurred()) SWIG_fail;
7003 }
7004 {
7005 PyThreadState* __tstate = wxPyBeginAllowThreads();
7006 (arg1)->Check(arg2,arg3);
7007
7008 wxPyEndAllowThreads(__tstate);
7009 if (PyErr_Occurred()) SWIG_fail;
7010 }
7011 Py_INCREF(Py_None); resultobj = Py_None;
7012 return resultobj;
7013 fail:
7014 return NULL;
7015 }
7016
7017
7018 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) {
7019 PyObject *resultobj;
7020 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7021 int result;
7022 PyObject * obj0 = 0 ;
7023 char *kwnames[] = {
7024 (char *) "self", NULL
7025 };
7026
7027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
7028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7030 {
7031 PyThreadState* __tstate = wxPyBeginAllowThreads();
7032 result = (int)(arg1)->GetItemHeight();
7033
7034 wxPyEndAllowThreads(__tstate);
7035 if (PyErr_Occurred()) SWIG_fail;
7036 }
7037 resultobj = SWIG_From_int((int)result);
7038 return resultobj;
7039 fail:
7040 return NULL;
7041 }
7042
7043
7044 static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
7045 PyObject *resultobj;
7046 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7047 wxPoint *arg2 = 0 ;
7048 int result;
7049 wxPoint temp2 ;
7050 PyObject * obj0 = 0 ;
7051 PyObject * obj1 = 0 ;
7052 char *kwnames[] = {
7053 (char *) "self",(char *) "pt", NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
7057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7059 {
7060 arg2 = &temp2;
7061 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7062 }
7063 {
7064 PyThreadState* __tstate = wxPyBeginAllowThreads();
7065 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
7066
7067 wxPyEndAllowThreads(__tstate);
7068 if (PyErr_Occurred()) SWIG_fail;
7069 }
7070 resultobj = SWIG_From_int((int)result);
7071 return resultobj;
7072 fail:
7073 return NULL;
7074 }
7075
7076
7077 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
7078 PyObject *resultobj;
7079 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7080 int arg2 ;
7081 int arg3 ;
7082 int result;
7083 PyObject * obj0 = 0 ;
7084 PyObject * obj1 = 0 ;
7085 PyObject * obj2 = 0 ;
7086 char *kwnames[] = {
7087 (char *) "self",(char *) "x",(char *) "y", NULL
7088 };
7089
7090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7093 arg2 = (int)SWIG_As_int(obj1);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 arg3 = (int)SWIG_As_int(obj2);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 {
7098 PyThreadState* __tstate = wxPyBeginAllowThreads();
7099 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
7100
7101 wxPyEndAllowThreads(__tstate);
7102 if (PyErr_Occurred()) SWIG_fail;
7103 }
7104 resultobj = SWIG_From_int((int)result);
7105 return resultobj;
7106 fail:
7107 return NULL;
7108 }
7109
7110
7111 static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) {
7112 PyObject *obj;
7113 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7114 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
7115 Py_INCREF(obj);
7116 return Py_BuildValue((char *)"");
7117 }
7118 static int _wrap_TextCtrlNameStr_set(PyObject *) {
7119 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
7120 return 1;
7121 }
7122
7123
7124 static PyObject *_wrap_TextCtrlNameStr_get() {
7125 PyObject *pyobj;
7126
7127 {
7128 #if wxUSE_UNICODE
7129 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7130 #else
7131 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7132 #endif
7133 }
7134 return pyobj;
7135 }
7136
7137
7138 static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7139 PyObject *resultobj;
7140 wxColour const &arg1_defvalue = wxNullColour ;
7141 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
7142 wxColour const &arg2_defvalue = wxNullColour ;
7143 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
7144 wxFont const &arg3_defvalue = wxNullFont ;
7145 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
7146 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
7147 wxTextAttr *result;
7148 wxColour temp1 ;
7149 wxColour temp2 ;
7150 PyObject * obj0 = 0 ;
7151 PyObject * obj1 = 0 ;
7152 PyObject * obj2 = 0 ;
7153 PyObject * obj3 = 0 ;
7154 char *kwnames[] = {
7155 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
7156 };
7157
7158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7159 if (obj0) {
7160 {
7161 arg1 = &temp1;
7162 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
7163 }
7164 }
7165 if (obj1) {
7166 {
7167 arg2 = &temp2;
7168 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7169 }
7170 }
7171 if (obj2) {
7172 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
7173 SWIG_POINTER_EXCEPTION | 0)) == -1)
7174 SWIG_fail;
7175 if (arg3 == NULL) {
7176 PyErr_SetString(PyExc_TypeError,"null reference");
7177 SWIG_fail;
7178 }
7179 }
7180 if (obj3) {
7181 arg4 = (int)SWIG_As_int(obj3);
7182 if (PyErr_Occurred()) SWIG_fail;
7183 }
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
7187
7188 wxPyEndAllowThreads(__tstate);
7189 if (PyErr_Occurred()) SWIG_fail;
7190 }
7191 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
7192 return resultobj;
7193 fail:
7194 return NULL;
7195 }
7196
7197
7198 static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7199 PyObject *resultobj;
7200 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7201 PyObject * obj0 = 0 ;
7202 char *kwnames[] = {
7203 (char *) "self", NULL
7204 };
7205
7206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7209 {
7210 PyThreadState* __tstate = wxPyBeginAllowThreads();
7211 delete arg1;
7212
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 Py_INCREF(Py_None); resultobj = Py_None;
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7224 PyObject *resultobj;
7225 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7226 PyObject * obj0 = 0 ;
7227 char *kwnames[] = {
7228 (char *) "self", NULL
7229 };
7230
7231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 (arg1)->Init();
7237
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 Py_INCREF(Py_None); resultobj = Py_None;
7242 return resultobj;
7243 fail:
7244 return NULL;
7245 }
7246
7247
7248 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7249 PyObject *resultobj;
7250 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7251 wxColour *arg2 = 0 ;
7252 wxColour temp2 ;
7253 PyObject * obj0 = 0 ;
7254 PyObject * obj1 = 0 ;
7255 char *kwnames[] = {
7256 (char *) "self",(char *) "colText", NULL
7257 };
7258
7259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7262 {
7263 arg2 = &temp2;
7264 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7265 }
7266 {
7267 PyThreadState* __tstate = wxPyBeginAllowThreads();
7268 (arg1)->SetTextColour((wxColour const &)*arg2);
7269
7270 wxPyEndAllowThreads(__tstate);
7271 if (PyErr_Occurred()) SWIG_fail;
7272 }
7273 Py_INCREF(Py_None); resultobj = Py_None;
7274 return resultobj;
7275 fail:
7276 return NULL;
7277 }
7278
7279
7280 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7281 PyObject *resultobj;
7282 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7283 wxColour *arg2 = 0 ;
7284 wxColour temp2 ;
7285 PyObject * obj0 = 0 ;
7286 PyObject * obj1 = 0 ;
7287 char *kwnames[] = {
7288 (char *) "self",(char *) "colBack", NULL
7289 };
7290
7291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7294 {
7295 arg2 = &temp2;
7296 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7297 }
7298 {
7299 PyThreadState* __tstate = wxPyBeginAllowThreads();
7300 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7301
7302 wxPyEndAllowThreads(__tstate);
7303 if (PyErr_Occurred()) SWIG_fail;
7304 }
7305 Py_INCREF(Py_None); resultobj = Py_None;
7306 return resultobj;
7307 fail:
7308 return NULL;
7309 }
7310
7311
7312 static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7313 PyObject *resultobj;
7314 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7315 wxFont *arg2 = 0 ;
7316 long arg3 = (long) wxTEXT_ATTR_FONT ;
7317 PyObject * obj0 = 0 ;
7318 PyObject * obj1 = 0 ;
7319 PyObject * obj2 = 0 ;
7320 char *kwnames[] = {
7321 (char *) "self",(char *) "font",(char *) "flags", NULL
7322 };
7323
7324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7327 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7328 SWIG_POINTER_EXCEPTION | 0)) == -1)
7329 SWIG_fail;
7330 if (arg2 == NULL) {
7331 PyErr_SetString(PyExc_TypeError,"null reference");
7332 SWIG_fail;
7333 }
7334 if (obj2) {
7335 arg3 = (long)SWIG_As_long(obj2);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7341
7342 wxPyEndAllowThreads(__tstate);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 Py_INCREF(Py_None); resultobj = Py_None;
7346 return resultobj;
7347 fail:
7348 return NULL;
7349 }
7350
7351
7352 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7353 PyObject *resultobj;
7354 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7355 int arg2 ;
7356 PyObject * obj0 = 0 ;
7357 PyObject * obj1 = 0 ;
7358 char *kwnames[] = {
7359 (char *) "self",(char *) "alignment", NULL
7360 };
7361
7362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7365 arg2 = (int)SWIG_As_int(obj1);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 Py_INCREF(Py_None); resultobj = Py_None;
7375 return resultobj;
7376 fail:
7377 return NULL;
7378 }
7379
7380
7381 static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj;
7383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7384 wxArrayInt *arg2 = 0 ;
7385 bool temp2 = False ;
7386 PyObject * obj0 = 0 ;
7387 PyObject * obj1 = 0 ;
7388 char *kwnames[] = {
7389 (char *) "self",(char *) "tabs", NULL
7390 };
7391
7392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7395 {
7396 if (! PySequence_Check(obj1)) {
7397 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7398 SWIG_fail;
7399 }
7400 arg2 = new wxArrayInt;
7401 temp2 = True;
7402 int i, len=PySequence_Length(obj1);
7403 for (i=0; i<len; i++) {
7404 PyObject* item = PySequence_GetItem(obj1, i);
7405 PyObject* number = PyNumber_Int(item);
7406 arg2->Add(PyInt_AS_LONG(number));
7407 Py_DECREF(item);
7408 Py_DECREF(number);
7409 }
7410 }
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7414
7415 wxPyEndAllowThreads(__tstate);
7416 if (PyErr_Occurred()) SWIG_fail;
7417 }
7418 Py_INCREF(Py_None); resultobj = Py_None;
7419 {
7420 if (temp2) delete arg2;
7421 }
7422 return resultobj;
7423 fail:
7424 {
7425 if (temp2) delete arg2;
7426 }
7427 return NULL;
7428 }
7429
7430
7431 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7432 PyObject *resultobj;
7433 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7434 int arg2 ;
7435 int arg3 = (int) 0 ;
7436 PyObject * obj0 = 0 ;
7437 PyObject * obj1 = 0 ;
7438 PyObject * obj2 = 0 ;
7439 char *kwnames[] = {
7440 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7441 };
7442
7443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7446 arg2 = (int)SWIG_As_int(obj1);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 if (obj2) {
7449 arg3 = (int)SWIG_As_int(obj2);
7450 if (PyErr_Occurred()) SWIG_fail;
7451 }
7452 {
7453 PyThreadState* __tstate = wxPyBeginAllowThreads();
7454 (arg1)->SetLeftIndent(arg2,arg3);
7455
7456 wxPyEndAllowThreads(__tstate);
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 Py_INCREF(Py_None); resultobj = Py_None;
7460 return resultobj;
7461 fail:
7462 return NULL;
7463 }
7464
7465
7466 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7467 PyObject *resultobj;
7468 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7469 int arg2 ;
7470 PyObject * obj0 = 0 ;
7471 PyObject * obj1 = 0 ;
7472 char *kwnames[] = {
7473 (char *) "self",(char *) "indent", NULL
7474 };
7475
7476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7479 arg2 = (int)SWIG_As_int(obj1);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 {
7482 PyThreadState* __tstate = wxPyBeginAllowThreads();
7483 (arg1)->SetRightIndent(arg2);
7484
7485 wxPyEndAllowThreads(__tstate);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 Py_INCREF(Py_None); resultobj = Py_None;
7489 return resultobj;
7490 fail:
7491 return NULL;
7492 }
7493
7494
7495 static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7496 PyObject *resultobj;
7497 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7498 long arg2 ;
7499 PyObject * obj0 = 0 ;
7500 PyObject * obj1 = 0 ;
7501 char *kwnames[] = {
7502 (char *) "self",(char *) "flags", NULL
7503 };
7504
7505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7508 arg2 = (long)SWIG_As_long(obj1);
7509 if (PyErr_Occurred()) SWIG_fail;
7510 {
7511 PyThreadState* __tstate = wxPyBeginAllowThreads();
7512 (arg1)->SetFlags(arg2);
7513
7514 wxPyEndAllowThreads(__tstate);
7515 if (PyErr_Occurred()) SWIG_fail;
7516 }
7517 Py_INCREF(Py_None); resultobj = Py_None;
7518 return resultobj;
7519 fail:
7520 return NULL;
7521 }
7522
7523
7524 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7525 PyObject *resultobj;
7526 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7527 bool result;
7528 PyObject * obj0 = 0 ;
7529 char *kwnames[] = {
7530 (char *) "self", NULL
7531 };
7532
7533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7536 {
7537 PyThreadState* __tstate = wxPyBeginAllowThreads();
7538 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7539
7540 wxPyEndAllowThreads(__tstate);
7541 if (PyErr_Occurred()) SWIG_fail;
7542 }
7543 {
7544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7545 }
7546 return resultobj;
7547 fail:
7548 return NULL;
7549 }
7550
7551
7552 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7553 PyObject *resultobj;
7554 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7555 bool result;
7556 PyObject * obj0 = 0 ;
7557 char *kwnames[] = {
7558 (char *) "self", NULL
7559 };
7560
7561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7564 {
7565 PyThreadState* __tstate = wxPyBeginAllowThreads();
7566 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7567
7568 wxPyEndAllowThreads(__tstate);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 {
7572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7573 }
7574 return resultobj;
7575 fail:
7576 return NULL;
7577 }
7578
7579
7580 static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
7581 PyObject *resultobj;
7582 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7583 bool result;
7584 PyObject * obj0 = 0 ;
7585 char *kwnames[] = {
7586 (char *) "self", NULL
7587 };
7588
7589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7592 {
7593 PyThreadState* __tstate = wxPyBeginAllowThreads();
7594 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7595
7596 wxPyEndAllowThreads(__tstate);
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 {
7600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7601 }
7602 return resultobj;
7603 fail:
7604 return NULL;
7605 }
7606
7607
7608 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7609 PyObject *resultobj;
7610 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7611 bool result;
7612 PyObject * obj0 = 0 ;
7613 char *kwnames[] = {
7614 (char *) "self", NULL
7615 };
7616
7617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7620 {
7621 PyThreadState* __tstate = wxPyBeginAllowThreads();
7622 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7623
7624 wxPyEndAllowThreads(__tstate);
7625 if (PyErr_Occurred()) SWIG_fail;
7626 }
7627 {
7628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7629 }
7630 return resultobj;
7631 fail:
7632 return NULL;
7633 }
7634
7635
7636 static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7637 PyObject *resultobj;
7638 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7639 bool result;
7640 PyObject * obj0 = 0 ;
7641 char *kwnames[] = {
7642 (char *) "self", NULL
7643 };
7644
7645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7648 {
7649 PyThreadState* __tstate = wxPyBeginAllowThreads();
7650 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7651
7652 wxPyEndAllowThreads(__tstate);
7653 if (PyErr_Occurred()) SWIG_fail;
7654 }
7655 {
7656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7657 }
7658 return resultobj;
7659 fail:
7660 return NULL;
7661 }
7662
7663
7664 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7665 PyObject *resultobj;
7666 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7667 bool result;
7668 PyObject * obj0 = 0 ;
7669 char *kwnames[] = {
7670 (char *) "self", NULL
7671 };
7672
7673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7676 {
7677 PyThreadState* __tstate = wxPyBeginAllowThreads();
7678 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7679
7680 wxPyEndAllowThreads(__tstate);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 {
7684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7685 }
7686 return resultobj;
7687 fail:
7688 return NULL;
7689 }
7690
7691
7692 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7693 PyObject *resultobj;
7694 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7695 bool result;
7696 PyObject * obj0 = 0 ;
7697 char *kwnames[] = {
7698 (char *) "self", NULL
7699 };
7700
7701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7704 {
7705 PyThreadState* __tstate = wxPyBeginAllowThreads();
7706 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7707
7708 wxPyEndAllowThreads(__tstate);
7709 if (PyErr_Occurred()) SWIG_fail;
7710 }
7711 {
7712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7713 }
7714 return resultobj;
7715 fail:
7716 return NULL;
7717 }
7718
7719
7720 static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
7721 PyObject *resultobj;
7722 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7723 long arg2 ;
7724 bool result;
7725 PyObject * obj0 = 0 ;
7726 PyObject * obj1 = 0 ;
7727 char *kwnames[] = {
7728 (char *) "self",(char *) "flag", NULL
7729 };
7730
7731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7734 arg2 = (long)SWIG_As_long(obj1);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 {
7737 PyThreadState* __tstate = wxPyBeginAllowThreads();
7738 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7739
7740 wxPyEndAllowThreads(__tstate);
7741 if (PyErr_Occurred()) SWIG_fail;
7742 }
7743 {
7744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7745 }
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7755 wxColour *result;
7756 PyObject * obj0 = 0 ;
7757 char *kwnames[] = {
7758 (char *) "self", NULL
7759 };
7760
7761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7764 {
7765 PyThreadState* __tstate = wxPyBeginAllowThreads();
7766 {
7767 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7768 result = (wxColour *) &_result_ref;
7769 }
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7775 return resultobj;
7776 fail:
7777 return NULL;
7778 }
7779
7780
7781 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7782 PyObject *resultobj;
7783 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7784 wxColour *result;
7785 PyObject * obj0 = 0 ;
7786 char *kwnames[] = {
7787 (char *) "self", NULL
7788 };
7789
7790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7793 {
7794 PyThreadState* __tstate = wxPyBeginAllowThreads();
7795 {
7796 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7797 result = (wxColour *) &_result_ref;
7798 }
7799
7800 wxPyEndAllowThreads(__tstate);
7801 if (PyErr_Occurred()) SWIG_fail;
7802 }
7803 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7804 return resultobj;
7805 fail:
7806 return NULL;
7807 }
7808
7809
7810 static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7811 PyObject *resultobj;
7812 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7813 wxFont *result;
7814 PyObject * obj0 = 0 ;
7815 char *kwnames[] = {
7816 (char *) "self", NULL
7817 };
7818
7819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7822 {
7823 PyThreadState* __tstate = wxPyBeginAllowThreads();
7824 {
7825 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7826 result = (wxFont *) &_result_ref;
7827 }
7828
7829 wxPyEndAllowThreads(__tstate);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 {
7833 wxFont* resultptr = new wxFont(*result);
7834 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7835 }
7836 return resultobj;
7837 fail:
7838 return NULL;
7839 }
7840
7841
7842 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7843 PyObject *resultobj;
7844 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7845 int result;
7846 PyObject * obj0 = 0 ;
7847 char *kwnames[] = {
7848 (char *) "self", NULL
7849 };
7850
7851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7854 {
7855 PyThreadState* __tstate = wxPyBeginAllowThreads();
7856 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7857
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_From_int((int)result);
7862 return resultobj;
7863 fail:
7864 return NULL;
7865 }
7866
7867
7868 static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7869 PyObject *resultobj;
7870 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7871 wxArrayInt *result;
7872 PyObject * obj0 = 0 ;
7873 char *kwnames[] = {
7874 (char *) "self", NULL
7875 };
7876
7877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7880 {
7881 PyThreadState* __tstate = wxPyBeginAllowThreads();
7882 {
7883 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7884 result = (wxArrayInt *) &_result_ref;
7885 }
7886
7887 wxPyEndAllowThreads(__tstate);
7888 if (PyErr_Occurred()) SWIG_fail;
7889 }
7890 {
7891 resultobj = PyList_New(0);
7892 size_t idx;
7893 for (idx = 0; idx < result->GetCount(); idx += 1) {
7894 PyObject* val = PyInt_FromLong( result->Item(idx) );
7895 PyList_Append(resultobj, val);
7896 Py_DECREF(val);
7897 }
7898 }
7899 return resultobj;
7900 fail:
7901 return NULL;
7902 }
7903
7904
7905 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7906 PyObject *resultobj;
7907 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7908 long result;
7909 PyObject * obj0 = 0 ;
7910 char *kwnames[] = {
7911 (char *) "self", NULL
7912 };
7913
7914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7917 {
7918 PyThreadState* __tstate = wxPyBeginAllowThreads();
7919 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7920
7921 wxPyEndAllowThreads(__tstate);
7922 if (PyErr_Occurred()) SWIG_fail;
7923 }
7924 resultobj = SWIG_From_long((long)result);
7925 return resultobj;
7926 fail:
7927 return NULL;
7928 }
7929
7930
7931 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7932 PyObject *resultobj;
7933 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7934 long result;
7935 PyObject * obj0 = 0 ;
7936 char *kwnames[] = {
7937 (char *) "self", NULL
7938 };
7939
7940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
7941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7943 {
7944 PyThreadState* __tstate = wxPyBeginAllowThreads();
7945 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
7946
7947 wxPyEndAllowThreads(__tstate);
7948 if (PyErr_Occurred()) SWIG_fail;
7949 }
7950 resultobj = SWIG_From_long((long)result);
7951 return resultobj;
7952 fail:
7953 return NULL;
7954 }
7955
7956
7957 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7958 PyObject *resultobj;
7959 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7960 long result;
7961 PyObject * obj0 = 0 ;
7962 char *kwnames[] = {
7963 (char *) "self", NULL
7964 };
7965
7966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7969 {
7970 PyThreadState* __tstate = wxPyBeginAllowThreads();
7971 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7972
7973 wxPyEndAllowThreads(__tstate);
7974 if (PyErr_Occurred()) SWIG_fail;
7975 }
7976 resultobj = SWIG_From_long((long)result);
7977 return resultobj;
7978 fail:
7979 return NULL;
7980 }
7981
7982
7983 static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7984 PyObject *resultobj;
7985 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7986 long result;
7987 PyObject * obj0 = 0 ;
7988 char *kwnames[] = {
7989 (char *) "self", NULL
7990 };
7991
7992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7995 {
7996 PyThreadState* __tstate = wxPyBeginAllowThreads();
7997 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7998
7999 wxPyEndAllowThreads(__tstate);
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
8002 resultobj = SWIG_From_long((long)result);
8003 return resultobj;
8004 fail:
8005 return NULL;
8006 }
8007
8008
8009 static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) {
8010 PyObject *resultobj;
8011 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8012 bool result;
8013 PyObject * obj0 = 0 ;
8014 char *kwnames[] = {
8015 (char *) "self", NULL
8016 };
8017
8018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
8019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8021 {
8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
8023 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
8024
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 {
8029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8030 }
8031 return resultobj;
8032 fail:
8033 return NULL;
8034 }
8035
8036
8037 static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) {
8038 PyObject *resultobj;
8039 wxTextAttr *arg1 = 0 ;
8040 wxTextAttr *arg2 = 0 ;
8041 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
8042 wxTextAttr result;
8043 PyObject * obj0 = 0 ;
8044 PyObject * obj1 = 0 ;
8045 PyObject * obj2 = 0 ;
8046 char *kwnames[] = {
8047 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
8048 };
8049
8050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
8051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8052 SWIG_POINTER_EXCEPTION | 0)) == -1)
8053 SWIG_fail;
8054 if (arg1 == NULL) {
8055 PyErr_SetString(PyExc_TypeError,"null reference");
8056 SWIG_fail;
8057 }
8058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8059 SWIG_POINTER_EXCEPTION | 0)) == -1)
8060 SWIG_fail;
8061 if (arg2 == NULL) {
8062 PyErr_SetString(PyExc_TypeError,"null reference");
8063 SWIG_fail;
8064 }
8065 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
8066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 {
8075 wxTextAttr * resultptr;
8076 resultptr = new wxTextAttr((wxTextAttr &) result);
8077 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
8078 }
8079 return resultobj;
8080 fail:
8081 return NULL;
8082 }
8083
8084
8085 static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) {
8086 PyObject *obj;
8087 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8088 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
8089 Py_INCREF(obj);
8090 return Py_BuildValue((char *)"");
8091 }
8092 static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8093 PyObject *resultobj;
8094 wxWindow *arg1 = (wxWindow *) 0 ;
8095 int arg2 = (int) -1 ;
8096 wxString const &arg3_defvalue = wxPyEmptyString ;
8097 wxString *arg3 = (wxString *) &arg3_defvalue ;
8098 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8099 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8100 wxSize const &arg5_defvalue = wxDefaultSize ;
8101 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8102 long arg6 = (long) 0 ;
8103 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8104 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8105 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
8106 wxString *arg8 = (wxString *) &arg8_defvalue ;
8107 wxTextCtrl *result;
8108 bool temp3 = False ;
8109 wxPoint temp4 ;
8110 wxSize temp5 ;
8111 bool temp8 = False ;
8112 PyObject * obj0 = 0 ;
8113 PyObject * obj1 = 0 ;
8114 PyObject * obj2 = 0 ;
8115 PyObject * obj3 = 0 ;
8116 PyObject * obj4 = 0 ;
8117 PyObject * obj5 = 0 ;
8118 PyObject * obj6 = 0 ;
8119 PyObject * obj7 = 0 ;
8120 char *kwnames[] = {
8121 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8122 };
8123
8124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
8125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
8126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8127 if (obj1) {
8128 arg2 = (int)SWIG_As_int(obj1);
8129 if (PyErr_Occurred()) SWIG_fail;
8130 }
8131 if (obj2) {
8132 {
8133 arg3 = wxString_in_helper(obj2);
8134 if (arg3 == NULL) SWIG_fail;
8135 temp3 = True;
8136 }
8137 }
8138 if (obj3) {
8139 {
8140 arg4 = &temp4;
8141 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8142 }
8143 }
8144 if (obj4) {
8145 {
8146 arg5 = &temp5;
8147 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8148 }
8149 }
8150 if (obj5) {
8151 arg6 = (long)SWIG_As_long(obj5);
8152 if (PyErr_Occurred()) SWIG_fail;
8153 }
8154 if (obj6) {
8155 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
8156 SWIG_POINTER_EXCEPTION | 0)) == -1)
8157 SWIG_fail;
8158 if (arg7 == NULL) {
8159 PyErr_SetString(PyExc_TypeError,"null reference");
8160 SWIG_fail;
8161 }
8162 }
8163 if (obj7) {
8164 {
8165 arg8 = wxString_in_helper(obj7);
8166 if (arg8 == NULL) SWIG_fail;
8167 temp8 = True;
8168 }
8169 }
8170 {
8171 if (!wxPyCheckForApp()) SWIG_fail;
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8174
8175 wxPyEndAllowThreads(__tstate);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8179 {
8180 if (temp3)
8181 delete arg3;
8182 }
8183 {
8184 if (temp8)
8185 delete arg8;
8186 }
8187 return resultobj;
8188 fail:
8189 {
8190 if (temp3)
8191 delete arg3;
8192 }
8193 {
8194 if (temp8)
8195 delete arg8;
8196 }
8197 return NULL;
8198 }
8199
8200
8201 static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8202 PyObject *resultobj;
8203 wxTextCtrl *result;
8204 char *kwnames[] = {
8205 NULL
8206 };
8207
8208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8209 {
8210 if (!wxPyCheckForApp()) SWIG_fail;
8211 PyThreadState* __tstate = wxPyBeginAllowThreads();
8212 result = (wxTextCtrl *)new wxTextCtrl();
8213
8214 wxPyEndAllowThreads(__tstate);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8218 return resultobj;
8219 fail:
8220 return NULL;
8221 }
8222
8223
8224 static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8225 PyObject *resultobj;
8226 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8227 wxWindow *arg2 = (wxWindow *) 0 ;
8228 int arg3 = (int) -1 ;
8229 wxString const &arg4_defvalue = wxPyEmptyString ;
8230 wxString *arg4 = (wxString *) &arg4_defvalue ;
8231 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8232 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8233 wxSize const &arg6_defvalue = wxDefaultSize ;
8234 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8235 long arg7 = (long) 0 ;
8236 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8237 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8238 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8239 wxString *arg9 = (wxString *) &arg9_defvalue ;
8240 bool result;
8241 bool temp4 = False ;
8242 wxPoint temp5 ;
8243 wxSize temp6 ;
8244 bool temp9 = False ;
8245 PyObject * obj0 = 0 ;
8246 PyObject * obj1 = 0 ;
8247 PyObject * obj2 = 0 ;
8248 PyObject * obj3 = 0 ;
8249 PyObject * obj4 = 0 ;
8250 PyObject * obj5 = 0 ;
8251 PyObject * obj6 = 0 ;
8252 PyObject * obj7 = 0 ;
8253 PyObject * obj8 = 0 ;
8254 char *kwnames[] = {
8255 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8256 };
8257
8258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8261 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8263 if (obj2) {
8264 arg3 = (int)SWIG_As_int(obj2);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 if (obj3) {
8268 {
8269 arg4 = wxString_in_helper(obj3);
8270 if (arg4 == NULL) SWIG_fail;
8271 temp4 = True;
8272 }
8273 }
8274 if (obj4) {
8275 {
8276 arg5 = &temp5;
8277 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8278 }
8279 }
8280 if (obj5) {
8281 {
8282 arg6 = &temp6;
8283 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8284 }
8285 }
8286 if (obj6) {
8287 arg7 = (long)SWIG_As_long(obj6);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 if (obj7) {
8291 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8292 SWIG_POINTER_EXCEPTION | 0)) == -1)
8293 SWIG_fail;
8294 if (arg8 == NULL) {
8295 PyErr_SetString(PyExc_TypeError,"null reference");
8296 SWIG_fail;
8297 }
8298 }
8299 if (obj8) {
8300 {
8301 arg9 = wxString_in_helper(obj8);
8302 if (arg9 == NULL) SWIG_fail;
8303 temp9 = True;
8304 }
8305 }
8306 {
8307 PyThreadState* __tstate = wxPyBeginAllowThreads();
8308 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8309
8310 wxPyEndAllowThreads(__tstate);
8311 if (PyErr_Occurred()) SWIG_fail;
8312 }
8313 {
8314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8315 }
8316 {
8317 if (temp4)
8318 delete arg4;
8319 }
8320 {
8321 if (temp9)
8322 delete arg9;
8323 }
8324 return resultobj;
8325 fail:
8326 {
8327 if (temp4)
8328 delete arg4;
8329 }
8330 {
8331 if (temp9)
8332 delete arg9;
8333 }
8334 return NULL;
8335 }
8336
8337
8338 static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8339 PyObject *resultobj;
8340 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8341 wxString result;
8342 PyObject * obj0 = 0 ;
8343 char *kwnames[] = {
8344 (char *) "self", NULL
8345 };
8346
8347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8350 {
8351 PyThreadState* __tstate = wxPyBeginAllowThreads();
8352 result = ((wxTextCtrl const *)arg1)->GetValue();
8353
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 {
8358 #if wxUSE_UNICODE
8359 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8360 #else
8361 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8362 #endif
8363 }
8364 return resultobj;
8365 fail:
8366 return NULL;
8367 }
8368
8369
8370 static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8371 PyObject *resultobj;
8372 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8373 wxString *arg2 = 0 ;
8374 bool temp2 = False ;
8375 PyObject * obj0 = 0 ;
8376 PyObject * obj1 = 0 ;
8377 char *kwnames[] = {
8378 (char *) "self",(char *) "value", NULL
8379 };
8380
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8384 {
8385 arg2 = wxString_in_helper(obj1);
8386 if (arg2 == NULL) SWIG_fail;
8387 temp2 = True;
8388 }
8389 {
8390 PyThreadState* __tstate = wxPyBeginAllowThreads();
8391 (arg1)->SetValue((wxString const &)*arg2);
8392
8393 wxPyEndAllowThreads(__tstate);
8394 if (PyErr_Occurred()) SWIG_fail;
8395 }
8396 Py_INCREF(Py_None); resultobj = Py_None;
8397 {
8398 if (temp2)
8399 delete arg2;
8400 }
8401 return resultobj;
8402 fail:
8403 {
8404 if (temp2)
8405 delete arg2;
8406 }
8407 return NULL;
8408 }
8409
8410
8411 static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
8412 PyObject *resultobj;
8413 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8414 long arg2 ;
8415 long arg3 ;
8416 wxString result;
8417 PyObject * obj0 = 0 ;
8418 PyObject * obj1 = 0 ;
8419 PyObject * obj2 = 0 ;
8420 char *kwnames[] = {
8421 (char *) "self",(char *) "from",(char *) "to", NULL
8422 };
8423
8424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8427 arg2 = (long)SWIG_As_long(obj1);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 arg3 = (long)SWIG_As_long(obj2);
8430 if (PyErr_Occurred()) SWIG_fail;
8431 {
8432 PyThreadState* __tstate = wxPyBeginAllowThreads();
8433 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8434
8435 wxPyEndAllowThreads(__tstate);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 {
8439 #if wxUSE_UNICODE
8440 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8441 #else
8442 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8443 #endif
8444 }
8445 return resultobj;
8446 fail:
8447 return NULL;
8448 }
8449
8450
8451 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj;
8453 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8454 long arg2 ;
8455 int result;
8456 PyObject * obj0 = 0 ;
8457 PyObject * obj1 = 0 ;
8458 char *kwnames[] = {
8459 (char *) "self",(char *) "lineNo", NULL
8460 };
8461
8462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8465 arg2 = (long)SWIG_As_long(obj1);
8466 if (PyErr_Occurred()) SWIG_fail;
8467 {
8468 PyThreadState* __tstate = wxPyBeginAllowThreads();
8469 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8470
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 resultobj = SWIG_From_int((int)result);
8475 return resultobj;
8476 fail:
8477 return NULL;
8478 }
8479
8480
8481 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) {
8482 PyObject *resultobj;
8483 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8484 long arg2 ;
8485 wxString result;
8486 PyObject * obj0 = 0 ;
8487 PyObject * obj1 = 0 ;
8488 char *kwnames[] = {
8489 (char *) "self",(char *) "lineNo", NULL
8490 };
8491
8492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8495 arg2 = (long)SWIG_As_long(obj1);
8496 if (PyErr_Occurred()) SWIG_fail;
8497 {
8498 PyThreadState* __tstate = wxPyBeginAllowThreads();
8499 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8500
8501 wxPyEndAllowThreads(__tstate);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 }
8504 {
8505 #if wxUSE_UNICODE
8506 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8507 #else
8508 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8509 #endif
8510 }
8511 return resultobj;
8512 fail:
8513 return NULL;
8514 }
8515
8516
8517 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj;
8519 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8520 int result;
8521 PyObject * obj0 = 0 ;
8522 char *kwnames[] = {
8523 (char *) "self", NULL
8524 };
8525
8526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8529 {
8530 PyThreadState* __tstate = wxPyBeginAllowThreads();
8531 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8532
8533 wxPyEndAllowThreads(__tstate);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 }
8536 resultobj = SWIG_From_int((int)result);
8537 return resultobj;
8538 fail:
8539 return NULL;
8540 }
8541
8542
8543 static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) {
8544 PyObject *resultobj;
8545 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8546 bool result;
8547 PyObject * obj0 = 0 ;
8548 char *kwnames[] = {
8549 (char *) "self", NULL
8550 };
8551
8552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8555 {
8556 PyThreadState* __tstate = wxPyBeginAllowThreads();
8557 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8558
8559 wxPyEndAllowThreads(__tstate);
8560 if (PyErr_Occurred()) SWIG_fail;
8561 }
8562 {
8563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8564 }
8565 return resultobj;
8566 fail:
8567 return NULL;
8568 }
8569
8570
8571 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
8572 PyObject *resultobj;
8573 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8574 bool result;
8575 PyObject * obj0 = 0 ;
8576 char *kwnames[] = {
8577 (char *) "self", NULL
8578 };
8579
8580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8583 {
8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
8585 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8586
8587 wxPyEndAllowThreads(__tstate);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 {
8591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8592 }
8593 return resultobj;
8594 fail:
8595 return NULL;
8596 }
8597
8598
8599 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) {
8600 PyObject *resultobj;
8601 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8602 bool result;
8603 PyObject * obj0 = 0 ;
8604 char *kwnames[] = {
8605 (char *) "self", NULL
8606 };
8607
8608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8614
8615 wxPyEndAllowThreads(__tstate);
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 {
8619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8620 }
8621 return resultobj;
8622 fail:
8623 return NULL;
8624 }
8625
8626
8627 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) {
8628 PyObject *resultobj;
8629 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8630 bool result;
8631 PyObject * obj0 = 0 ;
8632 char *kwnames[] = {
8633 (char *) "self", NULL
8634 };
8635
8636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8639 {
8640 PyThreadState* __tstate = wxPyBeginAllowThreads();
8641 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8642
8643 wxPyEndAllowThreads(__tstate);
8644 if (PyErr_Occurred()) SWIG_fail;
8645 }
8646 {
8647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8648 }
8649 return resultobj;
8650 fail:
8651 return NULL;
8652 }
8653
8654
8655 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj;
8657 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8658 long *arg2 = (long *) 0 ;
8659 long *arg3 = (long *) 0 ;
8660 long temp2 ;
8661 int res2 = 0 ;
8662 long temp3 ;
8663 int res3 = 0 ;
8664 PyObject * obj0 = 0 ;
8665 char *kwnames[] = {
8666 (char *) "self", NULL
8667 };
8668
8669 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8670 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8677
8678 wxPyEndAllowThreads(__tstate);
8679 if (PyErr_Occurred()) SWIG_fail;
8680 }
8681 Py_INCREF(Py_None); resultobj = Py_None;
8682 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8683 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
8684 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8685 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
8686 return resultobj;
8687 fail:
8688 return NULL;
8689 }
8690
8691
8692 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8693 PyObject *resultobj;
8694 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8695 wxString result;
8696 PyObject * obj0 = 0 ;
8697 char *kwnames[] = {
8698 (char *) "self", NULL
8699 };
8700
8701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8707
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 {
8712 #if wxUSE_UNICODE
8713 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8714 #else
8715 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8716 #endif
8717 }
8718 return resultobj;
8719 fail:
8720 return NULL;
8721 }
8722
8723
8724 static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
8725 PyObject *resultobj;
8726 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8727 PyObject * obj0 = 0 ;
8728 char *kwnames[] = {
8729 (char *) "self", NULL
8730 };
8731
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8735 {
8736 PyThreadState* __tstate = wxPyBeginAllowThreads();
8737 (arg1)->Clear();
8738
8739 wxPyEndAllowThreads(__tstate);
8740 if (PyErr_Occurred()) SWIG_fail;
8741 }
8742 Py_INCREF(Py_None); resultobj = Py_None;
8743 return resultobj;
8744 fail:
8745 return NULL;
8746 }
8747
8748
8749 static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
8750 PyObject *resultobj;
8751 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8752 long arg2 ;
8753 long arg3 ;
8754 wxString *arg4 = 0 ;
8755 bool temp4 = False ;
8756 PyObject * obj0 = 0 ;
8757 PyObject * obj1 = 0 ;
8758 PyObject * obj2 = 0 ;
8759 PyObject * obj3 = 0 ;
8760 char *kwnames[] = {
8761 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8762 };
8763
8764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8767 arg2 = (long)SWIG_As_long(obj1);
8768 if (PyErr_Occurred()) SWIG_fail;
8769 arg3 = (long)SWIG_As_long(obj2);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 {
8772 arg4 = wxString_in_helper(obj3);
8773 if (arg4 == NULL) SWIG_fail;
8774 temp4 = True;
8775 }
8776 {
8777 PyThreadState* __tstate = wxPyBeginAllowThreads();
8778 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8779
8780 wxPyEndAllowThreads(__tstate);
8781 if (PyErr_Occurred()) SWIG_fail;
8782 }
8783 Py_INCREF(Py_None); resultobj = Py_None;
8784 {
8785 if (temp4)
8786 delete arg4;
8787 }
8788 return resultobj;
8789 fail:
8790 {
8791 if (temp4)
8792 delete arg4;
8793 }
8794 return NULL;
8795 }
8796
8797
8798 static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj;
8800 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8801 long arg2 ;
8802 long arg3 ;
8803 PyObject * obj0 = 0 ;
8804 PyObject * obj1 = 0 ;
8805 PyObject * obj2 = 0 ;
8806 char *kwnames[] = {
8807 (char *) "self",(char *) "from",(char *) "to", NULL
8808 };
8809
8810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8813 arg2 = (long)SWIG_As_long(obj1);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 arg3 = (long)SWIG_As_long(obj2);
8816 if (PyErr_Occurred()) SWIG_fail;
8817 {
8818 PyThreadState* __tstate = wxPyBeginAllowThreads();
8819 (arg1)->Remove(arg2,arg3);
8820
8821 wxPyEndAllowThreads(__tstate);
8822 if (PyErr_Occurred()) SWIG_fail;
8823 }
8824 Py_INCREF(Py_None); resultobj = Py_None;
8825 return resultobj;
8826 fail:
8827 return NULL;
8828 }
8829
8830
8831 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
8832 PyObject *resultobj;
8833 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8834 wxString *arg2 = 0 ;
8835 bool result;
8836 bool temp2 = False ;
8837 PyObject * obj0 = 0 ;
8838 PyObject * obj1 = 0 ;
8839 char *kwnames[] = {
8840 (char *) "self",(char *) "file", NULL
8841 };
8842
8843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8846 {
8847 arg2 = wxString_in_helper(obj1);
8848 if (arg2 == NULL) SWIG_fail;
8849 temp2 = True;
8850 }
8851 {
8852 PyThreadState* __tstate = wxPyBeginAllowThreads();
8853 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8854
8855 wxPyEndAllowThreads(__tstate);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 {
8859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8860 }
8861 {
8862 if (temp2)
8863 delete arg2;
8864 }
8865 return resultobj;
8866 fail:
8867 {
8868 if (temp2)
8869 delete arg2;
8870 }
8871 return NULL;
8872 }
8873
8874
8875 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
8876 PyObject *resultobj;
8877 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8878 wxString const &arg2_defvalue = wxPyEmptyString ;
8879 wxString *arg2 = (wxString *) &arg2_defvalue ;
8880 bool result;
8881 bool temp2 = False ;
8882 PyObject * obj0 = 0 ;
8883 PyObject * obj1 = 0 ;
8884 char *kwnames[] = {
8885 (char *) "self",(char *) "file", NULL
8886 };
8887
8888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8891 if (obj1) {
8892 {
8893 arg2 = wxString_in_helper(obj1);
8894 if (arg2 == NULL) SWIG_fail;
8895 temp2 = True;
8896 }
8897 }
8898 {
8899 PyThreadState* __tstate = wxPyBeginAllowThreads();
8900 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8901
8902 wxPyEndAllowThreads(__tstate);
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
8905 {
8906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8907 }
8908 {
8909 if (temp2)
8910 delete arg2;
8911 }
8912 return resultobj;
8913 fail:
8914 {
8915 if (temp2)
8916 delete arg2;
8917 }
8918 return NULL;
8919 }
8920
8921
8922 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) {
8923 PyObject *resultobj;
8924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8925 PyObject * obj0 = 0 ;
8926 char *kwnames[] = {
8927 (char *) "self", NULL
8928 };
8929
8930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8933 {
8934 PyThreadState* __tstate = wxPyBeginAllowThreads();
8935 (arg1)->MarkDirty();
8936
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 Py_INCREF(Py_None); resultobj = Py_None;
8941 return resultobj;
8942 fail:
8943 return NULL;
8944 }
8945
8946
8947 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) {
8948 PyObject *resultobj;
8949 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8950 PyObject * obj0 = 0 ;
8951 char *kwnames[] = {
8952 (char *) "self", NULL
8953 };
8954
8955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8958 {
8959 PyThreadState* __tstate = wxPyBeginAllowThreads();
8960 (arg1)->DiscardEdits();
8961
8962 wxPyEndAllowThreads(__tstate);
8963 if (PyErr_Occurred()) SWIG_fail;
8964 }
8965 Py_INCREF(Py_None); resultobj = Py_None;
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) {
8973 PyObject *resultobj;
8974 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8975 unsigned long arg2 ;
8976 PyObject * obj0 = 0 ;
8977 PyObject * obj1 = 0 ;
8978 char *kwnames[] = {
8979 (char *) "self",(char *) "len", NULL
8980 };
8981
8982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8985 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
8986 if (PyErr_Occurred()) SWIG_fail;
8987 {
8988 PyThreadState* __tstate = wxPyBeginAllowThreads();
8989 (arg1)->SetMaxLength(arg2);
8990
8991 wxPyEndAllowThreads(__tstate);
8992 if (PyErr_Occurred()) SWIG_fail;
8993 }
8994 Py_INCREF(Py_None); resultobj = Py_None;
8995 return resultobj;
8996 fail:
8997 return NULL;
8998 }
8999
9000
9001 static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) {
9002 PyObject *resultobj;
9003 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9004 wxString *arg2 = 0 ;
9005 bool temp2 = False ;
9006 PyObject * obj0 = 0 ;
9007 PyObject * obj1 = 0 ;
9008 char *kwnames[] = {
9009 (char *) "self",(char *) "text", NULL
9010 };
9011
9012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
9013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9015 {
9016 arg2 = wxString_in_helper(obj1);
9017 if (arg2 == NULL) SWIG_fail;
9018 temp2 = True;
9019 }
9020 {
9021 PyThreadState* __tstate = wxPyBeginAllowThreads();
9022 (arg1)->WriteText((wxString const &)*arg2);
9023
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 Py_INCREF(Py_None); resultobj = Py_None;
9028 {
9029 if (temp2)
9030 delete arg2;
9031 }
9032 return resultobj;
9033 fail:
9034 {
9035 if (temp2)
9036 delete arg2;
9037 }
9038 return NULL;
9039 }
9040
9041
9042 static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) {
9043 PyObject *resultobj;
9044 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9045 wxString *arg2 = 0 ;
9046 bool temp2 = False ;
9047 PyObject * obj0 = 0 ;
9048 PyObject * obj1 = 0 ;
9049 char *kwnames[] = {
9050 (char *) "self",(char *) "text", NULL
9051 };
9052
9053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
9054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9056 {
9057 arg2 = wxString_in_helper(obj1);
9058 if (arg2 == NULL) SWIG_fail;
9059 temp2 = True;
9060 }
9061 {
9062 PyThreadState* __tstate = wxPyBeginAllowThreads();
9063 (arg1)->AppendText((wxString const &)*arg2);
9064
9065 wxPyEndAllowThreads(__tstate);
9066 if (PyErr_Occurred()) SWIG_fail;
9067 }
9068 Py_INCREF(Py_None); resultobj = Py_None;
9069 {
9070 if (temp2)
9071 delete arg2;
9072 }
9073 return resultobj;
9074 fail:
9075 {
9076 if (temp2)
9077 delete arg2;
9078 }
9079 return NULL;
9080 }
9081
9082
9083 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) {
9084 PyObject *resultobj;
9085 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9086 wxKeyEvent *arg2 = 0 ;
9087 bool result;
9088 PyObject * obj0 = 0 ;
9089 PyObject * obj1 = 0 ;
9090 char *kwnames[] = {
9091 (char *) "self",(char *) "event", NULL
9092 };
9093
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
9095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9097 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
9098 SWIG_POINTER_EXCEPTION | 0)) == -1)
9099 SWIG_fail;
9100 if (arg2 == NULL) {
9101 PyErr_SetString(PyExc_TypeError,"null reference");
9102 SWIG_fail;
9103 }
9104 {
9105 PyThreadState* __tstate = wxPyBeginAllowThreads();
9106 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
9107
9108 wxPyEndAllowThreads(__tstate);
9109 if (PyErr_Occurred()) SWIG_fail;
9110 }
9111 {
9112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9113 }
9114 return resultobj;
9115 fail:
9116 return NULL;
9117 }
9118
9119
9120 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9121 PyObject *resultobj;
9122 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9123 long arg2 ;
9124 long arg3 ;
9125 wxTextAttr *arg4 = 0 ;
9126 bool result;
9127 PyObject * obj0 = 0 ;
9128 PyObject * obj1 = 0 ;
9129 PyObject * obj2 = 0 ;
9130 PyObject * obj3 = 0 ;
9131 char *kwnames[] = {
9132 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
9133 };
9134
9135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9138 arg2 = (long)SWIG_As_long(obj1);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 arg3 = (long)SWIG_As_long(obj2);
9141 if (PyErr_Occurred()) SWIG_fail;
9142 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
9143 SWIG_POINTER_EXCEPTION | 0)) == -1)
9144 SWIG_fail;
9145 if (arg4 == NULL) {
9146 PyErr_SetString(PyExc_TypeError,"null reference");
9147 SWIG_fail;
9148 }
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
9152
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 {
9157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9158 }
9159 return resultobj;
9160 fail:
9161 return NULL;
9162 }
9163
9164
9165 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9166 PyObject *resultobj;
9167 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9168 long arg2 ;
9169 wxTextAttr *arg3 = 0 ;
9170 bool result;
9171 PyObject * obj0 = 0 ;
9172 PyObject * obj1 = 0 ;
9173 PyObject * obj2 = 0 ;
9174 char *kwnames[] = {
9175 (char *) "self",(char *) "position",(char *) "style", NULL
9176 };
9177
9178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9181 arg2 = (long)SWIG_As_long(obj1);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9184 SWIG_POINTER_EXCEPTION | 0)) == -1)
9185 SWIG_fail;
9186 if (arg3 == NULL) {
9187 PyErr_SetString(PyExc_TypeError,"null reference");
9188 SWIG_fail;
9189 }
9190 {
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9193
9194 wxPyEndAllowThreads(__tstate);
9195 if (PyErr_Occurred()) SWIG_fail;
9196 }
9197 {
9198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9199 }
9200 return resultobj;
9201 fail:
9202 return NULL;
9203 }
9204
9205
9206 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9207 PyObject *resultobj;
9208 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9209 wxTextAttr *arg2 = 0 ;
9210 bool result;
9211 PyObject * obj0 = 0 ;
9212 PyObject * obj1 = 0 ;
9213 char *kwnames[] = {
9214 (char *) "self",(char *) "style", NULL
9215 };
9216
9217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9221 SWIG_POINTER_EXCEPTION | 0)) == -1)
9222 SWIG_fail;
9223 if (arg2 == NULL) {
9224 PyErr_SetString(PyExc_TypeError,"null reference");
9225 SWIG_fail;
9226 }
9227 {
9228 PyThreadState* __tstate = wxPyBeginAllowThreads();
9229 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9230
9231 wxPyEndAllowThreads(__tstate);
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 {
9235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9236 }
9237 return resultobj;
9238 fail:
9239 return NULL;
9240 }
9241
9242
9243 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9244 PyObject *resultobj;
9245 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9246 wxTextAttr *result;
9247 PyObject * obj0 = 0 ;
9248 char *kwnames[] = {
9249 (char *) "self", NULL
9250 };
9251
9252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9255 {
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 {
9258 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9259 result = (wxTextAttr *) &_result_ref;
9260 }
9261
9262 wxPyEndAllowThreads(__tstate);
9263 if (PyErr_Occurred()) SWIG_fail;
9264 }
9265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9266 return resultobj;
9267 fail:
9268 return NULL;
9269 }
9270
9271
9272 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9273 PyObject *resultobj;
9274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9275 long arg2 ;
9276 long arg3 ;
9277 long result;
9278 PyObject * obj0 = 0 ;
9279 PyObject * obj1 = 0 ;
9280 PyObject * obj2 = 0 ;
9281 char *kwnames[] = {
9282 (char *) "self",(char *) "x",(char *) "y", NULL
9283 };
9284
9285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9288 arg2 = (long)SWIG_As_long(obj1);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 arg3 = (long)SWIG_As_long(obj2);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 {
9293 PyThreadState* __tstate = wxPyBeginAllowThreads();
9294 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9295
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 resultobj = SWIG_From_long((long)result);
9300 return resultobj;
9301 fail:
9302 return NULL;
9303 }
9304
9305
9306 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) {
9307 PyObject *resultobj;
9308 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9309 long arg2 ;
9310 long *arg3 = (long *) 0 ;
9311 long *arg4 = (long *) 0 ;
9312 long temp3 ;
9313 int res3 = 0 ;
9314 long temp4 ;
9315 int res4 = 0 ;
9316 PyObject * obj0 = 0 ;
9317 PyObject * obj1 = 0 ;
9318 char *kwnames[] = {
9319 (char *) "self",(char *) "pos", NULL
9320 };
9321
9322 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9323 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9327 arg2 = (long)SWIG_As_long(obj1);
9328 if (PyErr_Occurred()) SWIG_fail;
9329 {
9330 PyThreadState* __tstate = wxPyBeginAllowThreads();
9331 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9332
9333 wxPyEndAllowThreads(__tstate);
9334 if (PyErr_Occurred()) SWIG_fail;
9335 }
9336 Py_INCREF(Py_None); resultobj = Py_None;
9337 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9338 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9339 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9340 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9341 return resultobj;
9342 fail:
9343 return NULL;
9344 }
9345
9346
9347 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9348 PyObject *resultobj;
9349 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9350 long arg2 ;
9351 PyObject * obj0 = 0 ;
9352 PyObject * obj1 = 0 ;
9353 char *kwnames[] = {
9354 (char *) "self",(char *) "pos", NULL
9355 };
9356
9357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9360 arg2 = (long)SWIG_As_long(obj1);
9361 if (PyErr_Occurred()) SWIG_fail;
9362 {
9363 PyThreadState* __tstate = wxPyBeginAllowThreads();
9364 (arg1)->ShowPosition(arg2);
9365
9366 wxPyEndAllowThreads(__tstate);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 }
9369 Py_INCREF(Py_None); resultobj = Py_None;
9370 return resultobj;
9371 fail:
9372 return NULL;
9373 }
9374
9375
9376 static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
9377 PyObject *resultobj;
9378 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9379 wxPoint *arg2 = 0 ;
9380 long *arg3 = (long *) 0 ;
9381 long *arg4 = (long *) 0 ;
9382 int result;
9383 wxPoint temp2 ;
9384 long temp3 ;
9385 int res3 = 0 ;
9386 long temp4 ;
9387 int res4 = 0 ;
9388 PyObject * obj0 = 0 ;
9389 PyObject * obj1 = 0 ;
9390 char *kwnames[] = {
9391 (char *) "self",(char *) "pt", NULL
9392 };
9393
9394 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9395 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9399 {
9400 arg2 = &temp2;
9401 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9402 }
9403 {
9404 PyThreadState* __tstate = wxPyBeginAllowThreads();
9405 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9406
9407 wxPyEndAllowThreads(__tstate);
9408 if (PyErr_Occurred()) SWIG_fail;
9409 }
9410 resultobj = SWIG_From_int((int)result);
9411 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9412 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9413 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9414 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9415 return resultobj;
9416 fail:
9417 return NULL;
9418 }
9419
9420
9421 static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) {
9422 PyObject *resultobj;
9423 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9424 wxPoint *arg2 = 0 ;
9425 long *arg3 = (long *) 0 ;
9426 int result;
9427 wxPoint temp2 ;
9428 long temp3 ;
9429 int res3 = 0 ;
9430 PyObject * obj0 = 0 ;
9431 PyObject * obj1 = 0 ;
9432 char *kwnames[] = {
9433 (char *) "self",(char *) "pt", NULL
9434 };
9435
9436 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail;
9438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9440 {
9441 arg2 = &temp2;
9442 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9443 }
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
9447
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 resultobj = SWIG_From_int((int)result);
9452 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9453 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9454 return resultobj;
9455 fail:
9456 return NULL;
9457 }
9458
9459
9460 static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
9461 PyObject *resultobj;
9462 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9463 PyObject * obj0 = 0 ;
9464 char *kwnames[] = {
9465 (char *) "self", NULL
9466 };
9467
9468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 (arg1)->Copy();
9474
9475 wxPyEndAllowThreads(__tstate);
9476 if (PyErr_Occurred()) SWIG_fail;
9477 }
9478 Py_INCREF(Py_None); resultobj = Py_None;
9479 return resultobj;
9480 fail:
9481 return NULL;
9482 }
9483
9484
9485 static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
9486 PyObject *resultobj;
9487 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9488 PyObject * obj0 = 0 ;
9489 char *kwnames[] = {
9490 (char *) "self", NULL
9491 };
9492
9493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9496 {
9497 PyThreadState* __tstate = wxPyBeginAllowThreads();
9498 (arg1)->Cut();
9499
9500 wxPyEndAllowThreads(__tstate);
9501 if (PyErr_Occurred()) SWIG_fail;
9502 }
9503 Py_INCREF(Py_None); resultobj = Py_None;
9504 return resultobj;
9505 fail:
9506 return NULL;
9507 }
9508
9509
9510 static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
9511 PyObject *resultobj;
9512 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9513 PyObject * obj0 = 0 ;
9514 char *kwnames[] = {
9515 (char *) "self", NULL
9516 };
9517
9518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9521 {
9522 PyThreadState* __tstate = wxPyBeginAllowThreads();
9523 (arg1)->Paste();
9524
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 Py_INCREF(Py_None); resultobj = Py_None;
9529 return resultobj;
9530 fail:
9531 return NULL;
9532 }
9533
9534
9535 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
9536 PyObject *resultobj;
9537 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9538 bool result;
9539 PyObject * obj0 = 0 ;
9540 char *kwnames[] = {
9541 (char *) "self", NULL
9542 };
9543
9544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9547 {
9548 PyThreadState* __tstate = wxPyBeginAllowThreads();
9549 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9550
9551 wxPyEndAllowThreads(__tstate);
9552 if (PyErr_Occurred()) SWIG_fail;
9553 }
9554 {
9555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9556 }
9557 return resultobj;
9558 fail:
9559 return NULL;
9560 }
9561
9562
9563 static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
9564 PyObject *resultobj;
9565 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9566 bool result;
9567 PyObject * obj0 = 0 ;
9568 char *kwnames[] = {
9569 (char *) "self", NULL
9570 };
9571
9572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9578
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 {
9583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9584 }
9585 return resultobj;
9586 fail:
9587 return NULL;
9588 }
9589
9590
9591 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj;
9593 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9594 bool result;
9595 PyObject * obj0 = 0 ;
9596 char *kwnames[] = {
9597 (char *) "self", NULL
9598 };
9599
9600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9603 {
9604 PyThreadState* __tstate = wxPyBeginAllowThreads();
9605 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9606
9607 wxPyEndAllowThreads(__tstate);
9608 if (PyErr_Occurred()) SWIG_fail;
9609 }
9610 {
9611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9612 }
9613 return resultobj;
9614 fail:
9615 return NULL;
9616 }
9617
9618
9619 static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
9620 PyObject *resultobj;
9621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9622 PyObject * obj0 = 0 ;
9623 char *kwnames[] = {
9624 (char *) "self", NULL
9625 };
9626
9627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9630 {
9631 PyThreadState* __tstate = wxPyBeginAllowThreads();
9632 (arg1)->Undo();
9633
9634 wxPyEndAllowThreads(__tstate);
9635 if (PyErr_Occurred()) SWIG_fail;
9636 }
9637 Py_INCREF(Py_None); resultobj = Py_None;
9638 return resultobj;
9639 fail:
9640 return NULL;
9641 }
9642
9643
9644 static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
9645 PyObject *resultobj;
9646 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9647 PyObject * obj0 = 0 ;
9648 char *kwnames[] = {
9649 (char *) "self", NULL
9650 };
9651
9652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9655 {
9656 PyThreadState* __tstate = wxPyBeginAllowThreads();
9657 (arg1)->Redo();
9658
9659 wxPyEndAllowThreads(__tstate);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 Py_INCREF(Py_None); resultobj = Py_None;
9663 return resultobj;
9664 fail:
9665 return NULL;
9666 }
9667
9668
9669 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
9670 PyObject *resultobj;
9671 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9672 bool result;
9673 PyObject * obj0 = 0 ;
9674 char *kwnames[] = {
9675 (char *) "self", NULL
9676 };
9677
9678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9681 {
9682 PyThreadState* __tstate = wxPyBeginAllowThreads();
9683 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9684
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 {
9689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9690 }
9691 return resultobj;
9692 fail:
9693 return NULL;
9694 }
9695
9696
9697 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
9698 PyObject *resultobj;
9699 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9700 bool result;
9701 PyObject * obj0 = 0 ;
9702 char *kwnames[] = {
9703 (char *) "self", NULL
9704 };
9705
9706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9712
9713 wxPyEndAllowThreads(__tstate);
9714 if (PyErr_Occurred()) SWIG_fail;
9715 }
9716 {
9717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9718 }
9719 return resultobj;
9720 fail:
9721 return NULL;
9722 }
9723
9724
9725 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9726 PyObject *resultobj;
9727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9728 long arg2 ;
9729 PyObject * obj0 = 0 ;
9730 PyObject * obj1 = 0 ;
9731 char *kwnames[] = {
9732 (char *) "self",(char *) "pos", NULL
9733 };
9734
9735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9738 arg2 = (long)SWIG_As_long(obj1);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
9742 (arg1)->SetInsertionPoint(arg2);
9743
9744 wxPyEndAllowThreads(__tstate);
9745 if (PyErr_Occurred()) SWIG_fail;
9746 }
9747 Py_INCREF(Py_None); resultobj = Py_None;
9748 return resultobj;
9749 fail:
9750 return NULL;
9751 }
9752
9753
9754 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
9755 PyObject *resultobj;
9756 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9757 PyObject * obj0 = 0 ;
9758 char *kwnames[] = {
9759 (char *) "self", NULL
9760 };
9761
9762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9765 {
9766 PyThreadState* __tstate = wxPyBeginAllowThreads();
9767 (arg1)->SetInsertionPointEnd();
9768
9769 wxPyEndAllowThreads(__tstate);
9770 if (PyErr_Occurred()) SWIG_fail;
9771 }
9772 Py_INCREF(Py_None); resultobj = Py_None;
9773 return resultobj;
9774 fail:
9775 return NULL;
9776 }
9777
9778
9779 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9780 PyObject *resultobj;
9781 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9782 long result;
9783 PyObject * obj0 = 0 ;
9784 char *kwnames[] = {
9785 (char *) "self", NULL
9786 };
9787
9788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9791 {
9792 PyThreadState* __tstate = wxPyBeginAllowThreads();
9793 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9794
9795 wxPyEndAllowThreads(__tstate);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 }
9798 resultobj = SWIG_From_long((long)result);
9799 return resultobj;
9800 fail:
9801 return NULL;
9802 }
9803
9804
9805 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9806 PyObject *resultobj;
9807 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9808 long result;
9809 PyObject * obj0 = 0 ;
9810 char *kwnames[] = {
9811 (char *) "self", NULL
9812 };
9813
9814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9817 {
9818 PyThreadState* __tstate = wxPyBeginAllowThreads();
9819 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9820
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 resultobj = SWIG_From_long((long)result);
9825 return resultobj;
9826 fail:
9827 return NULL;
9828 }
9829
9830
9831 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
9832 PyObject *resultobj;
9833 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9834 long arg2 ;
9835 long arg3 ;
9836 PyObject * obj0 = 0 ;
9837 PyObject * obj1 = 0 ;
9838 PyObject * obj2 = 0 ;
9839 char *kwnames[] = {
9840 (char *) "self",(char *) "from",(char *) "to", NULL
9841 };
9842
9843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9846 arg2 = (long)SWIG_As_long(obj1);
9847 if (PyErr_Occurred()) SWIG_fail;
9848 arg3 = (long)SWIG_As_long(obj2);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 {
9851 PyThreadState* __tstate = wxPyBeginAllowThreads();
9852 (arg1)->SetSelection(arg2,arg3);
9853
9854 wxPyEndAllowThreads(__tstate);
9855 if (PyErr_Occurred()) SWIG_fail;
9856 }
9857 Py_INCREF(Py_None); resultobj = Py_None;
9858 return resultobj;
9859 fail:
9860 return NULL;
9861 }
9862
9863
9864 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
9865 PyObject *resultobj;
9866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9867 PyObject * obj0 = 0 ;
9868 char *kwnames[] = {
9869 (char *) "self", NULL
9870 };
9871
9872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 (arg1)->SelectAll();
9878
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 Py_INCREF(Py_None); resultobj = Py_None;
9883 return resultobj;
9884 fail:
9885 return NULL;
9886 }
9887
9888
9889 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
9890 PyObject *resultobj;
9891 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9892 bool arg2 ;
9893 PyObject * obj0 = 0 ;
9894 PyObject * obj1 = 0 ;
9895 char *kwnames[] = {
9896 (char *) "self",(char *) "editable", NULL
9897 };
9898
9899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9902 arg2 = (bool)SWIG_As_bool(obj1);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 (arg1)->SetEditable(arg2);
9907
9908 wxPyEndAllowThreads(__tstate);
9909 if (PyErr_Occurred()) SWIG_fail;
9910 }
9911 Py_INCREF(Py_None); resultobj = Py_None;
9912 return resultobj;
9913 fail:
9914 return NULL;
9915 }
9916
9917
9918 static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj;
9920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9921 wxString *arg2 = 0 ;
9922 bool temp2 = False ;
9923 PyObject * obj0 = 0 ;
9924 PyObject * obj1 = 0 ;
9925 char *kwnames[] = {
9926 (char *) "self",(char *) "text", NULL
9927 };
9928
9929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9932 {
9933 arg2 = wxString_in_helper(obj1);
9934 if (arg2 == NULL) SWIG_fail;
9935 temp2 = True;
9936 }
9937 {
9938 PyThreadState* __tstate = wxPyBeginAllowThreads();
9939 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9940
9941 wxPyEndAllowThreads(__tstate);
9942 if (PyErr_Occurred()) SWIG_fail;
9943 }
9944 Py_INCREF(Py_None); resultobj = Py_None;
9945 {
9946 if (temp2)
9947 delete arg2;
9948 }
9949 return resultobj;
9950 fail:
9951 {
9952 if (temp2)
9953 delete arg2;
9954 }
9955 return NULL;
9956 }
9957
9958
9959 static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
9960 PyObject *resultobj;
9961 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9962 long arg2 ;
9963 long arg3 ;
9964 wxString result;
9965 PyObject * obj0 = 0 ;
9966 PyObject * obj1 = 0 ;
9967 PyObject * obj2 = 0 ;
9968 char *kwnames[] = {
9969 (char *) "self",(char *) "from",(char *) "to", NULL
9970 };
9971
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9975 arg2 = (long)SWIG_As_long(obj1);
9976 if (PyErr_Occurred()) SWIG_fail;
9977 arg3 = (long)SWIG_As_long(obj2);
9978 if (PyErr_Occurred()) SWIG_fail;
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9982
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 {
9987 #if wxUSE_UNICODE
9988 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9989 #else
9990 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9991 #endif
9992 }
9993 return resultobj;
9994 fail:
9995 return NULL;
9996 }
9997
9998
9999 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10000 PyObject *resultobj;
10001 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10002 wxVisualAttributes result;
10003 PyObject * obj0 = 0 ;
10004 char *kwnames[] = {
10005 (char *) "variant", NULL
10006 };
10007
10008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10009 if (obj0) {
10010 arg1 = (int)SWIG_As_int(obj0);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 {
10014 if (!wxPyCheckForApp()) SWIG_fail;
10015 PyThreadState* __tstate = wxPyBeginAllowThreads();
10016 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
10017
10018 wxPyEndAllowThreads(__tstate);
10019 if (PyErr_Occurred()) SWIG_fail;
10020 }
10021 {
10022 wxVisualAttributes * resultptr;
10023 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10024 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10025 }
10026 return resultobj;
10027 fail:
10028 return NULL;
10029 }
10030
10031
10032 static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) {
10033 PyObject *obj;
10034 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10035 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
10036 Py_INCREF(obj);
10037 return Py_BuildValue((char *)"");
10038 }
10039 static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10040 PyObject *resultobj;
10041 int arg1 ;
10042 wxMouseEvent *arg2 = 0 ;
10043 long arg3 ;
10044 long arg4 ;
10045 wxTextUrlEvent *result;
10046 PyObject * obj0 = 0 ;
10047 PyObject * obj1 = 0 ;
10048 PyObject * obj2 = 0 ;
10049 PyObject * obj3 = 0 ;
10050 char *kwnames[] = {
10051 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
10052 };
10053
10054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10055 arg1 = (int)SWIG_As_int(obj0);
10056 if (PyErr_Occurred()) SWIG_fail;
10057 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
10058 SWIG_POINTER_EXCEPTION | 0)) == -1)
10059 SWIG_fail;
10060 if (arg2 == NULL) {
10061 PyErr_SetString(PyExc_TypeError,"null reference");
10062 SWIG_fail;
10063 }
10064 arg3 = (long)SWIG_As_long(obj2);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 arg4 = (long)SWIG_As_long(obj3);
10067 if (PyErr_Occurred()) SWIG_fail;
10068 {
10069 PyThreadState* __tstate = wxPyBeginAllowThreads();
10070 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
10071
10072 wxPyEndAllowThreads(__tstate);
10073 if (PyErr_Occurred()) SWIG_fail;
10074 }
10075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
10076 return resultobj;
10077 fail:
10078 return NULL;
10079 }
10080
10081
10082 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj;
10084 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10085 wxMouseEvent *result;
10086 PyObject * obj0 = 0 ;
10087 char *kwnames[] = {
10088 (char *) "self", NULL
10089 };
10090
10091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",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 {
10097 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
10098 result = (wxMouseEvent *) &_result_ref;
10099 }
10100
10101 wxPyEndAllowThreads(__tstate);
10102 if (PyErr_Occurred()) SWIG_fail;
10103 }
10104 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
10105 return resultobj;
10106 fail:
10107 return NULL;
10108 }
10109
10110
10111 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) {
10112 PyObject *resultobj;
10113 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10114 long result;
10115 PyObject * obj0 = 0 ;
10116 char *kwnames[] = {
10117 (char *) "self", NULL
10118 };
10119
10120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
10121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10123 {
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
10125 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
10126
10127 wxPyEndAllowThreads(__tstate);
10128 if (PyErr_Occurred()) SWIG_fail;
10129 }
10130 resultobj = SWIG_From_long((long)result);
10131 return resultobj;
10132 fail:
10133 return NULL;
10134 }
10135
10136
10137 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) {
10138 PyObject *resultobj;
10139 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10140 long result;
10141 PyObject * obj0 = 0 ;
10142 char *kwnames[] = {
10143 (char *) "self", NULL
10144 };
10145
10146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
10147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10149 {
10150 PyThreadState* __tstate = wxPyBeginAllowThreads();
10151 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
10152
10153 wxPyEndAllowThreads(__tstate);
10154 if (PyErr_Occurred()) SWIG_fail;
10155 }
10156 resultobj = SWIG_From_long((long)result);
10157 return resultobj;
10158 fail:
10159 return NULL;
10160 }
10161
10162
10163 static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) {
10164 PyObject *obj;
10165 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10166 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10167 Py_INCREF(obj);
10168 return Py_BuildValue((char *)"");
10169 }
10170 static int _wrap_ScrollBarNameStr_set(PyObject *) {
10171 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10172 return 1;
10173 }
10174
10175
10176 static PyObject *_wrap_ScrollBarNameStr_get() {
10177 PyObject *pyobj;
10178
10179 {
10180 #if wxUSE_UNICODE
10181 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10182 #else
10183 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10184 #endif
10185 }
10186 return pyobj;
10187 }
10188
10189
10190 static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10191 PyObject *resultobj;
10192 wxWindow *arg1 = (wxWindow *) 0 ;
10193 int arg2 = (int) -1 ;
10194 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10195 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10196 wxSize const &arg4_defvalue = wxDefaultSize ;
10197 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10198 long arg5 = (long) wxSB_HORIZONTAL ;
10199 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10200 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10201 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10202 wxString *arg7 = (wxString *) &arg7_defvalue ;
10203 wxScrollBar *result;
10204 wxPoint temp3 ;
10205 wxSize temp4 ;
10206 bool temp7 = False ;
10207 PyObject * obj0 = 0 ;
10208 PyObject * obj1 = 0 ;
10209 PyObject * obj2 = 0 ;
10210 PyObject * obj3 = 0 ;
10211 PyObject * obj4 = 0 ;
10212 PyObject * obj5 = 0 ;
10213 PyObject * obj6 = 0 ;
10214 char *kwnames[] = {
10215 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10216 };
10217
10218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10221 if (obj1) {
10222 arg2 = (int)SWIG_As_int(obj1);
10223 if (PyErr_Occurred()) SWIG_fail;
10224 }
10225 if (obj2) {
10226 {
10227 arg3 = &temp3;
10228 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10229 }
10230 }
10231 if (obj3) {
10232 {
10233 arg4 = &temp4;
10234 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10235 }
10236 }
10237 if (obj4) {
10238 arg5 = (long)SWIG_As_long(obj4);
10239 if (PyErr_Occurred()) SWIG_fail;
10240 }
10241 if (obj5) {
10242 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10243 SWIG_POINTER_EXCEPTION | 0)) == -1)
10244 SWIG_fail;
10245 if (arg6 == NULL) {
10246 PyErr_SetString(PyExc_TypeError,"null reference");
10247 SWIG_fail;
10248 }
10249 }
10250 if (obj6) {
10251 {
10252 arg7 = wxString_in_helper(obj6);
10253 if (arg7 == NULL) SWIG_fail;
10254 temp7 = True;
10255 }
10256 }
10257 {
10258 if (!wxPyCheckForApp()) SWIG_fail;
10259 PyThreadState* __tstate = wxPyBeginAllowThreads();
10260 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10261
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
10265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10266 {
10267 if (temp7)
10268 delete arg7;
10269 }
10270 return resultobj;
10271 fail:
10272 {
10273 if (temp7)
10274 delete arg7;
10275 }
10276 return NULL;
10277 }
10278
10279
10280 static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10281 PyObject *resultobj;
10282 wxScrollBar *result;
10283 char *kwnames[] = {
10284 NULL
10285 };
10286
10287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10288 {
10289 if (!wxPyCheckForApp()) SWIG_fail;
10290 PyThreadState* __tstate = wxPyBeginAllowThreads();
10291 result = (wxScrollBar *)new wxScrollBar();
10292
10293 wxPyEndAllowThreads(__tstate);
10294 if (PyErr_Occurred()) SWIG_fail;
10295 }
10296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10297 return resultobj;
10298 fail:
10299 return NULL;
10300 }
10301
10302
10303 static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10304 PyObject *resultobj;
10305 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10306 wxWindow *arg2 = (wxWindow *) 0 ;
10307 int arg3 = (int) -1 ;
10308 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10309 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10310 wxSize const &arg5_defvalue = wxDefaultSize ;
10311 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10312 long arg6 = (long) wxSB_HORIZONTAL ;
10313 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10314 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10315 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10316 wxString *arg8 = (wxString *) &arg8_defvalue ;
10317 bool result;
10318 wxPoint temp4 ;
10319 wxSize temp5 ;
10320 bool temp8 = False ;
10321 PyObject * obj0 = 0 ;
10322 PyObject * obj1 = 0 ;
10323 PyObject * obj2 = 0 ;
10324 PyObject * obj3 = 0 ;
10325 PyObject * obj4 = 0 ;
10326 PyObject * obj5 = 0 ;
10327 PyObject * obj6 = 0 ;
10328 PyObject * obj7 = 0 ;
10329 char *kwnames[] = {
10330 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10331 };
10332
10333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10336 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10338 if (obj2) {
10339 arg3 = (int)SWIG_As_int(obj2);
10340 if (PyErr_Occurred()) SWIG_fail;
10341 }
10342 if (obj3) {
10343 {
10344 arg4 = &temp4;
10345 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10346 }
10347 }
10348 if (obj4) {
10349 {
10350 arg5 = &temp5;
10351 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10352 }
10353 }
10354 if (obj5) {
10355 arg6 = (long)SWIG_As_long(obj5);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 if (obj6) {
10359 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10360 SWIG_POINTER_EXCEPTION | 0)) == -1)
10361 SWIG_fail;
10362 if (arg7 == NULL) {
10363 PyErr_SetString(PyExc_TypeError,"null reference");
10364 SWIG_fail;
10365 }
10366 }
10367 if (obj7) {
10368 {
10369 arg8 = wxString_in_helper(obj7);
10370 if (arg8 == NULL) SWIG_fail;
10371 temp8 = True;
10372 }
10373 }
10374 {
10375 PyThreadState* __tstate = wxPyBeginAllowThreads();
10376 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10377
10378 wxPyEndAllowThreads(__tstate);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
10381 {
10382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10383 }
10384 {
10385 if (temp8)
10386 delete arg8;
10387 }
10388 return resultobj;
10389 fail:
10390 {
10391 if (temp8)
10392 delete arg8;
10393 }
10394 return NULL;
10395 }
10396
10397
10398 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10399 PyObject *resultobj;
10400 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10401 int result;
10402 PyObject * obj0 = 0 ;
10403 char *kwnames[] = {
10404 (char *) "self", NULL
10405 };
10406
10407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10410 {
10411 PyThreadState* __tstate = wxPyBeginAllowThreads();
10412 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10413
10414 wxPyEndAllowThreads(__tstate);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 }
10417 resultobj = SWIG_From_int((int)result);
10418 return resultobj;
10419 fail:
10420 return NULL;
10421 }
10422
10423
10424 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) {
10425 PyObject *resultobj;
10426 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10427 int result;
10428 PyObject * obj0 = 0 ;
10429 char *kwnames[] = {
10430 (char *) "self", NULL
10431 };
10432
10433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10439
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 resultobj = SWIG_From_int((int)result);
10444 return resultobj;
10445 fail:
10446 return NULL;
10447 }
10448
10449
10450 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
10451 PyObject *resultobj;
10452 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10453 int result;
10454 PyObject * obj0 = 0 ;
10455 char *kwnames[] = {
10456 (char *) "self", NULL
10457 };
10458
10459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10462 {
10463 PyThreadState* __tstate = wxPyBeginAllowThreads();
10464 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10465
10466 wxPyEndAllowThreads(__tstate);
10467 if (PyErr_Occurred()) SWIG_fail;
10468 }
10469 resultobj = SWIG_From_int((int)result);
10470 return resultobj;
10471 fail:
10472 return NULL;
10473 }
10474
10475
10476 static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10477 PyObject *resultobj;
10478 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10479 int result;
10480 PyObject * obj0 = 0 ;
10481 char *kwnames[] = {
10482 (char *) "self", NULL
10483 };
10484
10485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10488 {
10489 PyThreadState* __tstate = wxPyBeginAllowThreads();
10490 result = (int)((wxScrollBar const *)arg1)->GetRange();
10491
10492 wxPyEndAllowThreads(__tstate);
10493 if (PyErr_Occurred()) SWIG_fail;
10494 }
10495 resultobj = SWIG_From_int((int)result);
10496 return resultobj;
10497 fail:
10498 return NULL;
10499 }
10500
10501
10502 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
10503 PyObject *resultobj;
10504 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10505 bool result;
10506 PyObject * obj0 = 0 ;
10507 char *kwnames[] = {
10508 (char *) "self", NULL
10509 };
10510
10511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10514 {
10515 PyThreadState* __tstate = wxPyBeginAllowThreads();
10516 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10517
10518 wxPyEndAllowThreads(__tstate);
10519 if (PyErr_Occurred()) SWIG_fail;
10520 }
10521 {
10522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10523 }
10524 return resultobj;
10525 fail:
10526 return NULL;
10527 }
10528
10529
10530 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10531 PyObject *resultobj;
10532 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10533 int arg2 ;
10534 PyObject * obj0 = 0 ;
10535 PyObject * obj1 = 0 ;
10536 char *kwnames[] = {
10537 (char *) "self",(char *) "viewStart", NULL
10538 };
10539
10540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10543 arg2 = (int)SWIG_As_int(obj1);
10544 if (PyErr_Occurred()) SWIG_fail;
10545 {
10546 PyThreadState* __tstate = wxPyBeginAllowThreads();
10547 (arg1)->SetThumbPosition(arg2);
10548
10549 wxPyEndAllowThreads(__tstate);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 }
10552 Py_INCREF(Py_None); resultobj = Py_None;
10553 return resultobj;
10554 fail:
10555 return NULL;
10556 }
10557
10558
10559 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
10560 PyObject *resultobj;
10561 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10562 int arg2 ;
10563 int arg3 ;
10564 int arg4 ;
10565 int arg5 ;
10566 bool arg6 = (bool) True ;
10567 PyObject * obj0 = 0 ;
10568 PyObject * obj1 = 0 ;
10569 PyObject * obj2 = 0 ;
10570 PyObject * obj3 = 0 ;
10571 PyObject * obj4 = 0 ;
10572 PyObject * obj5 = 0 ;
10573 char *kwnames[] = {
10574 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10575 };
10576
10577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10580 arg2 = (int)SWIG_As_int(obj1);
10581 if (PyErr_Occurred()) SWIG_fail;
10582 arg3 = (int)SWIG_As_int(obj2);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 arg4 = (int)SWIG_As_int(obj3);
10585 if (PyErr_Occurred()) SWIG_fail;
10586 arg5 = (int)SWIG_As_int(obj4);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 if (obj5) {
10589 arg6 = (bool)SWIG_As_bool(obj5);
10590 if (PyErr_Occurred()) SWIG_fail;
10591 }
10592 {
10593 PyThreadState* __tstate = wxPyBeginAllowThreads();
10594 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10595
10596 wxPyEndAllowThreads(__tstate);
10597 if (PyErr_Occurred()) SWIG_fail;
10598 }
10599 Py_INCREF(Py_None); resultobj = Py_None;
10600 return resultobj;
10601 fail:
10602 return NULL;
10603 }
10604
10605
10606 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10607 PyObject *resultobj;
10608 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10609 wxVisualAttributes result;
10610 PyObject * obj0 = 0 ;
10611 char *kwnames[] = {
10612 (char *) "variant", NULL
10613 };
10614
10615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10616 if (obj0) {
10617 arg1 = (int)SWIG_As_int(obj0);
10618 if (PyErr_Occurred()) SWIG_fail;
10619 }
10620 {
10621 if (!wxPyCheckForApp()) SWIG_fail;
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10624
10625 wxPyEndAllowThreads(__tstate);
10626 if (PyErr_Occurred()) SWIG_fail;
10627 }
10628 {
10629 wxVisualAttributes * resultptr;
10630 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10631 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10632 }
10633 return resultobj;
10634 fail:
10635 return NULL;
10636 }
10637
10638
10639 static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) {
10640 PyObject *obj;
10641 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10642 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10643 Py_INCREF(obj);
10644 return Py_BuildValue((char *)"");
10645 }
10646 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
10647 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10648 return 1;
10649 }
10650
10651
10652 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10653 PyObject *pyobj;
10654
10655 {
10656 #if wxUSE_UNICODE
10657 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10658 #else
10659 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10660 #endif
10661 }
10662 return pyobj;
10663 }
10664
10665
10666 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
10667 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10668 return 1;
10669 }
10670
10671
10672 static PyObject *_wrap_SpinCtrlNameStr_get() {
10673 PyObject *pyobj;
10674
10675 {
10676 #if wxUSE_UNICODE
10677 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10678 #else
10679 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10680 #endif
10681 }
10682 return pyobj;
10683 }
10684
10685
10686 static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10687 PyObject *resultobj;
10688 wxWindow *arg1 = (wxWindow *) 0 ;
10689 int arg2 = (int) -1 ;
10690 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10691 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10692 wxSize const &arg4_defvalue = wxDefaultSize ;
10693 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10694 long arg5 = (long) wxSP_HORIZONTAL ;
10695 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10696 wxString *arg6 = (wxString *) &arg6_defvalue ;
10697 wxSpinButton *result;
10698 wxPoint temp3 ;
10699 wxSize temp4 ;
10700 bool temp6 = False ;
10701 PyObject * obj0 = 0 ;
10702 PyObject * obj1 = 0 ;
10703 PyObject * obj2 = 0 ;
10704 PyObject * obj3 = 0 ;
10705 PyObject * obj4 = 0 ;
10706 PyObject * obj5 = 0 ;
10707 char *kwnames[] = {
10708 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10709 };
10710
10711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10714 if (obj1) {
10715 arg2 = (int)SWIG_As_int(obj1);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 if (obj2) {
10719 {
10720 arg3 = &temp3;
10721 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10722 }
10723 }
10724 if (obj3) {
10725 {
10726 arg4 = &temp4;
10727 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10728 }
10729 }
10730 if (obj4) {
10731 arg5 = (long)SWIG_As_long(obj4);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 if (obj5) {
10735 {
10736 arg6 = wxString_in_helper(obj5);
10737 if (arg6 == NULL) SWIG_fail;
10738 temp6 = True;
10739 }
10740 }
10741 {
10742 if (!wxPyCheckForApp()) SWIG_fail;
10743 PyThreadState* __tstate = wxPyBeginAllowThreads();
10744 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10745
10746 wxPyEndAllowThreads(__tstate);
10747 if (PyErr_Occurred()) SWIG_fail;
10748 }
10749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10750 {
10751 if (temp6)
10752 delete arg6;
10753 }
10754 return resultobj;
10755 fail:
10756 {
10757 if (temp6)
10758 delete arg6;
10759 }
10760 return NULL;
10761 }
10762
10763
10764 static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10765 PyObject *resultobj;
10766 wxSpinButton *result;
10767 char *kwnames[] = {
10768 NULL
10769 };
10770
10771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10772 {
10773 if (!wxPyCheckForApp()) SWIG_fail;
10774 PyThreadState* __tstate = wxPyBeginAllowThreads();
10775 result = (wxSpinButton *)new wxSpinButton();
10776
10777 wxPyEndAllowThreads(__tstate);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10781 return resultobj;
10782 fail:
10783 return NULL;
10784 }
10785
10786
10787 static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10788 PyObject *resultobj;
10789 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10790 wxWindow *arg2 = (wxWindow *) 0 ;
10791 int arg3 = (int) -1 ;
10792 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10793 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10794 wxSize const &arg5_defvalue = wxDefaultSize ;
10795 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10796 long arg6 = (long) wxSP_HORIZONTAL ;
10797 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10798 wxString *arg7 = (wxString *) &arg7_defvalue ;
10799 bool result;
10800 wxPoint temp4 ;
10801 wxSize temp5 ;
10802 bool temp7 = False ;
10803 PyObject * obj0 = 0 ;
10804 PyObject * obj1 = 0 ;
10805 PyObject * obj2 = 0 ;
10806 PyObject * obj3 = 0 ;
10807 PyObject * obj4 = 0 ;
10808 PyObject * obj5 = 0 ;
10809 PyObject * obj6 = 0 ;
10810 char *kwnames[] = {
10811 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10812 };
10813
10814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10817 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10819 if (obj2) {
10820 arg3 = (int)SWIG_As_int(obj2);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 }
10823 if (obj3) {
10824 {
10825 arg4 = &temp4;
10826 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10827 }
10828 }
10829 if (obj4) {
10830 {
10831 arg5 = &temp5;
10832 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10833 }
10834 }
10835 if (obj5) {
10836 arg6 = (long)SWIG_As_long(obj5);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 if (obj6) {
10840 {
10841 arg7 = wxString_in_helper(obj6);
10842 if (arg7 == NULL) SWIG_fail;
10843 temp7 = True;
10844 }
10845 }
10846 {
10847 PyThreadState* __tstate = wxPyBeginAllowThreads();
10848 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10849
10850 wxPyEndAllowThreads(__tstate);
10851 if (PyErr_Occurred()) SWIG_fail;
10852 }
10853 {
10854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10855 }
10856 {
10857 if (temp7)
10858 delete arg7;
10859 }
10860 return resultobj;
10861 fail:
10862 {
10863 if (temp7)
10864 delete arg7;
10865 }
10866 return NULL;
10867 }
10868
10869
10870 static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10871 PyObject *resultobj;
10872 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10873 int result;
10874 PyObject * obj0 = 0 ;
10875 char *kwnames[] = {
10876 (char *) "self", NULL
10877 };
10878
10879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10882 {
10883 PyThreadState* __tstate = wxPyBeginAllowThreads();
10884 result = (int)((wxSpinButton const *)arg1)->GetValue();
10885
10886 wxPyEndAllowThreads(__tstate);
10887 if (PyErr_Occurred()) SWIG_fail;
10888 }
10889 resultobj = SWIG_From_int((int)result);
10890 return resultobj;
10891 fail:
10892 return NULL;
10893 }
10894
10895
10896 static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10897 PyObject *resultobj;
10898 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10899 int result;
10900 PyObject * obj0 = 0 ;
10901 char *kwnames[] = {
10902 (char *) "self", NULL
10903 };
10904
10905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10908 {
10909 PyThreadState* __tstate = wxPyBeginAllowThreads();
10910 result = (int)((wxSpinButton const *)arg1)->GetMin();
10911
10912 wxPyEndAllowThreads(__tstate);
10913 if (PyErr_Occurred()) SWIG_fail;
10914 }
10915 resultobj = SWIG_From_int((int)result);
10916 return resultobj;
10917 fail:
10918 return NULL;
10919 }
10920
10921
10922 static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
10923 PyObject *resultobj;
10924 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10925 int result;
10926 PyObject * obj0 = 0 ;
10927 char *kwnames[] = {
10928 (char *) "self", NULL
10929 };
10930
10931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10934 {
10935 PyThreadState* __tstate = wxPyBeginAllowThreads();
10936 result = (int)((wxSpinButton const *)arg1)->GetMax();
10937
10938 wxPyEndAllowThreads(__tstate);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 resultobj = SWIG_From_int((int)result);
10942 return resultobj;
10943 fail:
10944 return NULL;
10945 }
10946
10947
10948 static PyObject *_wrap_SpinButton_SetValue(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 *) "val", NULL
10956 };
10957
10958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",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)->SetValue(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_SetMin(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 *) "minVal", NULL
10985 };
10986
10987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",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)->SetMin(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_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11007 PyObject *resultobj;
11008 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11009 int arg2 ;
11010 PyObject * obj0 = 0 ;
11011 PyObject * obj1 = 0 ;
11012 char *kwnames[] = {
11013 (char *) "self",(char *) "maxVal", NULL
11014 };
11015
11016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
11017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11019 arg2 = (int)SWIG_As_int(obj1);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 {
11022 PyThreadState* __tstate = wxPyBeginAllowThreads();
11023 (arg1)->SetMax(arg2);
11024
11025 wxPyEndAllowThreads(__tstate);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 }
11028 Py_INCREF(Py_None); resultobj = Py_None;
11029 return resultobj;
11030 fail:
11031 return NULL;
11032 }
11033
11034
11035 static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11036 PyObject *resultobj;
11037 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11038 int arg2 ;
11039 int arg3 ;
11040 PyObject * obj0 = 0 ;
11041 PyObject * obj1 = 0 ;
11042 PyObject * obj2 = 0 ;
11043 char *kwnames[] = {
11044 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11045 };
11046
11047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11050 arg2 = (int)SWIG_As_int(obj1);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 arg3 = (int)SWIG_As_int(obj2);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 {
11055 PyThreadState* __tstate = wxPyBeginAllowThreads();
11056 (arg1)->SetRange(arg2,arg3);
11057
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 }
11061 Py_INCREF(Py_None); resultobj = Py_None;
11062 return resultobj;
11063 fail:
11064 return NULL;
11065 }
11066
11067
11068 static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
11069 PyObject *resultobj;
11070 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11071 bool result;
11072 PyObject * obj0 = 0 ;
11073 char *kwnames[] = {
11074 (char *) "self", NULL
11075 };
11076
11077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
11078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11080 {
11081 PyThreadState* __tstate = wxPyBeginAllowThreads();
11082 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
11083
11084 wxPyEndAllowThreads(__tstate);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 }
11087 {
11088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11089 }
11090 return resultobj;
11091 fail:
11092 return NULL;
11093 }
11094
11095
11096 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11097 PyObject *resultobj;
11098 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11099 wxVisualAttributes result;
11100 PyObject * obj0 = 0 ;
11101 char *kwnames[] = {
11102 (char *) "variant", NULL
11103 };
11104
11105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11106 if (obj0) {
11107 arg1 = (int)SWIG_As_int(obj0);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 }
11110 {
11111 if (!wxPyCheckForApp()) SWIG_fail;
11112 PyThreadState* __tstate = wxPyBeginAllowThreads();
11113 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
11114
11115 wxPyEndAllowThreads(__tstate);
11116 if (PyErr_Occurred()) SWIG_fail;
11117 }
11118 {
11119 wxVisualAttributes * resultptr;
11120 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11121 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11122 }
11123 return resultobj;
11124 fail:
11125 return NULL;
11126 }
11127
11128
11129 static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) {
11130 PyObject *obj;
11131 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11132 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
11133 Py_INCREF(obj);
11134 return Py_BuildValue((char *)"");
11135 }
11136 static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11137 PyObject *resultobj;
11138 wxWindow *arg1 = (wxWindow *) 0 ;
11139 int arg2 = (int) -1 ;
11140 wxString const &arg3_defvalue = wxPyEmptyString ;
11141 wxString *arg3 = (wxString *) &arg3_defvalue ;
11142 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11143 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11144 wxSize const &arg5_defvalue = wxDefaultSize ;
11145 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11146 long arg6 = (long) wxSP_ARROW_KEYS ;
11147 int arg7 = (int) 0 ;
11148 int arg8 = (int) 100 ;
11149 int arg9 = (int) 0 ;
11150 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
11151 wxString *arg10 = (wxString *) &arg10_defvalue ;
11152 wxSpinCtrl *result;
11153 bool temp3 = False ;
11154 wxPoint temp4 ;
11155 wxSize temp5 ;
11156 bool temp10 = False ;
11157 PyObject * obj0 = 0 ;
11158 PyObject * obj1 = 0 ;
11159 PyObject * obj2 = 0 ;
11160 PyObject * obj3 = 0 ;
11161 PyObject * obj4 = 0 ;
11162 PyObject * obj5 = 0 ;
11163 PyObject * obj6 = 0 ;
11164 PyObject * obj7 = 0 ;
11165 PyObject * obj8 = 0 ;
11166 PyObject * obj9 = 0 ;
11167 char *kwnames[] = {
11168 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11169 };
11170
11171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11174 if (obj1) {
11175 arg2 = (int)SWIG_As_int(obj1);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 if (obj2) {
11179 {
11180 arg3 = wxString_in_helper(obj2);
11181 if (arg3 == NULL) SWIG_fail;
11182 temp3 = True;
11183 }
11184 }
11185 if (obj3) {
11186 {
11187 arg4 = &temp4;
11188 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11189 }
11190 }
11191 if (obj4) {
11192 {
11193 arg5 = &temp5;
11194 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11195 }
11196 }
11197 if (obj5) {
11198 arg6 = (long)SWIG_As_long(obj5);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 if (obj6) {
11202 arg7 = (int)SWIG_As_int(obj6);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 if (obj7) {
11206 arg8 = (int)SWIG_As_int(obj7);
11207 if (PyErr_Occurred()) SWIG_fail;
11208 }
11209 if (obj8) {
11210 arg9 = (int)SWIG_As_int(obj8);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 }
11213 if (obj9) {
11214 {
11215 arg10 = wxString_in_helper(obj9);
11216 if (arg10 == NULL) SWIG_fail;
11217 temp10 = True;
11218 }
11219 }
11220 {
11221 if (!wxPyCheckForApp()) SWIG_fail;
11222 PyThreadState* __tstate = wxPyBeginAllowThreads();
11223 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11224
11225 wxPyEndAllowThreads(__tstate);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 }
11228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11229 {
11230 if (temp3)
11231 delete arg3;
11232 }
11233 {
11234 if (temp10)
11235 delete arg10;
11236 }
11237 return resultobj;
11238 fail:
11239 {
11240 if (temp3)
11241 delete arg3;
11242 }
11243 {
11244 if (temp10)
11245 delete arg10;
11246 }
11247 return NULL;
11248 }
11249
11250
11251 static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11252 PyObject *resultobj;
11253 wxSpinCtrl *result;
11254 char *kwnames[] = {
11255 NULL
11256 };
11257
11258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11259 {
11260 if (!wxPyCheckForApp()) SWIG_fail;
11261 PyThreadState* __tstate = wxPyBeginAllowThreads();
11262 result = (wxSpinCtrl *)new wxSpinCtrl();
11263
11264 wxPyEndAllowThreads(__tstate);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 }
11267 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11268 return resultobj;
11269 fail:
11270 return NULL;
11271 }
11272
11273
11274 static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11275 PyObject *resultobj;
11276 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11277 wxWindow *arg2 = (wxWindow *) 0 ;
11278 int arg3 = (int) -1 ;
11279 wxString const &arg4_defvalue = wxPyEmptyString ;
11280 wxString *arg4 = (wxString *) &arg4_defvalue ;
11281 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11282 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11283 wxSize const &arg6_defvalue = wxDefaultSize ;
11284 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11285 long arg7 = (long) wxSP_ARROW_KEYS ;
11286 int arg8 = (int) 0 ;
11287 int arg9 = (int) 100 ;
11288 int arg10 = (int) 0 ;
11289 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11290 wxString *arg11 = (wxString *) &arg11_defvalue ;
11291 bool result;
11292 bool temp4 = False ;
11293 wxPoint temp5 ;
11294 wxSize temp6 ;
11295 bool temp11 = False ;
11296 PyObject * obj0 = 0 ;
11297 PyObject * obj1 = 0 ;
11298 PyObject * obj2 = 0 ;
11299 PyObject * obj3 = 0 ;
11300 PyObject * obj4 = 0 ;
11301 PyObject * obj5 = 0 ;
11302 PyObject * obj6 = 0 ;
11303 PyObject * obj7 = 0 ;
11304 PyObject * obj8 = 0 ;
11305 PyObject * obj9 = 0 ;
11306 PyObject * obj10 = 0 ;
11307 char *kwnames[] = {
11308 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11309 };
11310
11311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11314 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11316 if (obj2) {
11317 arg3 = (int)SWIG_As_int(obj2);
11318 if (PyErr_Occurred()) SWIG_fail;
11319 }
11320 if (obj3) {
11321 {
11322 arg4 = wxString_in_helper(obj3);
11323 if (arg4 == NULL) SWIG_fail;
11324 temp4 = True;
11325 }
11326 }
11327 if (obj4) {
11328 {
11329 arg5 = &temp5;
11330 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11331 }
11332 }
11333 if (obj5) {
11334 {
11335 arg6 = &temp6;
11336 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11337 }
11338 }
11339 if (obj6) {
11340 arg7 = (long)SWIG_As_long(obj6);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 }
11343 if (obj7) {
11344 arg8 = (int)SWIG_As_int(obj7);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 if (obj8) {
11348 arg9 = (int)SWIG_As_int(obj8);
11349 if (PyErr_Occurred()) SWIG_fail;
11350 }
11351 if (obj9) {
11352 arg10 = (int)SWIG_As_int(obj9);
11353 if (PyErr_Occurred()) SWIG_fail;
11354 }
11355 if (obj10) {
11356 {
11357 arg11 = wxString_in_helper(obj10);
11358 if (arg11 == NULL) SWIG_fail;
11359 temp11 = True;
11360 }
11361 }
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11365
11366 wxPyEndAllowThreads(__tstate);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 {
11370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11371 }
11372 {
11373 if (temp4)
11374 delete arg4;
11375 }
11376 {
11377 if (temp11)
11378 delete arg11;
11379 }
11380 return resultobj;
11381 fail:
11382 {
11383 if (temp4)
11384 delete arg4;
11385 }
11386 {
11387 if (temp11)
11388 delete arg11;
11389 }
11390 return NULL;
11391 }
11392
11393
11394 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11395 PyObject *resultobj;
11396 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11397 int result;
11398 PyObject * obj0 = 0 ;
11399 char *kwnames[] = {
11400 (char *) "self", NULL
11401 };
11402
11403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11406 {
11407 PyThreadState* __tstate = wxPyBeginAllowThreads();
11408 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11409
11410 wxPyEndAllowThreads(__tstate);
11411 if (PyErr_Occurred()) SWIG_fail;
11412 }
11413 resultobj = SWIG_From_int((int)result);
11414 return resultobj;
11415 fail:
11416 return NULL;
11417 }
11418
11419
11420 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11421 PyObject *resultobj;
11422 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11423 int arg2 ;
11424 PyObject * obj0 = 0 ;
11425 PyObject * obj1 = 0 ;
11426 char *kwnames[] = {
11427 (char *) "self",(char *) "value", NULL
11428 };
11429
11430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11433 arg2 = (int)SWIG_As_int(obj1);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 {
11436 PyThreadState* __tstate = wxPyBeginAllowThreads();
11437 (arg1)->SetValue(arg2);
11438
11439 wxPyEndAllowThreads(__tstate);
11440 if (PyErr_Occurred()) SWIG_fail;
11441 }
11442 Py_INCREF(Py_None); resultobj = Py_None;
11443 return resultobj;
11444 fail:
11445 return NULL;
11446 }
11447
11448
11449 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) {
11450 PyObject *resultobj;
11451 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11452 wxString *arg2 = 0 ;
11453 bool temp2 = False ;
11454 PyObject * obj0 = 0 ;
11455 PyObject * obj1 = 0 ;
11456 char *kwnames[] = {
11457 (char *) "self",(char *) "text", NULL
11458 };
11459
11460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11463 {
11464 arg2 = wxString_in_helper(obj1);
11465 if (arg2 == NULL) SWIG_fail;
11466 temp2 = True;
11467 }
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 (arg1)->SetValue((wxString const &)*arg2);
11471
11472 wxPyEndAllowThreads(__tstate);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 Py_INCREF(Py_None); resultobj = Py_None;
11476 {
11477 if (temp2)
11478 delete arg2;
11479 }
11480 return resultobj;
11481 fail:
11482 {
11483 if (temp2)
11484 delete arg2;
11485 }
11486 return NULL;
11487 }
11488
11489
11490 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11491 PyObject *resultobj;
11492 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11493 int arg2 ;
11494 int arg3 ;
11495 PyObject * obj0 = 0 ;
11496 PyObject * obj1 = 0 ;
11497 PyObject * obj2 = 0 ;
11498 char *kwnames[] = {
11499 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11500 };
11501
11502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11505 arg2 = (int)SWIG_As_int(obj1);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 arg3 = (int)SWIG_As_int(obj2);
11508 if (PyErr_Occurred()) SWIG_fail;
11509 {
11510 PyThreadState* __tstate = wxPyBeginAllowThreads();
11511 (arg1)->SetRange(arg2,arg3);
11512
11513 wxPyEndAllowThreads(__tstate);
11514 if (PyErr_Occurred()) SWIG_fail;
11515 }
11516 Py_INCREF(Py_None); resultobj = Py_None;
11517 return resultobj;
11518 fail:
11519 return NULL;
11520 }
11521
11522
11523 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11524 PyObject *resultobj;
11525 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11526 int result;
11527 PyObject * obj0 = 0 ;
11528 char *kwnames[] = {
11529 (char *) "self", NULL
11530 };
11531
11532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11535 {
11536 PyThreadState* __tstate = wxPyBeginAllowThreads();
11537 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11538
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 resultobj = SWIG_From_int((int)result);
11543 return resultobj;
11544 fail:
11545 return NULL;
11546 }
11547
11548
11549 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11550 PyObject *resultobj;
11551 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11552 int result;
11553 PyObject * obj0 = 0 ;
11554 char *kwnames[] = {
11555 (char *) "self", NULL
11556 };
11557
11558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11561 {
11562 PyThreadState* __tstate = wxPyBeginAllowThreads();
11563 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11564
11565 wxPyEndAllowThreads(__tstate);
11566 if (PyErr_Occurred()) SWIG_fail;
11567 }
11568 resultobj = SWIG_From_int((int)result);
11569 return resultobj;
11570 fail:
11571 return NULL;
11572 }
11573
11574
11575 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11576 PyObject *resultobj;
11577 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11578 long arg2 ;
11579 long arg3 ;
11580 PyObject * obj0 = 0 ;
11581 PyObject * obj1 = 0 ;
11582 PyObject * obj2 = 0 ;
11583 char *kwnames[] = {
11584 (char *) "self",(char *) "from",(char *) "to", NULL
11585 };
11586
11587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11590 arg2 = (long)SWIG_As_long(obj1);
11591 if (PyErr_Occurred()) SWIG_fail;
11592 arg3 = (long)SWIG_As_long(obj2);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 {
11595 PyThreadState* __tstate = wxPyBeginAllowThreads();
11596 (arg1)->SetSelection(arg2,arg3);
11597
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 Py_INCREF(Py_None); resultobj = Py_None;
11602 return resultobj;
11603 fail:
11604 return NULL;
11605 }
11606
11607
11608 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11609 PyObject *resultobj;
11610 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11611 wxVisualAttributes result;
11612 PyObject * obj0 = 0 ;
11613 char *kwnames[] = {
11614 (char *) "variant", NULL
11615 };
11616
11617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11618 if (obj0) {
11619 arg1 = (int)SWIG_As_int(obj0);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 {
11623 if (!wxPyCheckForApp()) SWIG_fail;
11624 PyThreadState* __tstate = wxPyBeginAllowThreads();
11625 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11626
11627 wxPyEndAllowThreads(__tstate);
11628 if (PyErr_Occurred()) SWIG_fail;
11629 }
11630 {
11631 wxVisualAttributes * resultptr;
11632 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11633 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11634 }
11635 return resultobj;
11636 fail:
11637 return NULL;
11638 }
11639
11640
11641 static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) {
11642 PyObject *obj;
11643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11644 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11645 Py_INCREF(obj);
11646 return Py_BuildValue((char *)"");
11647 }
11648 static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11649 PyObject *resultobj;
11650 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11651 int arg2 = (int) 0 ;
11652 wxSpinEvent *result;
11653 PyObject * obj0 = 0 ;
11654 PyObject * obj1 = 0 ;
11655 char *kwnames[] = {
11656 (char *) "commandType",(char *) "winid", NULL
11657 };
11658
11659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11660 if (obj0) {
11661 arg1 = (wxEventType)SWIG_As_int(obj0);
11662 if (PyErr_Occurred()) SWIG_fail;
11663 }
11664 if (obj1) {
11665 arg2 = (int)SWIG_As_int(obj1);
11666 if (PyErr_Occurred()) SWIG_fail;
11667 }
11668 {
11669 PyThreadState* __tstate = wxPyBeginAllowThreads();
11670 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11671
11672 wxPyEndAllowThreads(__tstate);
11673 if (PyErr_Occurred()) SWIG_fail;
11674 }
11675 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11676 return resultobj;
11677 fail:
11678 return NULL;
11679 }
11680
11681
11682 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11683 PyObject *resultobj;
11684 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11685 int result;
11686 PyObject * obj0 = 0 ;
11687 char *kwnames[] = {
11688 (char *) "self", NULL
11689 };
11690
11691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11694 {
11695 PyThreadState* __tstate = wxPyBeginAllowThreads();
11696 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11697
11698 wxPyEndAllowThreads(__tstate);
11699 if (PyErr_Occurred()) SWIG_fail;
11700 }
11701 resultobj = SWIG_From_int((int)result);
11702 return resultobj;
11703 fail:
11704 return NULL;
11705 }
11706
11707
11708 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11709 PyObject *resultobj;
11710 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11711 int arg2 ;
11712 PyObject * obj0 = 0 ;
11713 PyObject * obj1 = 0 ;
11714 char *kwnames[] = {
11715 (char *) "self",(char *) "pos", NULL
11716 };
11717
11718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11721 arg2 = (int)SWIG_As_int(obj1);
11722 if (PyErr_Occurred()) SWIG_fail;
11723 {
11724 PyThreadState* __tstate = wxPyBeginAllowThreads();
11725 (arg1)->SetPosition(arg2);
11726
11727 wxPyEndAllowThreads(__tstate);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 Py_INCREF(Py_None); resultobj = Py_None;
11731 return resultobj;
11732 fail:
11733 return NULL;
11734 }
11735
11736
11737 static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) {
11738 PyObject *obj;
11739 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11740 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11741 Py_INCREF(obj);
11742 return Py_BuildValue((char *)"");
11743 }
11744 static int _wrap_RadioBoxNameStr_set(PyObject *) {
11745 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11746 return 1;
11747 }
11748
11749
11750 static PyObject *_wrap_RadioBoxNameStr_get() {
11751 PyObject *pyobj;
11752
11753 {
11754 #if wxUSE_UNICODE
11755 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11756 #else
11757 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11758 #endif
11759 }
11760 return pyobj;
11761 }
11762
11763
11764 static int _wrap_RadioButtonNameStr_set(PyObject *) {
11765 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11766 return 1;
11767 }
11768
11769
11770 static PyObject *_wrap_RadioButtonNameStr_get() {
11771 PyObject *pyobj;
11772
11773 {
11774 #if wxUSE_UNICODE
11775 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11776 #else
11777 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11778 #endif
11779 }
11780 return pyobj;
11781 }
11782
11783
11784 static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11785 PyObject *resultobj;
11786 wxWindow *arg1 = (wxWindow *) 0 ;
11787 int arg2 = (int) -1 ;
11788 wxString const &arg3_defvalue = wxPyEmptyString ;
11789 wxString *arg3 = (wxString *) &arg3_defvalue ;
11790 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11791 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11792 wxSize const &arg5_defvalue = wxDefaultSize ;
11793 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11794 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11795 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11796 int arg7 = (int) 0 ;
11797 long arg8 = (long) wxRA_HORIZONTAL ;
11798 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11799 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11800 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11801 wxString *arg10 = (wxString *) &arg10_defvalue ;
11802 wxRadioBox *result;
11803 bool temp3 = False ;
11804 wxPoint temp4 ;
11805 wxSize temp5 ;
11806 bool temp6 = False ;
11807 bool temp10 = False ;
11808 PyObject * obj0 = 0 ;
11809 PyObject * obj1 = 0 ;
11810 PyObject * obj2 = 0 ;
11811 PyObject * obj3 = 0 ;
11812 PyObject * obj4 = 0 ;
11813 PyObject * obj5 = 0 ;
11814 PyObject * obj6 = 0 ;
11815 PyObject * obj7 = 0 ;
11816 PyObject * obj8 = 0 ;
11817 PyObject * obj9 = 0 ;
11818 char *kwnames[] = {
11819 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11820 };
11821
11822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11825 if (obj1) {
11826 arg2 = (int)SWIG_As_int(obj1);
11827 if (PyErr_Occurred()) SWIG_fail;
11828 }
11829 if (obj2) {
11830 {
11831 arg3 = wxString_in_helper(obj2);
11832 if (arg3 == NULL) SWIG_fail;
11833 temp3 = True;
11834 }
11835 }
11836 if (obj3) {
11837 {
11838 arg4 = &temp4;
11839 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11840 }
11841 }
11842 if (obj4) {
11843 {
11844 arg5 = &temp5;
11845 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11846 }
11847 }
11848 if (obj5) {
11849 {
11850 if (! PySequence_Check(obj5)) {
11851 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11852 SWIG_fail;
11853 }
11854 arg6 = new wxArrayString;
11855 temp6 = True;
11856 int i, len=PySequence_Length(obj5);
11857 for (i=0; i<len; i++) {
11858 PyObject* item = PySequence_GetItem(obj5, i);
11859 #if wxUSE_UNICODE
11860 PyObject* str = PyObject_Unicode(item);
11861 #else
11862 PyObject* str = PyObject_Str(item);
11863 #endif
11864 if (PyErr_Occurred()) SWIG_fail;
11865 arg6->Add(Py2wxString(str));
11866 Py_DECREF(item);
11867 Py_DECREF(str);
11868 }
11869 }
11870 }
11871 if (obj6) {
11872 arg7 = (int)SWIG_As_int(obj6);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 if (obj7) {
11876 arg8 = (long)SWIG_As_long(obj7);
11877 if (PyErr_Occurred()) SWIG_fail;
11878 }
11879 if (obj8) {
11880 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11881 SWIG_POINTER_EXCEPTION | 0)) == -1)
11882 SWIG_fail;
11883 if (arg9 == NULL) {
11884 PyErr_SetString(PyExc_TypeError,"null reference");
11885 SWIG_fail;
11886 }
11887 }
11888 if (obj9) {
11889 {
11890 arg10 = wxString_in_helper(obj9);
11891 if (arg10 == NULL) SWIG_fail;
11892 temp10 = True;
11893 }
11894 }
11895 {
11896 if (!wxPyCheckForApp()) SWIG_fail;
11897 PyThreadState* __tstate = wxPyBeginAllowThreads();
11898 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);
11899
11900 wxPyEndAllowThreads(__tstate);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 }
11903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11904 {
11905 if (temp3)
11906 delete arg3;
11907 }
11908 {
11909 if (temp6) delete arg6;
11910 }
11911 {
11912 if (temp10)
11913 delete arg10;
11914 }
11915 return resultobj;
11916 fail:
11917 {
11918 if (temp3)
11919 delete arg3;
11920 }
11921 {
11922 if (temp6) delete arg6;
11923 }
11924 {
11925 if (temp10)
11926 delete arg10;
11927 }
11928 return NULL;
11929 }
11930
11931
11932 static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11933 PyObject *resultobj;
11934 wxRadioBox *result;
11935 char *kwnames[] = {
11936 NULL
11937 };
11938
11939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11940 {
11941 if (!wxPyCheckForApp()) SWIG_fail;
11942 PyThreadState* __tstate = wxPyBeginAllowThreads();
11943 result = (wxRadioBox *)new wxRadioBox();
11944
11945 wxPyEndAllowThreads(__tstate);
11946 if (PyErr_Occurred()) SWIG_fail;
11947 }
11948 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11949 return resultobj;
11950 fail:
11951 return NULL;
11952 }
11953
11954
11955 static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11956 PyObject *resultobj;
11957 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11958 wxWindow *arg2 = (wxWindow *) 0 ;
11959 int arg3 = (int) -1 ;
11960 wxString const &arg4_defvalue = wxPyEmptyString ;
11961 wxString *arg4 = (wxString *) &arg4_defvalue ;
11962 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11963 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11964 wxSize const &arg6_defvalue = wxDefaultSize ;
11965 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11966 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11967 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11968 int arg8 = (int) 0 ;
11969 long arg9 = (long) wxRA_HORIZONTAL ;
11970 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11971 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11972 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11973 wxString *arg11 = (wxString *) &arg11_defvalue ;
11974 bool result;
11975 bool temp4 = False ;
11976 wxPoint temp5 ;
11977 wxSize temp6 ;
11978 bool temp7 = False ;
11979 bool temp11 = False ;
11980 PyObject * obj0 = 0 ;
11981 PyObject * obj1 = 0 ;
11982 PyObject * obj2 = 0 ;
11983 PyObject * obj3 = 0 ;
11984 PyObject * obj4 = 0 ;
11985 PyObject * obj5 = 0 ;
11986 PyObject * obj6 = 0 ;
11987 PyObject * obj7 = 0 ;
11988 PyObject * obj8 = 0 ;
11989 PyObject * obj9 = 0 ;
11990 PyObject * obj10 = 0 ;
11991 char *kwnames[] = {
11992 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11993 };
11994
11995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11998 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12000 if (obj2) {
12001 arg3 = (int)SWIG_As_int(obj2);
12002 if (PyErr_Occurred()) SWIG_fail;
12003 }
12004 if (obj3) {
12005 {
12006 arg4 = wxString_in_helper(obj3);
12007 if (arg4 == NULL) SWIG_fail;
12008 temp4 = True;
12009 }
12010 }
12011 if (obj4) {
12012 {
12013 arg5 = &temp5;
12014 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12015 }
12016 }
12017 if (obj5) {
12018 {
12019 arg6 = &temp6;
12020 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12021 }
12022 }
12023 if (obj6) {
12024 {
12025 if (! PySequence_Check(obj6)) {
12026 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12027 SWIG_fail;
12028 }
12029 arg7 = new wxArrayString;
12030 temp7 = True;
12031 int i, len=PySequence_Length(obj6);
12032 for (i=0; i<len; i++) {
12033 PyObject* item = PySequence_GetItem(obj6, i);
12034 #if wxUSE_UNICODE
12035 PyObject* str = PyObject_Unicode(item);
12036 #else
12037 PyObject* str = PyObject_Str(item);
12038 #endif
12039 if (PyErr_Occurred()) SWIG_fail;
12040 arg7->Add(Py2wxString(str));
12041 Py_DECREF(item);
12042 Py_DECREF(str);
12043 }
12044 }
12045 }
12046 if (obj7) {
12047 arg8 = (int)SWIG_As_int(obj7);
12048 if (PyErr_Occurred()) SWIG_fail;
12049 }
12050 if (obj8) {
12051 arg9 = (long)SWIG_As_long(obj8);
12052 if (PyErr_Occurred()) SWIG_fail;
12053 }
12054 if (obj9) {
12055 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12056 SWIG_POINTER_EXCEPTION | 0)) == -1)
12057 SWIG_fail;
12058 if (arg10 == NULL) {
12059 PyErr_SetString(PyExc_TypeError,"null reference");
12060 SWIG_fail;
12061 }
12062 }
12063 if (obj10) {
12064 {
12065 arg11 = wxString_in_helper(obj10);
12066 if (arg11 == NULL) SWIG_fail;
12067 temp11 = True;
12068 }
12069 }
12070 {
12071 PyThreadState* __tstate = wxPyBeginAllowThreads();
12072 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);
12073
12074 wxPyEndAllowThreads(__tstate);
12075 if (PyErr_Occurred()) SWIG_fail;
12076 }
12077 {
12078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12079 }
12080 {
12081 if (temp4)
12082 delete arg4;
12083 }
12084 {
12085 if (temp7) delete arg7;
12086 }
12087 {
12088 if (temp11)
12089 delete arg11;
12090 }
12091 return resultobj;
12092 fail:
12093 {
12094 if (temp4)
12095 delete arg4;
12096 }
12097 {
12098 if (temp7) delete arg7;
12099 }
12100 {
12101 if (temp11)
12102 delete arg11;
12103 }
12104 return NULL;
12105 }
12106
12107
12108 static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12109 PyObject *resultobj;
12110 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12111 int arg2 ;
12112 PyObject * obj0 = 0 ;
12113 PyObject * obj1 = 0 ;
12114 char *kwnames[] = {
12115 (char *) "self",(char *) "n", NULL
12116 };
12117
12118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
12119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12121 arg2 = (int)SWIG_As_int(obj1);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 {
12124 PyThreadState* __tstate = wxPyBeginAllowThreads();
12125 (arg1)->SetSelection(arg2);
12126
12127 wxPyEndAllowThreads(__tstate);
12128 if (PyErr_Occurred()) SWIG_fail;
12129 }
12130 Py_INCREF(Py_None); resultobj = Py_None;
12131 return resultobj;
12132 fail:
12133 return NULL;
12134 }
12135
12136
12137 static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12138 PyObject *resultobj;
12139 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12140 int result;
12141 PyObject * obj0 = 0 ;
12142 char *kwnames[] = {
12143 (char *) "self", NULL
12144 };
12145
12146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
12147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12149 {
12150 PyThreadState* __tstate = wxPyBeginAllowThreads();
12151 result = (int)((wxRadioBox const *)arg1)->GetSelection();
12152
12153 wxPyEndAllowThreads(__tstate);
12154 if (PyErr_Occurred()) SWIG_fail;
12155 }
12156 resultobj = SWIG_From_int((int)result);
12157 return resultobj;
12158 fail:
12159 return NULL;
12160 }
12161
12162
12163 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12164 PyObject *resultobj;
12165 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12166 wxString result;
12167 PyObject * obj0 = 0 ;
12168 char *kwnames[] = {
12169 (char *) "self", NULL
12170 };
12171
12172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12175 {
12176 PyThreadState* __tstate = wxPyBeginAllowThreads();
12177 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12178
12179 wxPyEndAllowThreads(__tstate);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 {
12183 #if wxUSE_UNICODE
12184 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12185 #else
12186 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12187 #endif
12188 }
12189 return resultobj;
12190 fail:
12191 return NULL;
12192 }
12193
12194
12195 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12196 PyObject *resultobj;
12197 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12198 wxString *arg2 = 0 ;
12199 bool result;
12200 bool temp2 = False ;
12201 PyObject * obj0 = 0 ;
12202 PyObject * obj1 = 0 ;
12203 char *kwnames[] = {
12204 (char *) "self",(char *) "s", NULL
12205 };
12206
12207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12210 {
12211 arg2 = wxString_in_helper(obj1);
12212 if (arg2 == NULL) SWIG_fail;
12213 temp2 = True;
12214 }
12215 {
12216 PyThreadState* __tstate = wxPyBeginAllowThreads();
12217 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12218
12219 wxPyEndAllowThreads(__tstate);
12220 if (PyErr_Occurred()) SWIG_fail;
12221 }
12222 {
12223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12224 }
12225 {
12226 if (temp2)
12227 delete arg2;
12228 }
12229 return resultobj;
12230 fail:
12231 {
12232 if (temp2)
12233 delete arg2;
12234 }
12235 return NULL;
12236 }
12237
12238
12239 static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
12240 PyObject *resultobj;
12241 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12242 int result;
12243 PyObject * obj0 = 0 ;
12244 char *kwnames[] = {
12245 (char *) "self", NULL
12246 };
12247
12248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12251 {
12252 PyThreadState* __tstate = wxPyBeginAllowThreads();
12253 result = (int)((wxRadioBox const *)arg1)->GetCount();
12254
12255 wxPyEndAllowThreads(__tstate);
12256 if (PyErr_Occurred()) SWIG_fail;
12257 }
12258 resultobj = SWIG_From_int((int)result);
12259 return resultobj;
12260 fail:
12261 return NULL;
12262 }
12263
12264
12265 static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
12266 PyObject *resultobj;
12267 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12268 wxString *arg2 = 0 ;
12269 int result;
12270 bool temp2 = False ;
12271 PyObject * obj0 = 0 ;
12272 PyObject * obj1 = 0 ;
12273 char *kwnames[] = {
12274 (char *) "self",(char *) "s", NULL
12275 };
12276
12277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12280 {
12281 arg2 = wxString_in_helper(obj1);
12282 if (arg2 == NULL) SWIG_fail;
12283 temp2 = True;
12284 }
12285 {
12286 PyThreadState* __tstate = wxPyBeginAllowThreads();
12287 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12288
12289 wxPyEndAllowThreads(__tstate);
12290 if (PyErr_Occurred()) SWIG_fail;
12291 }
12292 resultobj = SWIG_From_int((int)result);
12293 {
12294 if (temp2)
12295 delete arg2;
12296 }
12297 return resultobj;
12298 fail:
12299 {
12300 if (temp2)
12301 delete arg2;
12302 }
12303 return NULL;
12304 }
12305
12306
12307 static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12308 PyObject *resultobj;
12309 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12310 int arg2 ;
12311 wxString result;
12312 PyObject * obj0 = 0 ;
12313 PyObject * obj1 = 0 ;
12314 char *kwnames[] = {
12315 (char *) "self",(char *) "n", NULL
12316 };
12317
12318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12321 arg2 = (int)SWIG_As_int(obj1);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 {
12324 PyThreadState* __tstate = wxPyBeginAllowThreads();
12325 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12326
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 {
12331 #if wxUSE_UNICODE
12332 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12333 #else
12334 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12335 #endif
12336 }
12337 return resultobj;
12338 fail:
12339 return NULL;
12340 }
12341
12342
12343 static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
12344 PyObject *resultobj;
12345 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12346 int arg2 ;
12347 wxString *arg3 = 0 ;
12348 bool temp3 = False ;
12349 PyObject * obj0 = 0 ;
12350 PyObject * obj1 = 0 ;
12351 PyObject * obj2 = 0 ;
12352 char *kwnames[] = {
12353 (char *) "self",(char *) "n",(char *) "label", NULL
12354 };
12355
12356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12359 arg2 = (int)SWIG_As_int(obj1);
12360 if (PyErr_Occurred()) SWIG_fail;
12361 {
12362 arg3 = wxString_in_helper(obj2);
12363 if (arg3 == NULL) SWIG_fail;
12364 temp3 = True;
12365 }
12366 {
12367 PyThreadState* __tstate = wxPyBeginAllowThreads();
12368 (arg1)->SetString(arg2,(wxString const &)*arg3);
12369
12370 wxPyEndAllowThreads(__tstate);
12371 if (PyErr_Occurred()) SWIG_fail;
12372 }
12373 Py_INCREF(Py_None); resultobj = Py_None;
12374 {
12375 if (temp3)
12376 delete arg3;
12377 }
12378 return resultobj;
12379 fail:
12380 {
12381 if (temp3)
12382 delete arg3;
12383 }
12384 return NULL;
12385 }
12386
12387
12388 static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) {
12389 PyObject *resultobj;
12390 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12391 int arg2 ;
12392 bool arg3 = (bool) True ;
12393 PyObject * obj0 = 0 ;
12394 PyObject * obj1 = 0 ;
12395 PyObject * obj2 = 0 ;
12396 char *kwnames[] = {
12397 (char *) "self",(char *) "n",(char *) "enable", NULL
12398 };
12399
12400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12403 arg2 = (int)SWIG_As_int(obj1);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 if (obj2) {
12406 arg3 = (bool)SWIG_As_bool(obj2);
12407 if (PyErr_Occurred()) SWIG_fail;
12408 }
12409 {
12410 PyThreadState* __tstate = wxPyBeginAllowThreads();
12411 (arg1)->Enable(arg2,arg3);
12412
12413 wxPyEndAllowThreads(__tstate);
12414 if (PyErr_Occurred()) SWIG_fail;
12415 }
12416 Py_INCREF(Py_None); resultobj = Py_None;
12417 return resultobj;
12418 fail:
12419 return NULL;
12420 }
12421
12422
12423 static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) {
12424 PyObject *resultobj;
12425 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12426 int arg2 ;
12427 bool arg3 = (bool) True ;
12428 PyObject * obj0 = 0 ;
12429 PyObject * obj1 = 0 ;
12430 PyObject * obj2 = 0 ;
12431 char *kwnames[] = {
12432 (char *) "self",(char *) "n",(char *) "show", NULL
12433 };
12434
12435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12438 arg2 = (int)SWIG_As_int(obj1);
12439 if (PyErr_Occurred()) SWIG_fail;
12440 if (obj2) {
12441 arg3 = (bool)SWIG_As_bool(obj2);
12442 if (PyErr_Occurred()) SWIG_fail;
12443 }
12444 {
12445 PyThreadState* __tstate = wxPyBeginAllowThreads();
12446 (arg1)->Show(arg2,arg3);
12447
12448 wxPyEndAllowThreads(__tstate);
12449 if (PyErr_Occurred()) SWIG_fail;
12450 }
12451 Py_INCREF(Py_None); resultobj = Py_None;
12452 return resultobj;
12453 fail:
12454 return NULL;
12455 }
12456
12457
12458 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
12459 PyObject *resultobj;
12460 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12461 int result;
12462 PyObject * obj0 = 0 ;
12463 char *kwnames[] = {
12464 (char *) "self", NULL
12465 };
12466
12467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1);
12473
12474 wxPyEndAllowThreads(__tstate);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 }
12477 resultobj = SWIG_From_int((int)result);
12478 return resultobj;
12479 fail:
12480 return NULL;
12481 }
12482
12483
12484 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
12485 PyObject *resultobj;
12486 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12487 int result;
12488 PyObject * obj0 = 0 ;
12489 char *kwnames[] = {
12490 (char *) "self", NULL
12491 };
12492
12493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1);
12499
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 resultobj = SWIG_From_int((int)result);
12504 return resultobj;
12505 fail:
12506 return NULL;
12507 }
12508
12509
12510 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
12511 PyObject *resultobj;
12512 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12513 int arg2 ;
12514 int arg3 ;
12515 long arg4 ;
12516 int result;
12517 PyObject * obj0 = 0 ;
12518 PyObject * obj1 = 0 ;
12519 PyObject * obj2 = 0 ;
12520 PyObject * obj3 = 0 ;
12521 char *kwnames[] = {
12522 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12523 };
12524
12525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12528 arg2 = (int)SWIG_As_int(obj1);
12529 if (PyErr_Occurred()) SWIG_fail;
12530 arg3 = (int)SWIG_As_int(obj2);
12531 if (PyErr_Occurred()) SWIG_fail;
12532 arg4 = (long)SWIG_As_long(obj3);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4);
12537
12538 wxPyEndAllowThreads(__tstate);
12539 if (PyErr_Occurred()) SWIG_fail;
12540 }
12541 resultobj = SWIG_From_int((int)result);
12542 return resultobj;
12543 fail:
12544 return NULL;
12545 }
12546
12547
12548 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12549 PyObject *resultobj;
12550 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12551 wxVisualAttributes result;
12552 PyObject * obj0 = 0 ;
12553 char *kwnames[] = {
12554 (char *) "variant", NULL
12555 };
12556
12557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12558 if (obj0) {
12559 arg1 = (int)SWIG_As_int(obj0);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 {
12563 if (!wxPyCheckForApp()) SWIG_fail;
12564 PyThreadState* __tstate = wxPyBeginAllowThreads();
12565 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12566
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 {
12571 wxVisualAttributes * resultptr;
12572 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12573 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12574 }
12575 return resultobj;
12576 fail:
12577 return NULL;
12578 }
12579
12580
12581 static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) {
12582 PyObject *obj;
12583 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12584 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12585 Py_INCREF(obj);
12586 return Py_BuildValue((char *)"");
12587 }
12588 static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12589 PyObject *resultobj;
12590 wxWindow *arg1 = (wxWindow *) 0 ;
12591 int arg2 = (int) -1 ;
12592 wxString const &arg3_defvalue = wxPyEmptyString ;
12593 wxString *arg3 = (wxString *) &arg3_defvalue ;
12594 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12595 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12596 wxSize const &arg5_defvalue = wxDefaultSize ;
12597 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12598 long arg6 = (long) 0 ;
12599 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12600 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12601 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12602 wxString *arg8 = (wxString *) &arg8_defvalue ;
12603 wxRadioButton *result;
12604 bool temp3 = False ;
12605 wxPoint temp4 ;
12606 wxSize temp5 ;
12607 bool temp8 = False ;
12608 PyObject * obj0 = 0 ;
12609 PyObject * obj1 = 0 ;
12610 PyObject * obj2 = 0 ;
12611 PyObject * obj3 = 0 ;
12612 PyObject * obj4 = 0 ;
12613 PyObject * obj5 = 0 ;
12614 PyObject * obj6 = 0 ;
12615 PyObject * obj7 = 0 ;
12616 char *kwnames[] = {
12617 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12618 };
12619
12620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12623 if (obj1) {
12624 arg2 = (int)SWIG_As_int(obj1);
12625 if (PyErr_Occurred()) SWIG_fail;
12626 }
12627 if (obj2) {
12628 {
12629 arg3 = wxString_in_helper(obj2);
12630 if (arg3 == NULL) SWIG_fail;
12631 temp3 = True;
12632 }
12633 }
12634 if (obj3) {
12635 {
12636 arg4 = &temp4;
12637 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12638 }
12639 }
12640 if (obj4) {
12641 {
12642 arg5 = &temp5;
12643 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12644 }
12645 }
12646 if (obj5) {
12647 arg6 = (long)SWIG_As_long(obj5);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 if (obj6) {
12651 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12652 SWIG_POINTER_EXCEPTION | 0)) == -1)
12653 SWIG_fail;
12654 if (arg7 == NULL) {
12655 PyErr_SetString(PyExc_TypeError,"null reference");
12656 SWIG_fail;
12657 }
12658 }
12659 if (obj7) {
12660 {
12661 arg8 = wxString_in_helper(obj7);
12662 if (arg8 == NULL) SWIG_fail;
12663 temp8 = True;
12664 }
12665 }
12666 {
12667 if (!wxPyCheckForApp()) SWIG_fail;
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12670
12671 wxPyEndAllowThreads(__tstate);
12672 if (PyErr_Occurred()) SWIG_fail;
12673 }
12674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12675 {
12676 if (temp3)
12677 delete arg3;
12678 }
12679 {
12680 if (temp8)
12681 delete arg8;
12682 }
12683 return resultobj;
12684 fail:
12685 {
12686 if (temp3)
12687 delete arg3;
12688 }
12689 {
12690 if (temp8)
12691 delete arg8;
12692 }
12693 return NULL;
12694 }
12695
12696
12697 static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12698 PyObject *resultobj;
12699 wxRadioButton *result;
12700 char *kwnames[] = {
12701 NULL
12702 };
12703
12704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12705 {
12706 if (!wxPyCheckForApp()) SWIG_fail;
12707 PyThreadState* __tstate = wxPyBeginAllowThreads();
12708 result = (wxRadioButton *)new wxRadioButton();
12709
12710 wxPyEndAllowThreads(__tstate);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 }
12713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12714 return resultobj;
12715 fail:
12716 return NULL;
12717 }
12718
12719
12720 static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12721 PyObject *resultobj;
12722 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12723 wxWindow *arg2 = (wxWindow *) 0 ;
12724 int arg3 = (int) -1 ;
12725 wxString const &arg4_defvalue = wxPyEmptyString ;
12726 wxString *arg4 = (wxString *) &arg4_defvalue ;
12727 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12728 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12729 wxSize const &arg6_defvalue = wxDefaultSize ;
12730 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12731 long arg7 = (long) 0 ;
12732 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12733 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12734 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12735 wxString *arg9 = (wxString *) &arg9_defvalue ;
12736 bool result;
12737 bool temp4 = False ;
12738 wxPoint temp5 ;
12739 wxSize temp6 ;
12740 bool temp9 = False ;
12741 PyObject * obj0 = 0 ;
12742 PyObject * obj1 = 0 ;
12743 PyObject * obj2 = 0 ;
12744 PyObject * obj3 = 0 ;
12745 PyObject * obj4 = 0 ;
12746 PyObject * obj5 = 0 ;
12747 PyObject * obj6 = 0 ;
12748 PyObject * obj7 = 0 ;
12749 PyObject * obj8 = 0 ;
12750 char *kwnames[] = {
12751 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12752 };
12753
12754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12759 if (obj2) {
12760 arg3 = (int)SWIG_As_int(obj2);
12761 if (PyErr_Occurred()) SWIG_fail;
12762 }
12763 if (obj3) {
12764 {
12765 arg4 = wxString_in_helper(obj3);
12766 if (arg4 == NULL) SWIG_fail;
12767 temp4 = True;
12768 }
12769 }
12770 if (obj4) {
12771 {
12772 arg5 = &temp5;
12773 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12774 }
12775 }
12776 if (obj5) {
12777 {
12778 arg6 = &temp6;
12779 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12780 }
12781 }
12782 if (obj6) {
12783 arg7 = (long)SWIG_As_long(obj6);
12784 if (PyErr_Occurred()) SWIG_fail;
12785 }
12786 if (obj7) {
12787 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12788 SWIG_POINTER_EXCEPTION | 0)) == -1)
12789 SWIG_fail;
12790 if (arg8 == NULL) {
12791 PyErr_SetString(PyExc_TypeError,"null reference");
12792 SWIG_fail;
12793 }
12794 }
12795 if (obj8) {
12796 {
12797 arg9 = wxString_in_helper(obj8);
12798 if (arg9 == NULL) SWIG_fail;
12799 temp9 = True;
12800 }
12801 }
12802 {
12803 PyThreadState* __tstate = wxPyBeginAllowThreads();
12804 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12805
12806 wxPyEndAllowThreads(__tstate);
12807 if (PyErr_Occurred()) SWIG_fail;
12808 }
12809 {
12810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12811 }
12812 {
12813 if (temp4)
12814 delete arg4;
12815 }
12816 {
12817 if (temp9)
12818 delete arg9;
12819 }
12820 return resultobj;
12821 fail:
12822 {
12823 if (temp4)
12824 delete arg4;
12825 }
12826 {
12827 if (temp9)
12828 delete arg9;
12829 }
12830 return NULL;
12831 }
12832
12833
12834 static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12835 PyObject *resultobj;
12836 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12837 bool result;
12838 PyObject * obj0 = 0 ;
12839 char *kwnames[] = {
12840 (char *) "self", NULL
12841 };
12842
12843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12846 {
12847 PyThreadState* __tstate = wxPyBeginAllowThreads();
12848 result = (bool)(arg1)->GetValue();
12849
12850 wxPyEndAllowThreads(__tstate);
12851 if (PyErr_Occurred()) SWIG_fail;
12852 }
12853 {
12854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12855 }
12856 return resultobj;
12857 fail:
12858 return NULL;
12859 }
12860
12861
12862 static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12863 PyObject *resultobj;
12864 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12865 bool arg2 ;
12866 PyObject * obj0 = 0 ;
12867 PyObject * obj1 = 0 ;
12868 char *kwnames[] = {
12869 (char *) "self",(char *) "value", NULL
12870 };
12871
12872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12875 arg2 = (bool)SWIG_As_bool(obj1);
12876 if (PyErr_Occurred()) SWIG_fail;
12877 {
12878 PyThreadState* __tstate = wxPyBeginAllowThreads();
12879 (arg1)->SetValue(arg2);
12880
12881 wxPyEndAllowThreads(__tstate);
12882 if (PyErr_Occurred()) SWIG_fail;
12883 }
12884 Py_INCREF(Py_None); resultobj = Py_None;
12885 return resultobj;
12886 fail:
12887 return NULL;
12888 }
12889
12890
12891 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12892 PyObject *resultobj;
12893 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12894 wxVisualAttributes result;
12895 PyObject * obj0 = 0 ;
12896 char *kwnames[] = {
12897 (char *) "variant", NULL
12898 };
12899
12900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12901 if (obj0) {
12902 arg1 = (int)SWIG_As_int(obj0);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
12905 {
12906 if (!wxPyCheckForApp()) SWIG_fail;
12907 PyThreadState* __tstate = wxPyBeginAllowThreads();
12908 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12909
12910 wxPyEndAllowThreads(__tstate);
12911 if (PyErr_Occurred()) SWIG_fail;
12912 }
12913 {
12914 wxVisualAttributes * resultptr;
12915 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12916 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12917 }
12918 return resultobj;
12919 fail:
12920 return NULL;
12921 }
12922
12923
12924 static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) {
12925 PyObject *obj;
12926 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12927 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12928 Py_INCREF(obj);
12929 return Py_BuildValue((char *)"");
12930 }
12931 static int _wrap_SliderNameStr_set(PyObject *) {
12932 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12933 return 1;
12934 }
12935
12936
12937 static PyObject *_wrap_SliderNameStr_get() {
12938 PyObject *pyobj;
12939
12940 {
12941 #if wxUSE_UNICODE
12942 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12943 #else
12944 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12945 #endif
12946 }
12947 return pyobj;
12948 }
12949
12950
12951 static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) {
12952 PyObject *resultobj;
12953 wxWindow *arg1 = (wxWindow *) 0 ;
12954 int arg2 = (int) -1 ;
12955 int arg3 = (int) 0 ;
12956 int arg4 = (int) 0 ;
12957 int arg5 = (int) 100 ;
12958 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12959 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12960 wxSize const &arg7_defvalue = wxDefaultSize ;
12961 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12962 long arg8 = (long) wxSL_HORIZONTAL ;
12963 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12964 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12965 wxString const &arg10_defvalue = wxPySliderNameStr ;
12966 wxString *arg10 = (wxString *) &arg10_defvalue ;
12967 wxSlider *result;
12968 wxPoint temp6 ;
12969 wxSize temp7 ;
12970 bool temp10 = False ;
12971 PyObject * obj0 = 0 ;
12972 PyObject * obj1 = 0 ;
12973 PyObject * obj2 = 0 ;
12974 PyObject * obj3 = 0 ;
12975 PyObject * obj4 = 0 ;
12976 PyObject * obj5 = 0 ;
12977 PyObject * obj6 = 0 ;
12978 PyObject * obj7 = 0 ;
12979 PyObject * obj8 = 0 ;
12980 PyObject * obj9 = 0 ;
12981 char *kwnames[] = {
12982 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12983 };
12984
12985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12988 if (obj1) {
12989 arg2 = (int)SWIG_As_int(obj1);
12990 if (PyErr_Occurred()) SWIG_fail;
12991 }
12992 if (obj2) {
12993 arg3 = (int)SWIG_As_int(obj2);
12994 if (PyErr_Occurred()) SWIG_fail;
12995 }
12996 if (obj3) {
12997 arg4 = (int)SWIG_As_int(obj3);
12998 if (PyErr_Occurred()) SWIG_fail;
12999 }
13000 if (obj4) {
13001 arg5 = (int)SWIG_As_int(obj4);
13002 if (PyErr_Occurred()) SWIG_fail;
13003 }
13004 if (obj5) {
13005 {
13006 arg6 = &temp6;
13007 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
13008 }
13009 }
13010 if (obj6) {
13011 {
13012 arg7 = &temp7;
13013 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
13014 }
13015 }
13016 if (obj7) {
13017 arg8 = (long)SWIG_As_long(obj7);
13018 if (PyErr_Occurred()) SWIG_fail;
13019 }
13020 if (obj8) {
13021 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
13022 SWIG_POINTER_EXCEPTION | 0)) == -1)
13023 SWIG_fail;
13024 if (arg9 == NULL) {
13025 PyErr_SetString(PyExc_TypeError,"null reference");
13026 SWIG_fail;
13027 }
13028 }
13029 if (obj9) {
13030 {
13031 arg10 = wxString_in_helper(obj9);
13032 if (arg10 == NULL) SWIG_fail;
13033 temp10 = True;
13034 }
13035 }
13036 {
13037 if (!wxPyCheckForApp()) SWIG_fail;
13038 PyThreadState* __tstate = wxPyBeginAllowThreads();
13039 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
13040
13041 wxPyEndAllowThreads(__tstate);
13042 if (PyErr_Occurred()) SWIG_fail;
13043 }
13044 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13045 {
13046 if (temp10)
13047 delete arg10;
13048 }
13049 return resultobj;
13050 fail:
13051 {
13052 if (temp10)
13053 delete arg10;
13054 }
13055 return NULL;
13056 }
13057
13058
13059 static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) {
13060 PyObject *resultobj;
13061 wxSlider *result;
13062 char *kwnames[] = {
13063 NULL
13064 };
13065
13066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
13067 {
13068 if (!wxPyCheckForApp()) SWIG_fail;
13069 PyThreadState* __tstate = wxPyBeginAllowThreads();
13070 result = (wxSlider *)new wxSlider();
13071
13072 wxPyEndAllowThreads(__tstate);
13073 if (PyErr_Occurred()) SWIG_fail;
13074 }
13075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13076 return resultobj;
13077 fail:
13078 return NULL;
13079 }
13080
13081
13082 static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13083 PyObject *resultobj;
13084 wxSlider *arg1 = (wxSlider *) 0 ;
13085 wxWindow *arg2 = (wxWindow *) 0 ;
13086 int arg3 = (int) -1 ;
13087 int arg4 = (int) 0 ;
13088 int arg5 = (int) 0 ;
13089 int arg6 = (int) 100 ;
13090 wxPoint const &arg7_defvalue = wxDefaultPosition ;
13091 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
13092 wxSize const &arg8_defvalue = wxDefaultSize ;
13093 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
13094 long arg9 = (long) wxSL_HORIZONTAL ;
13095 wxValidator const &arg10_defvalue = wxDefaultValidator ;
13096 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
13097 wxString const &arg11_defvalue = wxPySliderNameStr ;
13098 wxString *arg11 = (wxString *) &arg11_defvalue ;
13099 bool result;
13100 wxPoint temp7 ;
13101 wxSize temp8 ;
13102 bool temp11 = False ;
13103 PyObject * obj0 = 0 ;
13104 PyObject * obj1 = 0 ;
13105 PyObject * obj2 = 0 ;
13106 PyObject * obj3 = 0 ;
13107 PyObject * obj4 = 0 ;
13108 PyObject * obj5 = 0 ;
13109 PyObject * obj6 = 0 ;
13110 PyObject * obj7 = 0 ;
13111 PyObject * obj8 = 0 ;
13112 PyObject * obj9 = 0 ;
13113 PyObject * obj10 = 0 ;
13114 char *kwnames[] = {
13115 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13116 };
13117
13118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
13119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13123 if (obj2) {
13124 arg3 = (int)SWIG_As_int(obj2);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 if (obj3) {
13128 arg4 = (int)SWIG_As_int(obj3);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 if (obj4) {
13132 arg5 = (int)SWIG_As_int(obj4);
13133 if (PyErr_Occurred()) SWIG_fail;
13134 }
13135 if (obj5) {
13136 arg6 = (int)SWIG_As_int(obj5);
13137 if (PyErr_Occurred()) SWIG_fail;
13138 }
13139 if (obj6) {
13140 {
13141 arg7 = &temp7;
13142 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
13143 }
13144 }
13145 if (obj7) {
13146 {
13147 arg8 = &temp8;
13148 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
13149 }
13150 }
13151 if (obj8) {
13152 arg9 = (long)SWIG_As_long(obj8);
13153 if (PyErr_Occurred()) SWIG_fail;
13154 }
13155 if (obj9) {
13156 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
13157 SWIG_POINTER_EXCEPTION | 0)) == -1)
13158 SWIG_fail;
13159 if (arg10 == NULL) {
13160 PyErr_SetString(PyExc_TypeError,"null reference");
13161 SWIG_fail;
13162 }
13163 }
13164 if (obj10) {
13165 {
13166 arg11 = wxString_in_helper(obj10);
13167 if (arg11 == NULL) SWIG_fail;
13168 temp11 = True;
13169 }
13170 }
13171 {
13172 PyThreadState* __tstate = wxPyBeginAllowThreads();
13173 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
13174
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 {
13179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13180 }
13181 {
13182 if (temp11)
13183 delete arg11;
13184 }
13185 return resultobj;
13186 fail:
13187 {
13188 if (temp11)
13189 delete arg11;
13190 }
13191 return NULL;
13192 }
13193
13194
13195 static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13196 PyObject *resultobj;
13197 wxSlider *arg1 = (wxSlider *) 0 ;
13198 int result;
13199 PyObject * obj0 = 0 ;
13200 char *kwnames[] = {
13201 (char *) "self", NULL
13202 };
13203
13204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13207 {
13208 PyThreadState* __tstate = wxPyBeginAllowThreads();
13209 result = (int)((wxSlider const *)arg1)->GetValue();
13210
13211 wxPyEndAllowThreads(__tstate);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 resultobj = SWIG_From_int((int)result);
13215 return resultobj;
13216 fail:
13217 return NULL;
13218 }
13219
13220
13221 static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13222 PyObject *resultobj;
13223 wxSlider *arg1 = (wxSlider *) 0 ;
13224 int arg2 ;
13225 PyObject * obj0 = 0 ;
13226 PyObject * obj1 = 0 ;
13227 char *kwnames[] = {
13228 (char *) "self",(char *) "value", NULL
13229 };
13230
13231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13234 arg2 = (int)SWIG_As_int(obj1);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 {
13237 PyThreadState* __tstate = wxPyBeginAllowThreads();
13238 (arg1)->SetValue(arg2);
13239
13240 wxPyEndAllowThreads(__tstate);
13241 if (PyErr_Occurred()) SWIG_fail;
13242 }
13243 Py_INCREF(Py_None); resultobj = Py_None;
13244 return resultobj;
13245 fail:
13246 return NULL;
13247 }
13248
13249
13250 static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
13251 PyObject *resultobj;
13252 wxSlider *arg1 = (wxSlider *) 0 ;
13253 int arg2 ;
13254 int arg3 ;
13255 PyObject * obj0 = 0 ;
13256 PyObject * obj1 = 0 ;
13257 PyObject * obj2 = 0 ;
13258 char *kwnames[] = {
13259 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13260 };
13261
13262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13265 arg2 = (int)SWIG_As_int(obj1);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 arg3 = (int)SWIG_As_int(obj2);
13268 if (PyErr_Occurred()) SWIG_fail;
13269 {
13270 PyThreadState* __tstate = wxPyBeginAllowThreads();
13271 (arg1)->SetRange(arg2,arg3);
13272
13273 wxPyEndAllowThreads(__tstate);
13274 if (PyErr_Occurred()) SWIG_fail;
13275 }
13276 Py_INCREF(Py_None); resultobj = Py_None;
13277 return resultobj;
13278 fail:
13279 return NULL;
13280 }
13281
13282
13283 static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13284 PyObject *resultobj;
13285 wxSlider *arg1 = (wxSlider *) 0 ;
13286 int result;
13287 PyObject * obj0 = 0 ;
13288 char *kwnames[] = {
13289 (char *) "self", NULL
13290 };
13291
13292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 result = (int)((wxSlider const *)arg1)->GetMin();
13298
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 resultobj = SWIG_From_int((int)result);
13303 return resultobj;
13304 fail:
13305 return NULL;
13306 }
13307
13308
13309 static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13310 PyObject *resultobj;
13311 wxSlider *arg1 = (wxSlider *) 0 ;
13312 int result;
13313 PyObject * obj0 = 0 ;
13314 char *kwnames[] = {
13315 (char *) "self", NULL
13316 };
13317
13318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13321 {
13322 PyThreadState* __tstate = wxPyBeginAllowThreads();
13323 result = (int)((wxSlider const *)arg1)->GetMax();
13324
13325 wxPyEndAllowThreads(__tstate);
13326 if (PyErr_Occurred()) SWIG_fail;
13327 }
13328 resultobj = SWIG_From_int((int)result);
13329 return resultobj;
13330 fail:
13331 return NULL;
13332 }
13333
13334
13335 static PyObject *_wrap_Slider_SetMin(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 *) "minValue", NULL
13343 };
13344
13345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",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)->SetMin(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_SetMax(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 *) "maxValue", NULL
13372 };
13373
13374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",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)->SetMax(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_SetLineSize(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 *) "lineSize", NULL
13401 };
13402
13403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",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)->SetLineSize(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_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13423 PyObject *resultobj;
13424 wxSlider *arg1 = (wxSlider *) 0 ;
13425 int arg2 ;
13426 PyObject * obj0 = 0 ;
13427 PyObject * obj1 = 0 ;
13428 char *kwnames[] = {
13429 (char *) "self",(char *) "pageSize", NULL
13430 };
13431
13432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13435 arg2 = (int)SWIG_As_int(obj1);
13436 if (PyErr_Occurred()) SWIG_fail;
13437 {
13438 PyThreadState* __tstate = wxPyBeginAllowThreads();
13439 (arg1)->SetPageSize(arg2);
13440
13441 wxPyEndAllowThreads(__tstate);
13442 if (PyErr_Occurred()) SWIG_fail;
13443 }
13444 Py_INCREF(Py_None); resultobj = Py_None;
13445 return resultobj;
13446 fail:
13447 return NULL;
13448 }
13449
13450
13451 static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13452 PyObject *resultobj;
13453 wxSlider *arg1 = (wxSlider *) 0 ;
13454 int result;
13455 PyObject * obj0 = 0 ;
13456 char *kwnames[] = {
13457 (char *) "self", NULL
13458 };
13459
13460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13463 {
13464 PyThreadState* __tstate = wxPyBeginAllowThreads();
13465 result = (int)((wxSlider const *)arg1)->GetLineSize();
13466
13467 wxPyEndAllowThreads(__tstate);
13468 if (PyErr_Occurred()) SWIG_fail;
13469 }
13470 resultobj = SWIG_From_int((int)result);
13471 return resultobj;
13472 fail:
13473 return NULL;
13474 }
13475
13476
13477 static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13478 PyObject *resultobj;
13479 wxSlider *arg1 = (wxSlider *) 0 ;
13480 int result;
13481 PyObject * obj0 = 0 ;
13482 char *kwnames[] = {
13483 (char *) "self", NULL
13484 };
13485
13486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13489 {
13490 PyThreadState* __tstate = wxPyBeginAllowThreads();
13491 result = (int)((wxSlider const *)arg1)->GetPageSize();
13492
13493 wxPyEndAllowThreads(__tstate);
13494 if (PyErr_Occurred()) SWIG_fail;
13495 }
13496 resultobj = SWIG_From_int((int)result);
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13504 PyObject *resultobj;
13505 wxSlider *arg1 = (wxSlider *) 0 ;
13506 int arg2 ;
13507 PyObject * obj0 = 0 ;
13508 PyObject * obj1 = 0 ;
13509 char *kwnames[] = {
13510 (char *) "self",(char *) "lenPixels", NULL
13511 };
13512
13513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13516 arg2 = (int)SWIG_As_int(obj1);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 (arg1)->SetThumbLength(arg2);
13521
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 Py_INCREF(Py_None); resultobj = Py_None;
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13533 PyObject *resultobj;
13534 wxSlider *arg1 = (wxSlider *) 0 ;
13535 int result;
13536 PyObject * obj0 = 0 ;
13537 char *kwnames[] = {
13538 (char *) "self", NULL
13539 };
13540
13541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13547
13548 wxPyEndAllowThreads(__tstate);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 }
13551 resultobj = SWIG_From_int((int)result);
13552 return resultobj;
13553 fail:
13554 return NULL;
13555 }
13556
13557
13558 static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13559 PyObject *resultobj;
13560 wxSlider *arg1 = (wxSlider *) 0 ;
13561 int arg2 ;
13562 int arg3 = (int) 1 ;
13563 PyObject * obj0 = 0 ;
13564 PyObject * obj1 = 0 ;
13565 PyObject * obj2 = 0 ;
13566 char *kwnames[] = {
13567 (char *) "self",(char *) "n",(char *) "pos", NULL
13568 };
13569
13570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13573 arg2 = (int)SWIG_As_int(obj1);
13574 if (PyErr_Occurred()) SWIG_fail;
13575 if (obj2) {
13576 arg3 = (int)SWIG_As_int(obj2);
13577 if (PyErr_Occurred()) SWIG_fail;
13578 }
13579 {
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 (arg1)->SetTickFreq(arg2,arg3);
13582
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 Py_INCREF(Py_None); resultobj = Py_None;
13587 return resultobj;
13588 fail:
13589 return NULL;
13590 }
13591
13592
13593 static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13594 PyObject *resultobj;
13595 wxSlider *arg1 = (wxSlider *) 0 ;
13596 int result;
13597 PyObject * obj0 = 0 ;
13598 char *kwnames[] = {
13599 (char *) "self", NULL
13600 };
13601
13602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13605 {
13606 PyThreadState* __tstate = wxPyBeginAllowThreads();
13607 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13608
13609 wxPyEndAllowThreads(__tstate);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 resultobj = SWIG_From_int((int)result);
13613 return resultobj;
13614 fail:
13615 return NULL;
13616 }
13617
13618
13619 static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) {
13620 PyObject *resultobj;
13621 wxSlider *arg1 = (wxSlider *) 0 ;
13622 PyObject * obj0 = 0 ;
13623 char *kwnames[] = {
13624 (char *) "self", NULL
13625 };
13626
13627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13630 {
13631 PyThreadState* __tstate = wxPyBeginAllowThreads();
13632 (arg1)->ClearTicks();
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_SetTick(PyObject *, PyObject *args, PyObject *kwargs) {
13645 PyObject *resultobj;
13646 wxSlider *arg1 = (wxSlider *) 0 ;
13647 int arg2 ;
13648 PyObject * obj0 = 0 ;
13649 PyObject * obj1 = 0 ;
13650 char *kwnames[] = {
13651 (char *) "self",(char *) "tickPos", NULL
13652 };
13653
13654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13657 arg2 = (int)SWIG_As_int(obj1);
13658 if (PyErr_Occurred()) SWIG_fail;
13659 {
13660 PyThreadState* __tstate = wxPyBeginAllowThreads();
13661 (arg1)->SetTick(arg2);
13662
13663 wxPyEndAllowThreads(__tstate);
13664 if (PyErr_Occurred()) SWIG_fail;
13665 }
13666 Py_INCREF(Py_None); resultobj = Py_None;
13667 return resultobj;
13668 fail:
13669 return NULL;
13670 }
13671
13672
13673 static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) {
13674 PyObject *resultobj;
13675 wxSlider *arg1 = (wxSlider *) 0 ;
13676 PyObject * obj0 = 0 ;
13677 char *kwnames[] = {
13678 (char *) "self", NULL
13679 };
13680
13681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13684 {
13685 PyThreadState* __tstate = wxPyBeginAllowThreads();
13686 (arg1)->ClearSel();
13687
13688 wxPyEndAllowThreads(__tstate);
13689 if (PyErr_Occurred()) SWIG_fail;
13690 }
13691 Py_INCREF(Py_None); resultobj = Py_None;
13692 return resultobj;
13693 fail:
13694 return NULL;
13695 }
13696
13697
13698 static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) {
13699 PyObject *resultobj;
13700 wxSlider *arg1 = (wxSlider *) 0 ;
13701 int result;
13702 PyObject * obj0 = 0 ;
13703 char *kwnames[] = {
13704 (char *) "self", NULL
13705 };
13706
13707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13710 {
13711 PyThreadState* __tstate = wxPyBeginAllowThreads();
13712 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13713
13714 wxPyEndAllowThreads(__tstate);
13715 if (PyErr_Occurred()) SWIG_fail;
13716 }
13717 resultobj = SWIG_From_int((int)result);
13718 return resultobj;
13719 fail:
13720 return NULL;
13721 }
13722
13723
13724 static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) {
13725 PyObject *resultobj;
13726 wxSlider *arg1 = (wxSlider *) 0 ;
13727 int result;
13728 PyObject * obj0 = 0 ;
13729 char *kwnames[] = {
13730 (char *) "self", NULL
13731 };
13732
13733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13736 {
13737 PyThreadState* __tstate = wxPyBeginAllowThreads();
13738 result = (int)((wxSlider const *)arg1)->GetSelStart();
13739
13740 wxPyEndAllowThreads(__tstate);
13741 if (PyErr_Occurred()) SWIG_fail;
13742 }
13743 resultobj = SWIG_From_int((int)result);
13744 return resultobj;
13745 fail:
13746 return NULL;
13747 }
13748
13749
13750 static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13751 PyObject *resultobj;
13752 wxSlider *arg1 = (wxSlider *) 0 ;
13753 int arg2 ;
13754 int arg3 ;
13755 PyObject * obj0 = 0 ;
13756 PyObject * obj1 = 0 ;
13757 PyObject * obj2 = 0 ;
13758 char *kwnames[] = {
13759 (char *) "self",(char *) "min",(char *) "max", NULL
13760 };
13761
13762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13765 arg2 = (int)SWIG_As_int(obj1);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 arg3 = (int)SWIG_As_int(obj2);
13768 if (PyErr_Occurred()) SWIG_fail;
13769 {
13770 PyThreadState* __tstate = wxPyBeginAllowThreads();
13771 (arg1)->SetSelection(arg2,arg3);
13772
13773 wxPyEndAllowThreads(__tstate);
13774 if (PyErr_Occurred()) SWIG_fail;
13775 }
13776 Py_INCREF(Py_None); resultobj = Py_None;
13777 return resultobj;
13778 fail:
13779 return NULL;
13780 }
13781
13782
13783 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
13784 PyObject *resultobj;
13785 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13786 wxVisualAttributes result;
13787 PyObject * obj0 = 0 ;
13788 char *kwnames[] = {
13789 (char *) "variant", NULL
13790 };
13791
13792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13793 if (obj0) {
13794 arg1 = (int)SWIG_As_int(obj0);
13795 if (PyErr_Occurred()) SWIG_fail;
13796 }
13797 {
13798 if (!wxPyCheckForApp()) SWIG_fail;
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13801
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 {
13806 wxVisualAttributes * resultptr;
13807 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13808 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13809 }
13810 return resultobj;
13811 fail:
13812 return NULL;
13813 }
13814
13815
13816 static PyObject * Slider_swigregister(PyObject *, PyObject *args) {
13817 PyObject *obj;
13818 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13819 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13820 Py_INCREF(obj);
13821 return Py_BuildValue((char *)"");
13822 }
13823 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
13824 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13825 return 1;
13826 }
13827
13828
13829 static PyObject *_wrap_ToggleButtonNameStr_get() {
13830 PyObject *pyobj;
13831
13832 {
13833 #if wxUSE_UNICODE
13834 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13835 #else
13836 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13837 #endif
13838 }
13839 return pyobj;
13840 }
13841
13842
13843 static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
13844 PyObject *resultobj;
13845 wxWindow *arg1 = (wxWindow *) 0 ;
13846 int arg2 = (int) -1 ;
13847 wxString const &arg3_defvalue = wxPyEmptyString ;
13848 wxString *arg3 = (wxString *) &arg3_defvalue ;
13849 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13850 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13851 wxSize const &arg5_defvalue = wxDefaultSize ;
13852 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13853 long arg6 = (long) 0 ;
13854 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13855 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13856 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13857 wxString *arg8 = (wxString *) &arg8_defvalue ;
13858 wxToggleButton *result;
13859 bool temp3 = False ;
13860 wxPoint temp4 ;
13861 wxSize temp5 ;
13862 bool temp8 = False ;
13863 PyObject * obj0 = 0 ;
13864 PyObject * obj1 = 0 ;
13865 PyObject * obj2 = 0 ;
13866 PyObject * obj3 = 0 ;
13867 PyObject * obj4 = 0 ;
13868 PyObject * obj5 = 0 ;
13869 PyObject * obj6 = 0 ;
13870 PyObject * obj7 = 0 ;
13871 char *kwnames[] = {
13872 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13873 };
13874
13875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13878 if (obj1) {
13879 arg2 = (int)SWIG_As_int(obj1);
13880 if (PyErr_Occurred()) SWIG_fail;
13881 }
13882 if (obj2) {
13883 {
13884 arg3 = wxString_in_helper(obj2);
13885 if (arg3 == NULL) SWIG_fail;
13886 temp3 = True;
13887 }
13888 }
13889 if (obj3) {
13890 {
13891 arg4 = &temp4;
13892 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13893 }
13894 }
13895 if (obj4) {
13896 {
13897 arg5 = &temp5;
13898 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13899 }
13900 }
13901 if (obj5) {
13902 arg6 = (long)SWIG_As_long(obj5);
13903 if (PyErr_Occurred()) SWIG_fail;
13904 }
13905 if (obj6) {
13906 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13907 SWIG_POINTER_EXCEPTION | 0)) == -1)
13908 SWIG_fail;
13909 if (arg7 == NULL) {
13910 PyErr_SetString(PyExc_TypeError,"null reference");
13911 SWIG_fail;
13912 }
13913 }
13914 if (obj7) {
13915 {
13916 arg8 = wxString_in_helper(obj7);
13917 if (arg8 == NULL) SWIG_fail;
13918 temp8 = True;
13919 }
13920 }
13921 {
13922 if (!wxPyCheckForApp()) SWIG_fail;
13923 PyThreadState* __tstate = wxPyBeginAllowThreads();
13924 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13925
13926 wxPyEndAllowThreads(__tstate);
13927 if (PyErr_Occurred()) SWIG_fail;
13928 }
13929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13930 {
13931 if (temp3)
13932 delete arg3;
13933 }
13934 {
13935 if (temp8)
13936 delete arg8;
13937 }
13938 return resultobj;
13939 fail:
13940 {
13941 if (temp3)
13942 delete arg3;
13943 }
13944 {
13945 if (temp8)
13946 delete arg8;
13947 }
13948 return NULL;
13949 }
13950
13951
13952 static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
13953 PyObject *resultobj;
13954 wxToggleButton *result;
13955 char *kwnames[] = {
13956 NULL
13957 };
13958
13959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
13960 {
13961 if (!wxPyCheckForApp()) SWIG_fail;
13962 PyThreadState* __tstate = wxPyBeginAllowThreads();
13963 result = (wxToggleButton *)new wxToggleButton();
13964
13965 wxPyEndAllowThreads(__tstate);
13966 if (PyErr_Occurred()) SWIG_fail;
13967 }
13968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13969 return resultobj;
13970 fail:
13971 return NULL;
13972 }
13973
13974
13975 static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13976 PyObject *resultobj;
13977 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13978 wxWindow *arg2 = (wxWindow *) 0 ;
13979 int arg3 = (int) -1 ;
13980 wxString const &arg4_defvalue = wxPyEmptyString ;
13981 wxString *arg4 = (wxString *) &arg4_defvalue ;
13982 wxPoint const &arg5_defvalue = wxDefaultPosition ;
13983 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
13984 wxSize const &arg6_defvalue = wxDefaultSize ;
13985 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
13986 long arg7 = (long) 0 ;
13987 wxValidator const &arg8_defvalue = wxDefaultValidator ;
13988 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
13989 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
13990 wxString *arg9 = (wxString *) &arg9_defvalue ;
13991 bool result;
13992 bool temp4 = False ;
13993 wxPoint temp5 ;
13994 wxSize temp6 ;
13995 bool temp9 = False ;
13996 PyObject * obj0 = 0 ;
13997 PyObject * obj1 = 0 ;
13998 PyObject * obj2 = 0 ;
13999 PyObject * obj3 = 0 ;
14000 PyObject * obj4 = 0 ;
14001 PyObject * obj5 = 0 ;
14002 PyObject * obj6 = 0 ;
14003 PyObject * obj7 = 0 ;
14004 PyObject * obj8 = 0 ;
14005 char *kwnames[] = {
14006 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14007 };
14008
14009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
14010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14012 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14014 if (obj2) {
14015 arg3 = (int)SWIG_As_int(obj2);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 if (obj3) {
14019 {
14020 arg4 = wxString_in_helper(obj3);
14021 if (arg4 == NULL) SWIG_fail;
14022 temp4 = True;
14023 }
14024 }
14025 if (obj4) {
14026 {
14027 arg5 = &temp5;
14028 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14029 }
14030 }
14031 if (obj5) {
14032 {
14033 arg6 = &temp6;
14034 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
14035 }
14036 }
14037 if (obj6) {
14038 arg7 = (long)SWIG_As_long(obj6);
14039 if (PyErr_Occurred()) SWIG_fail;
14040 }
14041 if (obj7) {
14042 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
14043 SWIG_POINTER_EXCEPTION | 0)) == -1)
14044 SWIG_fail;
14045 if (arg8 == NULL) {
14046 PyErr_SetString(PyExc_TypeError,"null reference");
14047 SWIG_fail;
14048 }
14049 }
14050 if (obj8) {
14051 {
14052 arg9 = wxString_in_helper(obj8);
14053 if (arg9 == NULL) SWIG_fail;
14054 temp9 = True;
14055 }
14056 }
14057 {
14058 PyThreadState* __tstate = wxPyBeginAllowThreads();
14059 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
14060
14061 wxPyEndAllowThreads(__tstate);
14062 if (PyErr_Occurred()) SWIG_fail;
14063 }
14064 {
14065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14066 }
14067 {
14068 if (temp4)
14069 delete arg4;
14070 }
14071 {
14072 if (temp9)
14073 delete arg9;
14074 }
14075 return resultobj;
14076 fail:
14077 {
14078 if (temp4)
14079 delete arg4;
14080 }
14081 {
14082 if (temp9)
14083 delete arg9;
14084 }
14085 return NULL;
14086 }
14087
14088
14089 static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14090 PyObject *resultobj;
14091 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14092 bool arg2 ;
14093 PyObject * obj0 = 0 ;
14094 PyObject * obj1 = 0 ;
14095 char *kwnames[] = {
14096 (char *) "self",(char *) "value", NULL
14097 };
14098
14099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
14100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14102 arg2 = (bool)SWIG_As_bool(obj1);
14103 if (PyErr_Occurred()) SWIG_fail;
14104 {
14105 PyThreadState* __tstate = wxPyBeginAllowThreads();
14106 (arg1)->SetValue(arg2);
14107
14108 wxPyEndAllowThreads(__tstate);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 }
14111 Py_INCREF(Py_None); resultobj = Py_None;
14112 return resultobj;
14113 fail:
14114 return NULL;
14115 }
14116
14117
14118 static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14119 PyObject *resultobj;
14120 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14121 bool result;
14122 PyObject * obj0 = 0 ;
14123 char *kwnames[] = {
14124 (char *) "self", NULL
14125 };
14126
14127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
14128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14130 {
14131 PyThreadState* __tstate = wxPyBeginAllowThreads();
14132 result = (bool)((wxToggleButton const *)arg1)->GetValue();
14133
14134 wxPyEndAllowThreads(__tstate);
14135 if (PyErr_Occurred()) SWIG_fail;
14136 }
14137 {
14138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14139 }
14140 return resultobj;
14141 fail:
14142 return NULL;
14143 }
14144
14145
14146 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14147 PyObject *resultobj;
14148 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14149 wxString *arg2 = 0 ;
14150 bool temp2 = False ;
14151 PyObject * obj0 = 0 ;
14152 PyObject * obj1 = 0 ;
14153 char *kwnames[] = {
14154 (char *) "self",(char *) "label", NULL
14155 };
14156
14157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
14158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14160 {
14161 arg2 = wxString_in_helper(obj1);
14162 if (arg2 == NULL) SWIG_fail;
14163 temp2 = True;
14164 }
14165 {
14166 PyThreadState* __tstate = wxPyBeginAllowThreads();
14167 (arg1)->SetLabel((wxString const &)*arg2);
14168
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 Py_INCREF(Py_None); resultobj = Py_None;
14173 {
14174 if (temp2)
14175 delete arg2;
14176 }
14177 return resultobj;
14178 fail:
14179 {
14180 if (temp2)
14181 delete arg2;
14182 }
14183 return NULL;
14184 }
14185
14186
14187 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14188 PyObject *resultobj;
14189 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14190 wxVisualAttributes result;
14191 PyObject * obj0 = 0 ;
14192 char *kwnames[] = {
14193 (char *) "variant", NULL
14194 };
14195
14196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14197 if (obj0) {
14198 arg1 = (int)SWIG_As_int(obj0);
14199 if (PyErr_Occurred()) SWIG_fail;
14200 }
14201 {
14202 if (!wxPyCheckForApp()) SWIG_fail;
14203 PyThreadState* __tstate = wxPyBeginAllowThreads();
14204 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
14205
14206 wxPyEndAllowThreads(__tstate);
14207 if (PyErr_Occurred()) SWIG_fail;
14208 }
14209 {
14210 wxVisualAttributes * resultptr;
14211 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14212 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14213 }
14214 return resultobj;
14215 fail:
14216 return NULL;
14217 }
14218
14219
14220 static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
14221 PyObject *obj;
14222 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14223 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14224 Py_INCREF(obj);
14225 return Py_BuildValue((char *)"");
14226 }
14227 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
14228 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14229 return 1;
14230 }
14231
14232
14233 static PyObject *_wrap_NOTEBOOK_NAME_get() {
14234 PyObject *pyobj;
14235
14236 {
14237 #if wxUSE_UNICODE
14238 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14239 #else
14240 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14241 #endif
14242 }
14243 return pyobj;
14244 }
14245
14246
14247 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) {
14248 PyObject *resultobj;
14249 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14250 size_t result;
14251 PyObject * obj0 = 0 ;
14252 char *kwnames[] = {
14253 (char *) "self", NULL
14254 };
14255
14256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
14257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14259 {
14260 PyThreadState* __tstate = wxPyBeginAllowThreads();
14261 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
14262
14263 wxPyEndAllowThreads(__tstate);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 }
14266 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
14267 return resultobj;
14268 fail:
14269 return NULL;
14270 }
14271
14272
14273 static PyObject *_wrap_BookCtrl_GetPage(PyObject *, PyObject *args, PyObject *kwargs) {
14274 PyObject *resultobj;
14275 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14276 size_t arg2 ;
14277 wxWindow *result;
14278 PyObject * obj0 = 0 ;
14279 PyObject * obj1 = 0 ;
14280 char *kwnames[] = {
14281 (char *) "self",(char *) "n", NULL
14282 };
14283
14284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
14285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14287 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 {
14290 PyThreadState* __tstate = wxPyBeginAllowThreads();
14291 result = (wxWindow *)(arg1)->GetPage(arg2);
14292
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 {
14297 resultobj = wxPyMake_wxObject(result, 0);
14298 }
14299 return resultobj;
14300 fail:
14301 return NULL;
14302 }
14303
14304
14305 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14306 PyObject *resultobj;
14307 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14308 int result;
14309 PyObject * obj0 = 0 ;
14310 char *kwnames[] = {
14311 (char *) "self", NULL
14312 };
14313
14314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14317 {
14318 PyThreadState* __tstate = wxPyBeginAllowThreads();
14319 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14320
14321 wxPyEndAllowThreads(__tstate);
14322 if (PyErr_Occurred()) SWIG_fail;
14323 }
14324 resultobj = SWIG_From_int((int)result);
14325 return resultobj;
14326 fail:
14327 return NULL;
14328 }
14329
14330
14331 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14332 PyObject *resultobj;
14333 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14334 size_t arg2 ;
14335 wxString *arg3 = 0 ;
14336 bool result;
14337 bool temp3 = False ;
14338 PyObject * obj0 = 0 ;
14339 PyObject * obj1 = 0 ;
14340 PyObject * obj2 = 0 ;
14341 char *kwnames[] = {
14342 (char *) "self",(char *) "n",(char *) "strText", NULL
14343 };
14344
14345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14348 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 {
14351 arg3 = wxString_in_helper(obj2);
14352 if (arg3 == NULL) SWIG_fail;
14353 temp3 = True;
14354 }
14355 {
14356 PyThreadState* __tstate = wxPyBeginAllowThreads();
14357 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14358
14359 wxPyEndAllowThreads(__tstate);
14360 if (PyErr_Occurred()) SWIG_fail;
14361 }
14362 {
14363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14364 }
14365 {
14366 if (temp3)
14367 delete arg3;
14368 }
14369 return resultobj;
14370 fail:
14371 {
14372 if (temp3)
14373 delete arg3;
14374 }
14375 return NULL;
14376 }
14377
14378
14379 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14380 PyObject *resultobj;
14381 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14382 size_t arg2 ;
14383 wxString result;
14384 PyObject * obj0 = 0 ;
14385 PyObject * obj1 = 0 ;
14386 char *kwnames[] = {
14387 (char *) "self",(char *) "n", NULL
14388 };
14389
14390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14393 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14394 if (PyErr_Occurred()) SWIG_fail;
14395 {
14396 PyThreadState* __tstate = wxPyBeginAllowThreads();
14397 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14398
14399 wxPyEndAllowThreads(__tstate);
14400 if (PyErr_Occurred()) SWIG_fail;
14401 }
14402 {
14403 #if wxUSE_UNICODE
14404 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14405 #else
14406 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14407 #endif
14408 }
14409 return resultobj;
14410 fail:
14411 return NULL;
14412 }
14413
14414
14415 static PyObject *_wrap_BookCtrl_SetImageList(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_SetImageList",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 | 0)) == -1) SWIG_fail;
14430 {
14431 PyThreadState* __tstate = wxPyBeginAllowThreads();
14432 (arg1)->SetImageList(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_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14445 PyObject *resultobj;
14446 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14447 wxImageList *arg2 = (wxImageList *) 0 ;
14448 PyObject * obj0 = 0 ;
14449 PyObject * obj1 = 0 ;
14450 char *kwnames[] = {
14451 (char *) "self",(char *) "imageList", NULL
14452 };
14453
14454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14457 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14458 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14459 {
14460 PyThreadState* __tstate = wxPyBeginAllowThreads();
14461 (arg1)->AssignImageList(arg2);
14462
14463 wxPyEndAllowThreads(__tstate);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 }
14466 Py_INCREF(Py_None); resultobj = Py_None;
14467 return resultobj;
14468 fail:
14469 return NULL;
14470 }
14471
14472
14473 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14474 PyObject *resultobj;
14475 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14476 wxImageList *result;
14477 PyObject * obj0 = 0 ;
14478 char *kwnames[] = {
14479 (char *) "self", NULL
14480 };
14481
14482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14485 {
14486 PyThreadState* __tstate = wxPyBeginAllowThreads();
14487 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14488
14489 wxPyEndAllowThreads(__tstate);
14490 if (PyErr_Occurred()) SWIG_fail;
14491 }
14492 {
14493 resultobj = wxPyMake_wxObject(result, 0);
14494 }
14495 return resultobj;
14496 fail:
14497 return NULL;
14498 }
14499
14500
14501 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14502 PyObject *resultobj;
14503 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14504 size_t arg2 ;
14505 int result;
14506 PyObject * obj0 = 0 ;
14507 PyObject * obj1 = 0 ;
14508 char *kwnames[] = {
14509 (char *) "self",(char *) "n", NULL
14510 };
14511
14512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14515 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 {
14518 PyThreadState* __tstate = wxPyBeginAllowThreads();
14519 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14520
14521 wxPyEndAllowThreads(__tstate);
14522 if (PyErr_Occurred()) SWIG_fail;
14523 }
14524 resultobj = SWIG_From_int((int)result);
14525 return resultobj;
14526 fail:
14527 return NULL;
14528 }
14529
14530
14531 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14532 PyObject *resultobj;
14533 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14534 size_t arg2 ;
14535 int arg3 ;
14536 bool result;
14537 PyObject * obj0 = 0 ;
14538 PyObject * obj1 = 0 ;
14539 PyObject * obj2 = 0 ;
14540 char *kwnames[] = {
14541 (char *) "self",(char *) "n",(char *) "imageId", NULL
14542 };
14543
14544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14547 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14548 if (PyErr_Occurred()) SWIG_fail;
14549 arg3 = (int)SWIG_As_int(obj2);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 {
14552 PyThreadState* __tstate = wxPyBeginAllowThreads();
14553 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14554
14555 wxPyEndAllowThreads(__tstate);
14556 if (PyErr_Occurred()) SWIG_fail;
14557 }
14558 {
14559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14560 }
14561 return resultobj;
14562 fail:
14563 return NULL;
14564 }
14565
14566
14567 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
14568 PyObject *resultobj;
14569 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14570 wxSize *arg2 = 0 ;
14571 wxSize temp2 ;
14572 PyObject * obj0 = 0 ;
14573 PyObject * obj1 = 0 ;
14574 char *kwnames[] = {
14575 (char *) "self",(char *) "size", NULL
14576 };
14577
14578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14581 {
14582 arg2 = &temp2;
14583 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14584 }
14585 {
14586 PyThreadState* __tstate = wxPyBeginAllowThreads();
14587 (arg1)->SetPageSize((wxSize const &)*arg2);
14588
14589 wxPyEndAllowThreads(__tstate);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 Py_INCREF(Py_None); resultobj = Py_None;
14593 return resultobj;
14594 fail:
14595 return NULL;
14596 }
14597
14598
14599 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
14600 PyObject *resultobj;
14601 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14602 wxSize *arg2 = 0 ;
14603 wxSize result;
14604 wxSize temp2 ;
14605 PyObject * obj0 = 0 ;
14606 PyObject * obj1 = 0 ;
14607 char *kwnames[] = {
14608 (char *) "self",(char *) "sizePage", NULL
14609 };
14610
14611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14614 {
14615 arg2 = &temp2;
14616 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14617 }
14618 {
14619 PyThreadState* __tstate = wxPyBeginAllowThreads();
14620 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14621
14622 wxPyEndAllowThreads(__tstate);
14623 if (PyErr_Occurred()) SWIG_fail;
14624 }
14625 {
14626 wxSize * resultptr;
14627 resultptr = new wxSize((wxSize &) result);
14628 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14629 }
14630 return resultobj;
14631 fail:
14632 return NULL;
14633 }
14634
14635
14636 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) {
14637 PyObject *resultobj;
14638 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14639 size_t arg2 ;
14640 bool result;
14641 PyObject * obj0 = 0 ;
14642 PyObject * obj1 = 0 ;
14643 char *kwnames[] = {
14644 (char *) "self",(char *) "n", NULL
14645 };
14646
14647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14650 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14651 if (PyErr_Occurred()) SWIG_fail;
14652 {
14653 PyThreadState* __tstate = wxPyBeginAllowThreads();
14654 result = (bool)(arg1)->DeletePage(arg2);
14655
14656 wxPyEndAllowThreads(__tstate);
14657 if (PyErr_Occurred()) SWIG_fail;
14658 }
14659 {
14660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14661 }
14662 return resultobj;
14663 fail:
14664 return NULL;
14665 }
14666
14667
14668 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) {
14669 PyObject *resultobj;
14670 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14671 size_t arg2 ;
14672 bool result;
14673 PyObject * obj0 = 0 ;
14674 PyObject * obj1 = 0 ;
14675 char *kwnames[] = {
14676 (char *) "self",(char *) "n", NULL
14677 };
14678
14679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14682 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14683 if (PyErr_Occurred()) SWIG_fail;
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 result = (bool)(arg1)->RemovePage(arg2);
14687
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 {
14692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14693 }
14694 return resultobj;
14695 fail:
14696 return NULL;
14697 }
14698
14699
14700 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
14701 PyObject *resultobj;
14702 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14703 bool result;
14704 PyObject * obj0 = 0 ;
14705 char *kwnames[] = {
14706 (char *) "self", NULL
14707 };
14708
14709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14712 {
14713 PyThreadState* __tstate = wxPyBeginAllowThreads();
14714 result = (bool)(arg1)->DeleteAllPages();
14715
14716 wxPyEndAllowThreads(__tstate);
14717 if (PyErr_Occurred()) SWIG_fail;
14718 }
14719 {
14720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14721 }
14722 return resultobj;
14723 fail:
14724 return NULL;
14725 }
14726
14727
14728 static PyObject *_wrap_BookCtrl_AddPage(PyObject *, PyObject *args, PyObject *kwargs) {
14729 PyObject *resultobj;
14730 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14731 wxWindow *arg2 = (wxWindow *) 0 ;
14732 wxString *arg3 = 0 ;
14733 bool arg4 = (bool) False ;
14734 int arg5 = (int) -1 ;
14735 bool result;
14736 bool temp3 = False ;
14737 PyObject * obj0 = 0 ;
14738 PyObject * obj1 = 0 ;
14739 PyObject * obj2 = 0 ;
14740 PyObject * obj3 = 0 ;
14741 PyObject * obj4 = 0 ;
14742 char *kwnames[] = {
14743 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14744 };
14745
14746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14749 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14751 {
14752 arg3 = wxString_in_helper(obj2);
14753 if (arg3 == NULL) SWIG_fail;
14754 temp3 = True;
14755 }
14756 if (obj3) {
14757 arg4 = (bool)SWIG_As_bool(obj3);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 }
14760 if (obj4) {
14761 arg5 = (int)SWIG_As_int(obj4);
14762 if (PyErr_Occurred()) SWIG_fail;
14763 }
14764 {
14765 PyThreadState* __tstate = wxPyBeginAllowThreads();
14766 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14767
14768 wxPyEndAllowThreads(__tstate);
14769 if (PyErr_Occurred()) SWIG_fail;
14770 }
14771 {
14772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14773 }
14774 {
14775 if (temp3)
14776 delete arg3;
14777 }
14778 return resultobj;
14779 fail:
14780 {
14781 if (temp3)
14782 delete arg3;
14783 }
14784 return NULL;
14785 }
14786
14787
14788 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) {
14789 PyObject *resultobj;
14790 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14791 size_t arg2 ;
14792 wxWindow *arg3 = (wxWindow *) 0 ;
14793 wxString *arg4 = 0 ;
14794 bool arg5 = (bool) False ;
14795 int arg6 = (int) -1 ;
14796 bool result;
14797 bool temp4 = False ;
14798 PyObject * obj0 = 0 ;
14799 PyObject * obj1 = 0 ;
14800 PyObject * obj2 = 0 ;
14801 PyObject * obj3 = 0 ;
14802 PyObject * obj4 = 0 ;
14803 PyObject * obj5 = 0 ;
14804 char *kwnames[] = {
14805 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14806 };
14807
14808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14811 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14812 if (PyErr_Occurred()) SWIG_fail;
14813 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14815 {
14816 arg4 = wxString_in_helper(obj3);
14817 if (arg4 == NULL) SWIG_fail;
14818 temp4 = True;
14819 }
14820 if (obj4) {
14821 arg5 = (bool)SWIG_As_bool(obj4);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 if (obj5) {
14825 arg6 = (int)SWIG_As_int(obj5);
14826 if (PyErr_Occurred()) SWIG_fail;
14827 }
14828 {
14829 PyThreadState* __tstate = wxPyBeginAllowThreads();
14830 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14831
14832 wxPyEndAllowThreads(__tstate);
14833 if (PyErr_Occurred()) SWIG_fail;
14834 }
14835 {
14836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14837 }
14838 {
14839 if (temp4)
14840 delete arg4;
14841 }
14842 return resultobj;
14843 fail:
14844 {
14845 if (temp4)
14846 delete arg4;
14847 }
14848 return NULL;
14849 }
14850
14851
14852 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14853 PyObject *resultobj;
14854 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14855 size_t arg2 ;
14856 int result;
14857 PyObject * obj0 = 0 ;
14858 PyObject * obj1 = 0 ;
14859 char *kwnames[] = {
14860 (char *) "self",(char *) "n", NULL
14861 };
14862
14863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14866 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14867 if (PyErr_Occurred()) SWIG_fail;
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 result = (int)(arg1)->SetSelection(arg2);
14871
14872 wxPyEndAllowThreads(__tstate);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 }
14875 resultobj = SWIG_From_int((int)result);
14876 return resultobj;
14877 fail:
14878 return NULL;
14879 }
14880
14881
14882 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14883 PyObject *resultobj;
14884 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14885 bool arg2 = (bool) True ;
14886 PyObject * obj0 = 0 ;
14887 PyObject * obj1 = 0 ;
14888 char *kwnames[] = {
14889 (char *) "self",(char *) "forward", NULL
14890 };
14891
14892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14895 if (obj1) {
14896 arg2 = (bool)SWIG_As_bool(obj1);
14897 if (PyErr_Occurred()) SWIG_fail;
14898 }
14899 {
14900 PyThreadState* __tstate = wxPyBeginAllowThreads();
14901 (arg1)->AdvanceSelection(arg2);
14902
14903 wxPyEndAllowThreads(__tstate);
14904 if (PyErr_Occurred()) SWIG_fail;
14905 }
14906 Py_INCREF(Py_None); resultobj = Py_None;
14907 return resultobj;
14908 fail:
14909 return NULL;
14910 }
14911
14912
14913 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14914 PyObject *resultobj;
14915 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14916 wxVisualAttributes result;
14917 PyObject * obj0 = 0 ;
14918 char *kwnames[] = {
14919 (char *) "variant", NULL
14920 };
14921
14922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14923 if (obj0) {
14924 arg1 = (int)SWIG_As_int(obj0);
14925 if (PyErr_Occurred()) SWIG_fail;
14926 }
14927 {
14928 if (!wxPyCheckForApp()) SWIG_fail;
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
14930 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14931
14932 wxPyEndAllowThreads(__tstate);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
14935 {
14936 wxVisualAttributes * resultptr;
14937 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14938 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14939 }
14940 return resultobj;
14941 fail:
14942 return NULL;
14943 }
14944
14945
14946 static PyObject * BookCtrl_swigregister(PyObject *, PyObject *args) {
14947 PyObject *obj;
14948 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14949 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
14950 Py_INCREF(obj);
14951 return Py_BuildValue((char *)"");
14952 }
14953 static PyObject *_wrap_new_BookCtrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
14954 PyObject *resultobj;
14955 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14956 int arg2 = (int) 0 ;
14957 int arg3 = (int) -1 ;
14958 int arg4 = (int) -1 ;
14959 wxBookCtrlEvent *result;
14960 PyObject * obj0 = 0 ;
14961 PyObject * obj1 = 0 ;
14962 PyObject * obj2 = 0 ;
14963 PyObject * obj3 = 0 ;
14964 char *kwnames[] = {
14965 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14966 };
14967
14968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14969 if (obj0) {
14970 arg1 = (wxEventType)SWIG_As_int(obj0);
14971 if (PyErr_Occurred()) SWIG_fail;
14972 }
14973 if (obj1) {
14974 arg2 = (int)SWIG_As_int(obj1);
14975 if (PyErr_Occurred()) SWIG_fail;
14976 }
14977 if (obj2) {
14978 arg3 = (int)SWIG_As_int(obj2);
14979 if (PyErr_Occurred()) SWIG_fail;
14980 }
14981 if (obj3) {
14982 arg4 = (int)SWIG_As_int(obj3);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 {
14986 PyThreadState* __tstate = wxPyBeginAllowThreads();
14987 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
14988
14989 wxPyEndAllowThreads(__tstate);
14990 if (PyErr_Occurred()) SWIG_fail;
14991 }
14992 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
14993 return resultobj;
14994 fail:
14995 return NULL;
14996 }
14997
14998
14999 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15000 PyObject *resultobj;
15001 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15002 int result;
15003 PyObject * obj0 = 0 ;
15004 char *kwnames[] = {
15005 (char *) "self", NULL
15006 };
15007
15008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
15009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15011 {
15012 PyThreadState* __tstate = wxPyBeginAllowThreads();
15013 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
15014
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 resultobj = SWIG_From_int((int)result);
15019 return resultobj;
15020 fail:
15021 return NULL;
15022 }
15023
15024
15025 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15026 PyObject *resultobj;
15027 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15028 int arg2 ;
15029 PyObject * obj0 = 0 ;
15030 PyObject * obj1 = 0 ;
15031 char *kwnames[] = {
15032 (char *) "self",(char *) "nSel", NULL
15033 };
15034
15035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15038 arg2 = (int)SWIG_As_int(obj1);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 {
15041 PyThreadState* __tstate = wxPyBeginAllowThreads();
15042 (arg1)->SetSelection(arg2);
15043
15044 wxPyEndAllowThreads(__tstate);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 Py_INCREF(Py_None); resultobj = Py_None;
15048 return resultobj;
15049 fail:
15050 return NULL;
15051 }
15052
15053
15054 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15055 PyObject *resultobj;
15056 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15057 int result;
15058 PyObject * obj0 = 0 ;
15059 char *kwnames[] = {
15060 (char *) "self", NULL
15061 };
15062
15063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
15064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15066 {
15067 PyThreadState* __tstate = wxPyBeginAllowThreads();
15068 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
15069
15070 wxPyEndAllowThreads(__tstate);
15071 if (PyErr_Occurred()) SWIG_fail;
15072 }
15073 resultobj = SWIG_From_int((int)result);
15074 return resultobj;
15075 fail:
15076 return NULL;
15077 }
15078
15079
15080 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15081 PyObject *resultobj;
15082 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15083 int arg2 ;
15084 PyObject * obj0 = 0 ;
15085 PyObject * obj1 = 0 ;
15086 char *kwnames[] = {
15087 (char *) "self",(char *) "nOldSel", NULL
15088 };
15089
15090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
15091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15093 arg2 = (int)SWIG_As_int(obj1);
15094 if (PyErr_Occurred()) SWIG_fail;
15095 {
15096 PyThreadState* __tstate = wxPyBeginAllowThreads();
15097 (arg1)->SetOldSelection(arg2);
15098
15099 wxPyEndAllowThreads(__tstate);
15100 if (PyErr_Occurred()) SWIG_fail;
15101 }
15102 Py_INCREF(Py_None); resultobj = Py_None;
15103 return resultobj;
15104 fail:
15105 return NULL;
15106 }
15107
15108
15109 static PyObject * BookCtrlEvent_swigregister(PyObject *, PyObject *args) {
15110 PyObject *obj;
15111 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15112 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
15113 Py_INCREF(obj);
15114 return Py_BuildValue((char *)"");
15115 }
15116 static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) {
15117 PyObject *resultobj;
15118 wxWindow *arg1 = (wxWindow *) 0 ;
15119 int arg2 = (int) -1 ;
15120 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15121 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15122 wxSize const &arg4_defvalue = wxDefaultSize ;
15123 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15124 long arg5 = (long) 0 ;
15125 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
15126 wxString *arg6 = (wxString *) &arg6_defvalue ;
15127 wxNotebook *result;
15128 wxPoint temp3 ;
15129 wxSize temp4 ;
15130 bool temp6 = False ;
15131 PyObject * obj0 = 0 ;
15132 PyObject * obj1 = 0 ;
15133 PyObject * obj2 = 0 ;
15134 PyObject * obj3 = 0 ;
15135 PyObject * obj4 = 0 ;
15136 PyObject * obj5 = 0 ;
15137 char *kwnames[] = {
15138 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15139 };
15140
15141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15144 if (obj1) {
15145 arg2 = (int)SWIG_As_int(obj1);
15146 if (PyErr_Occurred()) SWIG_fail;
15147 }
15148 if (obj2) {
15149 {
15150 arg3 = &temp3;
15151 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15152 }
15153 }
15154 if (obj3) {
15155 {
15156 arg4 = &temp4;
15157 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15158 }
15159 }
15160 if (obj4) {
15161 arg5 = (long)SWIG_As_long(obj4);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
15164 if (obj5) {
15165 {
15166 arg6 = wxString_in_helper(obj5);
15167 if (arg6 == NULL) SWIG_fail;
15168 temp6 = True;
15169 }
15170 }
15171 {
15172 if (!wxPyCheckForApp()) SWIG_fail;
15173 PyThreadState* __tstate = wxPyBeginAllowThreads();
15174 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15175
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15180 {
15181 if (temp6)
15182 delete arg6;
15183 }
15184 return resultobj;
15185 fail:
15186 {
15187 if (temp6)
15188 delete arg6;
15189 }
15190 return NULL;
15191 }
15192
15193
15194 static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
15195 PyObject *resultobj;
15196 wxNotebook *result;
15197 char *kwnames[] = {
15198 NULL
15199 };
15200
15201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
15202 {
15203 if (!wxPyCheckForApp()) SWIG_fail;
15204 PyThreadState* __tstate = wxPyBeginAllowThreads();
15205 result = (wxNotebook *)new wxNotebook();
15206
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15211 return resultobj;
15212 fail:
15213 return NULL;
15214 }
15215
15216
15217 static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15218 PyObject *resultobj;
15219 wxNotebook *arg1 = (wxNotebook *) 0 ;
15220 wxWindow *arg2 = (wxWindow *) 0 ;
15221 int arg3 = (int) -1 ;
15222 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15223 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15224 wxSize const &arg5_defvalue = wxDefaultSize ;
15225 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15226 long arg6 = (long) 0 ;
15227 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15228 wxString *arg7 = (wxString *) &arg7_defvalue ;
15229 bool result;
15230 wxPoint temp4 ;
15231 wxSize temp5 ;
15232 bool temp7 = False ;
15233 PyObject * obj0 = 0 ;
15234 PyObject * obj1 = 0 ;
15235 PyObject * obj2 = 0 ;
15236 PyObject * obj3 = 0 ;
15237 PyObject * obj4 = 0 ;
15238 PyObject * obj5 = 0 ;
15239 PyObject * obj6 = 0 ;
15240 char *kwnames[] = {
15241 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15242 };
15243
15244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15249 if (obj2) {
15250 arg3 = (int)SWIG_As_int(obj2);
15251 if (PyErr_Occurred()) SWIG_fail;
15252 }
15253 if (obj3) {
15254 {
15255 arg4 = &temp4;
15256 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15257 }
15258 }
15259 if (obj4) {
15260 {
15261 arg5 = &temp5;
15262 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15263 }
15264 }
15265 if (obj5) {
15266 arg6 = (long)SWIG_As_long(obj5);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15269 if (obj6) {
15270 {
15271 arg7 = wxString_in_helper(obj6);
15272 if (arg7 == NULL) SWIG_fail;
15273 temp7 = True;
15274 }
15275 }
15276 {
15277 PyThreadState* __tstate = wxPyBeginAllowThreads();
15278 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15279
15280 wxPyEndAllowThreads(__tstate);
15281 if (PyErr_Occurred()) SWIG_fail;
15282 }
15283 {
15284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15285 }
15286 {
15287 if (temp7)
15288 delete arg7;
15289 }
15290 return resultobj;
15291 fail:
15292 {
15293 if (temp7)
15294 delete arg7;
15295 }
15296 return NULL;
15297 }
15298
15299
15300 static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
15301 PyObject *resultobj;
15302 wxNotebook *arg1 = (wxNotebook *) 0 ;
15303 int result;
15304 PyObject * obj0 = 0 ;
15305 char *kwnames[] = {
15306 (char *) "self", NULL
15307 };
15308
15309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15312 {
15313 PyThreadState* __tstate = wxPyBeginAllowThreads();
15314 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15315
15316 wxPyEndAllowThreads(__tstate);
15317 if (PyErr_Occurred()) SWIG_fail;
15318 }
15319 resultobj = SWIG_From_int((int)result);
15320 return resultobj;
15321 fail:
15322 return NULL;
15323 }
15324
15325
15326 static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) {
15327 PyObject *resultobj;
15328 wxNotebook *arg1 = (wxNotebook *) 0 ;
15329 wxSize *arg2 = 0 ;
15330 wxSize temp2 ;
15331 PyObject * obj0 = 0 ;
15332 PyObject * obj1 = 0 ;
15333 char *kwnames[] = {
15334 (char *) "self",(char *) "padding", NULL
15335 };
15336
15337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15340 {
15341 arg2 = &temp2;
15342 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15343 }
15344 {
15345 PyThreadState* __tstate = wxPyBeginAllowThreads();
15346 (arg1)->SetPadding((wxSize const &)*arg2);
15347
15348 wxPyEndAllowThreads(__tstate);
15349 if (PyErr_Occurred()) SWIG_fail;
15350 }
15351 Py_INCREF(Py_None); resultobj = Py_None;
15352 return resultobj;
15353 fail:
15354 return NULL;
15355 }
15356
15357
15358 static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) {
15359 PyObject *resultobj;
15360 wxNotebook *arg1 = (wxNotebook *) 0 ;
15361 wxSize *arg2 = 0 ;
15362 wxSize temp2 ;
15363 PyObject * obj0 = 0 ;
15364 PyObject * obj1 = 0 ;
15365 char *kwnames[] = {
15366 (char *) "self",(char *) "sz", NULL
15367 };
15368
15369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15372 {
15373 arg2 = &temp2;
15374 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15375 }
15376 {
15377 PyThreadState* __tstate = wxPyBeginAllowThreads();
15378 (arg1)->SetTabSize((wxSize const &)*arg2);
15379
15380 wxPyEndAllowThreads(__tstate);
15381 if (PyErr_Occurred()) SWIG_fail;
15382 }
15383 Py_INCREF(Py_None); resultobj = Py_None;
15384 return resultobj;
15385 fail:
15386 return NULL;
15387 }
15388
15389
15390 static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
15391 PyObject *resultobj;
15392 wxNotebook *arg1 = (wxNotebook *) 0 ;
15393 wxPoint *arg2 = 0 ;
15394 long *arg3 = (long *) 0 ;
15395 int result;
15396 wxPoint temp2 ;
15397 long temp3 ;
15398 int res3 = 0 ;
15399 PyObject * obj0 = 0 ;
15400 PyObject * obj1 = 0 ;
15401 char *kwnames[] = {
15402 (char *) "self",(char *) "pt", NULL
15403 };
15404
15405 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15409 {
15410 arg2 = &temp2;
15411 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15412 }
15413 {
15414 PyThreadState* __tstate = wxPyBeginAllowThreads();
15415 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15416
15417 wxPyEndAllowThreads(__tstate);
15418 if (PyErr_Occurred()) SWIG_fail;
15419 }
15420 resultobj = SWIG_From_int((int)result);
15421 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15422 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
15423 return resultobj;
15424 fail:
15425 return NULL;
15426 }
15427
15428
15429 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
15430 PyObject *resultobj;
15431 wxNotebook *arg1 = (wxNotebook *) 0 ;
15432 wxSize *arg2 = 0 ;
15433 wxSize result;
15434 wxSize temp2 ;
15435 PyObject * obj0 = 0 ;
15436 PyObject * obj1 = 0 ;
15437 char *kwnames[] = {
15438 (char *) "self",(char *) "sizePage", NULL
15439 };
15440
15441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15444 {
15445 arg2 = &temp2;
15446 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15447 }
15448 {
15449 PyThreadState* __tstate = wxPyBeginAllowThreads();
15450 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15451
15452 wxPyEndAllowThreads(__tstate);
15453 if (PyErr_Occurred()) SWIG_fail;
15454 }
15455 {
15456 wxSize * resultptr;
15457 resultptr = new wxSize((wxSize &) result);
15458 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15459 }
15460 return resultobj;
15461 fail:
15462 return NULL;
15463 }
15464
15465
15466 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15467 PyObject *resultobj;
15468 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15469 wxVisualAttributes result;
15470 PyObject * obj0 = 0 ;
15471 char *kwnames[] = {
15472 (char *) "variant", NULL
15473 };
15474
15475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15476 if (obj0) {
15477 arg1 = (int)SWIG_As_int(obj0);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
15480 {
15481 if (!wxPyCheckForApp()) SWIG_fail;
15482 PyThreadState* __tstate = wxPyBeginAllowThreads();
15483 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15484
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 {
15489 wxVisualAttributes * resultptr;
15490 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15491 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15492 }
15493 return resultobj;
15494 fail:
15495 return NULL;
15496 }
15497
15498
15499 static PyObject * Notebook_swigregister(PyObject *, PyObject *args) {
15500 PyObject *obj;
15501 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15502 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15503 Py_INCREF(obj);
15504 return Py_BuildValue((char *)"");
15505 }
15506 static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15507 PyObject *resultobj;
15508 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15509 int arg2 = (int) 0 ;
15510 int arg3 = (int) -1 ;
15511 int arg4 = (int) -1 ;
15512 wxNotebookEvent *result;
15513 PyObject * obj0 = 0 ;
15514 PyObject * obj1 = 0 ;
15515 PyObject * obj2 = 0 ;
15516 PyObject * obj3 = 0 ;
15517 char *kwnames[] = {
15518 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15519 };
15520
15521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15522 if (obj0) {
15523 arg1 = (wxEventType)SWIG_As_int(obj0);
15524 if (PyErr_Occurred()) SWIG_fail;
15525 }
15526 if (obj1) {
15527 arg2 = (int)SWIG_As_int(obj1);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 if (obj2) {
15531 arg3 = (int)SWIG_As_int(obj2);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 if (obj3) {
15535 arg4 = (int)SWIG_As_int(obj3);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 {
15539 PyThreadState* __tstate = wxPyBeginAllowThreads();
15540 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15541
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15546 return resultobj;
15547 fail:
15548 return NULL;
15549 }
15550
15551
15552 static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) {
15553 PyObject *obj;
15554 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15555 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15556 Py_INCREF(obj);
15557 return Py_BuildValue((char *)"");
15558 }
15559 static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) {
15560 PyObject *resultobj;
15561 wxWindow *arg1 = (wxWindow *) 0 ;
15562 int arg2 = (int) -1 ;
15563 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15564 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15565 wxSize const &arg4_defvalue = wxDefaultSize ;
15566 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15567 long arg5 = (long) 0 ;
15568 wxString const &arg6_defvalue = wxPyEmptyString ;
15569 wxString *arg6 = (wxString *) &arg6_defvalue ;
15570 wxListbook *result;
15571 wxPoint temp3 ;
15572 wxSize temp4 ;
15573 bool temp6 = False ;
15574 PyObject * obj0 = 0 ;
15575 PyObject * obj1 = 0 ;
15576 PyObject * obj2 = 0 ;
15577 PyObject * obj3 = 0 ;
15578 PyObject * obj4 = 0 ;
15579 PyObject * obj5 = 0 ;
15580 char *kwnames[] = {
15581 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15582 };
15583
15584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15587 if (obj1) {
15588 arg2 = (int)SWIG_As_int(obj1);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
15591 if (obj2) {
15592 {
15593 arg3 = &temp3;
15594 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15595 }
15596 }
15597 if (obj3) {
15598 {
15599 arg4 = &temp4;
15600 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15601 }
15602 }
15603 if (obj4) {
15604 arg5 = (long)SWIG_As_long(obj4);
15605 if (PyErr_Occurred()) SWIG_fail;
15606 }
15607 if (obj5) {
15608 {
15609 arg6 = wxString_in_helper(obj5);
15610 if (arg6 == NULL) SWIG_fail;
15611 temp6 = True;
15612 }
15613 }
15614 {
15615 if (!wxPyCheckForApp()) SWIG_fail;
15616 PyThreadState* __tstate = wxPyBeginAllowThreads();
15617 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15618
15619 wxPyEndAllowThreads(__tstate);
15620 if (PyErr_Occurred()) SWIG_fail;
15621 }
15622 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15623 {
15624 if (temp6)
15625 delete arg6;
15626 }
15627 return resultobj;
15628 fail:
15629 {
15630 if (temp6)
15631 delete arg6;
15632 }
15633 return NULL;
15634 }
15635
15636
15637 static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) {
15638 PyObject *resultobj;
15639 wxListbook *result;
15640 char *kwnames[] = {
15641 NULL
15642 };
15643
15644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15645 {
15646 if (!wxPyCheckForApp()) SWIG_fail;
15647 PyThreadState* __tstate = wxPyBeginAllowThreads();
15648 result = (wxListbook *)new wxListbook();
15649
15650 wxPyEndAllowThreads(__tstate);
15651 if (PyErr_Occurred()) SWIG_fail;
15652 }
15653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15654 return resultobj;
15655 fail:
15656 return NULL;
15657 }
15658
15659
15660 static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15661 PyObject *resultobj;
15662 wxListbook *arg1 = (wxListbook *) 0 ;
15663 wxWindow *arg2 = (wxWindow *) 0 ;
15664 int arg3 = (int) -1 ;
15665 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15666 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15667 wxSize const &arg5_defvalue = wxDefaultSize ;
15668 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15669 long arg6 = (long) 0 ;
15670 wxString const &arg7_defvalue = wxPyEmptyString ;
15671 wxString *arg7 = (wxString *) &arg7_defvalue ;
15672 bool result;
15673 wxPoint temp4 ;
15674 wxSize temp5 ;
15675 bool temp7 = False ;
15676 PyObject * obj0 = 0 ;
15677 PyObject * obj1 = 0 ;
15678 PyObject * obj2 = 0 ;
15679 PyObject * obj3 = 0 ;
15680 PyObject * obj4 = 0 ;
15681 PyObject * obj5 = 0 ;
15682 PyObject * obj6 = 0 ;
15683 char *kwnames[] = {
15684 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15685 };
15686
15687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15690 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15692 if (obj2) {
15693 arg3 = (int)SWIG_As_int(obj2);
15694 if (PyErr_Occurred()) SWIG_fail;
15695 }
15696 if (obj3) {
15697 {
15698 arg4 = &temp4;
15699 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15700 }
15701 }
15702 if (obj4) {
15703 {
15704 arg5 = &temp5;
15705 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15706 }
15707 }
15708 if (obj5) {
15709 arg6 = (long)SWIG_As_long(obj5);
15710 if (PyErr_Occurred()) SWIG_fail;
15711 }
15712 if (obj6) {
15713 {
15714 arg7 = wxString_in_helper(obj6);
15715 if (arg7 == NULL) SWIG_fail;
15716 temp7 = True;
15717 }
15718 }
15719 {
15720 PyThreadState* __tstate = wxPyBeginAllowThreads();
15721 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15722
15723 wxPyEndAllowThreads(__tstate);
15724 if (PyErr_Occurred()) SWIG_fail;
15725 }
15726 {
15727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15728 }
15729 {
15730 if (temp7)
15731 delete arg7;
15732 }
15733 return resultobj;
15734 fail:
15735 {
15736 if (temp7)
15737 delete arg7;
15738 }
15739 return NULL;
15740 }
15741
15742
15743 static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
15744 PyObject *resultobj;
15745 wxListbook *arg1 = (wxListbook *) 0 ;
15746 bool result;
15747 PyObject * obj0 = 0 ;
15748 char *kwnames[] = {
15749 (char *) "self", NULL
15750 };
15751
15752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15755 {
15756 PyThreadState* __tstate = wxPyBeginAllowThreads();
15757 result = (bool)((wxListbook const *)arg1)->IsVertical();
15758
15759 wxPyEndAllowThreads(__tstate);
15760 if (PyErr_Occurred()) SWIG_fail;
15761 }
15762 {
15763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15764 }
15765 return resultobj;
15766 fail:
15767 return NULL;
15768 }
15769
15770
15771 static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) {
15772 PyObject *resultobj;
15773 wxListbook *arg1 = (wxListbook *) 0 ;
15774 wxListView *result;
15775 PyObject * obj0 = 0 ;
15776 char *kwnames[] = {
15777 (char *) "self", NULL
15778 };
15779
15780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail;
15781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15783 {
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 result = (wxListView *)(arg1)->GetListView();
15786
15787 wxPyEndAllowThreads(__tstate);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0);
15791 return resultobj;
15792 fail:
15793 return NULL;
15794 }
15795
15796
15797 static PyObject * Listbook_swigregister(PyObject *, PyObject *args) {
15798 PyObject *obj;
15799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15800 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15801 Py_INCREF(obj);
15802 return Py_BuildValue((char *)"");
15803 }
15804 static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15805 PyObject *resultobj;
15806 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15807 int arg2 = (int) 0 ;
15808 int arg3 = (int) -1 ;
15809 int arg4 = (int) -1 ;
15810 wxListbookEvent *result;
15811 PyObject * obj0 = 0 ;
15812 PyObject * obj1 = 0 ;
15813 PyObject * obj2 = 0 ;
15814 PyObject * obj3 = 0 ;
15815 char *kwnames[] = {
15816 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15817 };
15818
15819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15820 if (obj0) {
15821 arg1 = (wxEventType)SWIG_As_int(obj0);
15822 if (PyErr_Occurred()) SWIG_fail;
15823 }
15824 if (obj1) {
15825 arg2 = (int)SWIG_As_int(obj1);
15826 if (PyErr_Occurred()) SWIG_fail;
15827 }
15828 if (obj2) {
15829 arg3 = (int)SWIG_As_int(obj2);
15830 if (PyErr_Occurred()) SWIG_fail;
15831 }
15832 if (obj3) {
15833 arg4 = (int)SWIG_As_int(obj3);
15834 if (PyErr_Occurred()) SWIG_fail;
15835 }
15836 {
15837 PyThreadState* __tstate = wxPyBeginAllowThreads();
15838 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15839
15840 wxPyEndAllowThreads(__tstate);
15841 if (PyErr_Occurred()) SWIG_fail;
15842 }
15843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15844 return resultobj;
15845 fail:
15846 return NULL;
15847 }
15848
15849
15850 static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) {
15851 PyObject *obj;
15852 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15853 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15854 Py_INCREF(obj);
15855 return Py_BuildValue((char *)"");
15856 }
15857 static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) {
15858 PyObject *resultobj;
15859 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15860 wxBookCtrlSizer *result;
15861 PyObject * obj0 = 0 ;
15862 char *kwnames[] = {
15863 (char *) "nb", NULL
15864 };
15865
15866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15869 {
15870 PyThreadState* __tstate = wxPyBeginAllowThreads();
15871 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15872
15873 wxPyEndAllowThreads(__tstate);
15874 if (PyErr_Occurred()) SWIG_fail;
15875 }
15876 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15877 return resultobj;
15878 fail:
15879 return NULL;
15880 }
15881
15882
15883 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
15884 PyObject *resultobj;
15885 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15886 PyObject * obj0 = 0 ;
15887 char *kwnames[] = {
15888 (char *) "self", NULL
15889 };
15890
15891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15894 {
15895 PyThreadState* __tstate = wxPyBeginAllowThreads();
15896 (arg1)->RecalcSizes();
15897
15898 wxPyEndAllowThreads(__tstate);
15899 if (PyErr_Occurred()) SWIG_fail;
15900 }
15901 Py_INCREF(Py_None); resultobj = Py_None;
15902 return resultobj;
15903 fail:
15904 return NULL;
15905 }
15906
15907
15908 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
15909 PyObject *resultobj;
15910 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15911 wxSize result;
15912 PyObject * obj0 = 0 ;
15913 char *kwnames[] = {
15914 (char *) "self", NULL
15915 };
15916
15917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
15918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15920 {
15921 PyThreadState* __tstate = wxPyBeginAllowThreads();
15922 result = (arg1)->CalcMin();
15923
15924 wxPyEndAllowThreads(__tstate);
15925 if (PyErr_Occurred()) SWIG_fail;
15926 }
15927 {
15928 wxSize * resultptr;
15929 resultptr = new wxSize((wxSize &) result);
15930 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15931 }
15932 return resultobj;
15933 fail:
15934 return NULL;
15935 }
15936
15937
15938 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
15939 PyObject *resultobj;
15940 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15941 wxBookCtrl *result;
15942 PyObject * obj0 = 0 ;
15943 char *kwnames[] = {
15944 (char *) "self", NULL
15945 };
15946
15947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
15948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15950 {
15951 PyThreadState* __tstate = wxPyBeginAllowThreads();
15952 result = (wxBookCtrl *)(arg1)->GetControl();
15953
15954 wxPyEndAllowThreads(__tstate);
15955 if (PyErr_Occurred()) SWIG_fail;
15956 }
15957 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
15958 return resultobj;
15959 fail:
15960 return NULL;
15961 }
15962
15963
15964 static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) {
15965 PyObject *obj;
15966 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15967 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
15968 Py_INCREF(obj);
15969 return Py_BuildValue((char *)"");
15970 }
15971 static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) {
15972 PyObject *resultobj;
15973 wxNotebook *arg1 = (wxNotebook *) 0 ;
15974 wxNotebookSizer *result;
15975 PyObject * obj0 = 0 ;
15976 char *kwnames[] = {
15977 (char *) "nb", NULL
15978 };
15979
15980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
15981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15983 {
15984 PyThreadState* __tstate = wxPyBeginAllowThreads();
15985 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
15986
15987 wxPyEndAllowThreads(__tstate);
15988 if (PyErr_Occurred()) SWIG_fail;
15989 }
15990 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
15991 return resultobj;
15992 fail:
15993 return NULL;
15994 }
15995
15996
15997 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
15998 PyObject *resultobj;
15999 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16000 PyObject * obj0 = 0 ;
16001 char *kwnames[] = {
16002 (char *) "self", NULL
16003 };
16004
16005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16008 {
16009 PyThreadState* __tstate = wxPyBeginAllowThreads();
16010 (arg1)->RecalcSizes();
16011
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 Py_INCREF(Py_None); resultobj = Py_None;
16016 return resultobj;
16017 fail:
16018 return NULL;
16019 }
16020
16021
16022 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16023 PyObject *resultobj;
16024 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16025 wxSize result;
16026 PyObject * obj0 = 0 ;
16027 char *kwnames[] = {
16028 (char *) "self", NULL
16029 };
16030
16031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
16032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16034 {
16035 PyThreadState* __tstate = wxPyBeginAllowThreads();
16036 result = (arg1)->CalcMin();
16037
16038 wxPyEndAllowThreads(__tstate);
16039 if (PyErr_Occurred()) SWIG_fail;
16040 }
16041 {
16042 wxSize * resultptr;
16043 resultptr = new wxSize((wxSize &) result);
16044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16045 }
16046 return resultobj;
16047 fail:
16048 return NULL;
16049 }
16050
16051
16052 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
16053 PyObject *resultobj;
16054 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16055 wxNotebook *result;
16056 PyObject * obj0 = 0 ;
16057 char *kwnames[] = {
16058 (char *) "self", NULL
16059 };
16060
16061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
16062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16064 {
16065 PyThreadState* __tstate = wxPyBeginAllowThreads();
16066 result = (wxNotebook *)(arg1)->GetNotebook();
16067
16068 wxPyEndAllowThreads(__tstate);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 }
16071 {
16072 resultobj = wxPyMake_wxObject(result, 0);
16073 }
16074 return resultobj;
16075 fail:
16076 return NULL;
16077 }
16078
16079
16080 static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) {
16081 PyObject *obj;
16082 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16083 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
16084 Py_INCREF(obj);
16085 return Py_BuildValue((char *)"");
16086 }
16087 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
16088 PyObject *resultobj;
16089 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16090 int result;
16091 PyObject * obj0 = 0 ;
16092 char *kwnames[] = {
16093 (char *) "self", NULL
16094 };
16095
16096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
16097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16099 {
16100 PyThreadState* __tstate = wxPyBeginAllowThreads();
16101 result = (int)(arg1)->GetId();
16102
16103 wxPyEndAllowThreads(__tstate);
16104 if (PyErr_Occurred()) SWIG_fail;
16105 }
16106 resultobj = SWIG_From_int((int)result);
16107 return resultobj;
16108 fail:
16109 return NULL;
16110 }
16111
16112
16113 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16114 PyObject *resultobj;
16115 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16116 wxControl *result;
16117 PyObject * obj0 = 0 ;
16118 char *kwnames[] = {
16119 (char *) "self", NULL
16120 };
16121
16122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
16123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16125 {
16126 PyThreadState* __tstate = wxPyBeginAllowThreads();
16127 result = (wxControl *)(arg1)->GetControl();
16128
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 {
16133 resultobj = wxPyMake_wxObject(result, 0);
16134 }
16135 return resultobj;
16136 fail:
16137 return NULL;
16138 }
16139
16140
16141 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
16142 PyObject *resultobj;
16143 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16144 wxToolBarBase *result;
16145 PyObject * obj0 = 0 ;
16146 char *kwnames[] = {
16147 (char *) "self", NULL
16148 };
16149
16150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
16151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16153 {
16154 PyThreadState* __tstate = wxPyBeginAllowThreads();
16155 result = (wxToolBarBase *)(arg1)->GetToolBar();
16156
16157 wxPyEndAllowThreads(__tstate);
16158 if (PyErr_Occurred()) SWIG_fail;
16159 }
16160 {
16161 resultobj = wxPyMake_wxObject(result, 0);
16162 }
16163 return resultobj;
16164 fail:
16165 return NULL;
16166 }
16167
16168
16169 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
16170 PyObject *resultobj;
16171 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16172 int result;
16173 PyObject * obj0 = 0 ;
16174 char *kwnames[] = {
16175 (char *) "self", NULL
16176 };
16177
16178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
16179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16181 {
16182 PyThreadState* __tstate = wxPyBeginAllowThreads();
16183 result = (int)(arg1)->IsButton();
16184
16185 wxPyEndAllowThreads(__tstate);
16186 if (PyErr_Occurred()) SWIG_fail;
16187 }
16188 resultobj = SWIG_From_int((int)result);
16189 return resultobj;
16190 fail:
16191 return NULL;
16192 }
16193
16194
16195 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) {
16196 PyObject *resultobj;
16197 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16198 int result;
16199 PyObject * obj0 = 0 ;
16200 char *kwnames[] = {
16201 (char *) "self", NULL
16202 };
16203
16204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
16205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (int)(arg1)->IsControl();
16210
16211 wxPyEndAllowThreads(__tstate);
16212 if (PyErr_Occurred()) SWIG_fail;
16213 }
16214 resultobj = SWIG_From_int((int)result);
16215 return resultobj;
16216 fail:
16217 return NULL;
16218 }
16219
16220
16221 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16222 PyObject *resultobj;
16223 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16224 int result;
16225 PyObject * obj0 = 0 ;
16226 char *kwnames[] = {
16227 (char *) "self", NULL
16228 };
16229
16230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16233 {
16234 PyThreadState* __tstate = wxPyBeginAllowThreads();
16235 result = (int)(arg1)->IsSeparator();
16236
16237 wxPyEndAllowThreads(__tstate);
16238 if (PyErr_Occurred()) SWIG_fail;
16239 }
16240 resultobj = SWIG_From_int((int)result);
16241 return resultobj;
16242 fail:
16243 return NULL;
16244 }
16245
16246
16247 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16248 PyObject *resultobj;
16249 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16250 int result;
16251 PyObject * obj0 = 0 ;
16252 char *kwnames[] = {
16253 (char *) "self", NULL
16254 };
16255
16256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16259 {
16260 PyThreadState* __tstate = wxPyBeginAllowThreads();
16261 result = (int)(arg1)->GetStyle();
16262
16263 wxPyEndAllowThreads(__tstate);
16264 if (PyErr_Occurred()) SWIG_fail;
16265 }
16266 resultobj = SWIG_From_int((int)result);
16267 return resultobj;
16268 fail:
16269 return NULL;
16270 }
16271
16272
16273 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
16274 PyObject *resultobj;
16275 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16276 int result;
16277 PyObject * obj0 = 0 ;
16278 char *kwnames[] = {
16279 (char *) "self", NULL
16280 };
16281
16282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16285 {
16286 PyThreadState* __tstate = wxPyBeginAllowThreads();
16287 result = (int)(arg1)->GetKind();
16288
16289 wxPyEndAllowThreads(__tstate);
16290 if (PyErr_Occurred()) SWIG_fail;
16291 }
16292 resultobj = SWIG_From_int((int)result);
16293 return resultobj;
16294 fail:
16295 return NULL;
16296 }
16297
16298
16299 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
16300 PyObject *resultobj;
16301 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16302 bool result;
16303 PyObject * obj0 = 0 ;
16304 char *kwnames[] = {
16305 (char *) "self", NULL
16306 };
16307
16308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16311 {
16312 PyThreadState* __tstate = wxPyBeginAllowThreads();
16313 result = (bool)(arg1)->IsEnabled();
16314
16315 wxPyEndAllowThreads(__tstate);
16316 if (PyErr_Occurred()) SWIG_fail;
16317 }
16318 {
16319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16320 }
16321 return resultobj;
16322 fail:
16323 return NULL;
16324 }
16325
16326
16327 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16328 PyObject *resultobj;
16329 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16330 bool result;
16331 PyObject * obj0 = 0 ;
16332 char *kwnames[] = {
16333 (char *) "self", NULL
16334 };
16335
16336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16339 {
16340 PyThreadState* __tstate = wxPyBeginAllowThreads();
16341 result = (bool)(arg1)->IsToggled();
16342
16343 wxPyEndAllowThreads(__tstate);
16344 if (PyErr_Occurred()) SWIG_fail;
16345 }
16346 {
16347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16348 }
16349 return resultobj;
16350 fail:
16351 return NULL;
16352 }
16353
16354
16355 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16356 PyObject *resultobj;
16357 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16358 bool result;
16359 PyObject * obj0 = 0 ;
16360 char *kwnames[] = {
16361 (char *) "self", NULL
16362 };
16363
16364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16367 {
16368 PyThreadState* __tstate = wxPyBeginAllowThreads();
16369 result = (bool)(arg1)->CanBeToggled();
16370
16371 wxPyEndAllowThreads(__tstate);
16372 if (PyErr_Occurred()) SWIG_fail;
16373 }
16374 {
16375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16376 }
16377 return resultobj;
16378 fail:
16379 return NULL;
16380 }
16381
16382
16383 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16384 PyObject *resultobj;
16385 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16386 wxBitmap *result;
16387 PyObject * obj0 = 0 ;
16388 char *kwnames[] = {
16389 (char *) "self", NULL
16390 };
16391
16392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16395 {
16396 PyThreadState* __tstate = wxPyBeginAllowThreads();
16397 {
16398 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16399 result = (wxBitmap *) &_result_ref;
16400 }
16401
16402 wxPyEndAllowThreads(__tstate);
16403 if (PyErr_Occurred()) SWIG_fail;
16404 }
16405 {
16406 wxBitmap* resultptr = new wxBitmap(*result);
16407 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16408 }
16409 return resultobj;
16410 fail:
16411 return NULL;
16412 }
16413
16414
16415 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16416 PyObject *resultobj;
16417 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16418 wxBitmap *result;
16419 PyObject * obj0 = 0 ;
16420 char *kwnames[] = {
16421 (char *) "self", NULL
16422 };
16423
16424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 {
16430 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16431 result = (wxBitmap *) &_result_ref;
16432 }
16433
16434 wxPyEndAllowThreads(__tstate);
16435 if (PyErr_Occurred()) SWIG_fail;
16436 }
16437 {
16438 wxBitmap* resultptr = new wxBitmap(*result);
16439 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16440 }
16441 return resultobj;
16442 fail:
16443 return NULL;
16444 }
16445
16446
16447 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16448 PyObject *resultobj;
16449 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16450 wxBitmap result;
16451 PyObject * obj0 = 0 ;
16452 char *kwnames[] = {
16453 (char *) "self", NULL
16454 };
16455
16456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16459 {
16460 PyThreadState* __tstate = wxPyBeginAllowThreads();
16461 result = (arg1)->GetBitmap();
16462
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
16466 {
16467 wxBitmap * resultptr;
16468 resultptr = new wxBitmap((wxBitmap &) result);
16469 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16470 }
16471 return resultobj;
16472 fail:
16473 return NULL;
16474 }
16475
16476
16477 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16478 PyObject *resultobj;
16479 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16480 wxString result;
16481 PyObject * obj0 = 0 ;
16482 char *kwnames[] = {
16483 (char *) "self", NULL
16484 };
16485
16486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16489 {
16490 PyThreadState* __tstate = wxPyBeginAllowThreads();
16491 result = (arg1)->GetLabel();
16492
16493 wxPyEndAllowThreads(__tstate);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
16496 {
16497 #if wxUSE_UNICODE
16498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16499 #else
16500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16501 #endif
16502 }
16503 return resultobj;
16504 fail:
16505 return NULL;
16506 }
16507
16508
16509 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16510 PyObject *resultobj;
16511 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16512 wxString result;
16513 PyObject * obj0 = 0 ;
16514 char *kwnames[] = {
16515 (char *) "self", NULL
16516 };
16517
16518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16521 {
16522 PyThreadState* __tstate = wxPyBeginAllowThreads();
16523 result = (arg1)->GetShortHelp();
16524
16525 wxPyEndAllowThreads(__tstate);
16526 if (PyErr_Occurred()) SWIG_fail;
16527 }
16528 {
16529 #if wxUSE_UNICODE
16530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16531 #else
16532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16533 #endif
16534 }
16535 return resultobj;
16536 fail:
16537 return NULL;
16538 }
16539
16540
16541 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16542 PyObject *resultobj;
16543 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16544 wxString result;
16545 PyObject * obj0 = 0 ;
16546 char *kwnames[] = {
16547 (char *) "self", NULL
16548 };
16549
16550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16553 {
16554 PyThreadState* __tstate = wxPyBeginAllowThreads();
16555 result = (arg1)->GetLongHelp();
16556
16557 wxPyEndAllowThreads(__tstate);
16558 if (PyErr_Occurred()) SWIG_fail;
16559 }
16560 {
16561 #if wxUSE_UNICODE
16562 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16563 #else
16564 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16565 #endif
16566 }
16567 return resultobj;
16568 fail:
16569 return NULL;
16570 }
16571
16572
16573 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
16574 PyObject *resultobj;
16575 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16576 bool arg2 ;
16577 bool result;
16578 PyObject * obj0 = 0 ;
16579 PyObject * obj1 = 0 ;
16580 char *kwnames[] = {
16581 (char *) "self",(char *) "enable", NULL
16582 };
16583
16584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16587 arg2 = (bool)SWIG_As_bool(obj1);
16588 if (PyErr_Occurred()) SWIG_fail;
16589 {
16590 PyThreadState* __tstate = wxPyBeginAllowThreads();
16591 result = (bool)(arg1)->Enable(arg2);
16592
16593 wxPyEndAllowThreads(__tstate);
16594 if (PyErr_Occurred()) SWIG_fail;
16595 }
16596 {
16597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16598 }
16599 return resultobj;
16600 fail:
16601 return NULL;
16602 }
16603
16604
16605 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
16606 PyObject *resultobj;
16607 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16608 PyObject * obj0 = 0 ;
16609 char *kwnames[] = {
16610 (char *) "self", NULL
16611 };
16612
16613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16616 {
16617 PyThreadState* __tstate = wxPyBeginAllowThreads();
16618 (arg1)->Toggle();
16619
16620 wxPyEndAllowThreads(__tstate);
16621 if (PyErr_Occurred()) SWIG_fail;
16622 }
16623 Py_INCREF(Py_None); resultobj = Py_None;
16624 return resultobj;
16625 fail:
16626 return NULL;
16627 }
16628
16629
16630 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
16631 PyObject *resultobj;
16632 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16633 bool arg2 ;
16634 bool result;
16635 PyObject * obj0 = 0 ;
16636 PyObject * obj1 = 0 ;
16637 char *kwnames[] = {
16638 (char *) "self",(char *) "toggle", NULL
16639 };
16640
16641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16644 arg2 = (bool)SWIG_As_bool(obj1);
16645 if (PyErr_Occurred()) SWIG_fail;
16646 {
16647 PyThreadState* __tstate = wxPyBeginAllowThreads();
16648 result = (bool)(arg1)->SetToggle(arg2);
16649
16650 wxPyEndAllowThreads(__tstate);
16651 if (PyErr_Occurred()) SWIG_fail;
16652 }
16653 {
16654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16655 }
16656 return resultobj;
16657 fail:
16658 return NULL;
16659 }
16660
16661
16662 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16663 PyObject *resultobj;
16664 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16665 wxString *arg2 = 0 ;
16666 bool result;
16667 bool temp2 = False ;
16668 PyObject * obj0 = 0 ;
16669 PyObject * obj1 = 0 ;
16670 char *kwnames[] = {
16671 (char *) "self",(char *) "help", NULL
16672 };
16673
16674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16677 {
16678 arg2 = wxString_in_helper(obj1);
16679 if (arg2 == NULL) SWIG_fail;
16680 temp2 = True;
16681 }
16682 {
16683 PyThreadState* __tstate = wxPyBeginAllowThreads();
16684 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
16685
16686 wxPyEndAllowThreads(__tstate);
16687 if (PyErr_Occurred()) SWIG_fail;
16688 }
16689 {
16690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16691 }
16692 {
16693 if (temp2)
16694 delete arg2;
16695 }
16696 return resultobj;
16697 fail:
16698 {
16699 if (temp2)
16700 delete arg2;
16701 }
16702 return NULL;
16703 }
16704
16705
16706 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16707 PyObject *resultobj;
16708 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16709 wxString *arg2 = 0 ;
16710 bool result;
16711 bool temp2 = False ;
16712 PyObject * obj0 = 0 ;
16713 PyObject * obj1 = 0 ;
16714 char *kwnames[] = {
16715 (char *) "self",(char *) "help", NULL
16716 };
16717
16718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16721 {
16722 arg2 = wxString_in_helper(obj1);
16723 if (arg2 == NULL) SWIG_fail;
16724 temp2 = True;
16725 }
16726 {
16727 PyThreadState* __tstate = wxPyBeginAllowThreads();
16728 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16729
16730 wxPyEndAllowThreads(__tstate);
16731 if (PyErr_Occurred()) SWIG_fail;
16732 }
16733 {
16734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16735 }
16736 {
16737 if (temp2)
16738 delete arg2;
16739 }
16740 return resultobj;
16741 fail:
16742 {
16743 if (temp2)
16744 delete arg2;
16745 }
16746 return NULL;
16747 }
16748
16749
16750 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16751 PyObject *resultobj;
16752 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16753 wxBitmap *arg2 = 0 ;
16754 PyObject * obj0 = 0 ;
16755 PyObject * obj1 = 0 ;
16756 char *kwnames[] = {
16757 (char *) "self",(char *) "bmp", NULL
16758 };
16759
16760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16763 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16764 SWIG_POINTER_EXCEPTION | 0)) == -1)
16765 SWIG_fail;
16766 if (arg2 == NULL) {
16767 PyErr_SetString(PyExc_TypeError,"null reference");
16768 SWIG_fail;
16769 }
16770 {
16771 PyThreadState* __tstate = wxPyBeginAllowThreads();
16772 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16773
16774 wxPyEndAllowThreads(__tstate);
16775 if (PyErr_Occurred()) SWIG_fail;
16776 }
16777 Py_INCREF(Py_None); resultobj = Py_None;
16778 return resultobj;
16779 fail:
16780 return NULL;
16781 }
16782
16783
16784 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16785 PyObject *resultobj;
16786 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16787 wxBitmap *arg2 = 0 ;
16788 PyObject * obj0 = 0 ;
16789 PyObject * obj1 = 0 ;
16790 char *kwnames[] = {
16791 (char *) "self",(char *) "bmp", NULL
16792 };
16793
16794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16798 SWIG_POINTER_EXCEPTION | 0)) == -1)
16799 SWIG_fail;
16800 if (arg2 == NULL) {
16801 PyErr_SetString(PyExc_TypeError,"null reference");
16802 SWIG_fail;
16803 }
16804 {
16805 PyThreadState* __tstate = wxPyBeginAllowThreads();
16806 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16807
16808 wxPyEndAllowThreads(__tstate);
16809 if (PyErr_Occurred()) SWIG_fail;
16810 }
16811 Py_INCREF(Py_None); resultobj = Py_None;
16812 return resultobj;
16813 fail:
16814 return NULL;
16815 }
16816
16817
16818 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16819 PyObject *resultobj;
16820 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16821 wxString *arg2 = 0 ;
16822 bool temp2 = False ;
16823 PyObject * obj0 = 0 ;
16824 PyObject * obj1 = 0 ;
16825 char *kwnames[] = {
16826 (char *) "self",(char *) "label", NULL
16827 };
16828
16829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16832 {
16833 arg2 = wxString_in_helper(obj1);
16834 if (arg2 == NULL) SWIG_fail;
16835 temp2 = True;
16836 }
16837 {
16838 PyThreadState* __tstate = wxPyBeginAllowThreads();
16839 (arg1)->SetLabel((wxString const &)*arg2);
16840
16841 wxPyEndAllowThreads(__tstate);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 Py_INCREF(Py_None); resultobj = Py_None;
16845 {
16846 if (temp2)
16847 delete arg2;
16848 }
16849 return resultobj;
16850 fail:
16851 {
16852 if (temp2)
16853 delete arg2;
16854 }
16855 return NULL;
16856 }
16857
16858
16859 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
16860 PyObject *resultobj;
16861 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16862 PyObject * obj0 = 0 ;
16863 char *kwnames[] = {
16864 (char *) "self", NULL
16865 };
16866
16867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16870 {
16871 PyThreadState* __tstate = wxPyBeginAllowThreads();
16872 (arg1)->Detach();
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_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
16885 PyObject *resultobj;
16886 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16887 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16888 PyObject * obj0 = 0 ;
16889 PyObject * obj1 = 0 ;
16890 char *kwnames[] = {
16891 (char *) "self",(char *) "tbar", NULL
16892 };
16893
16894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16897 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 (arg1)->Attach(arg2);
16902
16903 wxPyEndAllowThreads(__tstate);
16904 if (PyErr_Occurred()) SWIG_fail;
16905 }
16906 Py_INCREF(Py_None); resultobj = Py_None;
16907 return resultobj;
16908 fail:
16909 return NULL;
16910 }
16911
16912
16913 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
16914 PyObject *resultobj;
16915 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16916 PyObject *result;
16917 PyObject * obj0 = 0 ;
16918 char *kwnames[] = {
16919 (char *) "self", NULL
16920 };
16921
16922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
16923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16925 {
16926 PyThreadState* __tstate = wxPyBeginAllowThreads();
16927 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
16928
16929 wxPyEndAllowThreads(__tstate);
16930 if (PyErr_Occurred()) SWIG_fail;
16931 }
16932 resultobj = result;
16933 return resultobj;
16934 fail:
16935 return NULL;
16936 }
16937
16938
16939 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
16940 PyObject *resultobj;
16941 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16942 PyObject *arg2 = (PyObject *) 0 ;
16943 PyObject * obj0 = 0 ;
16944 PyObject * obj1 = 0 ;
16945 char *kwnames[] = {
16946 (char *) "self",(char *) "clientData", NULL
16947 };
16948
16949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
16950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16952 arg2 = obj1;
16953 {
16954 PyThreadState* __tstate = wxPyBeginAllowThreads();
16955 wxToolBarToolBase_SetClientData(arg1,arg2);
16956
16957 wxPyEndAllowThreads(__tstate);
16958 if (PyErr_Occurred()) SWIG_fail;
16959 }
16960 Py_INCREF(Py_None); resultobj = Py_None;
16961 return resultobj;
16962 fail:
16963 return NULL;
16964 }
16965
16966
16967 static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) {
16968 PyObject *obj;
16969 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16970 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
16971 Py_INCREF(obj);
16972 return Py_BuildValue((char *)"");
16973 }
16974 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) {
16975 PyObject *resultobj;
16976 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16977 int arg2 ;
16978 wxString *arg3 = 0 ;
16979 wxBitmap *arg4 = 0 ;
16980 wxBitmap const &arg5_defvalue = wxNullBitmap ;
16981 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
16982 int arg6 = (int) wxITEM_NORMAL ;
16983 wxString const &arg7_defvalue = wxPyEmptyString ;
16984 wxString *arg7 = (wxString *) &arg7_defvalue ;
16985 wxString const &arg8_defvalue = wxPyEmptyString ;
16986 wxString *arg8 = (wxString *) &arg8_defvalue ;
16987 PyObject *arg9 = (PyObject *) NULL ;
16988 wxToolBarToolBase *result;
16989 bool temp3 = False ;
16990 bool temp7 = False ;
16991 bool temp8 = False ;
16992 PyObject * obj0 = 0 ;
16993 PyObject * obj1 = 0 ;
16994 PyObject * obj2 = 0 ;
16995 PyObject * obj3 = 0 ;
16996 PyObject * obj4 = 0 ;
16997 PyObject * obj5 = 0 ;
16998 PyObject * obj6 = 0 ;
16999 PyObject * obj7 = 0 ;
17000 PyObject * obj8 = 0 ;
17001 char *kwnames[] = {
17002 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17003 };
17004
17005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
17006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17008 arg2 = (int)SWIG_As_int(obj1);
17009 if (PyErr_Occurred()) SWIG_fail;
17010 {
17011 arg3 = wxString_in_helper(obj2);
17012 if (arg3 == NULL) SWIG_fail;
17013 temp3 = True;
17014 }
17015 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17016 SWIG_POINTER_EXCEPTION | 0)) == -1)
17017 SWIG_fail;
17018 if (arg4 == NULL) {
17019 PyErr_SetString(PyExc_TypeError,"null reference");
17020 SWIG_fail;
17021 }
17022 if (obj4) {
17023 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17024 SWIG_POINTER_EXCEPTION | 0)) == -1)
17025 SWIG_fail;
17026 if (arg5 == NULL) {
17027 PyErr_SetString(PyExc_TypeError,"null reference");
17028 SWIG_fail;
17029 }
17030 }
17031 if (obj5) {
17032 arg6 = (int)SWIG_As_int(obj5);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 if (obj6) {
17036 {
17037 arg7 = wxString_in_helper(obj6);
17038 if (arg7 == NULL) SWIG_fail;
17039 temp7 = True;
17040 }
17041 }
17042 if (obj7) {
17043 {
17044 arg8 = wxString_in_helper(obj7);
17045 if (arg8 == NULL) SWIG_fail;
17046 temp8 = True;
17047 }
17048 }
17049 if (obj8) {
17050 arg9 = obj8;
17051 }
17052 {
17053 PyThreadState* __tstate = wxPyBeginAllowThreads();
17054 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
17055
17056 wxPyEndAllowThreads(__tstate);
17057 if (PyErr_Occurred()) SWIG_fail;
17058 }
17059 {
17060 resultobj = wxPyMake_wxObject(result, 0);
17061 }
17062 {
17063 if (temp3)
17064 delete arg3;
17065 }
17066 {
17067 if (temp7)
17068 delete arg7;
17069 }
17070 {
17071 if (temp8)
17072 delete arg8;
17073 }
17074 return resultobj;
17075 fail:
17076 {
17077 if (temp3)
17078 delete arg3;
17079 }
17080 {
17081 if (temp7)
17082 delete arg7;
17083 }
17084 {
17085 if (temp8)
17086 delete arg8;
17087 }
17088 return NULL;
17089 }
17090
17091
17092 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) {
17093 PyObject *resultobj;
17094 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17095 size_t arg2 ;
17096 int arg3 ;
17097 wxString *arg4 = 0 ;
17098 wxBitmap *arg5 = 0 ;
17099 wxBitmap const &arg6_defvalue = wxNullBitmap ;
17100 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
17101 int arg7 = (int) wxITEM_NORMAL ;
17102 wxString const &arg8_defvalue = wxPyEmptyString ;
17103 wxString *arg8 = (wxString *) &arg8_defvalue ;
17104 wxString const &arg9_defvalue = wxPyEmptyString ;
17105 wxString *arg9 = (wxString *) &arg9_defvalue ;
17106 PyObject *arg10 = (PyObject *) NULL ;
17107 wxToolBarToolBase *result;
17108 bool temp4 = False ;
17109 bool temp8 = False ;
17110 bool temp9 = False ;
17111 PyObject * obj0 = 0 ;
17112 PyObject * obj1 = 0 ;
17113 PyObject * obj2 = 0 ;
17114 PyObject * obj3 = 0 ;
17115 PyObject * obj4 = 0 ;
17116 PyObject * obj5 = 0 ;
17117 PyObject * obj6 = 0 ;
17118 PyObject * obj7 = 0 ;
17119 PyObject * obj8 = 0 ;
17120 PyObject * obj9 = 0 ;
17121 char *kwnames[] = {
17122 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17123 };
17124
17125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
17126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17128 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17129 if (PyErr_Occurred()) SWIG_fail;
17130 arg3 = (int)SWIG_As_int(obj2);
17131 if (PyErr_Occurred()) SWIG_fail;
17132 {
17133 arg4 = wxString_in_helper(obj3);
17134 if (arg4 == NULL) SWIG_fail;
17135 temp4 = True;
17136 }
17137 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17138 SWIG_POINTER_EXCEPTION | 0)) == -1)
17139 SWIG_fail;
17140 if (arg5 == NULL) {
17141 PyErr_SetString(PyExc_TypeError,"null reference");
17142 SWIG_fail;
17143 }
17144 if (obj5) {
17145 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
17146 SWIG_POINTER_EXCEPTION | 0)) == -1)
17147 SWIG_fail;
17148 if (arg6 == NULL) {
17149 PyErr_SetString(PyExc_TypeError,"null reference");
17150 SWIG_fail;
17151 }
17152 }
17153 if (obj6) {
17154 arg7 = (int)SWIG_As_int(obj6);
17155 if (PyErr_Occurred()) SWIG_fail;
17156 }
17157 if (obj7) {
17158 {
17159 arg8 = wxString_in_helper(obj7);
17160 if (arg8 == NULL) SWIG_fail;
17161 temp8 = True;
17162 }
17163 }
17164 if (obj8) {
17165 {
17166 arg9 = wxString_in_helper(obj8);
17167 if (arg9 == NULL) SWIG_fail;
17168 temp9 = True;
17169 }
17170 }
17171 if (obj9) {
17172 arg10 = obj9;
17173 }
17174 {
17175 PyThreadState* __tstate = wxPyBeginAllowThreads();
17176 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);
17177
17178 wxPyEndAllowThreads(__tstate);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 {
17182 resultobj = wxPyMake_wxObject(result, 0);
17183 }
17184 {
17185 if (temp4)
17186 delete arg4;
17187 }
17188 {
17189 if (temp8)
17190 delete arg8;
17191 }
17192 {
17193 if (temp9)
17194 delete arg9;
17195 }
17196 return resultobj;
17197 fail:
17198 {
17199 if (temp4)
17200 delete arg4;
17201 }
17202 {
17203 if (temp8)
17204 delete arg8;
17205 }
17206 {
17207 if (temp9)
17208 delete arg9;
17209 }
17210 return NULL;
17211 }
17212
17213
17214 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17215 PyObject *resultobj;
17216 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17217 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17218 wxToolBarToolBase *result;
17219 PyObject * obj0 = 0 ;
17220 PyObject * obj1 = 0 ;
17221 char *kwnames[] = {
17222 (char *) "self",(char *) "tool", NULL
17223 };
17224
17225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17228 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17230 {
17231 PyThreadState* __tstate = wxPyBeginAllowThreads();
17232 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17233
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 {
17238 resultobj = wxPyMake_wxObject(result, 0);
17239 }
17240 return resultobj;
17241 fail:
17242 return NULL;
17243 }
17244
17245
17246 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17247 PyObject *resultobj;
17248 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17249 size_t arg2 ;
17250 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17251 wxToolBarToolBase *result;
17252 PyObject * obj0 = 0 ;
17253 PyObject * obj1 = 0 ;
17254 PyObject * obj2 = 0 ;
17255 char *kwnames[] = {
17256 (char *) "self",(char *) "pos",(char *) "tool", NULL
17257 };
17258
17259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17262 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17266 {
17267 PyThreadState* __tstate = wxPyBeginAllowThreads();
17268 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17269
17270 wxPyEndAllowThreads(__tstate);
17271 if (PyErr_Occurred()) SWIG_fail;
17272 }
17273 {
17274 resultobj = wxPyMake_wxObject(result, 0);
17275 }
17276 return resultobj;
17277 fail:
17278 return NULL;
17279 }
17280
17281
17282 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) {
17283 PyObject *resultobj;
17284 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17285 wxControl *arg2 = (wxControl *) 0 ;
17286 wxToolBarToolBase *result;
17287 PyObject * obj0 = 0 ;
17288 PyObject * obj1 = 0 ;
17289 char *kwnames[] = {
17290 (char *) "self",(char *) "control", NULL
17291 };
17292
17293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17298 {
17299 PyThreadState* __tstate = wxPyBeginAllowThreads();
17300 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17301
17302 wxPyEndAllowThreads(__tstate);
17303 if (PyErr_Occurred()) SWIG_fail;
17304 }
17305 {
17306 resultobj = wxPyMake_wxObject(result, 0);
17307 }
17308 return resultobj;
17309 fail:
17310 return NULL;
17311 }
17312
17313
17314 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) {
17315 PyObject *resultobj;
17316 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17317 size_t arg2 ;
17318 wxControl *arg3 = (wxControl *) 0 ;
17319 wxToolBarToolBase *result;
17320 PyObject * obj0 = 0 ;
17321 PyObject * obj1 = 0 ;
17322 PyObject * obj2 = 0 ;
17323 char *kwnames[] = {
17324 (char *) "self",(char *) "pos",(char *) "control", NULL
17325 };
17326
17327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17330 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17334 {
17335 PyThreadState* __tstate = wxPyBeginAllowThreads();
17336 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17337
17338 wxPyEndAllowThreads(__tstate);
17339 if (PyErr_Occurred()) SWIG_fail;
17340 }
17341 {
17342 resultobj = wxPyMake_wxObject(result, 0);
17343 }
17344 return resultobj;
17345 fail:
17346 return NULL;
17347 }
17348
17349
17350 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) {
17351 PyObject *resultobj;
17352 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17353 int arg2 ;
17354 wxControl *result;
17355 PyObject * obj0 = 0 ;
17356 PyObject * obj1 = 0 ;
17357 char *kwnames[] = {
17358 (char *) "self",(char *) "id", NULL
17359 };
17360
17361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17364 arg2 = (int)SWIG_As_int(obj1);
17365 if (PyErr_Occurred()) SWIG_fail;
17366 {
17367 PyThreadState* __tstate = wxPyBeginAllowThreads();
17368 result = (wxControl *)(arg1)->FindControl(arg2);
17369
17370 wxPyEndAllowThreads(__tstate);
17371 if (PyErr_Occurred()) SWIG_fail;
17372 }
17373 {
17374 resultobj = wxPyMake_wxObject(result, 0);
17375 }
17376 return resultobj;
17377 fail:
17378 return NULL;
17379 }
17380
17381
17382 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17383 PyObject *resultobj;
17384 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17385 wxToolBarToolBase *result;
17386 PyObject * obj0 = 0 ;
17387 char *kwnames[] = {
17388 (char *) "self", NULL
17389 };
17390
17391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17394 {
17395 PyThreadState* __tstate = wxPyBeginAllowThreads();
17396 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17397
17398 wxPyEndAllowThreads(__tstate);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 }
17401 {
17402 resultobj = wxPyMake_wxObject(result, 0);
17403 }
17404 return resultobj;
17405 fail:
17406 return NULL;
17407 }
17408
17409
17410 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17411 PyObject *resultobj;
17412 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17413 size_t arg2 ;
17414 wxToolBarToolBase *result;
17415 PyObject * obj0 = 0 ;
17416 PyObject * obj1 = 0 ;
17417 char *kwnames[] = {
17418 (char *) "self",(char *) "pos", NULL
17419 };
17420
17421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17424 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17425 if (PyErr_Occurred()) SWIG_fail;
17426 {
17427 PyThreadState* __tstate = wxPyBeginAllowThreads();
17428 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17429
17430 wxPyEndAllowThreads(__tstate);
17431 if (PyErr_Occurred()) SWIG_fail;
17432 }
17433 {
17434 resultobj = wxPyMake_wxObject(result, 0);
17435 }
17436 return resultobj;
17437 fail:
17438 return NULL;
17439 }
17440
17441
17442 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) {
17443 PyObject *resultobj;
17444 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17445 int arg2 ;
17446 wxToolBarToolBase *result;
17447 PyObject * obj0 = 0 ;
17448 PyObject * obj1 = 0 ;
17449 char *kwnames[] = {
17450 (char *) "self",(char *) "id", NULL
17451 };
17452
17453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17456 arg2 = (int)SWIG_As_int(obj1);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 {
17459 PyThreadState* __tstate = wxPyBeginAllowThreads();
17460 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17461
17462 wxPyEndAllowThreads(__tstate);
17463 if (PyErr_Occurred()) SWIG_fail;
17464 }
17465 {
17466 resultobj = wxPyMake_wxObject(result, 0);
17467 }
17468 return resultobj;
17469 fail:
17470 return NULL;
17471 }
17472
17473
17474 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) {
17475 PyObject *resultobj;
17476 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17477 size_t arg2 ;
17478 bool result;
17479 PyObject * obj0 = 0 ;
17480 PyObject * obj1 = 0 ;
17481 char *kwnames[] = {
17482 (char *) "self",(char *) "pos", NULL
17483 };
17484
17485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17488 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17489 if (PyErr_Occurred()) SWIG_fail;
17490 {
17491 PyThreadState* __tstate = wxPyBeginAllowThreads();
17492 result = (bool)(arg1)->DeleteToolByPos(arg2);
17493
17494 wxPyEndAllowThreads(__tstate);
17495 if (PyErr_Occurred()) SWIG_fail;
17496 }
17497 {
17498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17499 }
17500 return resultobj;
17501 fail:
17502 return NULL;
17503 }
17504
17505
17506 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) {
17507 PyObject *resultobj;
17508 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17509 int arg2 ;
17510 bool result;
17511 PyObject * obj0 = 0 ;
17512 PyObject * obj1 = 0 ;
17513 char *kwnames[] = {
17514 (char *) "self",(char *) "id", NULL
17515 };
17516
17517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17520 arg2 = (int)SWIG_As_int(obj1);
17521 if (PyErr_Occurred()) SWIG_fail;
17522 {
17523 PyThreadState* __tstate = wxPyBeginAllowThreads();
17524 result = (bool)(arg1)->DeleteTool(arg2);
17525
17526 wxPyEndAllowThreads(__tstate);
17527 if (PyErr_Occurred()) SWIG_fail;
17528 }
17529 {
17530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17531 }
17532 return resultobj;
17533 fail:
17534 return NULL;
17535 }
17536
17537
17538 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) {
17539 PyObject *resultobj;
17540 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17541 PyObject * obj0 = 0 ;
17542 char *kwnames[] = {
17543 (char *) "self", NULL
17544 };
17545
17546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17549 {
17550 PyThreadState* __tstate = wxPyBeginAllowThreads();
17551 (arg1)->ClearTools();
17552
17553 wxPyEndAllowThreads(__tstate);
17554 if (PyErr_Occurred()) SWIG_fail;
17555 }
17556 Py_INCREF(Py_None); resultobj = Py_None;
17557 return resultobj;
17558 fail:
17559 return NULL;
17560 }
17561
17562
17563 static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
17564 PyObject *resultobj;
17565 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17566 bool result;
17567 PyObject * obj0 = 0 ;
17568 char *kwnames[] = {
17569 (char *) "self", NULL
17570 };
17571
17572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17575 {
17576 PyThreadState* __tstate = wxPyBeginAllowThreads();
17577 result = (bool)(arg1)->Realize();
17578
17579 wxPyEndAllowThreads(__tstate);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 }
17582 {
17583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17584 }
17585 return resultobj;
17586 fail:
17587 return NULL;
17588 }
17589
17590
17591 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) {
17592 PyObject *resultobj;
17593 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17594 int arg2 ;
17595 bool arg3 ;
17596 PyObject * obj0 = 0 ;
17597 PyObject * obj1 = 0 ;
17598 PyObject * obj2 = 0 ;
17599 char *kwnames[] = {
17600 (char *) "self",(char *) "id",(char *) "enable", NULL
17601 };
17602
17603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17606 arg2 = (int)SWIG_As_int(obj1);
17607 if (PyErr_Occurred()) SWIG_fail;
17608 arg3 = (bool)SWIG_As_bool(obj2);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 {
17611 PyThreadState* __tstate = wxPyBeginAllowThreads();
17612 (arg1)->EnableTool(arg2,arg3);
17613
17614 wxPyEndAllowThreads(__tstate);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 }
17617 Py_INCREF(Py_None); resultobj = Py_None;
17618 return resultobj;
17619 fail:
17620 return NULL;
17621 }
17622
17623
17624 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) {
17625 PyObject *resultobj;
17626 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17627 int arg2 ;
17628 bool arg3 ;
17629 PyObject * obj0 = 0 ;
17630 PyObject * obj1 = 0 ;
17631 PyObject * obj2 = 0 ;
17632 char *kwnames[] = {
17633 (char *) "self",(char *) "id",(char *) "toggle", NULL
17634 };
17635
17636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17639 arg2 = (int)SWIG_As_int(obj1);
17640 if (PyErr_Occurred()) SWIG_fail;
17641 arg3 = (bool)SWIG_As_bool(obj2);
17642 if (PyErr_Occurred()) SWIG_fail;
17643 {
17644 PyThreadState* __tstate = wxPyBeginAllowThreads();
17645 (arg1)->ToggleTool(arg2,arg3);
17646
17647 wxPyEndAllowThreads(__tstate);
17648 if (PyErr_Occurred()) SWIG_fail;
17649 }
17650 Py_INCREF(Py_None); resultobj = Py_None;
17651 return resultobj;
17652 fail:
17653 return NULL;
17654 }
17655
17656
17657 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
17658 PyObject *resultobj;
17659 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17660 int arg2 ;
17661 bool arg3 ;
17662 PyObject * obj0 = 0 ;
17663 PyObject * obj1 = 0 ;
17664 PyObject * obj2 = 0 ;
17665 char *kwnames[] = {
17666 (char *) "self",(char *) "id",(char *) "toggle", NULL
17667 };
17668
17669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17672 arg2 = (int)SWIG_As_int(obj1);
17673 if (PyErr_Occurred()) SWIG_fail;
17674 arg3 = (bool)SWIG_As_bool(obj2);
17675 if (PyErr_Occurred()) SWIG_fail;
17676 {
17677 PyThreadState* __tstate = wxPyBeginAllowThreads();
17678 (arg1)->SetToggle(arg2,arg3);
17679
17680 wxPyEndAllowThreads(__tstate);
17681 if (PyErr_Occurred()) SWIG_fail;
17682 }
17683 Py_INCREF(Py_None); resultobj = Py_None;
17684 return resultobj;
17685 fail:
17686 return NULL;
17687 }
17688
17689
17690 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17691 PyObject *resultobj;
17692 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17693 int arg2 ;
17694 PyObject *result;
17695 PyObject * obj0 = 0 ;
17696 PyObject * obj1 = 0 ;
17697 char *kwnames[] = {
17698 (char *) "self",(char *) "id", NULL
17699 };
17700
17701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17704 arg2 = (int)SWIG_As_int(obj1);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 {
17707 PyThreadState* __tstate = wxPyBeginAllowThreads();
17708 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17709
17710 wxPyEndAllowThreads(__tstate);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 }
17713 resultobj = result;
17714 return resultobj;
17715 fail:
17716 return NULL;
17717 }
17718
17719
17720 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17721 PyObject *resultobj;
17722 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17723 int arg2 ;
17724 PyObject *arg3 = (PyObject *) 0 ;
17725 PyObject * obj0 = 0 ;
17726 PyObject * obj1 = 0 ;
17727 PyObject * obj2 = 0 ;
17728 char *kwnames[] = {
17729 (char *) "self",(char *) "id",(char *) "clientData", NULL
17730 };
17731
17732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17735 arg2 = (int)SWIG_As_int(obj1);
17736 if (PyErr_Occurred()) SWIG_fail;
17737 arg3 = obj2;
17738 {
17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
17740 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17741
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 Py_INCREF(Py_None); resultobj = Py_None;
17746 return resultobj;
17747 fail:
17748 return NULL;
17749 }
17750
17751
17752 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) {
17753 PyObject *resultobj;
17754 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17755 int arg2 ;
17756 int result;
17757 PyObject * obj0 = 0 ;
17758 PyObject * obj1 = 0 ;
17759 char *kwnames[] = {
17760 (char *) "self",(char *) "id", NULL
17761 };
17762
17763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17766 arg2 = (int)SWIG_As_int(obj1);
17767 if (PyErr_Occurred()) SWIG_fail;
17768 {
17769 PyThreadState* __tstate = wxPyBeginAllowThreads();
17770 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17771
17772 wxPyEndAllowThreads(__tstate);
17773 if (PyErr_Occurred()) SWIG_fail;
17774 }
17775 resultobj = SWIG_From_int((int)result);
17776 return resultobj;
17777 fail:
17778 return NULL;
17779 }
17780
17781
17782 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) {
17783 PyObject *resultobj;
17784 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17785 int arg2 ;
17786 bool result;
17787 PyObject * obj0 = 0 ;
17788 PyObject * obj1 = 0 ;
17789 char *kwnames[] = {
17790 (char *) "self",(char *) "id", NULL
17791 };
17792
17793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17796 arg2 = (int)SWIG_As_int(obj1);
17797 if (PyErr_Occurred()) SWIG_fail;
17798 {
17799 PyThreadState* __tstate = wxPyBeginAllowThreads();
17800 result = (bool)(arg1)->GetToolState(arg2);
17801
17802 wxPyEndAllowThreads(__tstate);
17803 if (PyErr_Occurred()) SWIG_fail;
17804 }
17805 {
17806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17807 }
17808 return resultobj;
17809 fail:
17810 return NULL;
17811 }
17812
17813
17814 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
17815 PyObject *resultobj;
17816 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17817 int arg2 ;
17818 bool result;
17819 PyObject * obj0 = 0 ;
17820 PyObject * obj1 = 0 ;
17821 char *kwnames[] = {
17822 (char *) "self",(char *) "id", NULL
17823 };
17824
17825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17828 arg2 = (int)SWIG_As_int(obj1);
17829 if (PyErr_Occurred()) SWIG_fail;
17830 {
17831 PyThreadState* __tstate = wxPyBeginAllowThreads();
17832 result = (bool)(arg1)->GetToolEnabled(arg2);
17833
17834 wxPyEndAllowThreads(__tstate);
17835 if (PyErr_Occurred()) SWIG_fail;
17836 }
17837 {
17838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17839 }
17840 return resultobj;
17841 fail:
17842 return NULL;
17843 }
17844
17845
17846 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17847 PyObject *resultobj;
17848 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17849 int arg2 ;
17850 wxString *arg3 = 0 ;
17851 bool temp3 = False ;
17852 PyObject * obj0 = 0 ;
17853 PyObject * obj1 = 0 ;
17854 PyObject * obj2 = 0 ;
17855 char *kwnames[] = {
17856 (char *) "self",(char *) "id",(char *) "helpString", NULL
17857 };
17858
17859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17862 arg2 = (int)SWIG_As_int(obj1);
17863 if (PyErr_Occurred()) SWIG_fail;
17864 {
17865 arg3 = wxString_in_helper(obj2);
17866 if (arg3 == NULL) SWIG_fail;
17867 temp3 = True;
17868 }
17869 {
17870 PyThreadState* __tstate = wxPyBeginAllowThreads();
17871 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17872
17873 wxPyEndAllowThreads(__tstate);
17874 if (PyErr_Occurred()) SWIG_fail;
17875 }
17876 Py_INCREF(Py_None); resultobj = Py_None;
17877 {
17878 if (temp3)
17879 delete arg3;
17880 }
17881 return resultobj;
17882 fail:
17883 {
17884 if (temp3)
17885 delete arg3;
17886 }
17887 return NULL;
17888 }
17889
17890
17891 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17892 PyObject *resultobj;
17893 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17894 int arg2 ;
17895 wxString result;
17896 PyObject * obj0 = 0 ;
17897 PyObject * obj1 = 0 ;
17898 char *kwnames[] = {
17899 (char *) "self",(char *) "id", NULL
17900 };
17901
17902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17905 arg2 = (int)SWIG_As_int(obj1);
17906 if (PyErr_Occurred()) SWIG_fail;
17907 {
17908 PyThreadState* __tstate = wxPyBeginAllowThreads();
17909 result = (arg1)->GetToolShortHelp(arg2);
17910
17911 wxPyEndAllowThreads(__tstate);
17912 if (PyErr_Occurred()) SWIG_fail;
17913 }
17914 {
17915 #if wxUSE_UNICODE
17916 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17917 #else
17918 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17919 #endif
17920 }
17921 return resultobj;
17922 fail:
17923 return NULL;
17924 }
17925
17926
17927 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17928 PyObject *resultobj;
17929 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17930 int arg2 ;
17931 wxString *arg3 = 0 ;
17932 bool temp3 = False ;
17933 PyObject * obj0 = 0 ;
17934 PyObject * obj1 = 0 ;
17935 PyObject * obj2 = 0 ;
17936 char *kwnames[] = {
17937 (char *) "self",(char *) "id",(char *) "helpString", NULL
17938 };
17939
17940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17943 arg2 = (int)SWIG_As_int(obj1);
17944 if (PyErr_Occurred()) SWIG_fail;
17945 {
17946 arg3 = wxString_in_helper(obj2);
17947 if (arg3 == NULL) SWIG_fail;
17948 temp3 = True;
17949 }
17950 {
17951 PyThreadState* __tstate = wxPyBeginAllowThreads();
17952 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
17953
17954 wxPyEndAllowThreads(__tstate);
17955 if (PyErr_Occurred()) SWIG_fail;
17956 }
17957 Py_INCREF(Py_None); resultobj = Py_None;
17958 {
17959 if (temp3)
17960 delete arg3;
17961 }
17962 return resultobj;
17963 fail:
17964 {
17965 if (temp3)
17966 delete arg3;
17967 }
17968 return NULL;
17969 }
17970
17971
17972 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17973 PyObject *resultobj;
17974 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17975 int arg2 ;
17976 wxString result;
17977 PyObject * obj0 = 0 ;
17978 PyObject * obj1 = 0 ;
17979 char *kwnames[] = {
17980 (char *) "self",(char *) "id", NULL
17981 };
17982
17983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
17984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17986 arg2 = (int)SWIG_As_int(obj1);
17987 if (PyErr_Occurred()) SWIG_fail;
17988 {
17989 PyThreadState* __tstate = wxPyBeginAllowThreads();
17990 result = (arg1)->GetToolLongHelp(arg2);
17991
17992 wxPyEndAllowThreads(__tstate);
17993 if (PyErr_Occurred()) SWIG_fail;
17994 }
17995 {
17996 #if wxUSE_UNICODE
17997 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17998 #else
17999 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18000 #endif
18001 }
18002 return resultobj;
18003 fail:
18004 return NULL;
18005 }
18006
18007
18008 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) {
18009 PyObject *resultobj;
18010 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18011 int arg2 ;
18012 int arg3 ;
18013 PyObject * obj0 = 0 ;
18014 PyObject * obj1 = 0 ;
18015 PyObject * obj2 = 0 ;
18016 char *kwnames[] = {
18017 (char *) "self",(char *) "x",(char *) "y", NULL
18018 };
18019
18020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
18021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18023 arg2 = (int)SWIG_As_int(obj1);
18024 if (PyErr_Occurred()) SWIG_fail;
18025 arg3 = (int)SWIG_As_int(obj2);
18026 if (PyErr_Occurred()) SWIG_fail;
18027 {
18028 PyThreadState* __tstate = wxPyBeginAllowThreads();
18029 (arg1)->SetMargins(arg2,arg3);
18030
18031 wxPyEndAllowThreads(__tstate);
18032 if (PyErr_Occurred()) SWIG_fail;
18033 }
18034 Py_INCREF(Py_None); resultobj = Py_None;
18035 return resultobj;
18036 fail:
18037 return NULL;
18038 }
18039
18040
18041 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18042 PyObject *resultobj;
18043 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18044 wxSize *arg2 = 0 ;
18045 wxSize temp2 ;
18046 PyObject * obj0 = 0 ;
18047 PyObject * obj1 = 0 ;
18048 char *kwnames[] = {
18049 (char *) "self",(char *) "size", NULL
18050 };
18051
18052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
18053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18055 {
18056 arg2 = &temp2;
18057 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18058 }
18059 {
18060 PyThreadState* __tstate = wxPyBeginAllowThreads();
18061 (arg1)->SetMargins((wxSize const &)*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_SetToolPacking(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 *) "packing", NULL
18081 };
18082
18083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",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)->SetToolPacking(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_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18103 PyObject *resultobj;
18104 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18105 int arg2 ;
18106 PyObject * obj0 = 0 ;
18107 PyObject * obj1 = 0 ;
18108 char *kwnames[] = {
18109 (char *) "self",(char *) "separation", NULL
18110 };
18111
18112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
18113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18115 arg2 = (int)SWIG_As_int(obj1);
18116 if (PyErr_Occurred()) SWIG_fail;
18117 {
18118 PyThreadState* __tstate = wxPyBeginAllowThreads();
18119 (arg1)->SetToolSeparation(arg2);
18120
18121 wxPyEndAllowThreads(__tstate);
18122 if (PyErr_Occurred()) SWIG_fail;
18123 }
18124 Py_INCREF(Py_None); resultobj = Py_None;
18125 return resultobj;
18126 fail:
18127 return NULL;
18128 }
18129
18130
18131 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18132 PyObject *resultobj;
18133 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18134 wxSize result;
18135 PyObject * obj0 = 0 ;
18136 char *kwnames[] = {
18137 (char *) "self", NULL
18138 };
18139
18140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
18141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 result = (arg1)->GetToolMargins();
18146
18147 wxPyEndAllowThreads(__tstate);
18148 if (PyErr_Occurred()) SWIG_fail;
18149 }
18150 {
18151 wxSize * resultptr;
18152 resultptr = new wxSize((wxSize &) result);
18153 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18154 }
18155 return resultobj;
18156 fail:
18157 return NULL;
18158 }
18159
18160
18161 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18162 PyObject *resultobj;
18163 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18164 wxSize result;
18165 PyObject * obj0 = 0 ;
18166 char *kwnames[] = {
18167 (char *) "self", NULL
18168 };
18169
18170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
18171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 result = (arg1)->GetMargins();
18176
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 {
18181 wxSize * resultptr;
18182 resultptr = new wxSize((wxSize &) result);
18183 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18184 }
18185 return resultobj;
18186 fail:
18187 return NULL;
18188 }
18189
18190
18191 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18192 PyObject *resultobj;
18193 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18194 int result;
18195 PyObject * obj0 = 0 ;
18196 char *kwnames[] = {
18197 (char *) "self", NULL
18198 };
18199
18200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
18201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18203 {
18204 PyThreadState* __tstate = wxPyBeginAllowThreads();
18205 result = (int)(arg1)->GetToolPacking();
18206
18207 wxPyEndAllowThreads(__tstate);
18208 if (PyErr_Occurred()) SWIG_fail;
18209 }
18210 resultobj = SWIG_From_int((int)result);
18211 return resultobj;
18212 fail:
18213 return NULL;
18214 }
18215
18216
18217 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18218 PyObject *resultobj;
18219 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18220 int result;
18221 PyObject * obj0 = 0 ;
18222 char *kwnames[] = {
18223 (char *) "self", NULL
18224 };
18225
18226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18229 {
18230 PyThreadState* __tstate = wxPyBeginAllowThreads();
18231 result = (int)(arg1)->GetToolSeparation();
18232
18233 wxPyEndAllowThreads(__tstate);
18234 if (PyErr_Occurred()) SWIG_fail;
18235 }
18236 resultobj = SWIG_From_int((int)result);
18237 return resultobj;
18238 fail:
18239 return NULL;
18240 }
18241
18242
18243 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
18244 PyObject *resultobj;
18245 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18246 int arg2 ;
18247 PyObject * obj0 = 0 ;
18248 PyObject * obj1 = 0 ;
18249 char *kwnames[] = {
18250 (char *) "self",(char *) "nRows", NULL
18251 };
18252
18253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18256 arg2 = (int)SWIG_As_int(obj1);
18257 if (PyErr_Occurred()) SWIG_fail;
18258 {
18259 PyThreadState* __tstate = wxPyBeginAllowThreads();
18260 (arg1)->SetRows(arg2);
18261
18262 wxPyEndAllowThreads(__tstate);
18263 if (PyErr_Occurred()) SWIG_fail;
18264 }
18265 Py_INCREF(Py_None); resultobj = Py_None;
18266 return resultobj;
18267 fail:
18268 return NULL;
18269 }
18270
18271
18272 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) {
18273 PyObject *resultobj;
18274 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18275 int arg2 ;
18276 int arg3 ;
18277 PyObject * obj0 = 0 ;
18278 PyObject * obj1 = 0 ;
18279 PyObject * obj2 = 0 ;
18280 char *kwnames[] = {
18281 (char *) "self",(char *) "rows",(char *) "cols", NULL
18282 };
18283
18284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18287 arg2 = (int)SWIG_As_int(obj1);
18288 if (PyErr_Occurred()) SWIG_fail;
18289 arg3 = (int)SWIG_As_int(obj2);
18290 if (PyErr_Occurred()) SWIG_fail;
18291 {
18292 PyThreadState* __tstate = wxPyBeginAllowThreads();
18293 (arg1)->SetMaxRowsCols(arg2,arg3);
18294
18295 wxPyEndAllowThreads(__tstate);
18296 if (PyErr_Occurred()) SWIG_fail;
18297 }
18298 Py_INCREF(Py_None); resultobj = Py_None;
18299 return resultobj;
18300 fail:
18301 return NULL;
18302 }
18303
18304
18305 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) {
18306 PyObject *resultobj;
18307 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18308 int result;
18309 PyObject * obj0 = 0 ;
18310 char *kwnames[] = {
18311 (char *) "self", NULL
18312 };
18313
18314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18317 {
18318 PyThreadState* __tstate = wxPyBeginAllowThreads();
18319 result = (int)(arg1)->GetMaxRows();
18320
18321 wxPyEndAllowThreads(__tstate);
18322 if (PyErr_Occurred()) SWIG_fail;
18323 }
18324 resultobj = SWIG_From_int((int)result);
18325 return resultobj;
18326 fail:
18327 return NULL;
18328 }
18329
18330
18331 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) {
18332 PyObject *resultobj;
18333 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18334 int result;
18335 PyObject * obj0 = 0 ;
18336 char *kwnames[] = {
18337 (char *) "self", NULL
18338 };
18339
18340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18343 {
18344 PyThreadState* __tstate = wxPyBeginAllowThreads();
18345 result = (int)(arg1)->GetMaxCols();
18346
18347 wxPyEndAllowThreads(__tstate);
18348 if (PyErr_Occurred()) SWIG_fail;
18349 }
18350 resultobj = SWIG_From_int((int)result);
18351 return resultobj;
18352 fail:
18353 return NULL;
18354 }
18355
18356
18357 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18358 PyObject *resultobj;
18359 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18360 wxSize *arg2 = 0 ;
18361 wxSize temp2 ;
18362 PyObject * obj0 = 0 ;
18363 PyObject * obj1 = 0 ;
18364 char *kwnames[] = {
18365 (char *) "self",(char *) "size", NULL
18366 };
18367
18368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18371 {
18372 arg2 = &temp2;
18373 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18374 }
18375 {
18376 PyThreadState* __tstate = wxPyBeginAllowThreads();
18377 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18378
18379 wxPyEndAllowThreads(__tstate);
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 Py_INCREF(Py_None); resultobj = Py_None;
18383 return resultobj;
18384 fail:
18385 return NULL;
18386 }
18387
18388
18389 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18390 PyObject *resultobj;
18391 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18392 wxSize result;
18393 PyObject * obj0 = 0 ;
18394 char *kwnames[] = {
18395 (char *) "self", NULL
18396 };
18397
18398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18401 {
18402 PyThreadState* __tstate = wxPyBeginAllowThreads();
18403 result = (arg1)->GetToolBitmapSize();
18404
18405 wxPyEndAllowThreads(__tstate);
18406 if (PyErr_Occurred()) SWIG_fail;
18407 }
18408 {
18409 wxSize * resultptr;
18410 resultptr = new wxSize((wxSize &) result);
18411 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18412 }
18413 return resultobj;
18414 fail:
18415 return NULL;
18416 }
18417
18418
18419 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) {
18420 PyObject *resultobj;
18421 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18422 wxSize result;
18423 PyObject * obj0 = 0 ;
18424 char *kwnames[] = {
18425 (char *) "self", NULL
18426 };
18427
18428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18431 {
18432 PyThreadState* __tstate = wxPyBeginAllowThreads();
18433 result = (arg1)->GetToolSize();
18434
18435 wxPyEndAllowThreads(__tstate);
18436 if (PyErr_Occurred()) SWIG_fail;
18437 }
18438 {
18439 wxSize * resultptr;
18440 resultptr = new wxSize((wxSize &) result);
18441 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18442 }
18443 return resultobj;
18444 fail:
18445 return NULL;
18446 }
18447
18448
18449 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18450 PyObject *resultobj;
18451 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18452 int arg2 ;
18453 int arg3 ;
18454 wxToolBarToolBase *result;
18455 PyObject * obj0 = 0 ;
18456 PyObject * obj1 = 0 ;
18457 PyObject * obj2 = 0 ;
18458 char *kwnames[] = {
18459 (char *) "self",(char *) "x",(char *) "y", NULL
18460 };
18461
18462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18465 arg2 = (int)SWIG_As_int(obj1);
18466 if (PyErr_Occurred()) SWIG_fail;
18467 arg3 = (int)SWIG_As_int(obj2);
18468 if (PyErr_Occurred()) SWIG_fail;
18469 {
18470 PyThreadState* __tstate = wxPyBeginAllowThreads();
18471 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18472
18473 wxPyEndAllowThreads(__tstate);
18474 if (PyErr_Occurred()) SWIG_fail;
18475 }
18476 {
18477 resultobj = wxPyMake_wxObject(result, 0);
18478 }
18479 return resultobj;
18480 fail:
18481 return NULL;
18482 }
18483
18484
18485 static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) {
18486 PyObject *resultobj;
18487 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18488 int arg2 ;
18489 wxToolBarToolBase *result;
18490 PyObject * obj0 = 0 ;
18491 PyObject * obj1 = 0 ;
18492 char *kwnames[] = {
18493 (char *) "self",(char *) "toolid", NULL
18494 };
18495
18496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18499 arg2 = (int)SWIG_As_int(obj1);
18500 if (PyErr_Occurred()) SWIG_fail;
18501 {
18502 PyThreadState* __tstate = wxPyBeginAllowThreads();
18503 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18504
18505 wxPyEndAllowThreads(__tstate);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 }
18508 {
18509 resultobj = wxPyMake_wxObject(result, 0);
18510 }
18511 return resultobj;
18512 fail:
18513 return NULL;
18514 }
18515
18516
18517 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj;
18519 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18520 bool result;
18521 PyObject * obj0 = 0 ;
18522 char *kwnames[] = {
18523 (char *) "self", NULL
18524 };
18525
18526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18529 {
18530 PyThreadState* __tstate = wxPyBeginAllowThreads();
18531 result = (bool)(arg1)->IsVertical();
18532
18533 wxPyEndAllowThreads(__tstate);
18534 if (PyErr_Occurred()) SWIG_fail;
18535 }
18536 {
18537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18538 }
18539 return resultobj;
18540 fail:
18541 return NULL;
18542 }
18543
18544
18545 static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) {
18546 PyObject *obj;
18547 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18548 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18549 Py_INCREF(obj);
18550 return Py_BuildValue((char *)"");
18551 }
18552 static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18553 PyObject *resultobj;
18554 wxWindow *arg1 = (wxWindow *) 0 ;
18555 int arg2 = (int) -1 ;
18556 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18557 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18558 wxSize const &arg4_defvalue = wxDefaultSize ;
18559 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18560 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18561 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18562 wxString *arg6 = (wxString *) &arg6_defvalue ;
18563 wxToolBar *result;
18564 wxPoint temp3 ;
18565 wxSize temp4 ;
18566 bool temp6 = False ;
18567 PyObject * obj0 = 0 ;
18568 PyObject * obj1 = 0 ;
18569 PyObject * obj2 = 0 ;
18570 PyObject * obj3 = 0 ;
18571 PyObject * obj4 = 0 ;
18572 PyObject * obj5 = 0 ;
18573 char *kwnames[] = {
18574 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18575 };
18576
18577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18580 if (obj1) {
18581 arg2 = (int)SWIG_As_int(obj1);
18582 if (PyErr_Occurred()) SWIG_fail;
18583 }
18584 if (obj2) {
18585 {
18586 arg3 = &temp3;
18587 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18588 }
18589 }
18590 if (obj3) {
18591 {
18592 arg4 = &temp4;
18593 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18594 }
18595 }
18596 if (obj4) {
18597 arg5 = (long)SWIG_As_long(obj4);
18598 if (PyErr_Occurred()) SWIG_fail;
18599 }
18600 if (obj5) {
18601 {
18602 arg6 = wxString_in_helper(obj5);
18603 if (arg6 == NULL) SWIG_fail;
18604 temp6 = True;
18605 }
18606 }
18607 {
18608 if (!wxPyCheckForApp()) SWIG_fail;
18609 PyThreadState* __tstate = wxPyBeginAllowThreads();
18610 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18611
18612 wxPyEndAllowThreads(__tstate);
18613 if (PyErr_Occurred()) SWIG_fail;
18614 }
18615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
18616 {
18617 if (temp6)
18618 delete arg6;
18619 }
18620 return resultobj;
18621 fail:
18622 {
18623 if (temp6)
18624 delete arg6;
18625 }
18626 return NULL;
18627 }
18628
18629
18630 static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18631 PyObject *resultobj;
18632 wxToolBar *result;
18633 char *kwnames[] = {
18634 NULL
18635 };
18636
18637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18638 {
18639 if (!wxPyCheckForApp()) SWIG_fail;
18640 PyThreadState* __tstate = wxPyBeginAllowThreads();
18641 result = (wxToolBar *)new wxToolBar();
18642
18643 wxPyEndAllowThreads(__tstate);
18644 if (PyErr_Occurred()) SWIG_fail;
18645 }
18646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
18647 return resultobj;
18648 fail:
18649 return NULL;
18650 }
18651
18652
18653 static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
18654 PyObject *resultobj;
18655 wxToolBar *arg1 = (wxToolBar *) 0 ;
18656 wxWindow *arg2 = (wxWindow *) 0 ;
18657 int arg3 = (int) -1 ;
18658 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18659 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18660 wxSize const &arg5_defvalue = wxDefaultSize ;
18661 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18662 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18663 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18664 wxString *arg7 = (wxString *) &arg7_defvalue ;
18665 bool result;
18666 wxPoint temp4 ;
18667 wxSize temp5 ;
18668 bool temp7 = False ;
18669 PyObject * obj0 = 0 ;
18670 PyObject * obj1 = 0 ;
18671 PyObject * obj2 = 0 ;
18672 PyObject * obj3 = 0 ;
18673 PyObject * obj4 = 0 ;
18674 PyObject * obj5 = 0 ;
18675 PyObject * obj6 = 0 ;
18676 char *kwnames[] = {
18677 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18678 };
18679
18680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18683 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18685 if (obj2) {
18686 arg3 = (int)SWIG_As_int(obj2);
18687 if (PyErr_Occurred()) SWIG_fail;
18688 }
18689 if (obj3) {
18690 {
18691 arg4 = &temp4;
18692 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18693 }
18694 }
18695 if (obj4) {
18696 {
18697 arg5 = &temp5;
18698 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18699 }
18700 }
18701 if (obj5) {
18702 arg6 = (long)SWIG_As_long(obj5);
18703 if (PyErr_Occurred()) SWIG_fail;
18704 }
18705 if (obj6) {
18706 {
18707 arg7 = wxString_in_helper(obj6);
18708 if (arg7 == NULL) SWIG_fail;
18709 temp7 = True;
18710 }
18711 }
18712 {
18713 PyThreadState* __tstate = wxPyBeginAllowThreads();
18714 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18715
18716 wxPyEndAllowThreads(__tstate);
18717 if (PyErr_Occurred()) SWIG_fail;
18718 }
18719 {
18720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18721 }
18722 {
18723 if (temp7)
18724 delete arg7;
18725 }
18726 return resultobj;
18727 fail:
18728 {
18729 if (temp7)
18730 delete arg7;
18731 }
18732 return NULL;
18733 }
18734
18735
18736 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj;
18738 wxToolBar *arg1 = (wxToolBar *) 0 ;
18739 int arg2 ;
18740 int arg3 ;
18741 wxToolBarToolBase *result;
18742 PyObject * obj0 = 0 ;
18743 PyObject * obj1 = 0 ;
18744 PyObject * obj2 = 0 ;
18745 char *kwnames[] = {
18746 (char *) "self",(char *) "x",(char *) "y", NULL
18747 };
18748
18749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18752 arg2 = (int)SWIG_As_int(obj1);
18753 if (PyErr_Occurred()) SWIG_fail;
18754 arg3 = (int)SWIG_As_int(obj2);
18755 if (PyErr_Occurred()) SWIG_fail;
18756 {
18757 PyThreadState* __tstate = wxPyBeginAllowThreads();
18758 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18759
18760 wxPyEndAllowThreads(__tstate);
18761 if (PyErr_Occurred()) SWIG_fail;
18762 }
18763 {
18764 resultobj = wxPyMake_wxObject(result, 0);
18765 }
18766 return resultobj;
18767 fail:
18768 return NULL;
18769 }
18770
18771
18772 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
18773 PyObject *resultobj;
18774 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18775 wxVisualAttributes result;
18776 PyObject * obj0 = 0 ;
18777 char *kwnames[] = {
18778 (char *) "variant", NULL
18779 };
18780
18781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18782 if (obj0) {
18783 arg1 = (int)SWIG_As_int(obj0);
18784 if (PyErr_Occurred()) SWIG_fail;
18785 }
18786 {
18787 if (!wxPyCheckForApp()) SWIG_fail;
18788 PyThreadState* __tstate = wxPyBeginAllowThreads();
18789 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18790
18791 wxPyEndAllowThreads(__tstate);
18792 if (PyErr_Occurred()) SWIG_fail;
18793 }
18794 {
18795 wxVisualAttributes * resultptr;
18796 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18797 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18798 }
18799 return resultobj;
18800 fail:
18801 return NULL;
18802 }
18803
18804
18805 static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) {
18806 PyObject *obj;
18807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18808 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18809 Py_INCREF(obj);
18810 return Py_BuildValue((char *)"");
18811 }
18812 static int _wrap_ListCtrlNameStr_set(PyObject *) {
18813 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18814 return 1;
18815 }
18816
18817
18818 static PyObject *_wrap_ListCtrlNameStr_get() {
18819 PyObject *pyobj;
18820
18821 {
18822 #if wxUSE_UNICODE
18823 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18824 #else
18825 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18826 #endif
18827 }
18828 return pyobj;
18829 }
18830
18831
18832 static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) {
18833 PyObject *resultobj;
18834 wxColour const &arg1_defvalue = wxNullColour ;
18835 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18836 wxColour const &arg2_defvalue = wxNullColour ;
18837 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18838 wxFont const &arg3_defvalue = wxNullFont ;
18839 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18840 wxListItemAttr *result;
18841 wxColour temp1 ;
18842 wxColour temp2 ;
18843 PyObject * obj0 = 0 ;
18844 PyObject * obj1 = 0 ;
18845 PyObject * obj2 = 0 ;
18846 char *kwnames[] = {
18847 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18848 };
18849
18850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18851 if (obj0) {
18852 {
18853 arg1 = &temp1;
18854 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18855 }
18856 }
18857 if (obj1) {
18858 {
18859 arg2 = &temp2;
18860 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18861 }
18862 }
18863 if (obj2) {
18864 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18865 SWIG_POINTER_EXCEPTION | 0)) == -1)
18866 SWIG_fail;
18867 if (arg3 == NULL) {
18868 PyErr_SetString(PyExc_TypeError,"null reference");
18869 SWIG_fail;
18870 }
18871 }
18872 {
18873 PyThreadState* __tstate = wxPyBeginAllowThreads();
18874 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18875
18876 wxPyEndAllowThreads(__tstate);
18877 if (PyErr_Occurred()) SWIG_fail;
18878 }
18879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18880 return resultobj;
18881 fail:
18882 return NULL;
18883 }
18884
18885
18886 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
18887 PyObject *resultobj;
18888 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18889 wxColour *arg2 = 0 ;
18890 wxColour temp2 ;
18891 PyObject * obj0 = 0 ;
18892 PyObject * obj1 = 0 ;
18893 char *kwnames[] = {
18894 (char *) "self",(char *) "colText", NULL
18895 };
18896
18897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18900 {
18901 arg2 = &temp2;
18902 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18903 }
18904 {
18905 PyThreadState* __tstate = wxPyBeginAllowThreads();
18906 (arg1)->SetTextColour((wxColour const &)*arg2);
18907
18908 wxPyEndAllowThreads(__tstate);
18909 if (PyErr_Occurred()) SWIG_fail;
18910 }
18911 Py_INCREF(Py_None); resultobj = Py_None;
18912 return resultobj;
18913 fail:
18914 return NULL;
18915 }
18916
18917
18918 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
18919 PyObject *resultobj;
18920 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18921 wxColour *arg2 = 0 ;
18922 wxColour temp2 ;
18923 PyObject * obj0 = 0 ;
18924 PyObject * obj1 = 0 ;
18925 char *kwnames[] = {
18926 (char *) "self",(char *) "colBack", NULL
18927 };
18928
18929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18932 {
18933 arg2 = &temp2;
18934 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18935 }
18936 {
18937 PyThreadState* __tstate = wxPyBeginAllowThreads();
18938 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18939
18940 wxPyEndAllowThreads(__tstate);
18941 if (PyErr_Occurred()) SWIG_fail;
18942 }
18943 Py_INCREF(Py_None); resultobj = Py_None;
18944 return resultobj;
18945 fail:
18946 return NULL;
18947 }
18948
18949
18950 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
18951 PyObject *resultobj;
18952 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18953 wxFont *arg2 = 0 ;
18954 PyObject * obj0 = 0 ;
18955 PyObject * obj1 = 0 ;
18956 char *kwnames[] = {
18957 (char *) "self",(char *) "font", NULL
18958 };
18959
18960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
18961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18963 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18964 SWIG_POINTER_EXCEPTION | 0)) == -1)
18965 SWIG_fail;
18966 if (arg2 == NULL) {
18967 PyErr_SetString(PyExc_TypeError,"null reference");
18968 SWIG_fail;
18969 }
18970 {
18971 PyThreadState* __tstate = wxPyBeginAllowThreads();
18972 (arg1)->SetFont((wxFont const &)*arg2);
18973
18974 wxPyEndAllowThreads(__tstate);
18975 if (PyErr_Occurred()) SWIG_fail;
18976 }
18977 Py_INCREF(Py_None); resultobj = Py_None;
18978 return resultobj;
18979 fail:
18980 return NULL;
18981 }
18982
18983
18984 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
18985 PyObject *resultobj;
18986 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18987 bool result;
18988 PyObject * obj0 = 0 ;
18989 char *kwnames[] = {
18990 (char *) "self", NULL
18991 };
18992
18993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
18994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18996 {
18997 PyThreadState* __tstate = wxPyBeginAllowThreads();
18998 result = (bool)(arg1)->HasTextColour();
18999
19000 wxPyEndAllowThreads(__tstate);
19001 if (PyErr_Occurred()) SWIG_fail;
19002 }
19003 {
19004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19005 }
19006 return resultobj;
19007 fail:
19008 return NULL;
19009 }
19010
19011
19012 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19013 PyObject *resultobj;
19014 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19015 bool result;
19016 PyObject * obj0 = 0 ;
19017 char *kwnames[] = {
19018 (char *) "self", NULL
19019 };
19020
19021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
19022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19024 {
19025 PyThreadState* __tstate = wxPyBeginAllowThreads();
19026 result = (bool)(arg1)->HasBackgroundColour();
19027
19028 wxPyEndAllowThreads(__tstate);
19029 if (PyErr_Occurred()) SWIG_fail;
19030 }
19031 {
19032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19033 }
19034 return resultobj;
19035 fail:
19036 return NULL;
19037 }
19038
19039
19040 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
19041 PyObject *resultobj;
19042 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19043 bool result;
19044 PyObject * obj0 = 0 ;
19045 char *kwnames[] = {
19046 (char *) "self", NULL
19047 };
19048
19049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
19050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19052 {
19053 PyThreadState* __tstate = wxPyBeginAllowThreads();
19054 result = (bool)(arg1)->HasFont();
19055
19056 wxPyEndAllowThreads(__tstate);
19057 if (PyErr_Occurred()) SWIG_fail;
19058 }
19059 {
19060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19061 }
19062 return resultobj;
19063 fail:
19064 return NULL;
19065 }
19066
19067
19068 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19069 PyObject *resultobj;
19070 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19071 wxColour result;
19072 PyObject * obj0 = 0 ;
19073 char *kwnames[] = {
19074 (char *) "self", NULL
19075 };
19076
19077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
19078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19080 {
19081 PyThreadState* __tstate = wxPyBeginAllowThreads();
19082 result = (arg1)->GetTextColour();
19083
19084 wxPyEndAllowThreads(__tstate);
19085 if (PyErr_Occurred()) SWIG_fail;
19086 }
19087 {
19088 wxColour * resultptr;
19089 resultptr = new wxColour((wxColour &) result);
19090 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19091 }
19092 return resultobj;
19093 fail:
19094 return NULL;
19095 }
19096
19097
19098 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19099 PyObject *resultobj;
19100 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19101 wxColour result;
19102 PyObject * obj0 = 0 ;
19103 char *kwnames[] = {
19104 (char *) "self", NULL
19105 };
19106
19107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
19108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19110 {
19111 PyThreadState* __tstate = wxPyBeginAllowThreads();
19112 result = (arg1)->GetBackgroundColour();
19113
19114 wxPyEndAllowThreads(__tstate);
19115 if (PyErr_Occurred()) SWIG_fail;
19116 }
19117 {
19118 wxColour * resultptr;
19119 resultptr = new wxColour((wxColour &) result);
19120 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19121 }
19122 return resultobj;
19123 fail:
19124 return NULL;
19125 }
19126
19127
19128 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19129 PyObject *resultobj;
19130 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19131 wxFont result;
19132 PyObject * obj0 = 0 ;
19133 char *kwnames[] = {
19134 (char *) "self", NULL
19135 };
19136
19137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",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 result = (arg1)->GetFont();
19143
19144 wxPyEndAllowThreads(__tstate);
19145 if (PyErr_Occurred()) SWIG_fail;
19146 }
19147 {
19148 wxFont * resultptr;
19149 resultptr = new wxFont((wxFont &) result);
19150 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19151 }
19152 return resultobj;
19153 fail:
19154 return NULL;
19155 }
19156
19157
19158 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
19159 PyObject *resultobj;
19160 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19161 PyObject * obj0 = 0 ;
19162 char *kwnames[] = {
19163 (char *) "self", NULL
19164 };
19165
19166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
19167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19169 {
19170 PyThreadState* __tstate = wxPyBeginAllowThreads();
19171 wxListItemAttr_Destroy(arg1);
19172
19173 wxPyEndAllowThreads(__tstate);
19174 if (PyErr_Occurred()) SWIG_fail;
19175 }
19176 Py_INCREF(Py_None); resultobj = Py_None;
19177 return resultobj;
19178 fail:
19179 return NULL;
19180 }
19181
19182
19183 static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) {
19184 PyObject *obj;
19185 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19186 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
19187 Py_INCREF(obj);
19188 return Py_BuildValue((char *)"");
19189 }
19190 static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19191 PyObject *resultobj;
19192 wxListItem *result;
19193 char *kwnames[] = {
19194 NULL
19195 };
19196
19197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
19198 {
19199 PyThreadState* __tstate = wxPyBeginAllowThreads();
19200 result = (wxListItem *)new wxListItem();
19201
19202 wxPyEndAllowThreads(__tstate);
19203 if (PyErr_Occurred()) SWIG_fail;
19204 }
19205 {
19206 resultobj = wxPyMake_wxObject(result, 1);
19207 }
19208 return resultobj;
19209 fail:
19210 return NULL;
19211 }
19212
19213
19214 static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19215 PyObject *resultobj;
19216 wxListItem *arg1 = (wxListItem *) 0 ;
19217 PyObject * obj0 = 0 ;
19218 char *kwnames[] = {
19219 (char *) "self", NULL
19220 };
19221
19222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19225 {
19226 PyThreadState* __tstate = wxPyBeginAllowThreads();
19227 delete arg1;
19228
19229 wxPyEndAllowThreads(__tstate);
19230 if (PyErr_Occurred()) SWIG_fail;
19231 }
19232 Py_INCREF(Py_None); resultobj = Py_None;
19233 return resultobj;
19234 fail:
19235 return NULL;
19236 }
19237
19238
19239 static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
19240 PyObject *resultobj;
19241 wxListItem *arg1 = (wxListItem *) 0 ;
19242 PyObject * obj0 = 0 ;
19243 char *kwnames[] = {
19244 (char *) "self", NULL
19245 };
19246
19247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19250 {
19251 PyThreadState* __tstate = wxPyBeginAllowThreads();
19252 (arg1)->Clear();
19253
19254 wxPyEndAllowThreads(__tstate);
19255 if (PyErr_Occurred()) SWIG_fail;
19256 }
19257 Py_INCREF(Py_None); resultobj = Py_None;
19258 return resultobj;
19259 fail:
19260 return NULL;
19261 }
19262
19263
19264 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19265 PyObject *resultobj;
19266 wxListItem *arg1 = (wxListItem *) 0 ;
19267 PyObject * obj0 = 0 ;
19268 char *kwnames[] = {
19269 (char *) "self", NULL
19270 };
19271
19272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19275 {
19276 PyThreadState* __tstate = wxPyBeginAllowThreads();
19277 (arg1)->ClearAttributes();
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_SetMask(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 *) "mask", NULL
19297 };
19298
19299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",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)->SetMask(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_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
19319 PyObject *resultobj;
19320 wxListItem *arg1 = (wxListItem *) 0 ;
19321 long arg2 ;
19322 PyObject * obj0 = 0 ;
19323 PyObject * obj1 = 0 ;
19324 char *kwnames[] = {
19325 (char *) "self",(char *) "id", NULL
19326 };
19327
19328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",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 = (long)SWIG_As_long(obj1);
19332 if (PyErr_Occurred()) SWIG_fail;
19333 {
19334 PyThreadState* __tstate = wxPyBeginAllowThreads();
19335 (arg1)->SetId(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_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19348 PyObject *resultobj;
19349 wxListItem *arg1 = (wxListItem *) 0 ;
19350 int arg2 ;
19351 PyObject * obj0 = 0 ;
19352 PyObject * obj1 = 0 ;
19353 char *kwnames[] = {
19354 (char *) "self",(char *) "col", NULL
19355 };
19356
19357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",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 = (int)SWIG_As_int(obj1);
19361 if (PyErr_Occurred()) SWIG_fail;
19362 {
19363 PyThreadState* __tstate = wxPyBeginAllowThreads();
19364 (arg1)->SetColumn(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_SetState(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 *) "state", NULL
19384 };
19385
19386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",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)->SetState(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_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) {
19406 PyObject *resultobj;
19407 wxListItem *arg1 = (wxListItem *) 0 ;
19408 long arg2 ;
19409 PyObject * obj0 = 0 ;
19410 PyObject * obj1 = 0 ;
19411 char *kwnames[] = {
19412 (char *) "self",(char *) "stateMask", NULL
19413 };
19414
19415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19418 arg2 = (long)SWIG_As_long(obj1);
19419 if (PyErr_Occurred()) SWIG_fail;
19420 {
19421 PyThreadState* __tstate = wxPyBeginAllowThreads();
19422 (arg1)->SetStateMask(arg2);
19423
19424 wxPyEndAllowThreads(__tstate);
19425 if (PyErr_Occurred()) SWIG_fail;
19426 }
19427 Py_INCREF(Py_None); resultobj = Py_None;
19428 return resultobj;
19429 fail:
19430 return NULL;
19431 }
19432
19433
19434 static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
19435 PyObject *resultobj;
19436 wxListItem *arg1 = (wxListItem *) 0 ;
19437 wxString *arg2 = 0 ;
19438 bool temp2 = False ;
19439 PyObject * obj0 = 0 ;
19440 PyObject * obj1 = 0 ;
19441 char *kwnames[] = {
19442 (char *) "self",(char *) "text", NULL
19443 };
19444
19445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19448 {
19449 arg2 = wxString_in_helper(obj1);
19450 if (arg2 == NULL) SWIG_fail;
19451 temp2 = True;
19452 }
19453 {
19454 PyThreadState* __tstate = wxPyBeginAllowThreads();
19455 (arg1)->SetText((wxString const &)*arg2);
19456
19457 wxPyEndAllowThreads(__tstate);
19458 if (PyErr_Occurred()) SWIG_fail;
19459 }
19460 Py_INCREF(Py_None); resultobj = Py_None;
19461 {
19462 if (temp2)
19463 delete arg2;
19464 }
19465 return resultobj;
19466 fail:
19467 {
19468 if (temp2)
19469 delete arg2;
19470 }
19471 return NULL;
19472 }
19473
19474
19475 static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19476 PyObject *resultobj;
19477 wxListItem *arg1 = (wxListItem *) 0 ;
19478 int arg2 ;
19479 PyObject * obj0 = 0 ;
19480 PyObject * obj1 = 0 ;
19481 char *kwnames[] = {
19482 (char *) "self",(char *) "image", NULL
19483 };
19484
19485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",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 = (int)SWIG_As_int(obj1);
19489 if (PyErr_Occurred()) SWIG_fail;
19490 {
19491 PyThreadState* __tstate = wxPyBeginAllowThreads();
19492 (arg1)->SetImage(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_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
19505 PyObject *resultobj;
19506 wxListItem *arg1 = (wxListItem *) 0 ;
19507 long arg2 ;
19508 PyObject * obj0 = 0 ;
19509 PyObject * obj1 = 0 ;
19510 char *kwnames[] = {
19511 (char *) "self",(char *) "data", NULL
19512 };
19513
19514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",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 = (long)SWIG_As_long(obj1);
19518 if (PyErr_Occurred()) SWIG_fail;
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 (arg1)->SetData(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_SetWidth(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 *) "width", NULL
19541 };
19542
19543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",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)->SetWidth(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_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
19563 PyObject *resultobj;
19564 wxListItem *arg1 = (wxListItem *) 0 ;
19565 int arg2 ;
19566 PyObject * obj0 = 0 ;
19567 PyObject * obj1 = 0 ;
19568 char *kwnames[] = {
19569 (char *) "self",(char *) "align", NULL
19570 };
19571
19572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19575 arg2 = (int)SWIG_As_int(obj1);
19576 if (PyErr_Occurred()) SWIG_fail;
19577 {
19578 PyThreadState* __tstate = wxPyBeginAllowThreads();
19579 (arg1)->SetAlign((wxListColumnFormat )arg2);
19580
19581 wxPyEndAllowThreads(__tstate);
19582 if (PyErr_Occurred()) SWIG_fail;
19583 }
19584 Py_INCREF(Py_None); resultobj = Py_None;
19585 return resultobj;
19586 fail:
19587 return NULL;
19588 }
19589
19590
19591 static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19592 PyObject *resultobj;
19593 wxListItem *arg1 = (wxListItem *) 0 ;
19594 wxColour *arg2 = 0 ;
19595 wxColour temp2 ;
19596 PyObject * obj0 = 0 ;
19597 PyObject * obj1 = 0 ;
19598 char *kwnames[] = {
19599 (char *) "self",(char *) "colText", NULL
19600 };
19601
19602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19605 {
19606 arg2 = &temp2;
19607 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19608 }
19609 {
19610 PyThreadState* __tstate = wxPyBeginAllowThreads();
19611 (arg1)->SetTextColour((wxColour const &)*arg2);
19612
19613 wxPyEndAllowThreads(__tstate);
19614 if (PyErr_Occurred()) SWIG_fail;
19615 }
19616 Py_INCREF(Py_None); resultobj = Py_None;
19617 return resultobj;
19618 fail:
19619 return NULL;
19620 }
19621
19622
19623 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19624 PyObject *resultobj;
19625 wxListItem *arg1 = (wxListItem *) 0 ;
19626 wxColour *arg2 = 0 ;
19627 wxColour temp2 ;
19628 PyObject * obj0 = 0 ;
19629 PyObject * obj1 = 0 ;
19630 char *kwnames[] = {
19631 (char *) "self",(char *) "colBack", NULL
19632 };
19633
19634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19637 {
19638 arg2 = &temp2;
19639 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19640 }
19641 {
19642 PyThreadState* __tstate = wxPyBeginAllowThreads();
19643 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19644
19645 wxPyEndAllowThreads(__tstate);
19646 if (PyErr_Occurred()) SWIG_fail;
19647 }
19648 Py_INCREF(Py_None); resultobj = Py_None;
19649 return resultobj;
19650 fail:
19651 return NULL;
19652 }
19653
19654
19655 static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19656 PyObject *resultobj;
19657 wxListItem *arg1 = (wxListItem *) 0 ;
19658 wxFont *arg2 = 0 ;
19659 PyObject * obj0 = 0 ;
19660 PyObject * obj1 = 0 ;
19661 char *kwnames[] = {
19662 (char *) "self",(char *) "font", NULL
19663 };
19664
19665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19668 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19669 SWIG_POINTER_EXCEPTION | 0)) == -1)
19670 SWIG_fail;
19671 if (arg2 == NULL) {
19672 PyErr_SetString(PyExc_TypeError,"null reference");
19673 SWIG_fail;
19674 }
19675 {
19676 PyThreadState* __tstate = wxPyBeginAllowThreads();
19677 (arg1)->SetFont((wxFont const &)*arg2);
19678
19679 wxPyEndAllowThreads(__tstate);
19680 if (PyErr_Occurred()) SWIG_fail;
19681 }
19682 Py_INCREF(Py_None); resultobj = Py_None;
19683 return resultobj;
19684 fail:
19685 return NULL;
19686 }
19687
19688
19689 static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19690 PyObject *resultobj;
19691 wxListItem *arg1 = (wxListItem *) 0 ;
19692 long result;
19693 PyObject * obj0 = 0 ;
19694 char *kwnames[] = {
19695 (char *) "self", NULL
19696 };
19697
19698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19701 {
19702 PyThreadState* __tstate = wxPyBeginAllowThreads();
19703 result = (long)(arg1)->GetMask();
19704
19705 wxPyEndAllowThreads(__tstate);
19706 if (PyErr_Occurred()) SWIG_fail;
19707 }
19708 resultobj = SWIG_From_long((long)result);
19709 return resultobj;
19710 fail:
19711 return NULL;
19712 }
19713
19714
19715 static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
19716 PyObject *resultobj;
19717 wxListItem *arg1 = (wxListItem *) 0 ;
19718 long result;
19719 PyObject * obj0 = 0 ;
19720 char *kwnames[] = {
19721 (char *) "self", NULL
19722 };
19723
19724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19727 {
19728 PyThreadState* __tstate = wxPyBeginAllowThreads();
19729 result = (long)(arg1)->GetId();
19730
19731 wxPyEndAllowThreads(__tstate);
19732 if (PyErr_Occurred()) SWIG_fail;
19733 }
19734 resultobj = SWIG_From_long((long)result);
19735 return resultobj;
19736 fail:
19737 return NULL;
19738 }
19739
19740
19741 static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19742 PyObject *resultobj;
19743 wxListItem *arg1 = (wxListItem *) 0 ;
19744 int result;
19745 PyObject * obj0 = 0 ;
19746 char *kwnames[] = {
19747 (char *) "self", NULL
19748 };
19749
19750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19753 {
19754 PyThreadState* __tstate = wxPyBeginAllowThreads();
19755 result = (int)(arg1)->GetColumn();
19756
19757 wxPyEndAllowThreads(__tstate);
19758 if (PyErr_Occurred()) SWIG_fail;
19759 }
19760 resultobj = SWIG_From_int((int)result);
19761 return resultobj;
19762 fail:
19763 return NULL;
19764 }
19765
19766
19767 static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
19768 PyObject *resultobj;
19769 wxListItem *arg1 = (wxListItem *) 0 ;
19770 long result;
19771 PyObject * obj0 = 0 ;
19772 char *kwnames[] = {
19773 (char *) "self", NULL
19774 };
19775
19776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19779 {
19780 PyThreadState* __tstate = wxPyBeginAllowThreads();
19781 result = (long)(arg1)->GetState();
19782
19783 wxPyEndAllowThreads(__tstate);
19784 if (PyErr_Occurred()) SWIG_fail;
19785 }
19786 resultobj = SWIG_From_long((long)result);
19787 return resultobj;
19788 fail:
19789 return NULL;
19790 }
19791
19792
19793 static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
19794 PyObject *resultobj;
19795 wxListItem *arg1 = (wxListItem *) 0 ;
19796 wxString *result;
19797 PyObject * obj0 = 0 ;
19798 char *kwnames[] = {
19799 (char *) "self", NULL
19800 };
19801
19802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19805 {
19806 PyThreadState* __tstate = wxPyBeginAllowThreads();
19807 {
19808 wxString const &_result_ref = (arg1)->GetText();
19809 result = (wxString *) &_result_ref;
19810 }
19811
19812 wxPyEndAllowThreads(__tstate);
19813 if (PyErr_Occurred()) SWIG_fail;
19814 }
19815 {
19816 #if wxUSE_UNICODE
19817 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19818 #else
19819 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19820 #endif
19821 }
19822 return resultobj;
19823 fail:
19824 return NULL;
19825 }
19826
19827
19828 static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19829 PyObject *resultobj;
19830 wxListItem *arg1 = (wxListItem *) 0 ;
19831 int result;
19832 PyObject * obj0 = 0 ;
19833 char *kwnames[] = {
19834 (char *) "self", NULL
19835 };
19836
19837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19840 {
19841 PyThreadState* __tstate = wxPyBeginAllowThreads();
19842 result = (int)(arg1)->GetImage();
19843
19844 wxPyEndAllowThreads(__tstate);
19845 if (PyErr_Occurred()) SWIG_fail;
19846 }
19847 resultobj = SWIG_From_int((int)result);
19848 return resultobj;
19849 fail:
19850 return NULL;
19851 }
19852
19853
19854 static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
19855 PyObject *resultobj;
19856 wxListItem *arg1 = (wxListItem *) 0 ;
19857 long result;
19858 PyObject * obj0 = 0 ;
19859 char *kwnames[] = {
19860 (char *) "self", NULL
19861 };
19862
19863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19866 {
19867 PyThreadState* __tstate = wxPyBeginAllowThreads();
19868 result = (long)(arg1)->GetData();
19869
19870 wxPyEndAllowThreads(__tstate);
19871 if (PyErr_Occurred()) SWIG_fail;
19872 }
19873 resultobj = SWIG_From_long((long)result);
19874 return resultobj;
19875 fail:
19876 return NULL;
19877 }
19878
19879
19880 static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19881 PyObject *resultobj;
19882 wxListItem *arg1 = (wxListItem *) 0 ;
19883 int result;
19884 PyObject * obj0 = 0 ;
19885 char *kwnames[] = {
19886 (char *) "self", NULL
19887 };
19888
19889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19892 {
19893 PyThreadState* __tstate = wxPyBeginAllowThreads();
19894 result = (int)(arg1)->GetWidth();
19895
19896 wxPyEndAllowThreads(__tstate);
19897 if (PyErr_Occurred()) SWIG_fail;
19898 }
19899 resultobj = SWIG_From_int((int)result);
19900 return resultobj;
19901 fail:
19902 return NULL;
19903 }
19904
19905
19906 static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
19907 PyObject *resultobj;
19908 wxListItem *arg1 = (wxListItem *) 0 ;
19909 int result;
19910 PyObject * obj0 = 0 ;
19911 char *kwnames[] = {
19912 (char *) "self", NULL
19913 };
19914
19915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
19916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19918 {
19919 PyThreadState* __tstate = wxPyBeginAllowThreads();
19920 result = (int)(arg1)->GetAlign();
19921
19922 wxPyEndAllowThreads(__tstate);
19923 if (PyErr_Occurred()) SWIG_fail;
19924 }
19925 resultobj = SWIG_From_int((int)result);
19926 return resultobj;
19927 fail:
19928 return NULL;
19929 }
19930
19931
19932 static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19933 PyObject *resultobj;
19934 wxListItem *arg1 = (wxListItem *) 0 ;
19935 wxListItemAttr *result;
19936 PyObject * obj0 = 0 ;
19937 char *kwnames[] = {
19938 (char *) "self", NULL
19939 };
19940
19941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
19942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19944 {
19945 PyThreadState* __tstate = wxPyBeginAllowThreads();
19946 result = (wxListItemAttr *)(arg1)->GetAttributes();
19947
19948 wxPyEndAllowThreads(__tstate);
19949 if (PyErr_Occurred()) SWIG_fail;
19950 }
19951 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
19952 return resultobj;
19953 fail:
19954 return NULL;
19955 }
19956
19957
19958 static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19959 PyObject *resultobj;
19960 wxListItem *arg1 = (wxListItem *) 0 ;
19961 bool result;
19962 PyObject * obj0 = 0 ;
19963 char *kwnames[] = {
19964 (char *) "self", NULL
19965 };
19966
19967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
19968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19970 {
19971 PyThreadState* __tstate = wxPyBeginAllowThreads();
19972 result = (bool)(arg1)->HasAttributes();
19973
19974 wxPyEndAllowThreads(__tstate);
19975 if (PyErr_Occurred()) SWIG_fail;
19976 }
19977 {
19978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19979 }
19980 return resultobj;
19981 fail:
19982 return NULL;
19983 }
19984
19985
19986 static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19987 PyObject *resultobj;
19988 wxListItem *arg1 = (wxListItem *) 0 ;
19989 wxColour result;
19990 PyObject * obj0 = 0 ;
19991 char *kwnames[] = {
19992 (char *) "self", NULL
19993 };
19994
19995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
19996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19998 {
19999 PyThreadState* __tstate = wxPyBeginAllowThreads();
20000 result = ((wxListItem const *)arg1)->GetTextColour();
20001
20002 wxPyEndAllowThreads(__tstate);
20003 if (PyErr_Occurred()) SWIG_fail;
20004 }
20005 {
20006 wxColour * resultptr;
20007 resultptr = new wxColour((wxColour &) result);
20008 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20009 }
20010 return resultobj;
20011 fail:
20012 return NULL;
20013 }
20014
20015
20016 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20017 PyObject *resultobj;
20018 wxListItem *arg1 = (wxListItem *) 0 ;
20019 wxColour result;
20020 PyObject * obj0 = 0 ;
20021 char *kwnames[] = {
20022 (char *) "self", NULL
20023 };
20024
20025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
20026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20028 {
20029 PyThreadState* __tstate = wxPyBeginAllowThreads();
20030 result = ((wxListItem const *)arg1)->GetBackgroundColour();
20031
20032 wxPyEndAllowThreads(__tstate);
20033 if (PyErr_Occurred()) SWIG_fail;
20034 }
20035 {
20036 wxColour * resultptr;
20037 resultptr = new wxColour((wxColour &) result);
20038 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20039 }
20040 return resultobj;
20041 fail:
20042 return NULL;
20043 }
20044
20045
20046 static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20047 PyObject *resultobj;
20048 wxListItem *arg1 = (wxListItem *) 0 ;
20049 wxFont result;
20050 PyObject * obj0 = 0 ;
20051 char *kwnames[] = {
20052 (char *) "self", NULL
20053 };
20054
20055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
20056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20058 {
20059 PyThreadState* __tstate = wxPyBeginAllowThreads();
20060 result = ((wxListItem const *)arg1)->GetFont();
20061
20062 wxPyEndAllowThreads(__tstate);
20063 if (PyErr_Occurred()) SWIG_fail;
20064 }
20065 {
20066 wxFont * resultptr;
20067 resultptr = new wxFont((wxFont &) result);
20068 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
20069 }
20070 return resultobj;
20071 fail:
20072 return NULL;
20073 }
20074
20075
20076 static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20077 PyObject *resultobj;
20078 wxListItem *arg1 = (wxListItem *) 0 ;
20079 long arg2 ;
20080 PyObject * obj0 = 0 ;
20081 PyObject * obj1 = 0 ;
20082 char *kwnames[] = {
20083 (char *) "self",(char *) "m_mask", NULL
20084 };
20085
20086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
20087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20089 arg2 = (long)SWIG_As_long(obj1);
20090 if (PyErr_Occurred()) SWIG_fail;
20091 if (arg1) (arg1)->m_mask = arg2;
20092
20093 Py_INCREF(Py_None); resultobj = Py_None;
20094 return resultobj;
20095 fail:
20096 return NULL;
20097 }
20098
20099
20100 static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20101 PyObject *resultobj;
20102 wxListItem *arg1 = (wxListItem *) 0 ;
20103 long result;
20104 PyObject * obj0 = 0 ;
20105 char *kwnames[] = {
20106 (char *) "self", NULL
20107 };
20108
20109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
20110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20112 result = (long) ((arg1)->m_mask);
20113
20114 resultobj = SWIG_From_long((long)result);
20115 return resultobj;
20116 fail:
20117 return NULL;
20118 }
20119
20120
20121 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) {
20122 PyObject *resultobj;
20123 wxListItem *arg1 = (wxListItem *) 0 ;
20124 long arg2 ;
20125 PyObject * obj0 = 0 ;
20126 PyObject * obj1 = 0 ;
20127 char *kwnames[] = {
20128 (char *) "self",(char *) "m_itemId", NULL
20129 };
20130
20131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
20132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20134 arg2 = (long)SWIG_As_long(obj1);
20135 if (PyErr_Occurred()) SWIG_fail;
20136 if (arg1) (arg1)->m_itemId = arg2;
20137
20138 Py_INCREF(Py_None); resultobj = Py_None;
20139 return resultobj;
20140 fail:
20141 return NULL;
20142 }
20143
20144
20145 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) {
20146 PyObject *resultobj;
20147 wxListItem *arg1 = (wxListItem *) 0 ;
20148 long result;
20149 PyObject * obj0 = 0 ;
20150 char *kwnames[] = {
20151 (char *) "self", NULL
20152 };
20153
20154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
20155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20157 result = (long) ((arg1)->m_itemId);
20158
20159 resultobj = SWIG_From_long((long)result);
20160 return resultobj;
20161 fail:
20162 return NULL;
20163 }
20164
20165
20166 static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20167 PyObject *resultobj;
20168 wxListItem *arg1 = (wxListItem *) 0 ;
20169 int arg2 ;
20170 PyObject * obj0 = 0 ;
20171 PyObject * obj1 = 0 ;
20172 char *kwnames[] = {
20173 (char *) "self",(char *) "m_col", NULL
20174 };
20175
20176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20179 arg2 = (int)SWIG_As_int(obj1);
20180 if (PyErr_Occurred()) SWIG_fail;
20181 if (arg1) (arg1)->m_col = arg2;
20182
20183 Py_INCREF(Py_None); resultobj = Py_None;
20184 return resultobj;
20185 fail:
20186 return NULL;
20187 }
20188
20189
20190 static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20191 PyObject *resultobj;
20192 wxListItem *arg1 = (wxListItem *) 0 ;
20193 int result;
20194 PyObject * obj0 = 0 ;
20195 char *kwnames[] = {
20196 (char *) "self", NULL
20197 };
20198
20199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
20200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20202 result = (int) ((arg1)->m_col);
20203
20204 resultobj = SWIG_From_int((int)result);
20205 return resultobj;
20206 fail:
20207 return NULL;
20208 }
20209
20210
20211 static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) {
20212 PyObject *resultobj;
20213 wxListItem *arg1 = (wxListItem *) 0 ;
20214 long arg2 ;
20215 PyObject * obj0 = 0 ;
20216 PyObject * obj1 = 0 ;
20217 char *kwnames[] = {
20218 (char *) "self",(char *) "m_state", NULL
20219 };
20220
20221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20224 arg2 = (long)SWIG_As_long(obj1);
20225 if (PyErr_Occurred()) SWIG_fail;
20226 if (arg1) (arg1)->m_state = arg2;
20227
20228 Py_INCREF(Py_None); resultobj = Py_None;
20229 return resultobj;
20230 fail:
20231 return NULL;
20232 }
20233
20234
20235 static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) {
20236 PyObject *resultobj;
20237 wxListItem *arg1 = (wxListItem *) 0 ;
20238 long result;
20239 PyObject * obj0 = 0 ;
20240 char *kwnames[] = {
20241 (char *) "self", NULL
20242 };
20243
20244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20247 result = (long) ((arg1)->m_state);
20248
20249 resultobj = SWIG_From_long((long)result);
20250 return resultobj;
20251 fail:
20252 return NULL;
20253 }
20254
20255
20256 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20257 PyObject *resultobj;
20258 wxListItem *arg1 = (wxListItem *) 0 ;
20259 long arg2 ;
20260 PyObject * obj0 = 0 ;
20261 PyObject * obj1 = 0 ;
20262 char *kwnames[] = {
20263 (char *) "self",(char *) "m_stateMask", NULL
20264 };
20265
20266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20269 arg2 = (long)SWIG_As_long(obj1);
20270 if (PyErr_Occurred()) SWIG_fail;
20271 if (arg1) (arg1)->m_stateMask = arg2;
20272
20273 Py_INCREF(Py_None); resultobj = Py_None;
20274 return resultobj;
20275 fail:
20276 return NULL;
20277 }
20278
20279
20280 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20281 PyObject *resultobj;
20282 wxListItem *arg1 = (wxListItem *) 0 ;
20283 long result;
20284 PyObject * obj0 = 0 ;
20285 char *kwnames[] = {
20286 (char *) "self", NULL
20287 };
20288
20289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20292 result = (long) ((arg1)->m_stateMask);
20293
20294 resultobj = SWIG_From_long((long)result);
20295 return resultobj;
20296 fail:
20297 return NULL;
20298 }
20299
20300
20301 static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) {
20302 PyObject *resultobj;
20303 wxListItem *arg1 = (wxListItem *) 0 ;
20304 wxString *arg2 = (wxString *) 0 ;
20305 bool temp2 = False ;
20306 PyObject * obj0 = 0 ;
20307 PyObject * obj1 = 0 ;
20308 char *kwnames[] = {
20309 (char *) "self",(char *) "m_text", NULL
20310 };
20311
20312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20315 {
20316 arg2 = wxString_in_helper(obj1);
20317 if (arg2 == NULL) SWIG_fail;
20318 temp2 = True;
20319 }
20320 if (arg1) (arg1)->m_text = *arg2;
20321
20322 Py_INCREF(Py_None); resultobj = Py_None;
20323 {
20324 if (temp2)
20325 delete arg2;
20326 }
20327 return resultobj;
20328 fail:
20329 {
20330 if (temp2)
20331 delete arg2;
20332 }
20333 return NULL;
20334 }
20335
20336
20337 static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) {
20338 PyObject *resultobj;
20339 wxListItem *arg1 = (wxListItem *) 0 ;
20340 wxString *result;
20341 PyObject * obj0 = 0 ;
20342 char *kwnames[] = {
20343 (char *) "self", NULL
20344 };
20345
20346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20349 result = (wxString *)& ((arg1)->m_text);
20350
20351 {
20352 #if wxUSE_UNICODE
20353 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20354 #else
20355 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20356 #endif
20357 }
20358 return resultobj;
20359 fail:
20360 return NULL;
20361 }
20362
20363
20364 static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) {
20365 PyObject *resultobj;
20366 wxListItem *arg1 = (wxListItem *) 0 ;
20367 int arg2 ;
20368 PyObject * obj0 = 0 ;
20369 PyObject * obj1 = 0 ;
20370 char *kwnames[] = {
20371 (char *) "self",(char *) "m_image", NULL
20372 };
20373
20374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20377 arg2 = (int)SWIG_As_int(obj1);
20378 if (PyErr_Occurred()) SWIG_fail;
20379 if (arg1) (arg1)->m_image = arg2;
20380
20381 Py_INCREF(Py_None); resultobj = Py_None;
20382 return resultobj;
20383 fail:
20384 return NULL;
20385 }
20386
20387
20388 static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) {
20389 PyObject *resultobj;
20390 wxListItem *arg1 = (wxListItem *) 0 ;
20391 int result;
20392 PyObject * obj0 = 0 ;
20393 char *kwnames[] = {
20394 (char *) "self", NULL
20395 };
20396
20397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20400 result = (int) ((arg1)->m_image);
20401
20402 resultobj = SWIG_From_int((int)result);
20403 return resultobj;
20404 fail:
20405 return NULL;
20406 }
20407
20408
20409 static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) {
20410 PyObject *resultobj;
20411 wxListItem *arg1 = (wxListItem *) 0 ;
20412 long arg2 ;
20413 PyObject * obj0 = 0 ;
20414 PyObject * obj1 = 0 ;
20415 char *kwnames[] = {
20416 (char *) "self",(char *) "m_data", NULL
20417 };
20418
20419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20422 arg2 = (long)SWIG_As_long(obj1);
20423 if (PyErr_Occurred()) SWIG_fail;
20424 if (arg1) (arg1)->m_data = arg2;
20425
20426 Py_INCREF(Py_None); resultobj = Py_None;
20427 return resultobj;
20428 fail:
20429 return NULL;
20430 }
20431
20432
20433 static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) {
20434 PyObject *resultobj;
20435 wxListItem *arg1 = (wxListItem *) 0 ;
20436 long result;
20437 PyObject * obj0 = 0 ;
20438 char *kwnames[] = {
20439 (char *) "self", NULL
20440 };
20441
20442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20445 result = (long) ((arg1)->m_data);
20446
20447 resultobj = SWIG_From_long((long)result);
20448 return resultobj;
20449 fail:
20450 return NULL;
20451 }
20452
20453
20454 static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) {
20455 PyObject *resultobj;
20456 wxListItem *arg1 = (wxListItem *) 0 ;
20457 int arg2 ;
20458 PyObject * obj0 = 0 ;
20459 PyObject * obj1 = 0 ;
20460 char *kwnames[] = {
20461 (char *) "self",(char *) "m_format", NULL
20462 };
20463
20464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20467 arg2 = (int)SWIG_As_int(obj1);
20468 if (PyErr_Occurred()) SWIG_fail;
20469 if (arg1) (arg1)->m_format = arg2;
20470
20471 Py_INCREF(Py_None); resultobj = Py_None;
20472 return resultobj;
20473 fail:
20474 return NULL;
20475 }
20476
20477
20478 static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) {
20479 PyObject *resultobj;
20480 wxListItem *arg1 = (wxListItem *) 0 ;
20481 int result;
20482 PyObject * obj0 = 0 ;
20483 char *kwnames[] = {
20484 (char *) "self", NULL
20485 };
20486
20487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20490 result = (int) ((arg1)->m_format);
20491
20492 resultobj = SWIG_From_int((int)result);
20493 return resultobj;
20494 fail:
20495 return NULL;
20496 }
20497
20498
20499 static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
20500 PyObject *resultobj;
20501 wxListItem *arg1 = (wxListItem *) 0 ;
20502 int arg2 ;
20503 PyObject * obj0 = 0 ;
20504 PyObject * obj1 = 0 ;
20505 char *kwnames[] = {
20506 (char *) "self",(char *) "m_width", NULL
20507 };
20508
20509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20512 arg2 = (int)SWIG_As_int(obj1);
20513 if (PyErr_Occurred()) SWIG_fail;
20514 if (arg1) (arg1)->m_width = arg2;
20515
20516 Py_INCREF(Py_None); resultobj = Py_None;
20517 return resultobj;
20518 fail:
20519 return NULL;
20520 }
20521
20522
20523 static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
20524 PyObject *resultobj;
20525 wxListItem *arg1 = (wxListItem *) 0 ;
20526 int result;
20527 PyObject * obj0 = 0 ;
20528 char *kwnames[] = {
20529 (char *) "self", NULL
20530 };
20531
20532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20535 result = (int) ((arg1)->m_width);
20536
20537 resultobj = SWIG_From_int((int)result);
20538 return resultobj;
20539 fail:
20540 return NULL;
20541 }
20542
20543
20544 static PyObject * ListItem_swigregister(PyObject *, PyObject *args) {
20545 PyObject *obj;
20546 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20547 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20548 Py_INCREF(obj);
20549 return Py_BuildValue((char *)"");
20550 }
20551 static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20552 PyObject *resultobj;
20553 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20554 int arg2 = (int) 0 ;
20555 wxListEvent *result;
20556 PyObject * obj0 = 0 ;
20557 PyObject * obj1 = 0 ;
20558 char *kwnames[] = {
20559 (char *) "commandType",(char *) "id", NULL
20560 };
20561
20562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20563 if (obj0) {
20564 arg1 = (wxEventType)SWIG_As_int(obj0);
20565 if (PyErr_Occurred()) SWIG_fail;
20566 }
20567 if (obj1) {
20568 arg2 = (int)SWIG_As_int(obj1);
20569 if (PyErr_Occurred()) SWIG_fail;
20570 }
20571 {
20572 PyThreadState* __tstate = wxPyBeginAllowThreads();
20573 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20574
20575 wxPyEndAllowThreads(__tstate);
20576 if (PyErr_Occurred()) SWIG_fail;
20577 }
20578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20579 return resultobj;
20580 fail:
20581 return NULL;
20582 }
20583
20584
20585 static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) {
20586 PyObject *resultobj;
20587 wxListEvent *arg1 = (wxListEvent *) 0 ;
20588 int arg2 ;
20589 PyObject * obj0 = 0 ;
20590 PyObject * obj1 = 0 ;
20591 char *kwnames[] = {
20592 (char *) "self",(char *) "m_code", NULL
20593 };
20594
20595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20598 arg2 = (int)SWIG_As_int(obj1);
20599 if (PyErr_Occurred()) SWIG_fail;
20600 if (arg1) (arg1)->m_code = arg2;
20601
20602 Py_INCREF(Py_None); resultobj = Py_None;
20603 return resultobj;
20604 fail:
20605 return NULL;
20606 }
20607
20608
20609 static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) {
20610 PyObject *resultobj;
20611 wxListEvent *arg1 = (wxListEvent *) 0 ;
20612 int result;
20613 PyObject * obj0 = 0 ;
20614 char *kwnames[] = {
20615 (char *) "self", NULL
20616 };
20617
20618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20621 result = (int) ((arg1)->m_code);
20622
20623 resultobj = SWIG_From_int((int)result);
20624 return resultobj;
20625 fail:
20626 return NULL;
20627 }
20628
20629
20630 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
20631 PyObject *resultobj;
20632 wxListEvent *arg1 = (wxListEvent *) 0 ;
20633 long arg2 ;
20634 PyObject * obj0 = 0 ;
20635 PyObject * obj1 = 0 ;
20636 char *kwnames[] = {
20637 (char *) "self",(char *) "m_oldItemIndex", NULL
20638 };
20639
20640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20643 arg2 = (long)SWIG_As_long(obj1);
20644 if (PyErr_Occurred()) SWIG_fail;
20645 if (arg1) (arg1)->m_oldItemIndex = arg2;
20646
20647 Py_INCREF(Py_None); resultobj = Py_None;
20648 return resultobj;
20649 fail:
20650 return NULL;
20651 }
20652
20653
20654 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
20655 PyObject *resultobj;
20656 wxListEvent *arg1 = (wxListEvent *) 0 ;
20657 long result;
20658 PyObject * obj0 = 0 ;
20659 char *kwnames[] = {
20660 (char *) "self", NULL
20661 };
20662
20663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20666 result = (long) ((arg1)->m_oldItemIndex);
20667
20668 resultobj = SWIG_From_long((long)result);
20669 return resultobj;
20670 fail:
20671 return NULL;
20672 }
20673
20674
20675 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
20676 PyObject *resultobj;
20677 wxListEvent *arg1 = (wxListEvent *) 0 ;
20678 long arg2 ;
20679 PyObject * obj0 = 0 ;
20680 PyObject * obj1 = 0 ;
20681 char *kwnames[] = {
20682 (char *) "self",(char *) "m_itemIndex", NULL
20683 };
20684
20685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20688 arg2 = (long)SWIG_As_long(obj1);
20689 if (PyErr_Occurred()) SWIG_fail;
20690 if (arg1) (arg1)->m_itemIndex = arg2;
20691
20692 Py_INCREF(Py_None); resultobj = Py_None;
20693 return resultobj;
20694 fail:
20695 return NULL;
20696 }
20697
20698
20699 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
20700 PyObject *resultobj;
20701 wxListEvent *arg1 = (wxListEvent *) 0 ;
20702 long result;
20703 PyObject * obj0 = 0 ;
20704 char *kwnames[] = {
20705 (char *) "self", NULL
20706 };
20707
20708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20711 result = (long) ((arg1)->m_itemIndex);
20712
20713 resultobj = SWIG_From_long((long)result);
20714 return resultobj;
20715 fail:
20716 return NULL;
20717 }
20718
20719
20720 static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20721 PyObject *resultobj;
20722 wxListEvent *arg1 = (wxListEvent *) 0 ;
20723 int arg2 ;
20724 PyObject * obj0 = 0 ;
20725 PyObject * obj1 = 0 ;
20726 char *kwnames[] = {
20727 (char *) "self",(char *) "m_col", NULL
20728 };
20729
20730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20733 arg2 = (int)SWIG_As_int(obj1);
20734 if (PyErr_Occurred()) SWIG_fail;
20735 if (arg1) (arg1)->m_col = arg2;
20736
20737 Py_INCREF(Py_None); resultobj = Py_None;
20738 return resultobj;
20739 fail:
20740 return NULL;
20741 }
20742
20743
20744 static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20745 PyObject *resultobj;
20746 wxListEvent *arg1 = (wxListEvent *) 0 ;
20747 int result;
20748 PyObject * obj0 = 0 ;
20749 char *kwnames[] = {
20750 (char *) "self", NULL
20751 };
20752
20753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20756 result = (int) ((arg1)->m_col);
20757
20758 resultobj = SWIG_From_int((int)result);
20759 return resultobj;
20760 fail:
20761 return NULL;
20762 }
20763
20764
20765 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) {
20766 PyObject *resultobj;
20767 wxListEvent *arg1 = (wxListEvent *) 0 ;
20768 wxPoint *arg2 = (wxPoint *) 0 ;
20769 PyObject * obj0 = 0 ;
20770 PyObject * obj1 = 0 ;
20771 char *kwnames[] = {
20772 (char *) "self",(char *) "m_pointDrag", NULL
20773 };
20774
20775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20778 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20780 if (arg1) (arg1)->m_pointDrag = *arg2;
20781
20782 Py_INCREF(Py_None); resultobj = Py_None;
20783 return resultobj;
20784 fail:
20785 return NULL;
20786 }
20787
20788
20789 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) {
20790 PyObject *resultobj;
20791 wxListEvent *arg1 = (wxListEvent *) 0 ;
20792 wxPoint *result;
20793 PyObject * obj0 = 0 ;
20794 char *kwnames[] = {
20795 (char *) "self", NULL
20796 };
20797
20798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20801 result = (wxPoint *)& ((arg1)->m_pointDrag);
20802
20803 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20804 return resultobj;
20805 fail:
20806 return NULL;
20807 }
20808
20809
20810 static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) {
20811 PyObject *resultobj;
20812 wxListEvent *arg1 = (wxListEvent *) 0 ;
20813 wxListItem *result;
20814 PyObject * obj0 = 0 ;
20815 char *kwnames[] = {
20816 (char *) "self", NULL
20817 };
20818
20819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20822 result = (wxListItem *)& ((arg1)->m_item);
20823
20824 {
20825 resultobj = wxPyMake_wxObject(result, 0);
20826 }
20827 return resultobj;
20828 fail:
20829 return NULL;
20830 }
20831
20832
20833 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
20834 PyObject *resultobj;
20835 wxListEvent *arg1 = (wxListEvent *) 0 ;
20836 int result;
20837 PyObject * obj0 = 0 ;
20838 char *kwnames[] = {
20839 (char *) "self", NULL
20840 };
20841
20842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20845 {
20846 PyThreadState* __tstate = wxPyBeginAllowThreads();
20847 result = (int)(arg1)->GetKeyCode();
20848
20849 wxPyEndAllowThreads(__tstate);
20850 if (PyErr_Occurred()) SWIG_fail;
20851 }
20852 resultobj = SWIG_From_int((int)result);
20853 return resultobj;
20854 fail:
20855 return NULL;
20856 }
20857
20858
20859 static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
20860 PyObject *resultobj;
20861 wxListEvent *arg1 = (wxListEvent *) 0 ;
20862 long result;
20863 PyObject * obj0 = 0 ;
20864 char *kwnames[] = {
20865 (char *) "self", NULL
20866 };
20867
20868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20871 {
20872 PyThreadState* __tstate = wxPyBeginAllowThreads();
20873 result = (long)(arg1)->GetIndex();
20874
20875 wxPyEndAllowThreads(__tstate);
20876 if (PyErr_Occurred()) SWIG_fail;
20877 }
20878 resultobj = SWIG_From_long((long)result);
20879 return resultobj;
20880 fail:
20881 return NULL;
20882 }
20883
20884
20885 static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20886 PyObject *resultobj;
20887 wxListEvent *arg1 = (wxListEvent *) 0 ;
20888 int result;
20889 PyObject * obj0 = 0 ;
20890 char *kwnames[] = {
20891 (char *) "self", NULL
20892 };
20893
20894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20897 {
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 result = (int)(arg1)->GetColumn();
20900
20901 wxPyEndAllowThreads(__tstate);
20902 if (PyErr_Occurred()) SWIG_fail;
20903 }
20904 resultobj = SWIG_From_int((int)result);
20905 return resultobj;
20906 fail:
20907 return NULL;
20908 }
20909
20910
20911 static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
20912 PyObject *resultobj;
20913 wxListEvent *arg1 = (wxListEvent *) 0 ;
20914 wxPoint result;
20915 PyObject * obj0 = 0 ;
20916 char *kwnames[] = {
20917 (char *) "self", NULL
20918 };
20919
20920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
20921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20923 {
20924 PyThreadState* __tstate = wxPyBeginAllowThreads();
20925 result = (arg1)->GetPoint();
20926
20927 wxPyEndAllowThreads(__tstate);
20928 if (PyErr_Occurred()) SWIG_fail;
20929 }
20930 {
20931 wxPoint * resultptr;
20932 resultptr = new wxPoint((wxPoint &) result);
20933 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20934 }
20935 return resultobj;
20936 fail:
20937 return NULL;
20938 }
20939
20940
20941 static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
20942 PyObject *resultobj;
20943 wxListEvent *arg1 = (wxListEvent *) 0 ;
20944 wxString *result;
20945 PyObject * obj0 = 0 ;
20946 char *kwnames[] = {
20947 (char *) "self", NULL
20948 };
20949
20950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
20951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20953 {
20954 PyThreadState* __tstate = wxPyBeginAllowThreads();
20955 {
20956 wxString const &_result_ref = (arg1)->GetLabel();
20957 result = (wxString *) &_result_ref;
20958 }
20959
20960 wxPyEndAllowThreads(__tstate);
20961 if (PyErr_Occurred()) SWIG_fail;
20962 }
20963 {
20964 #if wxUSE_UNICODE
20965 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20966 #else
20967 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20968 #endif
20969 }
20970 return resultobj;
20971 fail:
20972 return NULL;
20973 }
20974
20975
20976 static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
20977 PyObject *resultobj;
20978 wxListEvent *arg1 = (wxListEvent *) 0 ;
20979 wxString *result;
20980 PyObject * obj0 = 0 ;
20981 char *kwnames[] = {
20982 (char *) "self", NULL
20983 };
20984
20985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
20986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20988 {
20989 PyThreadState* __tstate = wxPyBeginAllowThreads();
20990 {
20991 wxString const &_result_ref = (arg1)->GetText();
20992 result = (wxString *) &_result_ref;
20993 }
20994
20995 wxPyEndAllowThreads(__tstate);
20996 if (PyErr_Occurred()) SWIG_fail;
20997 }
20998 {
20999 #if wxUSE_UNICODE
21000 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21001 #else
21002 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21003 #endif
21004 }
21005 return resultobj;
21006 fail:
21007 return NULL;
21008 }
21009
21010
21011 static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
21012 PyObject *resultobj;
21013 wxListEvent *arg1 = (wxListEvent *) 0 ;
21014 int result;
21015 PyObject * obj0 = 0 ;
21016 char *kwnames[] = {
21017 (char *) "self", NULL
21018 };
21019
21020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
21021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21023 {
21024 PyThreadState* __tstate = wxPyBeginAllowThreads();
21025 result = (int)(arg1)->GetImage();
21026
21027 wxPyEndAllowThreads(__tstate);
21028 if (PyErr_Occurred()) SWIG_fail;
21029 }
21030 resultobj = SWIG_From_int((int)result);
21031 return resultobj;
21032 fail:
21033 return NULL;
21034 }
21035
21036
21037 static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
21038 PyObject *resultobj;
21039 wxListEvent *arg1 = (wxListEvent *) 0 ;
21040 long result;
21041 PyObject * obj0 = 0 ;
21042 char *kwnames[] = {
21043 (char *) "self", NULL
21044 };
21045
21046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
21047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21049 {
21050 PyThreadState* __tstate = wxPyBeginAllowThreads();
21051 result = (long)(arg1)->GetData();
21052
21053 wxPyEndAllowThreads(__tstate);
21054 if (PyErr_Occurred()) SWIG_fail;
21055 }
21056 resultobj = SWIG_From_long((long)result);
21057 return resultobj;
21058 fail:
21059 return NULL;
21060 }
21061
21062
21063 static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
21064 PyObject *resultobj;
21065 wxListEvent *arg1 = (wxListEvent *) 0 ;
21066 long result;
21067 PyObject * obj0 = 0 ;
21068 char *kwnames[] = {
21069 (char *) "self", NULL
21070 };
21071
21072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
21073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21075 {
21076 PyThreadState* __tstate = wxPyBeginAllowThreads();
21077 result = (long)(arg1)->GetMask();
21078
21079 wxPyEndAllowThreads(__tstate);
21080 if (PyErr_Occurred()) SWIG_fail;
21081 }
21082 resultobj = SWIG_From_long((long)result);
21083 return resultobj;
21084 fail:
21085 return NULL;
21086 }
21087
21088
21089 static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21090 PyObject *resultobj;
21091 wxListEvent *arg1 = (wxListEvent *) 0 ;
21092 wxListItem *result;
21093 PyObject * obj0 = 0 ;
21094 char *kwnames[] = {
21095 (char *) "self", NULL
21096 };
21097
21098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",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 {
21104 wxListItem const &_result_ref = (arg1)->GetItem();
21105 result = (wxListItem *) &_result_ref;
21106 }
21107
21108 wxPyEndAllowThreads(__tstate);
21109 if (PyErr_Occurred()) SWIG_fail;
21110 }
21111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
21112 return resultobj;
21113 fail:
21114 return NULL;
21115 }
21116
21117
21118 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) {
21119 PyObject *resultobj;
21120 wxListEvent *arg1 = (wxListEvent *) 0 ;
21121 long result;
21122 PyObject * obj0 = 0 ;
21123 char *kwnames[] = {
21124 (char *) "self", NULL
21125 };
21126
21127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
21128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21130 {
21131 PyThreadState* __tstate = wxPyBeginAllowThreads();
21132 result = (long)(arg1)->GetCacheFrom();
21133
21134 wxPyEndAllowThreads(__tstate);
21135 if (PyErr_Occurred()) SWIG_fail;
21136 }
21137 resultobj = SWIG_From_long((long)result);
21138 return resultobj;
21139 fail:
21140 return NULL;
21141 }
21142
21143
21144 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) {
21145 PyObject *resultobj;
21146 wxListEvent *arg1 = (wxListEvent *) 0 ;
21147 long result;
21148 PyObject * obj0 = 0 ;
21149 char *kwnames[] = {
21150 (char *) "self", NULL
21151 };
21152
21153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
21154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21156 {
21157 PyThreadState* __tstate = wxPyBeginAllowThreads();
21158 result = (long)(arg1)->GetCacheTo();
21159
21160 wxPyEndAllowThreads(__tstate);
21161 if (PyErr_Occurred()) SWIG_fail;
21162 }
21163 resultobj = SWIG_From_long((long)result);
21164 return resultobj;
21165 fail:
21166 return NULL;
21167 }
21168
21169
21170 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
21171 PyObject *resultobj;
21172 wxListEvent *arg1 = (wxListEvent *) 0 ;
21173 bool result;
21174 PyObject * obj0 = 0 ;
21175 char *kwnames[] = {
21176 (char *) "self", NULL
21177 };
21178
21179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
21180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21182 {
21183 PyThreadState* __tstate = wxPyBeginAllowThreads();
21184 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
21185
21186 wxPyEndAllowThreads(__tstate);
21187 if (PyErr_Occurred()) SWIG_fail;
21188 }
21189 {
21190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21191 }
21192 return resultobj;
21193 fail:
21194 return NULL;
21195 }
21196
21197
21198 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
21199 PyObject *resultobj;
21200 wxListEvent *arg1 = (wxListEvent *) 0 ;
21201 bool arg2 ;
21202 PyObject * obj0 = 0 ;
21203 PyObject * obj1 = 0 ;
21204 char *kwnames[] = {
21205 (char *) "self",(char *) "editCancelled", NULL
21206 };
21207
21208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
21209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21211 arg2 = (bool)SWIG_As_bool(obj1);
21212 if (PyErr_Occurred()) SWIG_fail;
21213 {
21214 PyThreadState* __tstate = wxPyBeginAllowThreads();
21215 (arg1)->SetEditCanceled(arg2);
21216
21217 wxPyEndAllowThreads(__tstate);
21218 if (PyErr_Occurred()) SWIG_fail;
21219 }
21220 Py_INCREF(Py_None); resultobj = Py_None;
21221 return resultobj;
21222 fail:
21223 return NULL;
21224 }
21225
21226
21227 static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) {
21228 PyObject *obj;
21229 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21230 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21231 Py_INCREF(obj);
21232 return Py_BuildValue((char *)"");
21233 }
21234 static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21235 PyObject *resultobj;
21236 wxWindow *arg1 = (wxWindow *) 0 ;
21237 int arg2 = (int) -1 ;
21238 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21239 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21240 wxSize const &arg4_defvalue = wxDefaultSize ;
21241 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21242 long arg5 = (long) wxLC_ICON ;
21243 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21244 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21245 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21246 wxString *arg7 = (wxString *) &arg7_defvalue ;
21247 wxPyListCtrl *result;
21248 wxPoint temp3 ;
21249 wxSize temp4 ;
21250 bool temp7 = False ;
21251 PyObject * obj0 = 0 ;
21252 PyObject * obj1 = 0 ;
21253 PyObject * obj2 = 0 ;
21254 PyObject * obj3 = 0 ;
21255 PyObject * obj4 = 0 ;
21256 PyObject * obj5 = 0 ;
21257 PyObject * obj6 = 0 ;
21258 char *kwnames[] = {
21259 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21260 };
21261
21262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21265 if (obj1) {
21266 arg2 = (int)SWIG_As_int(obj1);
21267 if (PyErr_Occurred()) SWIG_fail;
21268 }
21269 if (obj2) {
21270 {
21271 arg3 = &temp3;
21272 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21273 }
21274 }
21275 if (obj3) {
21276 {
21277 arg4 = &temp4;
21278 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21279 }
21280 }
21281 if (obj4) {
21282 arg5 = (long)SWIG_As_long(obj4);
21283 if (PyErr_Occurred()) SWIG_fail;
21284 }
21285 if (obj5) {
21286 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21287 SWIG_POINTER_EXCEPTION | 0)) == -1)
21288 SWIG_fail;
21289 if (arg6 == NULL) {
21290 PyErr_SetString(PyExc_TypeError,"null reference");
21291 SWIG_fail;
21292 }
21293 }
21294 if (obj6) {
21295 {
21296 arg7 = wxString_in_helper(obj6);
21297 if (arg7 == NULL) SWIG_fail;
21298 temp7 = True;
21299 }
21300 }
21301 {
21302 if (!wxPyCheckForApp()) SWIG_fail;
21303 PyThreadState* __tstate = wxPyBeginAllowThreads();
21304 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21305
21306 wxPyEndAllowThreads(__tstate);
21307 if (PyErr_Occurred()) SWIG_fail;
21308 }
21309 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21310 {
21311 if (temp7)
21312 delete arg7;
21313 }
21314 return resultobj;
21315 fail:
21316 {
21317 if (temp7)
21318 delete arg7;
21319 }
21320 return NULL;
21321 }
21322
21323
21324 static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21325 PyObject *resultobj;
21326 wxPyListCtrl *result;
21327 char *kwnames[] = {
21328 NULL
21329 };
21330
21331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21332 {
21333 if (!wxPyCheckForApp()) SWIG_fail;
21334 PyThreadState* __tstate = wxPyBeginAllowThreads();
21335 result = (wxPyListCtrl *)new wxPyListCtrl();
21336
21337 wxPyEndAllowThreads(__tstate);
21338 if (PyErr_Occurred()) SWIG_fail;
21339 }
21340 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21341 return resultobj;
21342 fail:
21343 return NULL;
21344 }
21345
21346
21347 static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
21348 PyObject *resultobj;
21349 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21350 wxWindow *arg2 = (wxWindow *) 0 ;
21351 int arg3 = (int) -1 ;
21352 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21353 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21354 wxSize const &arg5_defvalue = wxDefaultSize ;
21355 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21356 long arg6 = (long) wxLC_ICON ;
21357 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21358 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21359 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21360 wxString *arg8 = (wxString *) &arg8_defvalue ;
21361 bool result;
21362 wxPoint temp4 ;
21363 wxSize temp5 ;
21364 bool temp8 = False ;
21365 PyObject * obj0 = 0 ;
21366 PyObject * obj1 = 0 ;
21367 PyObject * obj2 = 0 ;
21368 PyObject * obj3 = 0 ;
21369 PyObject * obj4 = 0 ;
21370 PyObject * obj5 = 0 ;
21371 PyObject * obj6 = 0 ;
21372 PyObject * obj7 = 0 ;
21373 char *kwnames[] = {
21374 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21375 };
21376
21377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21380 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21382 if (obj2) {
21383 arg3 = (int)SWIG_As_int(obj2);
21384 if (PyErr_Occurred()) SWIG_fail;
21385 }
21386 if (obj3) {
21387 {
21388 arg4 = &temp4;
21389 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21390 }
21391 }
21392 if (obj4) {
21393 {
21394 arg5 = &temp5;
21395 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21396 }
21397 }
21398 if (obj5) {
21399 arg6 = (long)SWIG_As_long(obj5);
21400 if (PyErr_Occurred()) SWIG_fail;
21401 }
21402 if (obj6) {
21403 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21404 SWIG_POINTER_EXCEPTION | 0)) == -1)
21405 SWIG_fail;
21406 if (arg7 == NULL) {
21407 PyErr_SetString(PyExc_TypeError,"null reference");
21408 SWIG_fail;
21409 }
21410 }
21411 if (obj7) {
21412 {
21413 arg8 = wxString_in_helper(obj7);
21414 if (arg8 == NULL) SWIG_fail;
21415 temp8 = True;
21416 }
21417 }
21418 {
21419 PyThreadState* __tstate = wxPyBeginAllowThreads();
21420 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21421
21422 wxPyEndAllowThreads(__tstate);
21423 if (PyErr_Occurred()) SWIG_fail;
21424 }
21425 {
21426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21427 }
21428 {
21429 if (temp8)
21430 delete arg8;
21431 }
21432 return resultobj;
21433 fail:
21434 {
21435 if (temp8)
21436 delete arg8;
21437 }
21438 return NULL;
21439 }
21440
21441
21442 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
21443 PyObject *resultobj;
21444 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21445 PyObject *arg2 = (PyObject *) 0 ;
21446 PyObject *arg3 = (PyObject *) 0 ;
21447 PyObject * obj0 = 0 ;
21448 PyObject * obj1 = 0 ;
21449 PyObject * obj2 = 0 ;
21450 char *kwnames[] = {
21451 (char *) "self",(char *) "self",(char *) "_class", NULL
21452 };
21453
21454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21457 arg2 = obj1;
21458 arg3 = obj2;
21459 {
21460 PyThreadState* __tstate = wxPyBeginAllowThreads();
21461 (arg1)->_setCallbackInfo(arg2,arg3);
21462
21463 wxPyEndAllowThreads(__tstate);
21464 if (PyErr_Occurred()) SWIG_fail;
21465 }
21466 Py_INCREF(Py_None); resultobj = Py_None;
21467 return resultobj;
21468 fail:
21469 return NULL;
21470 }
21471
21472
21473 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21474 PyObject *resultobj;
21475 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21476 wxColour *arg2 = 0 ;
21477 bool result;
21478 wxColour temp2 ;
21479 PyObject * obj0 = 0 ;
21480 PyObject * obj1 = 0 ;
21481 char *kwnames[] = {
21482 (char *) "self",(char *) "col", NULL
21483 };
21484
21485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21488 {
21489 arg2 = &temp2;
21490 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21491 }
21492 {
21493 PyThreadState* __tstate = wxPyBeginAllowThreads();
21494 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21495
21496 wxPyEndAllowThreads(__tstate);
21497 if (PyErr_Occurred()) SWIG_fail;
21498 }
21499 {
21500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21501 }
21502 return resultobj;
21503 fail:
21504 return NULL;
21505 }
21506
21507
21508 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21509 PyObject *resultobj;
21510 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21511 wxColour *arg2 = 0 ;
21512 bool result;
21513 wxColour temp2 ;
21514 PyObject * obj0 = 0 ;
21515 PyObject * obj1 = 0 ;
21516 char *kwnames[] = {
21517 (char *) "self",(char *) "col", NULL
21518 };
21519
21520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21523 {
21524 arg2 = &temp2;
21525 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21526 }
21527 {
21528 PyThreadState* __tstate = wxPyBeginAllowThreads();
21529 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21530
21531 wxPyEndAllowThreads(__tstate);
21532 if (PyErr_Occurred()) SWIG_fail;
21533 }
21534 {
21535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21536 }
21537 return resultobj;
21538 fail:
21539 return NULL;
21540 }
21541
21542
21543 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21544 PyObject *resultobj;
21545 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21546 int arg2 ;
21547 wxListItem *result;
21548 PyObject * obj0 = 0 ;
21549 PyObject * obj1 = 0 ;
21550 char *kwnames[] = {
21551 (char *) "self",(char *) "col", NULL
21552 };
21553
21554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21557 arg2 = (int)SWIG_As_int(obj1);
21558 if (PyErr_Occurred()) SWIG_fail;
21559 {
21560 PyThreadState* __tstate = wxPyBeginAllowThreads();
21561 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21562
21563 wxPyEndAllowThreads(__tstate);
21564 if (PyErr_Occurred()) SWIG_fail;
21565 }
21566 {
21567 resultobj = wxPyMake_wxObject(result, 0);
21568 }
21569 return resultobj;
21570 fail:
21571 return NULL;
21572 }
21573
21574
21575 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21576 PyObject *resultobj;
21577 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21578 int arg2 ;
21579 wxListItem *arg3 = 0 ;
21580 bool result;
21581 PyObject * obj0 = 0 ;
21582 PyObject * obj1 = 0 ;
21583 PyObject * obj2 = 0 ;
21584 char *kwnames[] = {
21585 (char *) "self",(char *) "col",(char *) "item", NULL
21586 };
21587
21588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21591 arg2 = (int)SWIG_As_int(obj1);
21592 if (PyErr_Occurred()) SWIG_fail;
21593 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21594 SWIG_POINTER_EXCEPTION | 0)) == -1)
21595 SWIG_fail;
21596 if (arg3 == NULL) {
21597 PyErr_SetString(PyExc_TypeError,"null reference");
21598 SWIG_fail;
21599 }
21600 {
21601 PyThreadState* __tstate = wxPyBeginAllowThreads();
21602 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21603
21604 wxPyEndAllowThreads(__tstate);
21605 if (PyErr_Occurred()) SWIG_fail;
21606 }
21607 {
21608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21609 }
21610 return resultobj;
21611 fail:
21612 return NULL;
21613 }
21614
21615
21616 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
21617 PyObject *resultobj;
21618 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21619 int arg2 ;
21620 int result;
21621 PyObject * obj0 = 0 ;
21622 PyObject * obj1 = 0 ;
21623 char *kwnames[] = {
21624 (char *) "self",(char *) "col", NULL
21625 };
21626
21627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21630 arg2 = (int)SWIG_As_int(obj1);
21631 if (PyErr_Occurred()) SWIG_fail;
21632 {
21633 PyThreadState* __tstate = wxPyBeginAllowThreads();
21634 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21635
21636 wxPyEndAllowThreads(__tstate);
21637 if (PyErr_Occurred()) SWIG_fail;
21638 }
21639 resultobj = SWIG_From_int((int)result);
21640 return resultobj;
21641 fail:
21642 return NULL;
21643 }
21644
21645
21646 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
21647 PyObject *resultobj;
21648 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21649 int arg2 ;
21650 int arg3 ;
21651 bool result;
21652 PyObject * obj0 = 0 ;
21653 PyObject * obj1 = 0 ;
21654 PyObject * obj2 = 0 ;
21655 char *kwnames[] = {
21656 (char *) "self",(char *) "col",(char *) "width", NULL
21657 };
21658
21659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21662 arg2 = (int)SWIG_As_int(obj1);
21663 if (PyErr_Occurred()) SWIG_fail;
21664 arg3 = (int)SWIG_As_int(obj2);
21665 if (PyErr_Occurred()) SWIG_fail;
21666 {
21667 PyThreadState* __tstate = wxPyBeginAllowThreads();
21668 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21669
21670 wxPyEndAllowThreads(__tstate);
21671 if (PyErr_Occurred()) SWIG_fail;
21672 }
21673 {
21674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21675 }
21676 return resultobj;
21677 fail:
21678 return NULL;
21679 }
21680
21681
21682 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) {
21683 PyObject *resultobj;
21684 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21685 int result;
21686 PyObject * obj0 = 0 ;
21687 char *kwnames[] = {
21688 (char *) "self", NULL
21689 };
21690
21691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21694 {
21695 PyThreadState* __tstate = wxPyBeginAllowThreads();
21696 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21697
21698 wxPyEndAllowThreads(__tstate);
21699 if (PyErr_Occurred()) SWIG_fail;
21700 }
21701 resultobj = SWIG_From_int((int)result);
21702 return resultobj;
21703 fail:
21704 return NULL;
21705 }
21706
21707
21708 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) {
21709 PyObject *resultobj;
21710 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21711 wxRect result;
21712 PyObject * obj0 = 0 ;
21713 char *kwnames[] = {
21714 (char *) "self", NULL
21715 };
21716
21717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21720 {
21721 PyThreadState* __tstate = wxPyBeginAllowThreads();
21722 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21723
21724 wxPyEndAllowThreads(__tstate);
21725 if (PyErr_Occurred()) SWIG_fail;
21726 }
21727 {
21728 wxRect * resultptr;
21729 resultptr = new wxRect((wxRect &) result);
21730 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21731 }
21732 return resultobj;
21733 fail:
21734 return NULL;
21735 }
21736
21737
21738 static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21739 PyObject *resultobj;
21740 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21741 long arg2 ;
21742 int arg3 = (int) 0 ;
21743 wxListItem *result;
21744 PyObject * obj0 = 0 ;
21745 PyObject * obj1 = 0 ;
21746 PyObject * obj2 = 0 ;
21747 char *kwnames[] = {
21748 (char *) "self",(char *) "itemId",(char *) "col", NULL
21749 };
21750
21751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21754 arg2 = (long)SWIG_As_long(obj1);
21755 if (PyErr_Occurred()) SWIG_fail;
21756 if (obj2) {
21757 arg3 = (int)SWIG_As_int(obj2);
21758 if (PyErr_Occurred()) SWIG_fail;
21759 }
21760 {
21761 PyThreadState* __tstate = wxPyBeginAllowThreads();
21762 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21763
21764 wxPyEndAllowThreads(__tstate);
21765 if (PyErr_Occurred()) SWIG_fail;
21766 }
21767 {
21768 resultobj = wxPyMake_wxObject(result, 0);
21769 }
21770 return resultobj;
21771 fail:
21772 return NULL;
21773 }
21774
21775
21776 static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21777 PyObject *resultobj;
21778 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21779 wxListItem *arg2 = 0 ;
21780 bool result;
21781 PyObject * obj0 = 0 ;
21782 PyObject * obj1 = 0 ;
21783 char *kwnames[] = {
21784 (char *) "self",(char *) "info", NULL
21785 };
21786
21787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21790 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21791 SWIG_POINTER_EXCEPTION | 0)) == -1)
21792 SWIG_fail;
21793 if (arg2 == NULL) {
21794 PyErr_SetString(PyExc_TypeError,"null reference");
21795 SWIG_fail;
21796 }
21797 {
21798 PyThreadState* __tstate = wxPyBeginAllowThreads();
21799 result = (bool)(arg1)->SetItem(*arg2);
21800
21801 wxPyEndAllowThreads(__tstate);
21802 if (PyErr_Occurred()) SWIG_fail;
21803 }
21804 {
21805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21806 }
21807 return resultobj;
21808 fail:
21809 return NULL;
21810 }
21811
21812
21813 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
21814 PyObject *resultobj;
21815 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21816 long arg2 ;
21817 int arg3 ;
21818 wxString *arg4 = 0 ;
21819 int arg5 = (int) -1 ;
21820 long result;
21821 bool temp4 = False ;
21822 PyObject * obj0 = 0 ;
21823 PyObject * obj1 = 0 ;
21824 PyObject * obj2 = 0 ;
21825 PyObject * obj3 = 0 ;
21826 PyObject * obj4 = 0 ;
21827 char *kwnames[] = {
21828 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21829 };
21830
21831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21834 arg2 = (long)SWIG_As_long(obj1);
21835 if (PyErr_Occurred()) SWIG_fail;
21836 arg3 = (int)SWIG_As_int(obj2);
21837 if (PyErr_Occurred()) SWIG_fail;
21838 {
21839 arg4 = wxString_in_helper(obj3);
21840 if (arg4 == NULL) SWIG_fail;
21841 temp4 = True;
21842 }
21843 if (obj4) {
21844 arg5 = (int)SWIG_As_int(obj4);
21845 if (PyErr_Occurred()) SWIG_fail;
21846 }
21847 {
21848 PyThreadState* __tstate = wxPyBeginAllowThreads();
21849 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21850
21851 wxPyEndAllowThreads(__tstate);
21852 if (PyErr_Occurred()) SWIG_fail;
21853 }
21854 resultobj = SWIG_From_long((long)result);
21855 {
21856 if (temp4)
21857 delete arg4;
21858 }
21859 return resultobj;
21860 fail:
21861 {
21862 if (temp4)
21863 delete arg4;
21864 }
21865 return NULL;
21866 }
21867
21868
21869 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
21870 PyObject *resultobj;
21871 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21872 long arg2 ;
21873 long arg3 ;
21874 int result;
21875 PyObject * obj0 = 0 ;
21876 PyObject * obj1 = 0 ;
21877 PyObject * obj2 = 0 ;
21878 char *kwnames[] = {
21879 (char *) "self",(char *) "item",(char *) "stateMask", NULL
21880 };
21881
21882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
21883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21885 arg2 = (long)SWIG_As_long(obj1);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 arg3 = (long)SWIG_As_long(obj2);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 {
21890 PyThreadState* __tstate = wxPyBeginAllowThreads();
21891 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
21892
21893 wxPyEndAllowThreads(__tstate);
21894 if (PyErr_Occurred()) SWIG_fail;
21895 }
21896 resultobj = SWIG_From_int((int)result);
21897 return resultobj;
21898 fail:
21899 return NULL;
21900 }
21901
21902
21903 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj;
21905 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21906 long arg2 ;
21907 long arg3 ;
21908 long arg4 ;
21909 bool result;
21910 PyObject * obj0 = 0 ;
21911 PyObject * obj1 = 0 ;
21912 PyObject * obj2 = 0 ;
21913 PyObject * obj3 = 0 ;
21914 char *kwnames[] = {
21915 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
21916 };
21917
21918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21921 arg2 = (long)SWIG_As_long(obj1);
21922 if (PyErr_Occurred()) SWIG_fail;
21923 arg3 = (long)SWIG_As_long(obj2);
21924 if (PyErr_Occurred()) SWIG_fail;
21925 arg4 = (long)SWIG_As_long(obj3);
21926 if (PyErr_Occurred()) SWIG_fail;
21927 {
21928 PyThreadState* __tstate = wxPyBeginAllowThreads();
21929 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
21930
21931 wxPyEndAllowThreads(__tstate);
21932 if (PyErr_Occurred()) SWIG_fail;
21933 }
21934 {
21935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21936 }
21937 return resultobj;
21938 fail:
21939 return NULL;
21940 }
21941
21942
21943 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
21944 PyObject *resultobj;
21945 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21946 long arg2 ;
21947 int arg3 ;
21948 int arg4 ;
21949 bool result;
21950 PyObject * obj0 = 0 ;
21951 PyObject * obj1 = 0 ;
21952 PyObject * obj2 = 0 ;
21953 PyObject * obj3 = 0 ;
21954 char *kwnames[] = {
21955 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
21956 };
21957
21958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21961 arg2 = (long)SWIG_As_long(obj1);
21962 if (PyErr_Occurred()) SWIG_fail;
21963 arg3 = (int)SWIG_As_int(obj2);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 arg4 = (int)SWIG_As_int(obj3);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 {
21968 PyThreadState* __tstate = wxPyBeginAllowThreads();
21969 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
21970
21971 wxPyEndAllowThreads(__tstate);
21972 if (PyErr_Occurred()) SWIG_fail;
21973 }
21974 {
21975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21976 }
21977 return resultobj;
21978 fail:
21979 return NULL;
21980 }
21981
21982
21983 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
21984 PyObject *resultobj;
21985 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21986 long arg2 ;
21987 wxString result;
21988 PyObject * obj0 = 0 ;
21989 PyObject * obj1 = 0 ;
21990 char *kwnames[] = {
21991 (char *) "self",(char *) "item", NULL
21992 };
21993
21994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
21995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21997 arg2 = (long)SWIG_As_long(obj1);
21998 if (PyErr_Occurred()) SWIG_fail;
21999 {
22000 PyThreadState* __tstate = wxPyBeginAllowThreads();
22001 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
22002
22003 wxPyEndAllowThreads(__tstate);
22004 if (PyErr_Occurred()) SWIG_fail;
22005 }
22006 {
22007 #if wxUSE_UNICODE
22008 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22009 #else
22010 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22011 #endif
22012 }
22013 return resultobj;
22014 fail:
22015 return NULL;
22016 }
22017
22018
22019 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22020 PyObject *resultobj;
22021 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22022 long arg2 ;
22023 wxString *arg3 = 0 ;
22024 bool temp3 = False ;
22025 PyObject * obj0 = 0 ;
22026 PyObject * obj1 = 0 ;
22027 PyObject * obj2 = 0 ;
22028 char *kwnames[] = {
22029 (char *) "self",(char *) "item",(char *) "str", NULL
22030 };
22031
22032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
22033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22035 arg2 = (long)SWIG_As_long(obj1);
22036 if (PyErr_Occurred()) SWIG_fail;
22037 {
22038 arg3 = wxString_in_helper(obj2);
22039 if (arg3 == NULL) SWIG_fail;
22040 temp3 = True;
22041 }
22042 {
22043 PyThreadState* __tstate = wxPyBeginAllowThreads();
22044 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
22045
22046 wxPyEndAllowThreads(__tstate);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 }
22049 Py_INCREF(Py_None); resultobj = Py_None;
22050 {
22051 if (temp3)
22052 delete arg3;
22053 }
22054 return resultobj;
22055 fail:
22056 {
22057 if (temp3)
22058 delete arg3;
22059 }
22060 return NULL;
22061 }
22062
22063
22064 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22065 PyObject *resultobj;
22066 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22067 long arg2 ;
22068 long result;
22069 PyObject * obj0 = 0 ;
22070 PyObject * obj1 = 0 ;
22071 char *kwnames[] = {
22072 (char *) "self",(char *) "item", NULL
22073 };
22074
22075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
22076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22078 arg2 = (long)SWIG_As_long(obj1);
22079 if (PyErr_Occurred()) SWIG_fail;
22080 {
22081 PyThreadState* __tstate = wxPyBeginAllowThreads();
22082 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
22083
22084 wxPyEndAllowThreads(__tstate);
22085 if (PyErr_Occurred()) SWIG_fail;
22086 }
22087 resultobj = SWIG_From_long((long)result);
22088 return resultobj;
22089 fail:
22090 return NULL;
22091 }
22092
22093
22094 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22095 PyObject *resultobj;
22096 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22097 long arg2 ;
22098 long arg3 ;
22099 bool result;
22100 PyObject * obj0 = 0 ;
22101 PyObject * obj1 = 0 ;
22102 PyObject * obj2 = 0 ;
22103 char *kwnames[] = {
22104 (char *) "self",(char *) "item",(char *) "data", NULL
22105 };
22106
22107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22110 arg2 = (long)SWIG_As_long(obj1);
22111 if (PyErr_Occurred()) SWIG_fail;
22112 arg3 = (long)SWIG_As_long(obj2);
22113 if (PyErr_Occurred()) SWIG_fail;
22114 {
22115 PyThreadState* __tstate = wxPyBeginAllowThreads();
22116 result = (bool)(arg1)->SetItemData(arg2,arg3);
22117
22118 wxPyEndAllowThreads(__tstate);
22119 if (PyErr_Occurred()) SWIG_fail;
22120 }
22121 {
22122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22123 }
22124 return resultobj;
22125 fail:
22126 return NULL;
22127 }
22128
22129
22130 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22131 PyObject *resultobj;
22132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22133 long arg2 ;
22134 wxPoint result;
22135 PyObject * obj0 = 0 ;
22136 PyObject * obj1 = 0 ;
22137 char *kwnames[] = {
22138 (char *) "self",(char *) "item", NULL
22139 };
22140
22141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
22142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22144 arg2 = (long)SWIG_As_long(obj1);
22145 if (PyErr_Occurred()) SWIG_fail;
22146 {
22147 PyThreadState* __tstate = wxPyBeginAllowThreads();
22148 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
22149
22150 wxPyEndAllowThreads(__tstate);
22151 if (PyErr_Occurred()) SWIG_fail;
22152 }
22153 {
22154 wxPoint * resultptr;
22155 resultptr = new wxPoint((wxPoint &) result);
22156 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22157 }
22158 return resultobj;
22159 fail:
22160 return NULL;
22161 }
22162
22163
22164 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) {
22165 PyObject *resultobj;
22166 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22167 long arg2 ;
22168 int arg3 = (int) wxLIST_RECT_BOUNDS ;
22169 wxRect result;
22170 PyObject * obj0 = 0 ;
22171 PyObject * obj1 = 0 ;
22172 PyObject * obj2 = 0 ;
22173 char *kwnames[] = {
22174 (char *) "self",(char *) "item",(char *) "code", NULL
22175 };
22176
22177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22180 arg2 = (long)SWIG_As_long(obj1);
22181 if (PyErr_Occurred()) SWIG_fail;
22182 if (obj2) {
22183 arg3 = (int)SWIG_As_int(obj2);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 {
22187 PyThreadState* __tstate = wxPyBeginAllowThreads();
22188 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22189
22190 wxPyEndAllowThreads(__tstate);
22191 if (PyErr_Occurred()) SWIG_fail;
22192 }
22193 {
22194 wxRect * resultptr;
22195 resultptr = new wxRect((wxRect &) result);
22196 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22197 }
22198 return resultobj;
22199 fail:
22200 return NULL;
22201 }
22202
22203
22204 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22205 PyObject *resultobj;
22206 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22207 long arg2 ;
22208 wxPoint *arg3 = 0 ;
22209 bool result;
22210 wxPoint temp3 ;
22211 PyObject * obj0 = 0 ;
22212 PyObject * obj1 = 0 ;
22213 PyObject * obj2 = 0 ;
22214 char *kwnames[] = {
22215 (char *) "self",(char *) "item",(char *) "pos", NULL
22216 };
22217
22218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22221 arg2 = (long)SWIG_As_long(obj1);
22222 if (PyErr_Occurred()) SWIG_fail;
22223 {
22224 arg3 = &temp3;
22225 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22226 }
22227 {
22228 PyThreadState* __tstate = wxPyBeginAllowThreads();
22229 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22230
22231 wxPyEndAllowThreads(__tstate);
22232 if (PyErr_Occurred()) SWIG_fail;
22233 }
22234 {
22235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22236 }
22237 return resultobj;
22238 fail:
22239 return NULL;
22240 }
22241
22242
22243 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22244 PyObject *resultobj;
22245 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22246 int result;
22247 PyObject * obj0 = 0 ;
22248 char *kwnames[] = {
22249 (char *) "self", NULL
22250 };
22251
22252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22255 {
22256 PyThreadState* __tstate = wxPyBeginAllowThreads();
22257 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22258
22259 wxPyEndAllowThreads(__tstate);
22260 if (PyErr_Occurred()) SWIG_fail;
22261 }
22262 resultobj = SWIG_From_int((int)result);
22263 return resultobj;
22264 fail:
22265 return NULL;
22266 }
22267
22268
22269 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
22270 PyObject *resultobj;
22271 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22272 int result;
22273 PyObject * obj0 = 0 ;
22274 char *kwnames[] = {
22275 (char *) "self", NULL
22276 };
22277
22278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22281 {
22282 PyThreadState* __tstate = wxPyBeginAllowThreads();
22283 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22284
22285 wxPyEndAllowThreads(__tstate);
22286 if (PyErr_Occurred()) SWIG_fail;
22287 }
22288 resultobj = SWIG_From_int((int)result);
22289 return resultobj;
22290 fail:
22291 return NULL;
22292 }
22293
22294
22295 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22296 PyObject *resultobj;
22297 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22298 wxSize result;
22299 PyObject * obj0 = 0 ;
22300 char *kwnames[] = {
22301 (char *) "self", NULL
22302 };
22303
22304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22307 {
22308 PyThreadState* __tstate = wxPyBeginAllowThreads();
22309 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22310
22311 wxPyEndAllowThreads(__tstate);
22312 if (PyErr_Occurred()) SWIG_fail;
22313 }
22314 {
22315 wxSize * resultptr;
22316 resultptr = new wxSize((wxSize &) result);
22317 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22318 }
22319 return resultobj;
22320 fail:
22321 return NULL;
22322 }
22323
22324
22325 static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22326 PyObject *resultobj;
22327 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22328 int arg2 ;
22329 bool arg3 = (bool) False ;
22330 PyObject * obj0 = 0 ;
22331 PyObject * obj1 = 0 ;
22332 PyObject * obj2 = 0 ;
22333 char *kwnames[] = {
22334 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
22335 };
22336
22337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
22338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22340 arg2 = (int)SWIG_As_int(obj1);
22341 if (PyErr_Occurred()) SWIG_fail;
22342 if (obj2) {
22343 arg3 = (bool)SWIG_As_bool(obj2);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 }
22346 {
22347 PyThreadState* __tstate = wxPyBeginAllowThreads();
22348 (arg1)->SetItemSpacing(arg2,arg3);
22349
22350 wxPyEndAllowThreads(__tstate);
22351 if (PyErr_Occurred()) SWIG_fail;
22352 }
22353 Py_INCREF(Py_None); resultobj = Py_None;
22354 return resultobj;
22355 fail:
22356 return NULL;
22357 }
22358
22359
22360 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22361 PyObject *resultobj;
22362 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22363 int result;
22364 PyObject * obj0 = 0 ;
22365 char *kwnames[] = {
22366 (char *) "self", NULL
22367 };
22368
22369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22372 {
22373 PyThreadState* __tstate = wxPyBeginAllowThreads();
22374 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22375
22376 wxPyEndAllowThreads(__tstate);
22377 if (PyErr_Occurred()) SWIG_fail;
22378 }
22379 resultobj = SWIG_From_int((int)result);
22380 return resultobj;
22381 fail:
22382 return NULL;
22383 }
22384
22385
22386 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22387 PyObject *resultobj;
22388 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22389 wxColour result;
22390 PyObject * obj0 = 0 ;
22391 char *kwnames[] = {
22392 (char *) "self", NULL
22393 };
22394
22395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22398 {
22399 PyThreadState* __tstate = wxPyBeginAllowThreads();
22400 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22401
22402 wxPyEndAllowThreads(__tstate);
22403 if (PyErr_Occurred()) SWIG_fail;
22404 }
22405 {
22406 wxColour * resultptr;
22407 resultptr = new wxColour((wxColour &) result);
22408 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22409 }
22410 return resultobj;
22411 fail:
22412 return NULL;
22413 }
22414
22415
22416 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22417 PyObject *resultobj;
22418 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22419 wxColour *arg2 = 0 ;
22420 wxColour temp2 ;
22421 PyObject * obj0 = 0 ;
22422 PyObject * obj1 = 0 ;
22423 char *kwnames[] = {
22424 (char *) "self",(char *) "col", NULL
22425 };
22426
22427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22430 {
22431 arg2 = &temp2;
22432 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22433 }
22434 {
22435 PyThreadState* __tstate = wxPyBeginAllowThreads();
22436 (arg1)->SetTextColour((wxColour const &)*arg2);
22437
22438 wxPyEndAllowThreads(__tstate);
22439 if (PyErr_Occurred()) SWIG_fail;
22440 }
22441 Py_INCREF(Py_None); resultobj = Py_None;
22442 return resultobj;
22443 fail:
22444 return NULL;
22445 }
22446
22447
22448 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) {
22449 PyObject *resultobj;
22450 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22451 long result;
22452 PyObject * obj0 = 0 ;
22453 char *kwnames[] = {
22454 (char *) "self", NULL
22455 };
22456
22457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22463
22464 wxPyEndAllowThreads(__tstate);
22465 if (PyErr_Occurred()) SWIG_fail;
22466 }
22467 resultobj = SWIG_From_long((long)result);
22468 return resultobj;
22469 fail:
22470 return NULL;
22471 }
22472
22473
22474 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) {
22475 PyObject *resultobj;
22476 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22477 long arg2 ;
22478 bool arg3 = (bool) True ;
22479 PyObject * obj0 = 0 ;
22480 PyObject * obj1 = 0 ;
22481 PyObject * obj2 = 0 ;
22482 char *kwnames[] = {
22483 (char *) "self",(char *) "style",(char *) "add", NULL
22484 };
22485
22486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22489 arg2 = (long)SWIG_As_long(obj1);
22490 if (PyErr_Occurred()) SWIG_fail;
22491 if (obj2) {
22492 arg3 = (bool)SWIG_As_bool(obj2);
22493 if (PyErr_Occurred()) SWIG_fail;
22494 }
22495 {
22496 PyThreadState* __tstate = wxPyBeginAllowThreads();
22497 (arg1)->SetSingleStyle(arg2,arg3);
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_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
22510 PyObject *resultobj;
22511 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22512 long arg2 ;
22513 PyObject * obj0 = 0 ;
22514 PyObject * obj1 = 0 ;
22515 char *kwnames[] = {
22516 (char *) "self",(char *) "style", NULL
22517 };
22518
22519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22522 arg2 = (long)SWIG_As_long(obj1);
22523 if (PyErr_Occurred()) SWIG_fail;
22524 {
22525 PyThreadState* __tstate = wxPyBeginAllowThreads();
22526 (arg1)->SetWindowStyleFlag(arg2);
22527
22528 wxPyEndAllowThreads(__tstate);
22529 if (PyErr_Occurred()) SWIG_fail;
22530 }
22531 Py_INCREF(Py_None); resultobj = Py_None;
22532 return resultobj;
22533 fail:
22534 return NULL;
22535 }
22536
22537
22538 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
22539 PyObject *resultobj;
22540 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22541 long arg2 ;
22542 int arg3 = (int) wxLIST_NEXT_ALL ;
22543 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22544 long result;
22545 PyObject * obj0 = 0 ;
22546 PyObject * obj1 = 0 ;
22547 PyObject * obj2 = 0 ;
22548 PyObject * obj3 = 0 ;
22549 char *kwnames[] = {
22550 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22551 };
22552
22553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22556 arg2 = (long)SWIG_As_long(obj1);
22557 if (PyErr_Occurred()) SWIG_fail;
22558 if (obj2) {
22559 arg3 = (int)SWIG_As_int(obj2);
22560 if (PyErr_Occurred()) SWIG_fail;
22561 }
22562 if (obj3) {
22563 arg4 = (int)SWIG_As_int(obj3);
22564 if (PyErr_Occurred()) SWIG_fail;
22565 }
22566 {
22567 PyThreadState* __tstate = wxPyBeginAllowThreads();
22568 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22569
22570 wxPyEndAllowThreads(__tstate);
22571 if (PyErr_Occurred()) SWIG_fail;
22572 }
22573 resultobj = SWIG_From_long((long)result);
22574 return resultobj;
22575 fail:
22576 return NULL;
22577 }
22578
22579
22580 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22581 PyObject *resultobj;
22582 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22583 int arg2 ;
22584 wxImageList *result;
22585 PyObject * obj0 = 0 ;
22586 PyObject * obj1 = 0 ;
22587 char *kwnames[] = {
22588 (char *) "self",(char *) "which", NULL
22589 };
22590
22591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22594 arg2 = (int)SWIG_As_int(obj1);
22595 if (PyErr_Occurred()) SWIG_fail;
22596 {
22597 PyThreadState* __tstate = wxPyBeginAllowThreads();
22598 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22599
22600 wxPyEndAllowThreads(__tstate);
22601 if (PyErr_Occurred()) SWIG_fail;
22602 }
22603 {
22604 resultobj = wxPyMake_wxObject(result, 0);
22605 }
22606 return resultobj;
22607 fail:
22608 return NULL;
22609 }
22610
22611
22612 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22613 PyObject *resultobj;
22614 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22615 wxImageList *arg2 = (wxImageList *) 0 ;
22616 int arg3 ;
22617 PyObject * obj0 = 0 ;
22618 PyObject * obj1 = 0 ;
22619 PyObject * obj2 = 0 ;
22620 char *kwnames[] = {
22621 (char *) "self",(char *) "imageList",(char *) "which", NULL
22622 };
22623
22624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22627 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22629 arg3 = (int)SWIG_As_int(obj2);
22630 if (PyErr_Occurred()) SWIG_fail;
22631 {
22632 PyThreadState* __tstate = wxPyBeginAllowThreads();
22633 (arg1)->SetImageList(arg2,arg3);
22634
22635 wxPyEndAllowThreads(__tstate);
22636 if (PyErr_Occurred()) SWIG_fail;
22637 }
22638 Py_INCREF(Py_None); resultobj = Py_None;
22639 return resultobj;
22640 fail:
22641 return NULL;
22642 }
22643
22644
22645 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22646 PyObject *resultobj;
22647 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22648 wxImageList *arg2 = (wxImageList *) 0 ;
22649 int arg3 ;
22650 PyObject * obj0 = 0 ;
22651 PyObject * obj1 = 0 ;
22652 PyObject * obj2 = 0 ;
22653 char *kwnames[] = {
22654 (char *) "self",(char *) "imageList",(char *) "which", NULL
22655 };
22656
22657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22661 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22662 arg3 = (int)SWIG_As_int(obj2);
22663 if (PyErr_Occurred()) SWIG_fail;
22664 {
22665 PyThreadState* __tstate = wxPyBeginAllowThreads();
22666 (arg1)->AssignImageList(arg2,arg3);
22667
22668 wxPyEndAllowThreads(__tstate);
22669 if (PyErr_Occurred()) SWIG_fail;
22670 }
22671 Py_INCREF(Py_None); resultobj = Py_None;
22672 return resultobj;
22673 fail:
22674 return NULL;
22675 }
22676
22677
22678 static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) {
22679 PyObject *resultobj;
22680 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22681 bool result;
22682 PyObject * obj0 = 0 ;
22683 char *kwnames[] = {
22684 (char *) "self", NULL
22685 };
22686
22687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22690 {
22691 PyThreadState* __tstate = wxPyBeginAllowThreads();
22692 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22693
22694 wxPyEndAllowThreads(__tstate);
22695 if (PyErr_Occurred()) SWIG_fail;
22696 }
22697 {
22698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22699 }
22700 return resultobj;
22701 fail:
22702 return NULL;
22703 }
22704
22705
22706 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) {
22707 PyObject *resultobj;
22708 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22709 bool result;
22710 PyObject * obj0 = 0 ;
22711 char *kwnames[] = {
22712 (char *) "self", NULL
22713 };
22714
22715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22718 {
22719 PyThreadState* __tstate = wxPyBeginAllowThreads();
22720 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22721
22722 wxPyEndAllowThreads(__tstate);
22723 if (PyErr_Occurred()) SWIG_fail;
22724 }
22725 {
22726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22727 }
22728 return resultobj;
22729 fail:
22730 return NULL;
22731 }
22732
22733
22734 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) {
22735 PyObject *resultobj;
22736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22737 long arg2 ;
22738 PyObject * obj0 = 0 ;
22739 PyObject * obj1 = 0 ;
22740 char *kwnames[] = {
22741 (char *) "self",(char *) "item", NULL
22742 };
22743
22744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22747 arg2 = (long)SWIG_As_long(obj1);
22748 if (PyErr_Occurred()) SWIG_fail;
22749 {
22750 PyThreadState* __tstate = wxPyBeginAllowThreads();
22751 (arg1)->RefreshItem(arg2);
22752
22753 wxPyEndAllowThreads(__tstate);
22754 if (PyErr_Occurred()) SWIG_fail;
22755 }
22756 Py_INCREF(Py_None); resultobj = Py_None;
22757 return resultobj;
22758 fail:
22759 return NULL;
22760 }
22761
22762
22763 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) {
22764 PyObject *resultobj;
22765 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22766 long arg2 ;
22767 long arg3 ;
22768 PyObject * obj0 = 0 ;
22769 PyObject * obj1 = 0 ;
22770 PyObject * obj2 = 0 ;
22771 char *kwnames[] = {
22772 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22773 };
22774
22775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22778 arg2 = (long)SWIG_As_long(obj1);
22779 if (PyErr_Occurred()) SWIG_fail;
22780 arg3 = (long)SWIG_As_long(obj2);
22781 if (PyErr_Occurred()) SWIG_fail;
22782 {
22783 PyThreadState* __tstate = wxPyBeginAllowThreads();
22784 (arg1)->RefreshItems(arg2,arg3);
22785
22786 wxPyEndAllowThreads(__tstate);
22787 if (PyErr_Occurred()) SWIG_fail;
22788 }
22789 Py_INCREF(Py_None); resultobj = Py_None;
22790 return resultobj;
22791 fail:
22792 return NULL;
22793 }
22794
22795
22796 static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) {
22797 PyObject *resultobj;
22798 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22799 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22800 bool result;
22801 PyObject * obj0 = 0 ;
22802 PyObject * obj1 = 0 ;
22803 char *kwnames[] = {
22804 (char *) "self",(char *) "flag", NULL
22805 };
22806
22807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22810 if (obj1) {
22811 arg2 = (int)SWIG_As_int(obj1);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 {
22815 PyThreadState* __tstate = wxPyBeginAllowThreads();
22816 result = (bool)(arg1)->Arrange(arg2);
22817
22818 wxPyEndAllowThreads(__tstate);
22819 if (PyErr_Occurred()) SWIG_fail;
22820 }
22821 {
22822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22823 }
22824 return resultobj;
22825 fail:
22826 return NULL;
22827 }
22828
22829
22830 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
22831 PyObject *resultobj;
22832 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22833 long arg2 ;
22834 bool result;
22835 PyObject * obj0 = 0 ;
22836 PyObject * obj1 = 0 ;
22837 char *kwnames[] = {
22838 (char *) "self",(char *) "item", NULL
22839 };
22840
22841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22844 arg2 = (long)SWIG_As_long(obj1);
22845 if (PyErr_Occurred()) SWIG_fail;
22846 {
22847 PyThreadState* __tstate = wxPyBeginAllowThreads();
22848 result = (bool)(arg1)->DeleteItem(arg2);
22849
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 {
22854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22855 }
22856 return resultobj;
22857 fail:
22858 return NULL;
22859 }
22860
22861
22862 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
22863 PyObject *resultobj;
22864 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22865 bool result;
22866 PyObject * obj0 = 0 ;
22867 char *kwnames[] = {
22868 (char *) "self", NULL
22869 };
22870
22871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22874 {
22875 PyThreadState* __tstate = wxPyBeginAllowThreads();
22876 result = (bool)(arg1)->DeleteAllItems();
22877
22878 wxPyEndAllowThreads(__tstate);
22879 if (PyErr_Occurred()) SWIG_fail;
22880 }
22881 {
22882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22883 }
22884 return resultobj;
22885 fail:
22886 return NULL;
22887 }
22888
22889
22890 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22891 PyObject *resultobj;
22892 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22893 int arg2 ;
22894 bool result;
22895 PyObject * obj0 = 0 ;
22896 PyObject * obj1 = 0 ;
22897 char *kwnames[] = {
22898 (char *) "self",(char *) "col", NULL
22899 };
22900
22901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22904 arg2 = (int)SWIG_As_int(obj1);
22905 if (PyErr_Occurred()) SWIG_fail;
22906 {
22907 PyThreadState* __tstate = wxPyBeginAllowThreads();
22908 result = (bool)(arg1)->DeleteColumn(arg2);
22909
22910 wxPyEndAllowThreads(__tstate);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 }
22913 {
22914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22915 }
22916 return resultobj;
22917 fail:
22918 return NULL;
22919 }
22920
22921
22922 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) {
22923 PyObject *resultobj;
22924 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22925 bool result;
22926 PyObject * obj0 = 0 ;
22927 char *kwnames[] = {
22928 (char *) "self", NULL
22929 };
22930
22931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
22932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22934 {
22935 PyThreadState* __tstate = wxPyBeginAllowThreads();
22936 result = (bool)(arg1)->DeleteAllColumns();
22937
22938 wxPyEndAllowThreads(__tstate);
22939 if (PyErr_Occurred()) SWIG_fail;
22940 }
22941 {
22942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22943 }
22944 return resultobj;
22945 fail:
22946 return NULL;
22947 }
22948
22949
22950 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) {
22951 PyObject *resultobj;
22952 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22953 PyObject * obj0 = 0 ;
22954 char *kwnames[] = {
22955 (char *) "self", NULL
22956 };
22957
22958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
22959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22961 {
22962 PyThreadState* __tstate = wxPyBeginAllowThreads();
22963 (arg1)->ClearAll();
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_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
22976 PyObject *resultobj;
22977 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22978 long arg2 ;
22979 PyObject * obj0 = 0 ;
22980 PyObject * obj1 = 0 ;
22981 char *kwnames[] = {
22982 (char *) "self",(char *) "item", NULL
22983 };
22984
22985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
22986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22988 arg2 = (long)SWIG_As_long(obj1);
22989 if (PyErr_Occurred()) SWIG_fail;
22990 {
22991 PyThreadState* __tstate = wxPyBeginAllowThreads();
22992 (arg1)->EditLabel(arg2);
22993
22994 wxPyEndAllowThreads(__tstate);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 }
22997 Py_INCREF(Py_None); resultobj = Py_None;
22998 return resultobj;
22999 fail:
23000 return NULL;
23001 }
23002
23003
23004 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
23005 PyObject *resultobj;
23006 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23007 long arg2 ;
23008 bool result;
23009 PyObject * obj0 = 0 ;
23010 PyObject * obj1 = 0 ;
23011 char *kwnames[] = {
23012 (char *) "self",(char *) "item", NULL
23013 };
23014
23015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
23016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23018 arg2 = (long)SWIG_As_long(obj1);
23019 if (PyErr_Occurred()) SWIG_fail;
23020 {
23021 PyThreadState* __tstate = wxPyBeginAllowThreads();
23022 result = (bool)(arg1)->EnsureVisible(arg2);
23023
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 {
23028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23029 }
23030 return resultobj;
23031 fail:
23032 return NULL;
23033 }
23034
23035
23036 static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
23037 PyObject *resultobj;
23038 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23039 long arg2 ;
23040 wxString *arg3 = 0 ;
23041 bool arg4 = (bool) False ;
23042 long result;
23043 bool temp3 = False ;
23044 PyObject * obj0 = 0 ;
23045 PyObject * obj1 = 0 ;
23046 PyObject * obj2 = 0 ;
23047 PyObject * obj3 = 0 ;
23048 char *kwnames[] = {
23049 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
23050 };
23051
23052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23055 arg2 = (long)SWIG_As_long(obj1);
23056 if (PyErr_Occurred()) SWIG_fail;
23057 {
23058 arg3 = wxString_in_helper(obj2);
23059 if (arg3 == NULL) SWIG_fail;
23060 temp3 = True;
23061 }
23062 if (obj3) {
23063 arg4 = (bool)SWIG_As_bool(obj3);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 {
23067 PyThreadState* __tstate = wxPyBeginAllowThreads();
23068 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
23069
23070 wxPyEndAllowThreads(__tstate);
23071 if (PyErr_Occurred()) SWIG_fail;
23072 }
23073 resultobj = SWIG_From_long((long)result);
23074 {
23075 if (temp3)
23076 delete arg3;
23077 }
23078 return resultobj;
23079 fail:
23080 {
23081 if (temp3)
23082 delete arg3;
23083 }
23084 return NULL;
23085 }
23086
23087
23088 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) {
23089 PyObject *resultobj;
23090 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23091 long arg2 ;
23092 long arg3 ;
23093 long result;
23094 PyObject * obj0 = 0 ;
23095 PyObject * obj1 = 0 ;
23096 PyObject * obj2 = 0 ;
23097 char *kwnames[] = {
23098 (char *) "self",(char *) "start",(char *) "data", NULL
23099 };
23100
23101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
23102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23104 arg2 = (long)SWIG_As_long(obj1);
23105 if (PyErr_Occurred()) SWIG_fail;
23106 arg3 = (long)SWIG_As_long(obj2);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 {
23109 PyThreadState* __tstate = wxPyBeginAllowThreads();
23110 result = (long)(arg1)->FindItem(arg2,arg3);
23111
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 resultobj = SWIG_From_long((long)result);
23116 return resultobj;
23117 fail:
23118 return NULL;
23119 }
23120
23121
23122 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) {
23123 PyObject *resultobj;
23124 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23125 long arg2 ;
23126 wxPoint *arg3 = 0 ;
23127 int arg4 ;
23128 long result;
23129 wxPoint temp3 ;
23130 PyObject * obj0 = 0 ;
23131 PyObject * obj1 = 0 ;
23132 PyObject * obj2 = 0 ;
23133 PyObject * obj3 = 0 ;
23134 char *kwnames[] = {
23135 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
23136 };
23137
23138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23141 arg2 = (long)SWIG_As_long(obj1);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 {
23144 arg3 = &temp3;
23145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23146 }
23147 arg4 = (int)SWIG_As_int(obj3);
23148 if (PyErr_Occurred()) SWIG_fail;
23149 {
23150 PyThreadState* __tstate = wxPyBeginAllowThreads();
23151 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
23152
23153 wxPyEndAllowThreads(__tstate);
23154 if (PyErr_Occurred()) SWIG_fail;
23155 }
23156 resultobj = SWIG_From_long((long)result);
23157 return resultobj;
23158 fail:
23159 return NULL;
23160 }
23161
23162
23163 static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
23164 PyObject *resultobj;
23165 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23166 wxPoint *arg2 = 0 ;
23167 int *arg3 = 0 ;
23168 long result;
23169 wxPoint temp2 ;
23170 int temp3 ;
23171 int res3 = 0 ;
23172 PyObject * obj0 = 0 ;
23173 PyObject * obj1 = 0 ;
23174 char *kwnames[] = {
23175 (char *) "self",(char *) "point", NULL
23176 };
23177
23178 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
23180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23182 {
23183 arg2 = &temp2;
23184 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23185 }
23186 {
23187 PyThreadState* __tstate = wxPyBeginAllowThreads();
23188 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23189
23190 wxPyEndAllowThreads(__tstate);
23191 if (PyErr_Occurred()) SWIG_fail;
23192 }
23193 resultobj = SWIG_From_long((long)result);
23194 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23195 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23196 return resultobj;
23197 fail:
23198 return NULL;
23199 }
23200
23201
23202 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
23203 PyObject *resultobj;
23204 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23205 wxListItem *arg2 = 0 ;
23206 long result;
23207 PyObject * obj0 = 0 ;
23208 PyObject * obj1 = 0 ;
23209 char *kwnames[] = {
23210 (char *) "self",(char *) "info", NULL
23211 };
23212
23213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23216 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23217 SWIG_POINTER_EXCEPTION | 0)) == -1)
23218 SWIG_fail;
23219 if (arg2 == NULL) {
23220 PyErr_SetString(PyExc_TypeError,"null reference");
23221 SWIG_fail;
23222 }
23223 {
23224 PyThreadState* __tstate = wxPyBeginAllowThreads();
23225 result = (long)(arg1)->InsertItem(*arg2);
23226
23227 wxPyEndAllowThreads(__tstate);
23228 if (PyErr_Occurred()) SWIG_fail;
23229 }
23230 resultobj = SWIG_From_long((long)result);
23231 return resultobj;
23232 fail:
23233 return NULL;
23234 }
23235
23236
23237 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23238 PyObject *resultobj;
23239 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23240 long arg2 ;
23241 wxString *arg3 = 0 ;
23242 long result;
23243 bool temp3 = False ;
23244 PyObject * obj0 = 0 ;
23245 PyObject * obj1 = 0 ;
23246 PyObject * obj2 = 0 ;
23247 char *kwnames[] = {
23248 (char *) "self",(char *) "index",(char *) "label", NULL
23249 };
23250
23251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23254 arg2 = (long)SWIG_As_long(obj1);
23255 if (PyErr_Occurred()) SWIG_fail;
23256 {
23257 arg3 = wxString_in_helper(obj2);
23258 if (arg3 == NULL) SWIG_fail;
23259 temp3 = True;
23260 }
23261 {
23262 PyThreadState* __tstate = wxPyBeginAllowThreads();
23263 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23264
23265 wxPyEndAllowThreads(__tstate);
23266 if (PyErr_Occurred()) SWIG_fail;
23267 }
23268 resultobj = SWIG_From_long((long)result);
23269 {
23270 if (temp3)
23271 delete arg3;
23272 }
23273 return resultobj;
23274 fail:
23275 {
23276 if (temp3)
23277 delete arg3;
23278 }
23279 return NULL;
23280 }
23281
23282
23283 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) {
23284 PyObject *resultobj;
23285 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23286 long arg2 ;
23287 int arg3 ;
23288 long result;
23289 PyObject * obj0 = 0 ;
23290 PyObject * obj1 = 0 ;
23291 PyObject * obj2 = 0 ;
23292 char *kwnames[] = {
23293 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23294 };
23295
23296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23299 arg2 = (long)SWIG_As_long(obj1);
23300 if (PyErr_Occurred()) SWIG_fail;
23301 arg3 = (int)SWIG_As_int(obj2);
23302 if (PyErr_Occurred()) SWIG_fail;
23303 {
23304 PyThreadState* __tstate = wxPyBeginAllowThreads();
23305 result = (long)(arg1)->InsertItem(arg2,arg3);
23306
23307 wxPyEndAllowThreads(__tstate);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 }
23310 resultobj = SWIG_From_long((long)result);
23311 return resultobj;
23312 fail:
23313 return NULL;
23314 }
23315
23316
23317 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23318 PyObject *resultobj;
23319 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23320 long arg2 ;
23321 wxString *arg3 = 0 ;
23322 int arg4 ;
23323 long result;
23324 bool temp3 = False ;
23325 PyObject * obj0 = 0 ;
23326 PyObject * obj1 = 0 ;
23327 PyObject * obj2 = 0 ;
23328 PyObject * obj3 = 0 ;
23329 char *kwnames[] = {
23330 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23331 };
23332
23333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23336 arg2 = (long)SWIG_As_long(obj1);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 {
23339 arg3 = wxString_in_helper(obj2);
23340 if (arg3 == NULL) SWIG_fail;
23341 temp3 = True;
23342 }
23343 arg4 = (int)SWIG_As_int(obj3);
23344 if (PyErr_Occurred()) SWIG_fail;
23345 {
23346 PyThreadState* __tstate = wxPyBeginAllowThreads();
23347 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23348
23349 wxPyEndAllowThreads(__tstate);
23350 if (PyErr_Occurred()) SWIG_fail;
23351 }
23352 resultobj = SWIG_From_long((long)result);
23353 {
23354 if (temp3)
23355 delete arg3;
23356 }
23357 return resultobj;
23358 fail:
23359 {
23360 if (temp3)
23361 delete arg3;
23362 }
23363 return NULL;
23364 }
23365
23366
23367 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) {
23368 PyObject *resultobj;
23369 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23370 long arg2 ;
23371 wxListItem *arg3 = 0 ;
23372 long result;
23373 PyObject * obj0 = 0 ;
23374 PyObject * obj1 = 0 ;
23375 PyObject * obj2 = 0 ;
23376 char *kwnames[] = {
23377 (char *) "self",(char *) "col",(char *) "info", NULL
23378 };
23379
23380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23383 arg2 = (long)SWIG_As_long(obj1);
23384 if (PyErr_Occurred()) SWIG_fail;
23385 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23386 SWIG_POINTER_EXCEPTION | 0)) == -1)
23387 SWIG_fail;
23388 if (arg3 == NULL) {
23389 PyErr_SetString(PyExc_TypeError,"null reference");
23390 SWIG_fail;
23391 }
23392 {
23393 PyThreadState* __tstate = wxPyBeginAllowThreads();
23394 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23395
23396 wxPyEndAllowThreads(__tstate);
23397 if (PyErr_Occurred()) SWIG_fail;
23398 }
23399 resultobj = SWIG_From_long((long)result);
23400 return resultobj;
23401 fail:
23402 return NULL;
23403 }
23404
23405
23406 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23407 PyObject *resultobj;
23408 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23409 long arg2 ;
23410 wxString *arg3 = 0 ;
23411 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23412 int arg5 = (int) -1 ;
23413 long result;
23414 bool temp3 = False ;
23415 PyObject * obj0 = 0 ;
23416 PyObject * obj1 = 0 ;
23417 PyObject * obj2 = 0 ;
23418 PyObject * obj3 = 0 ;
23419 PyObject * obj4 = 0 ;
23420 char *kwnames[] = {
23421 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23422 };
23423
23424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23427 arg2 = (long)SWIG_As_long(obj1);
23428 if (PyErr_Occurred()) SWIG_fail;
23429 {
23430 arg3 = wxString_in_helper(obj2);
23431 if (arg3 == NULL) SWIG_fail;
23432 temp3 = True;
23433 }
23434 if (obj3) {
23435 arg4 = (int)SWIG_As_int(obj3);
23436 if (PyErr_Occurred()) SWIG_fail;
23437 }
23438 if (obj4) {
23439 arg5 = (int)SWIG_As_int(obj4);
23440 if (PyErr_Occurred()) SWIG_fail;
23441 }
23442 {
23443 PyThreadState* __tstate = wxPyBeginAllowThreads();
23444 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23445
23446 wxPyEndAllowThreads(__tstate);
23447 if (PyErr_Occurred()) SWIG_fail;
23448 }
23449 resultobj = SWIG_From_long((long)result);
23450 {
23451 if (temp3)
23452 delete arg3;
23453 }
23454 return resultobj;
23455 fail:
23456 {
23457 if (temp3)
23458 delete arg3;
23459 }
23460 return NULL;
23461 }
23462
23463
23464 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
23465 PyObject *resultobj;
23466 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23467 long arg2 ;
23468 PyObject * obj0 = 0 ;
23469 PyObject * obj1 = 0 ;
23470 char *kwnames[] = {
23471 (char *) "self",(char *) "count", NULL
23472 };
23473
23474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23477 arg2 = (long)SWIG_As_long(obj1);
23478 if (PyErr_Occurred()) SWIG_fail;
23479 {
23480 PyThreadState* __tstate = wxPyBeginAllowThreads();
23481 (arg1)->SetItemCount(arg2);
23482
23483 wxPyEndAllowThreads(__tstate);
23484 if (PyErr_Occurred()) SWIG_fail;
23485 }
23486 Py_INCREF(Py_None); resultobj = Py_None;
23487 return resultobj;
23488 fail:
23489 return NULL;
23490 }
23491
23492
23493 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) {
23494 PyObject *resultobj;
23495 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23496 int arg2 ;
23497 int arg3 ;
23498 bool result;
23499 PyObject * obj0 = 0 ;
23500 PyObject * obj1 = 0 ;
23501 PyObject * obj2 = 0 ;
23502 char *kwnames[] = {
23503 (char *) "self",(char *) "dx",(char *) "dy", NULL
23504 };
23505
23506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23509 arg2 = (int)SWIG_As_int(obj1);
23510 if (PyErr_Occurred()) SWIG_fail;
23511 arg3 = (int)SWIG_As_int(obj2);
23512 if (PyErr_Occurred()) SWIG_fail;
23513 {
23514 PyThreadState* __tstate = wxPyBeginAllowThreads();
23515 result = (bool)(arg1)->ScrollList(arg2,arg3);
23516
23517 wxPyEndAllowThreads(__tstate);
23518 if (PyErr_Occurred()) SWIG_fail;
23519 }
23520 {
23521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23522 }
23523 return resultobj;
23524 fail:
23525 return NULL;
23526 }
23527
23528
23529 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23530 PyObject *resultobj;
23531 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23532 long arg2 ;
23533 wxColour *arg3 = 0 ;
23534 wxColour temp3 ;
23535 PyObject * obj0 = 0 ;
23536 PyObject * obj1 = 0 ;
23537 PyObject * obj2 = 0 ;
23538 char *kwnames[] = {
23539 (char *) "self",(char *) "item",(char *) "col", NULL
23540 };
23541
23542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23545 arg2 = (long)SWIG_As_long(obj1);
23546 if (PyErr_Occurred()) SWIG_fail;
23547 {
23548 arg3 = &temp3;
23549 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23550 }
23551 {
23552 PyThreadState* __tstate = wxPyBeginAllowThreads();
23553 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23554
23555 wxPyEndAllowThreads(__tstate);
23556 if (PyErr_Occurred()) SWIG_fail;
23557 }
23558 Py_INCREF(Py_None); resultobj = Py_None;
23559 return resultobj;
23560 fail:
23561 return NULL;
23562 }
23563
23564
23565 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23566 PyObject *resultobj;
23567 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23568 long arg2 ;
23569 wxColour result;
23570 PyObject * obj0 = 0 ;
23571 PyObject * obj1 = 0 ;
23572 char *kwnames[] = {
23573 (char *) "self",(char *) "item", NULL
23574 };
23575
23576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23579 arg2 = (long)SWIG_As_long(obj1);
23580 if (PyErr_Occurred()) SWIG_fail;
23581 {
23582 PyThreadState* __tstate = wxPyBeginAllowThreads();
23583 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23584
23585 wxPyEndAllowThreads(__tstate);
23586 if (PyErr_Occurred()) SWIG_fail;
23587 }
23588 {
23589 wxColour * resultptr;
23590 resultptr = new wxColour((wxColour &) result);
23591 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23592 }
23593 return resultobj;
23594 fail:
23595 return NULL;
23596 }
23597
23598
23599 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
23600 PyObject *resultobj;
23601 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23602 long arg2 ;
23603 wxColour *arg3 = 0 ;
23604 wxColour temp3 ;
23605 PyObject * obj0 = 0 ;
23606 PyObject * obj1 = 0 ;
23607 PyObject * obj2 = 0 ;
23608 char *kwnames[] = {
23609 (char *) "self",(char *) "item",(char *) "col", NULL
23610 };
23611
23612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23615 arg2 = (long)SWIG_As_long(obj1);
23616 if (PyErr_Occurred()) SWIG_fail;
23617 {
23618 arg3 = &temp3;
23619 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23620 }
23621 {
23622 PyThreadState* __tstate = wxPyBeginAllowThreads();
23623 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23624
23625 wxPyEndAllowThreads(__tstate);
23626 if (PyErr_Occurred()) SWIG_fail;
23627 }
23628 Py_INCREF(Py_None); resultobj = Py_None;
23629 return resultobj;
23630 fail:
23631 return NULL;
23632 }
23633
23634
23635 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
23636 PyObject *resultobj;
23637 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23638 long arg2 ;
23639 wxColour result;
23640 PyObject * obj0 = 0 ;
23641 PyObject * obj1 = 0 ;
23642 char *kwnames[] = {
23643 (char *) "self",(char *) "item", NULL
23644 };
23645
23646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23649 arg2 = (long)SWIG_As_long(obj1);
23650 if (PyErr_Occurred()) SWIG_fail;
23651 {
23652 PyThreadState* __tstate = wxPyBeginAllowThreads();
23653 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23654
23655 wxPyEndAllowThreads(__tstate);
23656 if (PyErr_Occurred()) SWIG_fail;
23657 }
23658 {
23659 wxColour * resultptr;
23660 resultptr = new wxColour((wxColour &) result);
23661 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23662 }
23663 return resultobj;
23664 fail:
23665 return NULL;
23666 }
23667
23668
23669 static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) {
23670 PyObject *resultobj;
23671 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23672 PyObject *arg2 = (PyObject *) 0 ;
23673 bool result;
23674 PyObject * obj0 = 0 ;
23675 PyObject * obj1 = 0 ;
23676 char *kwnames[] = {
23677 (char *) "self",(char *) "func", NULL
23678 };
23679
23680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23683 arg2 = obj1;
23684 {
23685 PyThreadState* __tstate = wxPyBeginAllowThreads();
23686 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23687
23688 wxPyEndAllowThreads(__tstate);
23689 if (PyErr_Occurred()) SWIG_fail;
23690 }
23691 {
23692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23693 }
23694 return resultobj;
23695 fail:
23696 return NULL;
23697 }
23698
23699
23700 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) {
23701 PyObject *resultobj;
23702 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23703 wxWindow *result;
23704 PyObject * obj0 = 0 ;
23705 char *kwnames[] = {
23706 (char *) "self", NULL
23707 };
23708
23709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23712 {
23713 PyThreadState* __tstate = wxPyBeginAllowThreads();
23714 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23715
23716 wxPyEndAllowThreads(__tstate);
23717 if (PyErr_Occurred()) SWIG_fail;
23718 }
23719 {
23720 resultobj = wxPyMake_wxObject(result, 0);
23721 }
23722 return resultobj;
23723 fail:
23724 return NULL;
23725 }
23726
23727
23728 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
23729 PyObject *resultobj;
23730 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23731 wxVisualAttributes result;
23732 PyObject * obj0 = 0 ;
23733 char *kwnames[] = {
23734 (char *) "variant", NULL
23735 };
23736
23737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23738 if (obj0) {
23739 arg1 = (int)SWIG_As_int(obj0);
23740 if (PyErr_Occurred()) SWIG_fail;
23741 }
23742 {
23743 if (!wxPyCheckForApp()) SWIG_fail;
23744 PyThreadState* __tstate = wxPyBeginAllowThreads();
23745 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23746
23747 wxPyEndAllowThreads(__tstate);
23748 if (PyErr_Occurred()) SWIG_fail;
23749 }
23750 {
23751 wxVisualAttributes * resultptr;
23752 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23753 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23754 }
23755 return resultobj;
23756 fail:
23757 return NULL;
23758 }
23759
23760
23761 static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) {
23762 PyObject *obj;
23763 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23764 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23765 Py_INCREF(obj);
23766 return Py_BuildValue((char *)"");
23767 }
23768 static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) {
23769 PyObject *resultobj;
23770 wxWindow *arg1 = (wxWindow *) 0 ;
23771 int arg2 = (int) -1 ;
23772 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23773 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23774 wxSize const &arg4_defvalue = wxDefaultSize ;
23775 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23776 long arg5 = (long) wxLC_REPORT ;
23777 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23778 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23779 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23780 wxString *arg7 = (wxString *) &arg7_defvalue ;
23781 wxListView *result;
23782 wxPoint temp3 ;
23783 wxSize temp4 ;
23784 bool temp7 = False ;
23785 PyObject * obj0 = 0 ;
23786 PyObject * obj1 = 0 ;
23787 PyObject * obj2 = 0 ;
23788 PyObject * obj3 = 0 ;
23789 PyObject * obj4 = 0 ;
23790 PyObject * obj5 = 0 ;
23791 PyObject * obj6 = 0 ;
23792 char *kwnames[] = {
23793 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23794 };
23795
23796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23799 if (obj1) {
23800 arg2 = (int)SWIG_As_int(obj1);
23801 if (PyErr_Occurred()) SWIG_fail;
23802 }
23803 if (obj2) {
23804 {
23805 arg3 = &temp3;
23806 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23807 }
23808 }
23809 if (obj3) {
23810 {
23811 arg4 = &temp4;
23812 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23813 }
23814 }
23815 if (obj4) {
23816 arg5 = (long)SWIG_As_long(obj4);
23817 if (PyErr_Occurred()) SWIG_fail;
23818 }
23819 if (obj5) {
23820 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23821 SWIG_POINTER_EXCEPTION | 0)) == -1)
23822 SWIG_fail;
23823 if (arg6 == NULL) {
23824 PyErr_SetString(PyExc_TypeError,"null reference");
23825 SWIG_fail;
23826 }
23827 }
23828 if (obj6) {
23829 {
23830 arg7 = wxString_in_helper(obj6);
23831 if (arg7 == NULL) SWIG_fail;
23832 temp7 = True;
23833 }
23834 }
23835 {
23836 if (!wxPyCheckForApp()) SWIG_fail;
23837 PyThreadState* __tstate = wxPyBeginAllowThreads();
23838 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23839
23840 wxPyEndAllowThreads(__tstate);
23841 if (PyErr_Occurred()) SWIG_fail;
23842 }
23843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23844 {
23845 if (temp7)
23846 delete arg7;
23847 }
23848 return resultobj;
23849 fail:
23850 {
23851 if (temp7)
23852 delete arg7;
23853 }
23854 return NULL;
23855 }
23856
23857
23858 static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) {
23859 PyObject *resultobj;
23860 wxListView *result;
23861 char *kwnames[] = {
23862 NULL
23863 };
23864
23865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23866 {
23867 if (!wxPyCheckForApp()) SWIG_fail;
23868 PyThreadState* __tstate = wxPyBeginAllowThreads();
23869 result = (wxListView *)new wxListView();
23870
23871 wxPyEndAllowThreads(__tstate);
23872 if (PyErr_Occurred()) SWIG_fail;
23873 }
23874 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23875 return resultobj;
23876 fail:
23877 return NULL;
23878 }
23879
23880
23881 static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) {
23882 PyObject *resultobj;
23883 wxListView *arg1 = (wxListView *) 0 ;
23884 wxWindow *arg2 = (wxWindow *) 0 ;
23885 int arg3 = (int) -1 ;
23886 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23887 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23888 wxSize const &arg5_defvalue = wxDefaultSize ;
23889 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23890 long arg6 = (long) wxLC_REPORT ;
23891 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23892 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23893 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
23894 wxString *arg8 = (wxString *) &arg8_defvalue ;
23895 bool result;
23896 wxPoint temp4 ;
23897 wxSize temp5 ;
23898 bool temp8 = False ;
23899 PyObject * obj0 = 0 ;
23900 PyObject * obj1 = 0 ;
23901 PyObject * obj2 = 0 ;
23902 PyObject * obj3 = 0 ;
23903 PyObject * obj4 = 0 ;
23904 PyObject * obj5 = 0 ;
23905 PyObject * obj6 = 0 ;
23906 PyObject * obj7 = 0 ;
23907 char *kwnames[] = {
23908 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23909 };
23910
23911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23914 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23916 if (obj2) {
23917 arg3 = (int)SWIG_As_int(obj2);
23918 if (PyErr_Occurred()) SWIG_fail;
23919 }
23920 if (obj3) {
23921 {
23922 arg4 = &temp4;
23923 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23924 }
23925 }
23926 if (obj4) {
23927 {
23928 arg5 = &temp5;
23929 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23930 }
23931 }
23932 if (obj5) {
23933 arg6 = (long)SWIG_As_long(obj5);
23934 if (PyErr_Occurred()) SWIG_fail;
23935 }
23936 if (obj6) {
23937 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23938 SWIG_POINTER_EXCEPTION | 0)) == -1)
23939 SWIG_fail;
23940 if (arg7 == NULL) {
23941 PyErr_SetString(PyExc_TypeError,"null reference");
23942 SWIG_fail;
23943 }
23944 }
23945 if (obj7) {
23946 {
23947 arg8 = wxString_in_helper(obj7);
23948 if (arg8 == NULL) SWIG_fail;
23949 temp8 = True;
23950 }
23951 }
23952 {
23953 PyThreadState* __tstate = wxPyBeginAllowThreads();
23954 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23955
23956 wxPyEndAllowThreads(__tstate);
23957 if (PyErr_Occurred()) SWIG_fail;
23958 }
23959 {
23960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23961 }
23962 {
23963 if (temp8)
23964 delete arg8;
23965 }
23966 return resultobj;
23967 fail:
23968 {
23969 if (temp8)
23970 delete arg8;
23971 }
23972 return NULL;
23973 }
23974
23975
23976 static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) {
23977 PyObject *resultobj;
23978 wxListView *arg1 = (wxListView *) 0 ;
23979 long arg2 ;
23980 bool arg3 = (bool) True ;
23981 PyObject * obj0 = 0 ;
23982 PyObject * obj1 = 0 ;
23983 PyObject * obj2 = 0 ;
23984 char *kwnames[] = {
23985 (char *) "self",(char *) "n",(char *) "on", NULL
23986 };
23987
23988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
23989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23991 arg2 = (long)SWIG_As_long(obj1);
23992 if (PyErr_Occurred()) SWIG_fail;
23993 if (obj2) {
23994 arg3 = (bool)SWIG_As_bool(obj2);
23995 if (PyErr_Occurred()) SWIG_fail;
23996 }
23997 {
23998 PyThreadState* __tstate = wxPyBeginAllowThreads();
23999 (arg1)->Select(arg2,arg3);
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_Focus(PyObject *, PyObject *args, PyObject *kwargs) {
24012 PyObject *resultobj;
24013 wxListView *arg1 = (wxListView *) 0 ;
24014 long arg2 ;
24015 PyObject * obj0 = 0 ;
24016 PyObject * obj1 = 0 ;
24017 char *kwnames[] = {
24018 (char *) "self",(char *) "index", NULL
24019 };
24020
24021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
24022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24024 arg2 = (long)SWIG_As_long(obj1);
24025 if (PyErr_Occurred()) SWIG_fail;
24026 {
24027 PyThreadState* __tstate = wxPyBeginAllowThreads();
24028 (arg1)->Focus(arg2);
24029
24030 wxPyEndAllowThreads(__tstate);
24031 if (PyErr_Occurred()) SWIG_fail;
24032 }
24033 Py_INCREF(Py_None); resultobj = Py_None;
24034 return resultobj;
24035 fail:
24036 return NULL;
24037 }
24038
24039
24040 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) {
24041 PyObject *resultobj;
24042 wxListView *arg1 = (wxListView *) 0 ;
24043 long result;
24044 PyObject * obj0 = 0 ;
24045 char *kwnames[] = {
24046 (char *) "self", NULL
24047 };
24048
24049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
24050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24052 {
24053 PyThreadState* __tstate = wxPyBeginAllowThreads();
24054 result = (long)((wxListView const *)arg1)->GetFocusedItem();
24055
24056 wxPyEndAllowThreads(__tstate);
24057 if (PyErr_Occurred()) SWIG_fail;
24058 }
24059 resultobj = SWIG_From_long((long)result);
24060 return resultobj;
24061 fail:
24062 return NULL;
24063 }
24064
24065
24066 static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24067 PyObject *resultobj;
24068 wxListView *arg1 = (wxListView *) 0 ;
24069 long arg2 ;
24070 long result;
24071 PyObject * obj0 = 0 ;
24072 PyObject * obj1 = 0 ;
24073 char *kwnames[] = {
24074 (char *) "self",(char *) "item", NULL
24075 };
24076
24077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
24078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24080 arg2 = (long)SWIG_As_long(obj1);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 {
24083 PyThreadState* __tstate = wxPyBeginAllowThreads();
24084 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
24085
24086 wxPyEndAllowThreads(__tstate);
24087 if (PyErr_Occurred()) SWIG_fail;
24088 }
24089 resultobj = SWIG_From_long((long)result);
24090 return resultobj;
24091 fail:
24092 return NULL;
24093 }
24094
24095
24096 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24097 PyObject *resultobj;
24098 wxListView *arg1 = (wxListView *) 0 ;
24099 long result;
24100 PyObject * obj0 = 0 ;
24101 char *kwnames[] = {
24102 (char *) "self", NULL
24103 };
24104
24105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
24106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24108 {
24109 PyThreadState* __tstate = wxPyBeginAllowThreads();
24110 result = (long)((wxListView const *)arg1)->GetFirstSelected();
24111
24112 wxPyEndAllowThreads(__tstate);
24113 if (PyErr_Occurred()) SWIG_fail;
24114 }
24115 resultobj = SWIG_From_long((long)result);
24116 return resultobj;
24117 fail:
24118 return NULL;
24119 }
24120
24121
24122 static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24123 PyObject *resultobj;
24124 wxListView *arg1 = (wxListView *) 0 ;
24125 long arg2 ;
24126 bool result;
24127 PyObject * obj0 = 0 ;
24128 PyObject * obj1 = 0 ;
24129 char *kwnames[] = {
24130 (char *) "self",(char *) "index", NULL
24131 };
24132
24133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24136 arg2 = (long)SWIG_As_long(obj1);
24137 if (PyErr_Occurred()) SWIG_fail;
24138 {
24139 PyThreadState* __tstate = wxPyBeginAllowThreads();
24140 result = (bool)(arg1)->IsSelected(arg2);
24141
24142 wxPyEndAllowThreads(__tstate);
24143 if (PyErr_Occurred()) SWIG_fail;
24144 }
24145 {
24146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24147 }
24148 return resultobj;
24149 fail:
24150 return NULL;
24151 }
24152
24153
24154 static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24155 PyObject *resultobj;
24156 wxListView *arg1 = (wxListView *) 0 ;
24157 int arg2 ;
24158 int arg3 ;
24159 PyObject * obj0 = 0 ;
24160 PyObject * obj1 = 0 ;
24161 PyObject * obj2 = 0 ;
24162 char *kwnames[] = {
24163 (char *) "self",(char *) "col",(char *) "image", NULL
24164 };
24165
24166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24169 arg2 = (int)SWIG_As_int(obj1);
24170 if (PyErr_Occurred()) SWIG_fail;
24171 arg3 = (int)SWIG_As_int(obj2);
24172 if (PyErr_Occurred()) SWIG_fail;
24173 {
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 (arg1)->SetColumnImage(arg2,arg3);
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 *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24188 PyObject *resultobj;
24189 wxListView *arg1 = (wxListView *) 0 ;
24190 int arg2 ;
24191 PyObject * obj0 = 0 ;
24192 PyObject * obj1 = 0 ;
24193 char *kwnames[] = {
24194 (char *) "self",(char *) "col", NULL
24195 };
24196
24197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24200 arg2 = (int)SWIG_As_int(obj1);
24201 if (PyErr_Occurred()) SWIG_fail;
24202 {
24203 PyThreadState* __tstate = wxPyBeginAllowThreads();
24204 (arg1)->ClearColumnImage(arg2);
24205
24206 wxPyEndAllowThreads(__tstate);
24207 if (PyErr_Occurred()) SWIG_fail;
24208 }
24209 Py_INCREF(Py_None); resultobj = Py_None;
24210 return resultobj;
24211 fail:
24212 return NULL;
24213 }
24214
24215
24216 static PyObject * ListView_swigregister(PyObject *, PyObject *args) {
24217 PyObject *obj;
24218 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24219 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24220 Py_INCREF(obj);
24221 return Py_BuildValue((char *)"");
24222 }
24223 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
24224 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24225 return 1;
24226 }
24227
24228
24229 static PyObject *_wrap_TreeCtrlNameStr_get() {
24230 PyObject *pyobj;
24231
24232 {
24233 #if wxUSE_UNICODE
24234 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24235 #else
24236 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24237 #endif
24238 }
24239 return pyobj;
24240 }
24241
24242
24243 static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24244 PyObject *resultobj;
24245 wxTreeItemId *result;
24246 char *kwnames[] = {
24247 NULL
24248 };
24249
24250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24251 {
24252 PyThreadState* __tstate = wxPyBeginAllowThreads();
24253 result = (wxTreeItemId *)new wxTreeItemId();
24254
24255 wxPyEndAllowThreads(__tstate);
24256 if (PyErr_Occurred()) SWIG_fail;
24257 }
24258 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24259 return resultobj;
24260 fail:
24261 return NULL;
24262 }
24263
24264
24265 static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24266 PyObject *resultobj;
24267 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24268 PyObject * obj0 = 0 ;
24269 char *kwnames[] = {
24270 (char *) "self", NULL
24271 };
24272
24273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24276 {
24277 PyThreadState* __tstate = wxPyBeginAllowThreads();
24278 delete arg1;
24279
24280 wxPyEndAllowThreads(__tstate);
24281 if (PyErr_Occurred()) SWIG_fail;
24282 }
24283 Py_INCREF(Py_None); resultobj = Py_None;
24284 return resultobj;
24285 fail:
24286 return NULL;
24287 }
24288
24289
24290 static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
24291 PyObject *resultobj;
24292 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24293 bool result;
24294 PyObject * obj0 = 0 ;
24295 char *kwnames[] = {
24296 (char *) "self", NULL
24297 };
24298
24299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24302 {
24303 PyThreadState* __tstate = wxPyBeginAllowThreads();
24304 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24305
24306 wxPyEndAllowThreads(__tstate);
24307 if (PyErr_Occurred()) SWIG_fail;
24308 }
24309 {
24310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24311 }
24312 return resultobj;
24313 fail:
24314 return NULL;
24315 }
24316
24317
24318 static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24319 PyObject *resultobj;
24320 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24321 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24322 bool result;
24323 PyObject * obj0 = 0 ;
24324 PyObject * obj1 = 0 ;
24325 char *kwnames[] = {
24326 (char *) "self",(char *) "other", NULL
24327 };
24328
24329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24332 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24334 {
24335 PyThreadState* __tstate = wxPyBeginAllowThreads();
24336 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24337
24338 wxPyEndAllowThreads(__tstate);
24339 if (PyErr_Occurred()) SWIG_fail;
24340 }
24341 {
24342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24343 }
24344 return resultobj;
24345 fail:
24346 return NULL;
24347 }
24348
24349
24350 static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24351 PyObject *resultobj;
24352 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24353 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24354 bool result;
24355 PyObject * obj0 = 0 ;
24356 PyObject * obj1 = 0 ;
24357 char *kwnames[] = {
24358 (char *) "self",(char *) "other", NULL
24359 };
24360
24361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24366 {
24367 PyThreadState* __tstate = wxPyBeginAllowThreads();
24368 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24369
24370 wxPyEndAllowThreads(__tstate);
24371 if (PyErr_Occurred()) SWIG_fail;
24372 }
24373 {
24374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24375 }
24376 return resultobj;
24377 fail:
24378 return NULL;
24379 }
24380
24381
24382 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) {
24383 PyObject *resultobj;
24384 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24385 void *arg2 = (void *) 0 ;
24386 PyObject * obj0 = 0 ;
24387 PyObject * obj1 = 0 ;
24388 char *kwnames[] = {
24389 (char *) "self",(char *) "m_pItem", NULL
24390 };
24391
24392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24395 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24396 if (arg1) (arg1)->m_pItem = arg2;
24397
24398 Py_INCREF(Py_None); resultobj = Py_None;
24399 return resultobj;
24400 fail:
24401 return NULL;
24402 }
24403
24404
24405 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) {
24406 PyObject *resultobj;
24407 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24408 void *result;
24409 PyObject * obj0 = 0 ;
24410 char *kwnames[] = {
24411 (char *) "self", NULL
24412 };
24413
24414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24417 result = (void *) ((arg1)->m_pItem);
24418
24419 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24420 return resultobj;
24421 fail:
24422 return NULL;
24423 }
24424
24425
24426 static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) {
24427 PyObject *obj;
24428 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24429 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24430 Py_INCREF(obj);
24431 return Py_BuildValue((char *)"");
24432 }
24433 static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) {
24434 PyObject *resultobj;
24435 PyObject *arg1 = (PyObject *) NULL ;
24436 wxPyTreeItemData *result;
24437 PyObject * obj0 = 0 ;
24438 char *kwnames[] = {
24439 (char *) "obj", NULL
24440 };
24441
24442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24443 if (obj0) {
24444 arg1 = obj0;
24445 }
24446 {
24447 PyThreadState* __tstate = wxPyBeginAllowThreads();
24448 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24449
24450 wxPyEndAllowThreads(__tstate);
24451 if (PyErr_Occurred()) SWIG_fail;
24452 }
24453 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24454 return resultobj;
24455 fail:
24456 return NULL;
24457 }
24458
24459
24460 static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
24461 PyObject *resultobj;
24462 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24463 PyObject *result;
24464 PyObject * obj0 = 0 ;
24465 char *kwnames[] = {
24466 (char *) "self", NULL
24467 };
24468
24469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24472 {
24473 PyThreadState* __tstate = wxPyBeginAllowThreads();
24474 result = (PyObject *)(arg1)->GetData();
24475
24476 wxPyEndAllowThreads(__tstate);
24477 if (PyErr_Occurred()) SWIG_fail;
24478 }
24479 resultobj = result;
24480 return resultobj;
24481 fail:
24482 return NULL;
24483 }
24484
24485
24486 static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24487 PyObject *resultobj;
24488 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24489 PyObject *arg2 = (PyObject *) 0 ;
24490 PyObject * obj0 = 0 ;
24491 PyObject * obj1 = 0 ;
24492 char *kwnames[] = {
24493 (char *) "self",(char *) "obj", NULL
24494 };
24495
24496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24499 arg2 = obj1;
24500 {
24501 PyThreadState* __tstate = wxPyBeginAllowThreads();
24502 (arg1)->SetData(arg2);
24503
24504 wxPyEndAllowThreads(__tstate);
24505 if (PyErr_Occurred()) SWIG_fail;
24506 }
24507 Py_INCREF(Py_None); resultobj = Py_None;
24508 return resultobj;
24509 fail:
24510 return NULL;
24511 }
24512
24513
24514 static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24515 PyObject *resultobj;
24516 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24517 wxTreeItemId *result;
24518 PyObject * obj0 = 0 ;
24519 char *kwnames[] = {
24520 (char *) "self", NULL
24521 };
24522
24523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24526 {
24527 PyThreadState* __tstate = wxPyBeginAllowThreads();
24528 {
24529 wxTreeItemId const &_result_ref = (arg1)->GetId();
24530 result = (wxTreeItemId *) &_result_ref;
24531 }
24532
24533 wxPyEndAllowThreads(__tstate);
24534 if (PyErr_Occurred()) SWIG_fail;
24535 }
24536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24537 return resultobj;
24538 fail:
24539 return NULL;
24540 }
24541
24542
24543 static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24544 PyObject *resultobj;
24545 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24546 wxTreeItemId *arg2 = 0 ;
24547 PyObject * obj0 = 0 ;
24548 PyObject * obj1 = 0 ;
24549 char *kwnames[] = {
24550 (char *) "self",(char *) "id", NULL
24551 };
24552
24553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24557 SWIG_POINTER_EXCEPTION | 0)) == -1)
24558 SWIG_fail;
24559 if (arg2 == NULL) {
24560 PyErr_SetString(PyExc_TypeError,"null reference");
24561 SWIG_fail;
24562 }
24563 {
24564 PyThreadState* __tstate = wxPyBeginAllowThreads();
24565 (arg1)->SetId((wxTreeItemId const &)*arg2);
24566
24567 wxPyEndAllowThreads(__tstate);
24568 if (PyErr_Occurred()) SWIG_fail;
24569 }
24570 Py_INCREF(Py_None); resultobj = Py_None;
24571 return resultobj;
24572 fail:
24573 return NULL;
24574 }
24575
24576
24577 static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
24578 PyObject *resultobj;
24579 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24580 PyObject * obj0 = 0 ;
24581 char *kwnames[] = {
24582 (char *) "self", NULL
24583 };
24584
24585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24588 {
24589 PyThreadState* __tstate = wxPyBeginAllowThreads();
24590 wxPyTreeItemData_Destroy(arg1);
24591
24592 wxPyEndAllowThreads(__tstate);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 }
24595 Py_INCREF(Py_None); resultobj = Py_None;
24596 return resultobj;
24597 fail:
24598 return NULL;
24599 }
24600
24601
24602 static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) {
24603 PyObject *obj;
24604 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24605 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24606 Py_INCREF(obj);
24607 return Py_BuildValue((char *)"");
24608 }
24609 static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24610 PyObject *resultobj;
24611 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24612 int arg2 = (int) 0 ;
24613 wxTreeEvent *result;
24614 PyObject * obj0 = 0 ;
24615 PyObject * obj1 = 0 ;
24616 char *kwnames[] = {
24617 (char *) "commandType",(char *) "id", NULL
24618 };
24619
24620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24621 if (obj0) {
24622 arg1 = (wxEventType)SWIG_As_int(obj0);
24623 if (PyErr_Occurred()) SWIG_fail;
24624 }
24625 if (obj1) {
24626 arg2 = (int)SWIG_As_int(obj1);
24627 if (PyErr_Occurred()) SWIG_fail;
24628 }
24629 {
24630 PyThreadState* __tstate = wxPyBeginAllowThreads();
24631 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24632
24633 wxPyEndAllowThreads(__tstate);
24634 if (PyErr_Occurred()) SWIG_fail;
24635 }
24636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24637 return resultobj;
24638 fail:
24639 return NULL;
24640 }
24641
24642
24643 static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
24644 PyObject *resultobj;
24645 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24646 wxTreeItemId result;
24647 PyObject * obj0 = 0 ;
24648 char *kwnames[] = {
24649 (char *) "self", NULL
24650 };
24651
24652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24655 {
24656 PyThreadState* __tstate = wxPyBeginAllowThreads();
24657 result = ((wxTreeEvent const *)arg1)->GetItem();
24658
24659 wxPyEndAllowThreads(__tstate);
24660 if (PyErr_Occurred()) SWIG_fail;
24661 }
24662 {
24663 wxTreeItemId * resultptr;
24664 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24665 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24666 }
24667 return resultobj;
24668 fail:
24669 return NULL;
24670 }
24671
24672
24673 static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
24674 PyObject *resultobj;
24675 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24676 wxTreeItemId *arg2 = 0 ;
24677 PyObject * obj0 = 0 ;
24678 PyObject * obj1 = 0 ;
24679 char *kwnames[] = {
24680 (char *) "self",(char *) "item", NULL
24681 };
24682
24683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24686 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24687 SWIG_POINTER_EXCEPTION | 0)) == -1)
24688 SWIG_fail;
24689 if (arg2 == NULL) {
24690 PyErr_SetString(PyExc_TypeError,"null reference");
24691 SWIG_fail;
24692 }
24693 {
24694 PyThreadState* __tstate = wxPyBeginAllowThreads();
24695 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24696
24697 wxPyEndAllowThreads(__tstate);
24698 if (PyErr_Occurred()) SWIG_fail;
24699 }
24700 Py_INCREF(Py_None); resultobj = Py_None;
24701 return resultobj;
24702 fail:
24703 return NULL;
24704 }
24705
24706
24707 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
24708 PyObject *resultobj;
24709 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24710 wxTreeItemId result;
24711 PyObject * obj0 = 0 ;
24712 char *kwnames[] = {
24713 (char *) "self", NULL
24714 };
24715
24716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24719 {
24720 PyThreadState* __tstate = wxPyBeginAllowThreads();
24721 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24722
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 {
24727 wxTreeItemId * resultptr;
24728 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24729 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24730 }
24731 return resultobj;
24732 fail:
24733 return NULL;
24734 }
24735
24736
24737 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
24738 PyObject *resultobj;
24739 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24740 wxTreeItemId *arg2 = 0 ;
24741 PyObject * obj0 = 0 ;
24742 PyObject * obj1 = 0 ;
24743 char *kwnames[] = {
24744 (char *) "self",(char *) "item", NULL
24745 };
24746
24747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24750 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24751 SWIG_POINTER_EXCEPTION | 0)) == -1)
24752 SWIG_fail;
24753 if (arg2 == NULL) {
24754 PyErr_SetString(PyExc_TypeError,"null reference");
24755 SWIG_fail;
24756 }
24757 {
24758 PyThreadState* __tstate = wxPyBeginAllowThreads();
24759 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24760
24761 wxPyEndAllowThreads(__tstate);
24762 if (PyErr_Occurred()) SWIG_fail;
24763 }
24764 Py_INCREF(Py_None); resultobj = Py_None;
24765 return resultobj;
24766 fail:
24767 return NULL;
24768 }
24769
24770
24771 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
24772 PyObject *resultobj;
24773 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24774 wxPoint result;
24775 PyObject * obj0 = 0 ;
24776 char *kwnames[] = {
24777 (char *) "self", NULL
24778 };
24779
24780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24783 {
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 result = ((wxTreeEvent const *)arg1)->GetPoint();
24786
24787 wxPyEndAllowThreads(__tstate);
24788 if (PyErr_Occurred()) SWIG_fail;
24789 }
24790 {
24791 wxPoint * resultptr;
24792 resultptr = new wxPoint((wxPoint &) result);
24793 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24794 }
24795 return resultobj;
24796 fail:
24797 return NULL;
24798 }
24799
24800
24801 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
24802 PyObject *resultobj;
24803 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24804 wxPoint *arg2 = 0 ;
24805 wxPoint temp2 ;
24806 PyObject * obj0 = 0 ;
24807 PyObject * obj1 = 0 ;
24808 char *kwnames[] = {
24809 (char *) "self",(char *) "pt", NULL
24810 };
24811
24812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24815 {
24816 arg2 = &temp2;
24817 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24818 }
24819 {
24820 PyThreadState* __tstate = wxPyBeginAllowThreads();
24821 (arg1)->SetPoint((wxPoint const &)*arg2);
24822
24823 wxPyEndAllowThreads(__tstate);
24824 if (PyErr_Occurred()) SWIG_fail;
24825 }
24826 Py_INCREF(Py_None); resultobj = Py_None;
24827 return resultobj;
24828 fail:
24829 return NULL;
24830 }
24831
24832
24833 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24834 PyObject *resultobj;
24835 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24836 wxKeyEvent *result;
24837 PyObject * obj0 = 0 ;
24838 char *kwnames[] = {
24839 (char *) "self", NULL
24840 };
24841
24842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",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 {
24848 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24849 result = (wxKeyEvent *) &_result_ref;
24850 }
24851
24852 wxPyEndAllowThreads(__tstate);
24853 if (PyErr_Occurred()) SWIG_fail;
24854 }
24855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24856 return resultobj;
24857 fail:
24858 return NULL;
24859 }
24860
24861
24862 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
24863 PyObject *resultobj;
24864 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24865 int result;
24866 PyObject * obj0 = 0 ;
24867 char *kwnames[] = {
24868 (char *) "self", NULL
24869 };
24870
24871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24874 {
24875 PyThreadState* __tstate = wxPyBeginAllowThreads();
24876 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
24877
24878 wxPyEndAllowThreads(__tstate);
24879 if (PyErr_Occurred()) SWIG_fail;
24880 }
24881 resultobj = SWIG_From_int((int)result);
24882 return resultobj;
24883 fail:
24884 return NULL;
24885 }
24886
24887
24888 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24889 PyObject *resultobj;
24890 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24891 wxKeyEvent *arg2 = 0 ;
24892 PyObject * obj0 = 0 ;
24893 PyObject * obj1 = 0 ;
24894 char *kwnames[] = {
24895 (char *) "self",(char *) "evt", NULL
24896 };
24897
24898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
24899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24901 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
24902 SWIG_POINTER_EXCEPTION | 0)) == -1)
24903 SWIG_fail;
24904 if (arg2 == NULL) {
24905 PyErr_SetString(PyExc_TypeError,"null reference");
24906 SWIG_fail;
24907 }
24908 {
24909 PyThreadState* __tstate = wxPyBeginAllowThreads();
24910 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
24911
24912 wxPyEndAllowThreads(__tstate);
24913 if (PyErr_Occurred()) SWIG_fail;
24914 }
24915 Py_INCREF(Py_None); resultobj = Py_None;
24916 return resultobj;
24917 fail:
24918 return NULL;
24919 }
24920
24921
24922 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
24923 PyObject *resultobj;
24924 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24925 wxString *result;
24926 PyObject * obj0 = 0 ;
24927 char *kwnames[] = {
24928 (char *) "self", NULL
24929 };
24930
24931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
24932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24934 {
24935 PyThreadState* __tstate = wxPyBeginAllowThreads();
24936 {
24937 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
24938 result = (wxString *) &_result_ref;
24939 }
24940
24941 wxPyEndAllowThreads(__tstate);
24942 if (PyErr_Occurred()) SWIG_fail;
24943 }
24944 {
24945 #if wxUSE_UNICODE
24946 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24947 #else
24948 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24949 #endif
24950 }
24951 return resultobj;
24952 fail:
24953 return NULL;
24954 }
24955
24956
24957 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
24958 PyObject *resultobj;
24959 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24960 wxString *arg2 = 0 ;
24961 bool temp2 = False ;
24962 PyObject * obj0 = 0 ;
24963 PyObject * obj1 = 0 ;
24964 char *kwnames[] = {
24965 (char *) "self",(char *) "label", NULL
24966 };
24967
24968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
24969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24971 {
24972 arg2 = wxString_in_helper(obj1);
24973 if (arg2 == NULL) SWIG_fail;
24974 temp2 = True;
24975 }
24976 {
24977 PyThreadState* __tstate = wxPyBeginAllowThreads();
24978 (arg1)->SetLabel((wxString const &)*arg2);
24979
24980 wxPyEndAllowThreads(__tstate);
24981 if (PyErr_Occurred()) SWIG_fail;
24982 }
24983 Py_INCREF(Py_None); resultobj = Py_None;
24984 {
24985 if (temp2)
24986 delete arg2;
24987 }
24988 return resultobj;
24989 fail:
24990 {
24991 if (temp2)
24992 delete arg2;
24993 }
24994 return NULL;
24995 }
24996
24997
24998 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
24999 PyObject *resultobj;
25000 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25001 bool result;
25002 PyObject * obj0 = 0 ;
25003 char *kwnames[] = {
25004 (char *) "self", NULL
25005 };
25006
25007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
25008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25010 {
25011 PyThreadState* __tstate = wxPyBeginAllowThreads();
25012 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
25013
25014 wxPyEndAllowThreads(__tstate);
25015 if (PyErr_Occurred()) SWIG_fail;
25016 }
25017 {
25018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25019 }
25020 return resultobj;
25021 fail:
25022 return NULL;
25023 }
25024
25025
25026 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
25027 PyObject *resultobj;
25028 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25029 bool arg2 ;
25030 PyObject * obj0 = 0 ;
25031 PyObject * obj1 = 0 ;
25032 char *kwnames[] = {
25033 (char *) "self",(char *) "editCancelled", NULL
25034 };
25035
25036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
25037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25039 arg2 = (bool)SWIG_As_bool(obj1);
25040 if (PyErr_Occurred()) SWIG_fail;
25041 {
25042 PyThreadState* __tstate = wxPyBeginAllowThreads();
25043 (arg1)->SetEditCanceled(arg2);
25044
25045 wxPyEndAllowThreads(__tstate);
25046 if (PyErr_Occurred()) SWIG_fail;
25047 }
25048 Py_INCREF(Py_None); resultobj = Py_None;
25049 return resultobj;
25050 fail:
25051 return NULL;
25052 }
25053
25054
25055 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
25056 PyObject *resultobj;
25057 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25058 wxString *arg2 = 0 ;
25059 bool temp2 = False ;
25060 PyObject * obj0 = 0 ;
25061 PyObject * obj1 = 0 ;
25062 char *kwnames[] = {
25063 (char *) "self",(char *) "toolTip", NULL
25064 };
25065
25066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
25067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25069 {
25070 arg2 = wxString_in_helper(obj1);
25071 if (arg2 == NULL) SWIG_fail;
25072 temp2 = True;
25073 }
25074 {
25075 PyThreadState* __tstate = wxPyBeginAllowThreads();
25076 (arg1)->SetToolTip((wxString const &)*arg2);
25077
25078 wxPyEndAllowThreads(__tstate);
25079 if (PyErr_Occurred()) SWIG_fail;
25080 }
25081 Py_INCREF(Py_None); resultobj = Py_None;
25082 {
25083 if (temp2)
25084 delete arg2;
25085 }
25086 return resultobj;
25087 fail:
25088 {
25089 if (temp2)
25090 delete arg2;
25091 }
25092 return NULL;
25093 }
25094
25095
25096 static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) {
25097 PyObject *obj;
25098 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25099 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
25100 Py_INCREF(obj);
25101 return Py_BuildValue((char *)"");
25102 }
25103 static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25104 PyObject *resultobj;
25105 wxWindow *arg1 = (wxWindow *) 0 ;
25106 int arg2 = (int) -1 ;
25107 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25108 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25109 wxSize const &arg4_defvalue = wxDefaultSize ;
25110 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25111 long arg5 = (long) wxTR_DEFAULT_STYLE ;
25112 wxValidator const &arg6_defvalue = wxDefaultValidator ;
25113 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
25114 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
25115 wxString *arg7 = (wxString *) &arg7_defvalue ;
25116 wxPyTreeCtrl *result;
25117 wxPoint temp3 ;
25118 wxSize temp4 ;
25119 bool temp7 = False ;
25120 PyObject * obj0 = 0 ;
25121 PyObject * obj1 = 0 ;
25122 PyObject * obj2 = 0 ;
25123 PyObject * obj3 = 0 ;
25124 PyObject * obj4 = 0 ;
25125 PyObject * obj5 = 0 ;
25126 PyObject * obj6 = 0 ;
25127 char *kwnames[] = {
25128 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25129 };
25130
25131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25134 if (obj1) {
25135 arg2 = (int)SWIG_As_int(obj1);
25136 if (PyErr_Occurred()) SWIG_fail;
25137 }
25138 if (obj2) {
25139 {
25140 arg3 = &temp3;
25141 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25142 }
25143 }
25144 if (obj3) {
25145 {
25146 arg4 = &temp4;
25147 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25148 }
25149 }
25150 if (obj4) {
25151 arg5 = (long)SWIG_As_long(obj4);
25152 if (PyErr_Occurred()) SWIG_fail;
25153 }
25154 if (obj5) {
25155 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
25156 SWIG_POINTER_EXCEPTION | 0)) == -1)
25157 SWIG_fail;
25158 if (arg6 == NULL) {
25159 PyErr_SetString(PyExc_TypeError,"null reference");
25160 SWIG_fail;
25161 }
25162 }
25163 if (obj6) {
25164 {
25165 arg7 = wxString_in_helper(obj6);
25166 if (arg7 == NULL) SWIG_fail;
25167 temp7 = True;
25168 }
25169 }
25170 {
25171 if (!wxPyCheckForApp()) SWIG_fail;
25172 PyThreadState* __tstate = wxPyBeginAllowThreads();
25173 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
25174
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25179 {
25180 if (temp7)
25181 delete arg7;
25182 }
25183 return resultobj;
25184 fail:
25185 {
25186 if (temp7)
25187 delete arg7;
25188 }
25189 return NULL;
25190 }
25191
25192
25193 static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25194 PyObject *resultobj;
25195 wxPyTreeCtrl *result;
25196 char *kwnames[] = {
25197 NULL
25198 };
25199
25200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25201 {
25202 if (!wxPyCheckForApp()) SWIG_fail;
25203 PyThreadState* __tstate = wxPyBeginAllowThreads();
25204 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25205
25206 wxPyEndAllowThreads(__tstate);
25207 if (PyErr_Occurred()) SWIG_fail;
25208 }
25209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25210 return resultobj;
25211 fail:
25212 return NULL;
25213 }
25214
25215
25216 static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
25217 PyObject *resultobj;
25218 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25219 wxWindow *arg2 = (wxWindow *) 0 ;
25220 int arg3 = (int) -1 ;
25221 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25222 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25223 wxSize const &arg5_defvalue = wxDefaultSize ;
25224 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25225 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25226 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25227 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25228 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25229 wxString *arg8 = (wxString *) &arg8_defvalue ;
25230 bool result;
25231 wxPoint temp4 ;
25232 wxSize temp5 ;
25233 bool temp8 = False ;
25234 PyObject * obj0 = 0 ;
25235 PyObject * obj1 = 0 ;
25236 PyObject * obj2 = 0 ;
25237 PyObject * obj3 = 0 ;
25238 PyObject * obj4 = 0 ;
25239 PyObject * obj5 = 0 ;
25240 PyObject * obj6 = 0 ;
25241 PyObject * obj7 = 0 ;
25242 char *kwnames[] = {
25243 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25244 };
25245
25246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25249 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25251 if (obj2) {
25252 arg3 = (int)SWIG_As_int(obj2);
25253 if (PyErr_Occurred()) SWIG_fail;
25254 }
25255 if (obj3) {
25256 {
25257 arg4 = &temp4;
25258 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25259 }
25260 }
25261 if (obj4) {
25262 {
25263 arg5 = &temp5;
25264 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25265 }
25266 }
25267 if (obj5) {
25268 arg6 = (long)SWIG_As_long(obj5);
25269 if (PyErr_Occurred()) SWIG_fail;
25270 }
25271 if (obj6) {
25272 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25273 SWIG_POINTER_EXCEPTION | 0)) == -1)
25274 SWIG_fail;
25275 if (arg7 == NULL) {
25276 PyErr_SetString(PyExc_TypeError,"null reference");
25277 SWIG_fail;
25278 }
25279 }
25280 if (obj7) {
25281 {
25282 arg8 = wxString_in_helper(obj7);
25283 if (arg8 == NULL) SWIG_fail;
25284 temp8 = True;
25285 }
25286 }
25287 {
25288 PyThreadState* __tstate = wxPyBeginAllowThreads();
25289 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25290
25291 wxPyEndAllowThreads(__tstate);
25292 if (PyErr_Occurred()) SWIG_fail;
25293 }
25294 {
25295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25296 }
25297 {
25298 if (temp8)
25299 delete arg8;
25300 }
25301 return resultobj;
25302 fail:
25303 {
25304 if (temp8)
25305 delete arg8;
25306 }
25307 return NULL;
25308 }
25309
25310
25311 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25312 PyObject *resultobj;
25313 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25314 PyObject *arg2 = (PyObject *) 0 ;
25315 PyObject *arg3 = (PyObject *) 0 ;
25316 PyObject * obj0 = 0 ;
25317 PyObject * obj1 = 0 ;
25318 PyObject * obj2 = 0 ;
25319 char *kwnames[] = {
25320 (char *) "self",(char *) "self",(char *) "_class", NULL
25321 };
25322
25323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25326 arg2 = obj1;
25327 arg3 = obj2;
25328 {
25329 PyThreadState* __tstate = wxPyBeginAllowThreads();
25330 (arg1)->_setCallbackInfo(arg2,arg3);
25331
25332 wxPyEndAllowThreads(__tstate);
25333 if (PyErr_Occurred()) SWIG_fail;
25334 }
25335 Py_INCREF(Py_None); resultobj = Py_None;
25336 return resultobj;
25337 fail:
25338 return NULL;
25339 }
25340
25341
25342 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
25343 PyObject *resultobj;
25344 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25345 size_t result;
25346 PyObject * obj0 = 0 ;
25347 char *kwnames[] = {
25348 (char *) "self", NULL
25349 };
25350
25351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25354 {
25355 PyThreadState* __tstate = wxPyBeginAllowThreads();
25356 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25357
25358 wxPyEndAllowThreads(__tstate);
25359 if (PyErr_Occurred()) SWIG_fail;
25360 }
25361 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25362 return resultobj;
25363 fail:
25364 return NULL;
25365 }
25366
25367
25368 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25369 PyObject *resultobj;
25370 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25371 unsigned int result;
25372 PyObject * obj0 = 0 ;
25373 char *kwnames[] = {
25374 (char *) "self", NULL
25375 };
25376
25377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25380 {
25381 PyThreadState* __tstate = wxPyBeginAllowThreads();
25382 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25383
25384 wxPyEndAllowThreads(__tstate);
25385 if (PyErr_Occurred()) SWIG_fail;
25386 }
25387 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25388 return resultobj;
25389 fail:
25390 return NULL;
25391 }
25392
25393
25394 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25395 PyObject *resultobj;
25396 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25397 unsigned int arg2 ;
25398 PyObject * obj0 = 0 ;
25399 PyObject * obj1 = 0 ;
25400 char *kwnames[] = {
25401 (char *) "self",(char *) "indent", NULL
25402 };
25403
25404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25407 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25408 if (PyErr_Occurred()) SWIG_fail;
25409 {
25410 PyThreadState* __tstate = wxPyBeginAllowThreads();
25411 (arg1)->SetIndent(arg2);
25412
25413 wxPyEndAllowThreads(__tstate);
25414 if (PyErr_Occurred()) SWIG_fail;
25415 }
25416 Py_INCREF(Py_None); resultobj = Py_None;
25417 return resultobj;
25418 fail:
25419 return NULL;
25420 }
25421
25422
25423 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25424 PyObject *resultobj;
25425 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25426 unsigned int result;
25427 PyObject * obj0 = 0 ;
25428 char *kwnames[] = {
25429 (char *) "self", NULL
25430 };
25431
25432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25435 {
25436 PyThreadState* __tstate = wxPyBeginAllowThreads();
25437 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25438
25439 wxPyEndAllowThreads(__tstate);
25440 if (PyErr_Occurred()) SWIG_fail;
25441 }
25442 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25443 return resultobj;
25444 fail:
25445 return NULL;
25446 }
25447
25448
25449 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25450 PyObject *resultobj;
25451 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25452 unsigned int arg2 ;
25453 PyObject * obj0 = 0 ;
25454 PyObject * obj1 = 0 ;
25455 char *kwnames[] = {
25456 (char *) "self",(char *) "spacing", NULL
25457 };
25458
25459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25462 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25463 if (PyErr_Occurred()) SWIG_fail;
25464 {
25465 PyThreadState* __tstate = wxPyBeginAllowThreads();
25466 (arg1)->SetSpacing(arg2);
25467
25468 wxPyEndAllowThreads(__tstate);
25469 if (PyErr_Occurred()) SWIG_fail;
25470 }
25471 Py_INCREF(Py_None); resultobj = Py_None;
25472 return resultobj;
25473 fail:
25474 return NULL;
25475 }
25476
25477
25478 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25479 PyObject *resultobj;
25480 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25481 wxImageList *result;
25482 PyObject * obj0 = 0 ;
25483 char *kwnames[] = {
25484 (char *) "self", NULL
25485 };
25486
25487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25490 {
25491 PyThreadState* __tstate = wxPyBeginAllowThreads();
25492 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25493
25494 wxPyEndAllowThreads(__tstate);
25495 if (PyErr_Occurred()) SWIG_fail;
25496 }
25497 {
25498 resultobj = wxPyMake_wxObject(result, 0);
25499 }
25500 return resultobj;
25501 fail:
25502 return NULL;
25503 }
25504
25505
25506 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25507 PyObject *resultobj;
25508 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25509 wxImageList *result;
25510 PyObject * obj0 = 0 ;
25511 char *kwnames[] = {
25512 (char *) "self", NULL
25513 };
25514
25515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25518 {
25519 PyThreadState* __tstate = wxPyBeginAllowThreads();
25520 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25521
25522 wxPyEndAllowThreads(__tstate);
25523 if (PyErr_Occurred()) SWIG_fail;
25524 }
25525 {
25526 resultobj = wxPyMake_wxObject(result, 0);
25527 }
25528 return resultobj;
25529 fail:
25530 return NULL;
25531 }
25532
25533
25534 static PyObject *_wrap_TreeCtrl_SetImageList(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_SetImageList",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)->SetImageList(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_SetStateImageList(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_SetStateImageList",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 | 0)) == -1) SWIG_fail;
25578 {
25579 PyThreadState* __tstate = wxPyBeginAllowThreads();
25580 (arg1)->SetStateImageList(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_AssignImageList(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_AssignImageList",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)->AssignImageList(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_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25622 PyObject *resultobj;
25623 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25624 wxImageList *arg2 = (wxImageList *) 0 ;
25625 PyObject * obj0 = 0 ;
25626 PyObject * obj1 = 0 ;
25627 char *kwnames[] = {
25628 (char *) "self",(char *) "imageList", NULL
25629 };
25630
25631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25634 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25635 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25636 {
25637 PyThreadState* __tstate = wxPyBeginAllowThreads();
25638 (arg1)->AssignStateImageList(arg2);
25639
25640 wxPyEndAllowThreads(__tstate);
25641 if (PyErr_Occurred()) SWIG_fail;
25642 }
25643 Py_INCREF(Py_None); resultobj = Py_None;
25644 return resultobj;
25645 fail:
25646 return NULL;
25647 }
25648
25649
25650 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
25651 PyObject *resultobj;
25652 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25653 wxTreeItemId *arg2 = 0 ;
25654 wxString result;
25655 PyObject * obj0 = 0 ;
25656 PyObject * obj1 = 0 ;
25657 char *kwnames[] = {
25658 (char *) "self",(char *) "item", NULL
25659 };
25660
25661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25664 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25665 SWIG_POINTER_EXCEPTION | 0)) == -1)
25666 SWIG_fail;
25667 if (arg2 == NULL) {
25668 PyErr_SetString(PyExc_TypeError,"null reference");
25669 SWIG_fail;
25670 }
25671 {
25672 PyThreadState* __tstate = wxPyBeginAllowThreads();
25673 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25674
25675 wxPyEndAllowThreads(__tstate);
25676 if (PyErr_Occurred()) SWIG_fail;
25677 }
25678 {
25679 #if wxUSE_UNICODE
25680 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25681 #else
25682 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25683 #endif
25684 }
25685 return resultobj;
25686 fail:
25687 return NULL;
25688 }
25689
25690
25691 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
25692 PyObject *resultobj;
25693 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25694 wxTreeItemId *arg2 = 0 ;
25695 int arg3 = (int) wxTreeItemIcon_Normal ;
25696 int result;
25697 PyObject * obj0 = 0 ;
25698 PyObject * obj1 = 0 ;
25699 PyObject * obj2 = 0 ;
25700 char *kwnames[] = {
25701 (char *) "self",(char *) "item",(char *) "which", NULL
25702 };
25703
25704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25707 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25708 SWIG_POINTER_EXCEPTION | 0)) == -1)
25709 SWIG_fail;
25710 if (arg2 == NULL) {
25711 PyErr_SetString(PyExc_TypeError,"null reference");
25712 SWIG_fail;
25713 }
25714 if (obj2) {
25715 arg3 = (int)SWIG_As_int(obj2);
25716 if (PyErr_Occurred()) SWIG_fail;
25717 }
25718 {
25719 PyThreadState* __tstate = wxPyBeginAllowThreads();
25720 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25721
25722 wxPyEndAllowThreads(__tstate);
25723 if (PyErr_Occurred()) SWIG_fail;
25724 }
25725 resultobj = SWIG_From_int((int)result);
25726 return resultobj;
25727 fail:
25728 return NULL;
25729 }
25730
25731
25732 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
25733 PyObject *resultobj;
25734 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25735 wxTreeItemId *arg2 = 0 ;
25736 wxPyTreeItemData *result;
25737 PyObject * obj0 = 0 ;
25738 PyObject * obj1 = 0 ;
25739 char *kwnames[] = {
25740 (char *) "self",(char *) "item", NULL
25741 };
25742
25743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25746 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25747 SWIG_POINTER_EXCEPTION | 0)) == -1)
25748 SWIG_fail;
25749 if (arg2 == NULL) {
25750 PyErr_SetString(PyExc_TypeError,"null reference");
25751 SWIG_fail;
25752 }
25753 {
25754 PyThreadState* __tstate = wxPyBeginAllowThreads();
25755 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25756
25757 wxPyEndAllowThreads(__tstate);
25758 if (PyErr_Occurred()) SWIG_fail;
25759 }
25760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25761 return resultobj;
25762 fail:
25763 return NULL;
25764 }
25765
25766
25767 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
25768 PyObject *resultobj;
25769 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25770 wxTreeItemId *arg2 = 0 ;
25771 PyObject *result;
25772 PyObject * obj0 = 0 ;
25773 PyObject * obj1 = 0 ;
25774 char *kwnames[] = {
25775 (char *) "self",(char *) "item", NULL
25776 };
25777
25778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25782 SWIG_POINTER_EXCEPTION | 0)) == -1)
25783 SWIG_fail;
25784 if (arg2 == NULL) {
25785 PyErr_SetString(PyExc_TypeError,"null reference");
25786 SWIG_fail;
25787 }
25788 {
25789 PyThreadState* __tstate = wxPyBeginAllowThreads();
25790 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25791
25792 wxPyEndAllowThreads(__tstate);
25793 if (PyErr_Occurred()) SWIG_fail;
25794 }
25795 resultobj = result;
25796 return resultobj;
25797 fail:
25798 return NULL;
25799 }
25800
25801
25802 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
25803 PyObject *resultobj;
25804 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25805 wxTreeItemId *arg2 = 0 ;
25806 wxColour result;
25807 PyObject * obj0 = 0 ;
25808 PyObject * obj1 = 0 ;
25809 char *kwnames[] = {
25810 (char *) "self",(char *) "item", NULL
25811 };
25812
25813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25816 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25817 SWIG_POINTER_EXCEPTION | 0)) == -1)
25818 SWIG_fail;
25819 if (arg2 == NULL) {
25820 PyErr_SetString(PyExc_TypeError,"null reference");
25821 SWIG_fail;
25822 }
25823 {
25824 PyThreadState* __tstate = wxPyBeginAllowThreads();
25825 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25826
25827 wxPyEndAllowThreads(__tstate);
25828 if (PyErr_Occurred()) SWIG_fail;
25829 }
25830 {
25831 wxColour * resultptr;
25832 resultptr = new wxColour((wxColour &) result);
25833 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25834 }
25835 return resultobj;
25836 fail:
25837 return NULL;
25838 }
25839
25840
25841 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
25842 PyObject *resultobj;
25843 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25844 wxTreeItemId *arg2 = 0 ;
25845 wxColour result;
25846 PyObject * obj0 = 0 ;
25847 PyObject * obj1 = 0 ;
25848 char *kwnames[] = {
25849 (char *) "self",(char *) "item", NULL
25850 };
25851
25852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25855 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25856 SWIG_POINTER_EXCEPTION | 0)) == -1)
25857 SWIG_fail;
25858 if (arg2 == NULL) {
25859 PyErr_SetString(PyExc_TypeError,"null reference");
25860 SWIG_fail;
25861 }
25862 {
25863 PyThreadState* __tstate = wxPyBeginAllowThreads();
25864 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25865
25866 wxPyEndAllowThreads(__tstate);
25867 if (PyErr_Occurred()) SWIG_fail;
25868 }
25869 {
25870 wxColour * resultptr;
25871 resultptr = new wxColour((wxColour &) result);
25872 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25873 }
25874 return resultobj;
25875 fail:
25876 return NULL;
25877 }
25878
25879
25880 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
25881 PyObject *resultobj;
25882 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25883 wxTreeItemId *arg2 = 0 ;
25884 wxFont result;
25885 PyObject * obj0 = 0 ;
25886 PyObject * obj1 = 0 ;
25887 char *kwnames[] = {
25888 (char *) "self",(char *) "item", NULL
25889 };
25890
25891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
25892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25894 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25895 SWIG_POINTER_EXCEPTION | 0)) == -1)
25896 SWIG_fail;
25897 if (arg2 == NULL) {
25898 PyErr_SetString(PyExc_TypeError,"null reference");
25899 SWIG_fail;
25900 }
25901 {
25902 PyThreadState* __tstate = wxPyBeginAllowThreads();
25903 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
25904
25905 wxPyEndAllowThreads(__tstate);
25906 if (PyErr_Occurred()) SWIG_fail;
25907 }
25908 {
25909 wxFont * resultptr;
25910 resultptr = new wxFont((wxFont &) result);
25911 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
25912 }
25913 return resultobj;
25914 fail:
25915 return NULL;
25916 }
25917
25918
25919 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
25920 PyObject *resultobj;
25921 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25922 wxTreeItemId *arg2 = 0 ;
25923 wxString *arg3 = 0 ;
25924 bool temp3 = False ;
25925 PyObject * obj0 = 0 ;
25926 PyObject * obj1 = 0 ;
25927 PyObject * obj2 = 0 ;
25928 char *kwnames[] = {
25929 (char *) "self",(char *) "item",(char *) "text", NULL
25930 };
25931
25932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
25933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25936 SWIG_POINTER_EXCEPTION | 0)) == -1)
25937 SWIG_fail;
25938 if (arg2 == NULL) {
25939 PyErr_SetString(PyExc_TypeError,"null reference");
25940 SWIG_fail;
25941 }
25942 {
25943 arg3 = wxString_in_helper(obj2);
25944 if (arg3 == NULL) SWIG_fail;
25945 temp3 = True;
25946 }
25947 {
25948 PyThreadState* __tstate = wxPyBeginAllowThreads();
25949 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
25950
25951 wxPyEndAllowThreads(__tstate);
25952 if (PyErr_Occurred()) SWIG_fail;
25953 }
25954 Py_INCREF(Py_None); resultobj = Py_None;
25955 {
25956 if (temp3)
25957 delete arg3;
25958 }
25959 return resultobj;
25960 fail:
25961 {
25962 if (temp3)
25963 delete arg3;
25964 }
25965 return NULL;
25966 }
25967
25968
25969 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
25970 PyObject *resultobj;
25971 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25972 wxTreeItemId *arg2 = 0 ;
25973 int arg3 ;
25974 int arg4 = (int) wxTreeItemIcon_Normal ;
25975 PyObject * obj0 = 0 ;
25976 PyObject * obj1 = 0 ;
25977 PyObject * obj2 = 0 ;
25978 PyObject * obj3 = 0 ;
25979 char *kwnames[] = {
25980 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
25981 };
25982
25983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25986 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25987 SWIG_POINTER_EXCEPTION | 0)) == -1)
25988 SWIG_fail;
25989 if (arg2 == NULL) {
25990 PyErr_SetString(PyExc_TypeError,"null reference");
25991 SWIG_fail;
25992 }
25993 arg3 = (int)SWIG_As_int(obj2);
25994 if (PyErr_Occurred()) SWIG_fail;
25995 if (obj3) {
25996 arg4 = (int)SWIG_As_int(obj3);
25997 if (PyErr_Occurred()) SWIG_fail;
25998 }
25999 {
26000 PyThreadState* __tstate = wxPyBeginAllowThreads();
26001 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
26002
26003 wxPyEndAllowThreads(__tstate);
26004 if (PyErr_Occurred()) SWIG_fail;
26005 }
26006 Py_INCREF(Py_None); resultobj = Py_None;
26007 return resultobj;
26008 fail:
26009 return NULL;
26010 }
26011
26012
26013 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26014 PyObject *resultobj;
26015 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26016 wxTreeItemId *arg2 = 0 ;
26017 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
26018 PyObject * obj0 = 0 ;
26019 PyObject * obj1 = 0 ;
26020 PyObject * obj2 = 0 ;
26021 char *kwnames[] = {
26022 (char *) "self",(char *) "item",(char *) "data", NULL
26023 };
26024
26025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26028 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26029 SWIG_POINTER_EXCEPTION | 0)) == -1)
26030 SWIG_fail;
26031 if (arg2 == NULL) {
26032 PyErr_SetString(PyExc_TypeError,"null reference");
26033 SWIG_fail;
26034 }
26035 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
26036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26037 {
26038 PyThreadState* __tstate = wxPyBeginAllowThreads();
26039 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
26040
26041 wxPyEndAllowThreads(__tstate);
26042 if (PyErr_Occurred()) SWIG_fail;
26043 }
26044 Py_INCREF(Py_None); resultobj = Py_None;
26045 return resultobj;
26046 fail:
26047 return NULL;
26048 }
26049
26050
26051 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26052 PyObject *resultobj;
26053 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26054 wxTreeItemId *arg2 = 0 ;
26055 PyObject *arg3 = (PyObject *) 0 ;
26056 PyObject * obj0 = 0 ;
26057 PyObject * obj1 = 0 ;
26058 PyObject * obj2 = 0 ;
26059 char *kwnames[] = {
26060 (char *) "self",(char *) "item",(char *) "obj", NULL
26061 };
26062
26063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26066 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26067 SWIG_POINTER_EXCEPTION | 0)) == -1)
26068 SWIG_fail;
26069 if (arg2 == NULL) {
26070 PyErr_SetString(PyExc_TypeError,"null reference");
26071 SWIG_fail;
26072 }
26073 arg3 = obj2;
26074 {
26075 PyThreadState* __tstate = wxPyBeginAllowThreads();
26076 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
26077
26078 wxPyEndAllowThreads(__tstate);
26079 if (PyErr_Occurred()) SWIG_fail;
26080 }
26081 Py_INCREF(Py_None); resultobj = Py_None;
26082 return resultobj;
26083 fail:
26084 return NULL;
26085 }
26086
26087
26088 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26089 PyObject *resultobj;
26090 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26091 wxTreeItemId *arg2 = 0 ;
26092 bool arg3 = (bool) True ;
26093 PyObject * obj0 = 0 ;
26094 PyObject * obj1 = 0 ;
26095 PyObject * obj2 = 0 ;
26096 char *kwnames[] = {
26097 (char *) "self",(char *) "item",(char *) "has", NULL
26098 };
26099
26100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
26101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26103 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26104 SWIG_POINTER_EXCEPTION | 0)) == -1)
26105 SWIG_fail;
26106 if (arg2 == NULL) {
26107 PyErr_SetString(PyExc_TypeError,"null reference");
26108 SWIG_fail;
26109 }
26110 if (obj2) {
26111 arg3 = (bool)SWIG_As_bool(obj2);
26112 if (PyErr_Occurred()) SWIG_fail;
26113 }
26114 {
26115 PyThreadState* __tstate = wxPyBeginAllowThreads();
26116 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
26117
26118 wxPyEndAllowThreads(__tstate);
26119 if (PyErr_Occurred()) SWIG_fail;
26120 }
26121 Py_INCREF(Py_None); resultobj = Py_None;
26122 return resultobj;
26123 fail:
26124 return NULL;
26125 }
26126
26127
26128 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) {
26129 PyObject *resultobj;
26130 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26131 wxTreeItemId *arg2 = 0 ;
26132 bool arg3 = (bool) True ;
26133 PyObject * obj0 = 0 ;
26134 PyObject * obj1 = 0 ;
26135 PyObject * obj2 = 0 ;
26136 char *kwnames[] = {
26137 (char *) "self",(char *) "item",(char *) "bold", NULL
26138 };
26139
26140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
26141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26143 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26144 SWIG_POINTER_EXCEPTION | 0)) == -1)
26145 SWIG_fail;
26146 if (arg2 == NULL) {
26147 PyErr_SetString(PyExc_TypeError,"null reference");
26148 SWIG_fail;
26149 }
26150 if (obj2) {
26151 arg3 = (bool)SWIG_As_bool(obj2);
26152 if (PyErr_Occurred()) SWIG_fail;
26153 }
26154 {
26155 PyThreadState* __tstate = wxPyBeginAllowThreads();
26156 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
26157
26158 wxPyEndAllowThreads(__tstate);
26159 if (PyErr_Occurred()) SWIG_fail;
26160 }
26161 Py_INCREF(Py_None); resultobj = Py_None;
26162 return resultobj;
26163 fail:
26164 return NULL;
26165 }
26166
26167
26168 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26169 PyObject *resultobj;
26170 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26171 wxTreeItemId *arg2 = 0 ;
26172 wxColour *arg3 = 0 ;
26173 wxColour temp3 ;
26174 PyObject * obj0 = 0 ;
26175 PyObject * obj1 = 0 ;
26176 PyObject * obj2 = 0 ;
26177 char *kwnames[] = {
26178 (char *) "self",(char *) "item",(char *) "col", NULL
26179 };
26180
26181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26184 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26185 SWIG_POINTER_EXCEPTION | 0)) == -1)
26186 SWIG_fail;
26187 if (arg2 == NULL) {
26188 PyErr_SetString(PyExc_TypeError,"null reference");
26189 SWIG_fail;
26190 }
26191 {
26192 arg3 = &temp3;
26193 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26194 }
26195 {
26196 PyThreadState* __tstate = wxPyBeginAllowThreads();
26197 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26198
26199 wxPyEndAllowThreads(__tstate);
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 Py_INCREF(Py_None); resultobj = Py_None;
26203 return resultobj;
26204 fail:
26205 return NULL;
26206 }
26207
26208
26209 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26210 PyObject *resultobj;
26211 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26212 wxTreeItemId *arg2 = 0 ;
26213 wxColour *arg3 = 0 ;
26214 wxColour temp3 ;
26215 PyObject * obj0 = 0 ;
26216 PyObject * obj1 = 0 ;
26217 PyObject * obj2 = 0 ;
26218 char *kwnames[] = {
26219 (char *) "self",(char *) "item",(char *) "col", NULL
26220 };
26221
26222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26225 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26226 SWIG_POINTER_EXCEPTION | 0)) == -1)
26227 SWIG_fail;
26228 if (arg2 == NULL) {
26229 PyErr_SetString(PyExc_TypeError,"null reference");
26230 SWIG_fail;
26231 }
26232 {
26233 arg3 = &temp3;
26234 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26235 }
26236 {
26237 PyThreadState* __tstate = wxPyBeginAllowThreads();
26238 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26239
26240 wxPyEndAllowThreads(__tstate);
26241 if (PyErr_Occurred()) SWIG_fail;
26242 }
26243 Py_INCREF(Py_None); resultobj = Py_None;
26244 return resultobj;
26245 fail:
26246 return NULL;
26247 }
26248
26249
26250 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26251 PyObject *resultobj;
26252 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26253 wxTreeItemId *arg2 = 0 ;
26254 wxFont *arg3 = 0 ;
26255 PyObject * obj0 = 0 ;
26256 PyObject * obj1 = 0 ;
26257 PyObject * obj2 = 0 ;
26258 char *kwnames[] = {
26259 (char *) "self",(char *) "item",(char *) "font", NULL
26260 };
26261
26262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26265 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26266 SWIG_POINTER_EXCEPTION | 0)) == -1)
26267 SWIG_fail;
26268 if (arg2 == NULL) {
26269 PyErr_SetString(PyExc_TypeError,"null reference");
26270 SWIG_fail;
26271 }
26272 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26273 SWIG_POINTER_EXCEPTION | 0)) == -1)
26274 SWIG_fail;
26275 if (arg3 == NULL) {
26276 PyErr_SetString(PyExc_TypeError,"null reference");
26277 SWIG_fail;
26278 }
26279 {
26280 PyThreadState* __tstate = wxPyBeginAllowThreads();
26281 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26282
26283 wxPyEndAllowThreads(__tstate);
26284 if (PyErr_Occurred()) SWIG_fail;
26285 }
26286 Py_INCREF(Py_None); resultobj = Py_None;
26287 return resultobj;
26288 fail:
26289 return NULL;
26290 }
26291
26292
26293 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26294 PyObject *resultobj;
26295 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26296 wxTreeItemId *arg2 = 0 ;
26297 bool result;
26298 PyObject * obj0 = 0 ;
26299 PyObject * obj1 = 0 ;
26300 char *kwnames[] = {
26301 (char *) "self",(char *) "item", NULL
26302 };
26303
26304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26308 SWIG_POINTER_EXCEPTION | 0)) == -1)
26309 SWIG_fail;
26310 if (arg2 == NULL) {
26311 PyErr_SetString(PyExc_TypeError,"null reference");
26312 SWIG_fail;
26313 }
26314 {
26315 PyThreadState* __tstate = wxPyBeginAllowThreads();
26316 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26317
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 {
26322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26323 }
26324 return resultobj;
26325 fail:
26326 return NULL;
26327 }
26328
26329
26330 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26331 PyObject *resultobj;
26332 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26333 wxTreeItemId *arg2 = 0 ;
26334 bool result;
26335 PyObject * obj0 = 0 ;
26336 PyObject * obj1 = 0 ;
26337 char *kwnames[] = {
26338 (char *) "self",(char *) "item", NULL
26339 };
26340
26341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26344 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26345 SWIG_POINTER_EXCEPTION | 0)) == -1)
26346 SWIG_fail;
26347 if (arg2 == NULL) {
26348 PyErr_SetString(PyExc_TypeError,"null reference");
26349 SWIG_fail;
26350 }
26351 {
26352 PyThreadState* __tstate = wxPyBeginAllowThreads();
26353 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26354
26355 wxPyEndAllowThreads(__tstate);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 {
26359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26360 }
26361 return resultobj;
26362 fail:
26363 return NULL;
26364 }
26365
26366
26367 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) {
26368 PyObject *resultobj;
26369 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26370 wxTreeItemId *arg2 = 0 ;
26371 bool result;
26372 PyObject * obj0 = 0 ;
26373 PyObject * obj1 = 0 ;
26374 char *kwnames[] = {
26375 (char *) "self",(char *) "item", NULL
26376 };
26377
26378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26381 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26382 SWIG_POINTER_EXCEPTION | 0)) == -1)
26383 SWIG_fail;
26384 if (arg2 == NULL) {
26385 PyErr_SetString(PyExc_TypeError,"null reference");
26386 SWIG_fail;
26387 }
26388 {
26389 PyThreadState* __tstate = wxPyBeginAllowThreads();
26390 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26391
26392 wxPyEndAllowThreads(__tstate);
26393 if (PyErr_Occurred()) SWIG_fail;
26394 }
26395 {
26396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26397 }
26398 return resultobj;
26399 fail:
26400 return NULL;
26401 }
26402
26403
26404 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
26405 PyObject *resultobj;
26406 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26407 wxTreeItemId *arg2 = 0 ;
26408 bool result;
26409 PyObject * obj0 = 0 ;
26410 PyObject * obj1 = 0 ;
26411 char *kwnames[] = {
26412 (char *) "self",(char *) "item", NULL
26413 };
26414
26415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26418 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26419 SWIG_POINTER_EXCEPTION | 0)) == -1)
26420 SWIG_fail;
26421 if (arg2 == NULL) {
26422 PyErr_SetString(PyExc_TypeError,"null reference");
26423 SWIG_fail;
26424 }
26425 {
26426 PyThreadState* __tstate = wxPyBeginAllowThreads();
26427 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26428
26429 wxPyEndAllowThreads(__tstate);
26430 if (PyErr_Occurred()) SWIG_fail;
26431 }
26432 {
26433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26434 }
26435 return resultobj;
26436 fail:
26437 return NULL;
26438 }
26439
26440
26441 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) {
26442 PyObject *resultobj;
26443 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26444 wxTreeItemId *arg2 = 0 ;
26445 bool result;
26446 PyObject * obj0 = 0 ;
26447 PyObject * obj1 = 0 ;
26448 char *kwnames[] = {
26449 (char *) "self",(char *) "item", NULL
26450 };
26451
26452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26455 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26456 SWIG_POINTER_EXCEPTION | 0)) == -1)
26457 SWIG_fail;
26458 if (arg2 == NULL) {
26459 PyErr_SetString(PyExc_TypeError,"null reference");
26460 SWIG_fail;
26461 }
26462 {
26463 PyThreadState* __tstate = wxPyBeginAllowThreads();
26464 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26465
26466 wxPyEndAllowThreads(__tstate);
26467 if (PyErr_Occurred()) SWIG_fail;
26468 }
26469 {
26470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26471 }
26472 return resultobj;
26473 fail:
26474 return NULL;
26475 }
26476
26477
26478 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) {
26479 PyObject *resultobj;
26480 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26481 wxTreeItemId *arg2 = 0 ;
26482 bool arg3 = (bool) True ;
26483 size_t result;
26484 PyObject * obj0 = 0 ;
26485 PyObject * obj1 = 0 ;
26486 PyObject * obj2 = 0 ;
26487 char *kwnames[] = {
26488 (char *) "self",(char *) "item",(char *) "recursively", NULL
26489 };
26490
26491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26495 SWIG_POINTER_EXCEPTION | 0)) == -1)
26496 SWIG_fail;
26497 if (arg2 == NULL) {
26498 PyErr_SetString(PyExc_TypeError,"null reference");
26499 SWIG_fail;
26500 }
26501 if (obj2) {
26502 arg3 = (bool)SWIG_As_bool(obj2);
26503 if (PyErr_Occurred()) SWIG_fail;
26504 }
26505 {
26506 PyThreadState* __tstate = wxPyBeginAllowThreads();
26507 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26508
26509 wxPyEndAllowThreads(__tstate);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 }
26512 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
26513 return resultobj;
26514 fail:
26515 return NULL;
26516 }
26517
26518
26519 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) {
26520 PyObject *resultobj;
26521 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26522 wxTreeItemId result;
26523 PyObject * obj0 = 0 ;
26524 char *kwnames[] = {
26525 (char *) "self", NULL
26526 };
26527
26528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26531 {
26532 PyThreadState* __tstate = wxPyBeginAllowThreads();
26533 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26534
26535 wxPyEndAllowThreads(__tstate);
26536 if (PyErr_Occurred()) SWIG_fail;
26537 }
26538 {
26539 wxTreeItemId * resultptr;
26540 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26541 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26542 }
26543 return resultobj;
26544 fail:
26545 return NULL;
26546 }
26547
26548
26549 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
26550 PyObject *resultobj;
26551 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26552 wxTreeItemId result;
26553 PyObject * obj0 = 0 ;
26554 char *kwnames[] = {
26555 (char *) "self", NULL
26556 };
26557
26558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26561 {
26562 PyThreadState* __tstate = wxPyBeginAllowThreads();
26563 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26564
26565 wxPyEndAllowThreads(__tstate);
26566 if (PyErr_Occurred()) SWIG_fail;
26567 }
26568 {
26569 wxTreeItemId * resultptr;
26570 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26571 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26572 }
26573 return resultobj;
26574 fail:
26575 return NULL;
26576 }
26577
26578
26579 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
26580 PyObject *resultobj;
26581 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26582 PyObject *result;
26583 PyObject * obj0 = 0 ;
26584 char *kwnames[] = {
26585 (char *) "self", NULL
26586 };
26587
26588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26591 {
26592 PyThreadState* __tstate = wxPyBeginAllowThreads();
26593 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26594
26595 wxPyEndAllowThreads(__tstate);
26596 if (PyErr_Occurred()) SWIG_fail;
26597 }
26598 resultobj = result;
26599 return resultobj;
26600 fail:
26601 return NULL;
26602 }
26603
26604
26605 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) {
26606 PyObject *resultobj;
26607 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26608 wxTreeItemId *arg2 = 0 ;
26609 wxTreeItemId result;
26610 PyObject * obj0 = 0 ;
26611 PyObject * obj1 = 0 ;
26612 char *kwnames[] = {
26613 (char *) "self",(char *) "item", NULL
26614 };
26615
26616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26619 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26620 SWIG_POINTER_EXCEPTION | 0)) == -1)
26621 SWIG_fail;
26622 if (arg2 == NULL) {
26623 PyErr_SetString(PyExc_TypeError,"null reference");
26624 SWIG_fail;
26625 }
26626 {
26627 PyThreadState* __tstate = wxPyBeginAllowThreads();
26628 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26629
26630 wxPyEndAllowThreads(__tstate);
26631 if (PyErr_Occurred()) SWIG_fail;
26632 }
26633 {
26634 wxTreeItemId * resultptr;
26635 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26636 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26637 }
26638 return resultobj;
26639 fail:
26640 return NULL;
26641 }
26642
26643
26644 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) {
26645 PyObject *resultobj;
26646 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26647 wxTreeItemId *arg2 = 0 ;
26648 PyObject *result;
26649 PyObject * obj0 = 0 ;
26650 PyObject * obj1 = 0 ;
26651 char *kwnames[] = {
26652 (char *) "self",(char *) "item", NULL
26653 };
26654
26655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26658 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26659 SWIG_POINTER_EXCEPTION | 0)) == -1)
26660 SWIG_fail;
26661 if (arg2 == NULL) {
26662 PyErr_SetString(PyExc_TypeError,"null reference");
26663 SWIG_fail;
26664 }
26665 {
26666 PyThreadState* __tstate = wxPyBeginAllowThreads();
26667 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26668
26669 wxPyEndAllowThreads(__tstate);
26670 if (PyErr_Occurred()) SWIG_fail;
26671 }
26672 resultobj = result;
26673 return resultobj;
26674 fail:
26675 return NULL;
26676 }
26677
26678
26679 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) {
26680 PyObject *resultobj;
26681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26682 wxTreeItemId *arg2 = 0 ;
26683 void *arg3 = (void *) 0 ;
26684 PyObject *result;
26685 PyObject * obj0 = 0 ;
26686 PyObject * obj1 = 0 ;
26687 PyObject * obj2 = 0 ;
26688 char *kwnames[] = {
26689 (char *) "self",(char *) "item",(char *) "cookie", NULL
26690 };
26691
26692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26695 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26696 SWIG_POINTER_EXCEPTION | 0)) == -1)
26697 SWIG_fail;
26698 if (arg2 == NULL) {
26699 PyErr_SetString(PyExc_TypeError,"null reference");
26700 SWIG_fail;
26701 }
26702 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26703 {
26704 PyThreadState* __tstate = wxPyBeginAllowThreads();
26705 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26706
26707 wxPyEndAllowThreads(__tstate);
26708 if (PyErr_Occurred()) SWIG_fail;
26709 }
26710 resultobj = result;
26711 return resultobj;
26712 fail:
26713 return NULL;
26714 }
26715
26716
26717 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) {
26718 PyObject *resultobj;
26719 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26720 wxTreeItemId *arg2 = 0 ;
26721 wxTreeItemId result;
26722 PyObject * obj0 = 0 ;
26723 PyObject * obj1 = 0 ;
26724 char *kwnames[] = {
26725 (char *) "self",(char *) "item", NULL
26726 };
26727
26728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
26729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26731 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26732 SWIG_POINTER_EXCEPTION | 0)) == -1)
26733 SWIG_fail;
26734 if (arg2 == NULL) {
26735 PyErr_SetString(PyExc_TypeError,"null reference");
26736 SWIG_fail;
26737 }
26738 {
26739 PyThreadState* __tstate = wxPyBeginAllowThreads();
26740 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26741
26742 wxPyEndAllowThreads(__tstate);
26743 if (PyErr_Occurred()) SWIG_fail;
26744 }
26745 {
26746 wxTreeItemId * resultptr;
26747 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26748 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26749 }
26750 return resultobj;
26751 fail:
26752 return NULL;
26753 }
26754
26755
26756 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) {
26757 PyObject *resultobj;
26758 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26759 wxTreeItemId *arg2 = 0 ;
26760 wxTreeItemId result;
26761 PyObject * obj0 = 0 ;
26762 PyObject * obj1 = 0 ;
26763 char *kwnames[] = {
26764 (char *) "self",(char *) "item", NULL
26765 };
26766
26767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26770 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26771 SWIG_POINTER_EXCEPTION | 0)) == -1)
26772 SWIG_fail;
26773 if (arg2 == NULL) {
26774 PyErr_SetString(PyExc_TypeError,"null reference");
26775 SWIG_fail;
26776 }
26777 {
26778 PyThreadState* __tstate = wxPyBeginAllowThreads();
26779 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26780
26781 wxPyEndAllowThreads(__tstate);
26782 if (PyErr_Occurred()) SWIG_fail;
26783 }
26784 {
26785 wxTreeItemId * resultptr;
26786 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26787 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26788 }
26789 return resultobj;
26790 fail:
26791 return NULL;
26792 }
26793
26794
26795 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) {
26796 PyObject *resultobj;
26797 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26798 wxTreeItemId *arg2 = 0 ;
26799 wxTreeItemId result;
26800 PyObject * obj0 = 0 ;
26801 PyObject * obj1 = 0 ;
26802 char *kwnames[] = {
26803 (char *) "self",(char *) "item", NULL
26804 };
26805
26806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26809 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26810 SWIG_POINTER_EXCEPTION | 0)) == -1)
26811 SWIG_fail;
26812 if (arg2 == NULL) {
26813 PyErr_SetString(PyExc_TypeError,"null reference");
26814 SWIG_fail;
26815 }
26816 {
26817 PyThreadState* __tstate = wxPyBeginAllowThreads();
26818 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26819
26820 wxPyEndAllowThreads(__tstate);
26821 if (PyErr_Occurred()) SWIG_fail;
26822 }
26823 {
26824 wxTreeItemId * resultptr;
26825 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26827 }
26828 return resultobj;
26829 fail:
26830 return NULL;
26831 }
26832
26833
26834 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) {
26835 PyObject *resultobj;
26836 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26837 wxTreeItemId result;
26838 PyObject * obj0 = 0 ;
26839 char *kwnames[] = {
26840 (char *) "self", NULL
26841 };
26842
26843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
26844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26846 {
26847 PyThreadState* __tstate = wxPyBeginAllowThreads();
26848 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
26849
26850 wxPyEndAllowThreads(__tstate);
26851 if (PyErr_Occurred()) SWIG_fail;
26852 }
26853 {
26854 wxTreeItemId * resultptr;
26855 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26856 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26857 }
26858 return resultobj;
26859 fail:
26860 return NULL;
26861 }
26862
26863
26864 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26865 PyObject *resultobj;
26866 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26867 wxTreeItemId *arg2 = 0 ;
26868 wxTreeItemId result;
26869 PyObject * obj0 = 0 ;
26870 PyObject * obj1 = 0 ;
26871 char *kwnames[] = {
26872 (char *) "self",(char *) "item", NULL
26873 };
26874
26875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
26876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26878 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26879 SWIG_POINTER_EXCEPTION | 0)) == -1)
26880 SWIG_fail;
26881 if (arg2 == NULL) {
26882 PyErr_SetString(PyExc_TypeError,"null reference");
26883 SWIG_fail;
26884 }
26885 {
26886 PyThreadState* __tstate = wxPyBeginAllowThreads();
26887 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
26888
26889 wxPyEndAllowThreads(__tstate);
26890 if (PyErr_Occurred()) SWIG_fail;
26891 }
26892 {
26893 wxTreeItemId * resultptr;
26894 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26895 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26896 }
26897 return resultobj;
26898 fail:
26899 return NULL;
26900 }
26901
26902
26903 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26904 PyObject *resultobj;
26905 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26906 wxTreeItemId *arg2 = 0 ;
26907 wxTreeItemId result;
26908 PyObject * obj0 = 0 ;
26909 PyObject * obj1 = 0 ;
26910 char *kwnames[] = {
26911 (char *) "self",(char *) "item", NULL
26912 };
26913
26914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
26915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26917 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26918 SWIG_POINTER_EXCEPTION | 0)) == -1)
26919 SWIG_fail;
26920 if (arg2 == NULL) {
26921 PyErr_SetString(PyExc_TypeError,"null reference");
26922 SWIG_fail;
26923 }
26924 {
26925 PyThreadState* __tstate = wxPyBeginAllowThreads();
26926 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
26927
26928 wxPyEndAllowThreads(__tstate);
26929 if (PyErr_Occurred()) SWIG_fail;
26930 }
26931 {
26932 wxTreeItemId * resultptr;
26933 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26934 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26935 }
26936 return resultobj;
26937 fail:
26938 return NULL;
26939 }
26940
26941
26942 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) {
26943 PyObject *resultobj;
26944 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26945 wxString *arg2 = 0 ;
26946 int arg3 = (int) -1 ;
26947 int arg4 = (int) -1 ;
26948 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
26949 wxTreeItemId result;
26950 bool temp2 = False ;
26951 PyObject * obj0 = 0 ;
26952 PyObject * obj1 = 0 ;
26953 PyObject * obj2 = 0 ;
26954 PyObject * obj3 = 0 ;
26955 PyObject * obj4 = 0 ;
26956 char *kwnames[] = {
26957 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26958 };
26959
26960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26963 {
26964 arg2 = wxString_in_helper(obj1);
26965 if (arg2 == NULL) SWIG_fail;
26966 temp2 = True;
26967 }
26968 if (obj2) {
26969 arg3 = (int)SWIG_As_int(obj2);
26970 if (PyErr_Occurred()) SWIG_fail;
26971 }
26972 if (obj3) {
26973 arg4 = (int)SWIG_As_int(obj3);
26974 if (PyErr_Occurred()) SWIG_fail;
26975 }
26976 if (obj4) {
26977 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
26978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26979 }
26980 {
26981 PyThreadState* __tstate = wxPyBeginAllowThreads();
26982 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
26983
26984 wxPyEndAllowThreads(__tstate);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 {
26988 wxTreeItemId * resultptr;
26989 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26990 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26991 }
26992 {
26993 if (temp2)
26994 delete arg2;
26995 }
26996 return resultobj;
26997 fail:
26998 {
26999 if (temp2)
27000 delete arg2;
27001 }
27002 return NULL;
27003 }
27004
27005
27006 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
27007 PyObject *resultobj;
27008 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27009 wxTreeItemId *arg2 = 0 ;
27010 wxString *arg3 = 0 ;
27011 int arg4 = (int) -1 ;
27012 int arg5 = (int) -1 ;
27013 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27014 wxTreeItemId result;
27015 bool temp3 = False ;
27016 PyObject * obj0 = 0 ;
27017 PyObject * obj1 = 0 ;
27018 PyObject * obj2 = 0 ;
27019 PyObject * obj3 = 0 ;
27020 PyObject * obj4 = 0 ;
27021 PyObject * obj5 = 0 ;
27022 char *kwnames[] = {
27023 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27024 };
27025
27026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27029 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27030 SWIG_POINTER_EXCEPTION | 0)) == -1)
27031 SWIG_fail;
27032 if (arg2 == NULL) {
27033 PyErr_SetString(PyExc_TypeError,"null reference");
27034 SWIG_fail;
27035 }
27036 {
27037 arg3 = wxString_in_helper(obj2);
27038 if (arg3 == NULL) SWIG_fail;
27039 temp3 = True;
27040 }
27041 if (obj3) {
27042 arg4 = (int)SWIG_As_int(obj3);
27043 if (PyErr_Occurred()) SWIG_fail;
27044 }
27045 if (obj4) {
27046 arg5 = (int)SWIG_As_int(obj4);
27047 if (PyErr_Occurred()) SWIG_fail;
27048 }
27049 if (obj5) {
27050 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27052 }
27053 {
27054 PyThreadState* __tstate = wxPyBeginAllowThreads();
27055 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27056
27057 wxPyEndAllowThreads(__tstate);
27058 if (PyErr_Occurred()) SWIG_fail;
27059 }
27060 {
27061 wxTreeItemId * resultptr;
27062 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27063 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27064 }
27065 {
27066 if (temp3)
27067 delete arg3;
27068 }
27069 return resultobj;
27070 fail:
27071 {
27072 if (temp3)
27073 delete arg3;
27074 }
27075 return NULL;
27076 }
27077
27078
27079 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
27080 PyObject *resultobj;
27081 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27082 wxTreeItemId *arg2 = 0 ;
27083 wxTreeItemId *arg3 = 0 ;
27084 wxString *arg4 = 0 ;
27085 int arg5 = (int) -1 ;
27086 int arg6 = (int) -1 ;
27087 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27088 wxTreeItemId result;
27089 bool temp4 = False ;
27090 PyObject * obj0 = 0 ;
27091 PyObject * obj1 = 0 ;
27092 PyObject * obj2 = 0 ;
27093 PyObject * obj3 = 0 ;
27094 PyObject * obj4 = 0 ;
27095 PyObject * obj5 = 0 ;
27096 PyObject * obj6 = 0 ;
27097 char *kwnames[] = {
27098 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27099 };
27100
27101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27104 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27105 SWIG_POINTER_EXCEPTION | 0)) == -1)
27106 SWIG_fail;
27107 if (arg2 == NULL) {
27108 PyErr_SetString(PyExc_TypeError,"null reference");
27109 SWIG_fail;
27110 }
27111 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
27112 SWIG_POINTER_EXCEPTION | 0)) == -1)
27113 SWIG_fail;
27114 if (arg3 == NULL) {
27115 PyErr_SetString(PyExc_TypeError,"null reference");
27116 SWIG_fail;
27117 }
27118 {
27119 arg4 = wxString_in_helper(obj3);
27120 if (arg4 == NULL) SWIG_fail;
27121 temp4 = True;
27122 }
27123 if (obj4) {
27124 arg5 = (int)SWIG_As_int(obj4);
27125 if (PyErr_Occurred()) SWIG_fail;
27126 }
27127 if (obj5) {
27128 arg6 = (int)SWIG_As_int(obj5);
27129 if (PyErr_Occurred()) SWIG_fail;
27130 }
27131 if (obj6) {
27132 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27134 }
27135 {
27136 PyThreadState* __tstate = wxPyBeginAllowThreads();
27137 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27138
27139 wxPyEndAllowThreads(__tstate);
27140 if (PyErr_Occurred()) SWIG_fail;
27141 }
27142 {
27143 wxTreeItemId * resultptr;
27144 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27145 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27146 }
27147 {
27148 if (temp4)
27149 delete arg4;
27150 }
27151 return resultobj;
27152 fail:
27153 {
27154 if (temp4)
27155 delete arg4;
27156 }
27157 return NULL;
27158 }
27159
27160
27161 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) {
27162 PyObject *resultobj;
27163 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27164 wxTreeItemId *arg2 = 0 ;
27165 size_t arg3 ;
27166 wxString *arg4 = 0 ;
27167 int arg5 = (int) -1 ;
27168 int arg6 = (int) -1 ;
27169 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27170 wxTreeItemId result;
27171 bool temp4 = False ;
27172 PyObject * obj0 = 0 ;
27173 PyObject * obj1 = 0 ;
27174 PyObject * obj2 = 0 ;
27175 PyObject * obj3 = 0 ;
27176 PyObject * obj4 = 0 ;
27177 PyObject * obj5 = 0 ;
27178 PyObject * obj6 = 0 ;
27179 char *kwnames[] = {
27180 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27181 };
27182
27183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27186 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27187 SWIG_POINTER_EXCEPTION | 0)) == -1)
27188 SWIG_fail;
27189 if (arg2 == NULL) {
27190 PyErr_SetString(PyExc_TypeError,"null reference");
27191 SWIG_fail;
27192 }
27193 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
27194 if (PyErr_Occurred()) SWIG_fail;
27195 {
27196 arg4 = wxString_in_helper(obj3);
27197 if (arg4 == NULL) SWIG_fail;
27198 temp4 = True;
27199 }
27200 if (obj4) {
27201 arg5 = (int)SWIG_As_int(obj4);
27202 if (PyErr_Occurred()) SWIG_fail;
27203 }
27204 if (obj5) {
27205 arg6 = (int)SWIG_As_int(obj5);
27206 if (PyErr_Occurred()) SWIG_fail;
27207 }
27208 if (obj6) {
27209 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27211 }
27212 {
27213 PyThreadState* __tstate = wxPyBeginAllowThreads();
27214 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27215
27216 wxPyEndAllowThreads(__tstate);
27217 if (PyErr_Occurred()) SWIG_fail;
27218 }
27219 {
27220 wxTreeItemId * resultptr;
27221 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27222 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27223 }
27224 {
27225 if (temp4)
27226 delete arg4;
27227 }
27228 return resultobj;
27229 fail:
27230 {
27231 if (temp4)
27232 delete arg4;
27233 }
27234 return NULL;
27235 }
27236
27237
27238 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
27239 PyObject *resultobj;
27240 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27241 wxTreeItemId *arg2 = 0 ;
27242 wxString *arg3 = 0 ;
27243 int arg4 = (int) -1 ;
27244 int arg5 = (int) -1 ;
27245 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27246 wxTreeItemId result;
27247 bool temp3 = False ;
27248 PyObject * obj0 = 0 ;
27249 PyObject * obj1 = 0 ;
27250 PyObject * obj2 = 0 ;
27251 PyObject * obj3 = 0 ;
27252 PyObject * obj4 = 0 ;
27253 PyObject * obj5 = 0 ;
27254 char *kwnames[] = {
27255 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27256 };
27257
27258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27261 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27262 SWIG_POINTER_EXCEPTION | 0)) == -1)
27263 SWIG_fail;
27264 if (arg2 == NULL) {
27265 PyErr_SetString(PyExc_TypeError,"null reference");
27266 SWIG_fail;
27267 }
27268 {
27269 arg3 = wxString_in_helper(obj2);
27270 if (arg3 == NULL) SWIG_fail;
27271 temp3 = True;
27272 }
27273 if (obj3) {
27274 arg4 = (int)SWIG_As_int(obj3);
27275 if (PyErr_Occurred()) SWIG_fail;
27276 }
27277 if (obj4) {
27278 arg5 = (int)SWIG_As_int(obj4);
27279 if (PyErr_Occurred()) SWIG_fail;
27280 }
27281 if (obj5) {
27282 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27284 }
27285 {
27286 PyThreadState* __tstate = wxPyBeginAllowThreads();
27287 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27288
27289 wxPyEndAllowThreads(__tstate);
27290 if (PyErr_Occurred()) SWIG_fail;
27291 }
27292 {
27293 wxTreeItemId * resultptr;
27294 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27295 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27296 }
27297 {
27298 if (temp3)
27299 delete arg3;
27300 }
27301 return resultobj;
27302 fail:
27303 {
27304 if (temp3)
27305 delete arg3;
27306 }
27307 return NULL;
27308 }
27309
27310
27311 static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
27312 PyObject *resultobj;
27313 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27314 wxTreeItemId *arg2 = 0 ;
27315 PyObject * obj0 = 0 ;
27316 PyObject * obj1 = 0 ;
27317 char *kwnames[] = {
27318 (char *) "self",(char *) "item", NULL
27319 };
27320
27321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27324 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27325 SWIG_POINTER_EXCEPTION | 0)) == -1)
27326 SWIG_fail;
27327 if (arg2 == NULL) {
27328 PyErr_SetString(PyExc_TypeError,"null reference");
27329 SWIG_fail;
27330 }
27331 {
27332 PyThreadState* __tstate = wxPyBeginAllowThreads();
27333 (arg1)->Delete((wxTreeItemId const &)*arg2);
27334
27335 wxPyEndAllowThreads(__tstate);
27336 if (PyErr_Occurred()) SWIG_fail;
27337 }
27338 Py_INCREF(Py_None); resultobj = Py_None;
27339 return resultobj;
27340 fail:
27341 return NULL;
27342 }
27343
27344
27345 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27346 PyObject *resultobj;
27347 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27348 wxTreeItemId *arg2 = 0 ;
27349 PyObject * obj0 = 0 ;
27350 PyObject * obj1 = 0 ;
27351 char *kwnames[] = {
27352 (char *) "self",(char *) "item", NULL
27353 };
27354
27355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27358 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27359 SWIG_POINTER_EXCEPTION | 0)) == -1)
27360 SWIG_fail;
27361 if (arg2 == NULL) {
27362 PyErr_SetString(PyExc_TypeError,"null reference");
27363 SWIG_fail;
27364 }
27365 {
27366 PyThreadState* __tstate = wxPyBeginAllowThreads();
27367 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27368
27369 wxPyEndAllowThreads(__tstate);
27370 if (PyErr_Occurred()) SWIG_fail;
27371 }
27372 Py_INCREF(Py_None); resultobj = Py_None;
27373 return resultobj;
27374 fail:
27375 return NULL;
27376 }
27377
27378
27379 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
27380 PyObject *resultobj;
27381 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27382 PyObject * obj0 = 0 ;
27383 char *kwnames[] = {
27384 (char *) "self", NULL
27385 };
27386
27387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27390 {
27391 PyThreadState* __tstate = wxPyBeginAllowThreads();
27392 (arg1)->DeleteAllItems();
27393
27394 wxPyEndAllowThreads(__tstate);
27395 if (PyErr_Occurred()) SWIG_fail;
27396 }
27397 Py_INCREF(Py_None); resultobj = Py_None;
27398 return resultobj;
27399 fail:
27400 return NULL;
27401 }
27402
27403
27404 static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) {
27405 PyObject *resultobj;
27406 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27407 wxTreeItemId *arg2 = 0 ;
27408 PyObject * obj0 = 0 ;
27409 PyObject * obj1 = 0 ;
27410 char *kwnames[] = {
27411 (char *) "self",(char *) "item", NULL
27412 };
27413
27414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27417 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27418 SWIG_POINTER_EXCEPTION | 0)) == -1)
27419 SWIG_fail;
27420 if (arg2 == NULL) {
27421 PyErr_SetString(PyExc_TypeError,"null reference");
27422 SWIG_fail;
27423 }
27424 {
27425 PyThreadState* __tstate = wxPyBeginAllowThreads();
27426 (arg1)->Expand((wxTreeItemId const &)*arg2);
27427
27428 wxPyEndAllowThreads(__tstate);
27429 if (PyErr_Occurred()) SWIG_fail;
27430 }
27431 Py_INCREF(Py_None); resultobj = Py_None;
27432 return resultobj;
27433 fail:
27434 return NULL;
27435 }
27436
27437
27438 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) {
27439 PyObject *resultobj;
27440 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27441 wxTreeItemId *arg2 = 0 ;
27442 PyObject * obj0 = 0 ;
27443 PyObject * obj1 = 0 ;
27444 char *kwnames[] = {
27445 (char *) "self",(char *) "item", NULL
27446 };
27447
27448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27451 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27452 SWIG_POINTER_EXCEPTION | 0)) == -1)
27453 SWIG_fail;
27454 if (arg2 == NULL) {
27455 PyErr_SetString(PyExc_TypeError,"null reference");
27456 SWIG_fail;
27457 }
27458 {
27459 PyThreadState* __tstate = wxPyBeginAllowThreads();
27460 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27461
27462 wxPyEndAllowThreads(__tstate);
27463 if (PyErr_Occurred()) SWIG_fail;
27464 }
27465 Py_INCREF(Py_None); resultobj = Py_None;
27466 return resultobj;
27467 fail:
27468 return NULL;
27469 }
27470
27471
27472 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) {
27473 PyObject *resultobj;
27474 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27475 wxTreeItemId *arg2 = 0 ;
27476 PyObject * obj0 = 0 ;
27477 PyObject * obj1 = 0 ;
27478 char *kwnames[] = {
27479 (char *) "self",(char *) "item", NULL
27480 };
27481
27482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27485 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27486 SWIG_POINTER_EXCEPTION | 0)) == -1)
27487 SWIG_fail;
27488 if (arg2 == NULL) {
27489 PyErr_SetString(PyExc_TypeError,"null reference");
27490 SWIG_fail;
27491 }
27492 {
27493 PyThreadState* __tstate = wxPyBeginAllowThreads();
27494 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27495
27496 wxPyEndAllowThreads(__tstate);
27497 if (PyErr_Occurred()) SWIG_fail;
27498 }
27499 Py_INCREF(Py_None); resultobj = Py_None;
27500 return resultobj;
27501 fail:
27502 return NULL;
27503 }
27504
27505
27506 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
27507 PyObject *resultobj;
27508 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27509 wxTreeItemId *arg2 = 0 ;
27510 PyObject * obj0 = 0 ;
27511 PyObject * obj1 = 0 ;
27512 char *kwnames[] = {
27513 (char *) "self",(char *) "item", NULL
27514 };
27515
27516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27519 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27520 SWIG_POINTER_EXCEPTION | 0)) == -1)
27521 SWIG_fail;
27522 if (arg2 == NULL) {
27523 PyErr_SetString(PyExc_TypeError,"null reference");
27524 SWIG_fail;
27525 }
27526 {
27527 PyThreadState* __tstate = wxPyBeginAllowThreads();
27528 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27529
27530 wxPyEndAllowThreads(__tstate);
27531 if (PyErr_Occurred()) SWIG_fail;
27532 }
27533 Py_INCREF(Py_None); resultobj = Py_None;
27534 return resultobj;
27535 fail:
27536 return NULL;
27537 }
27538
27539
27540 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) {
27541 PyObject *resultobj;
27542 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27543 PyObject * obj0 = 0 ;
27544 char *kwnames[] = {
27545 (char *) "self", NULL
27546 };
27547
27548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27551 {
27552 PyThreadState* __tstate = wxPyBeginAllowThreads();
27553 (arg1)->Unselect();
27554
27555 wxPyEndAllowThreads(__tstate);
27556 if (PyErr_Occurred()) SWIG_fail;
27557 }
27558 Py_INCREF(Py_None); resultobj = Py_None;
27559 return resultobj;
27560 fail:
27561 return NULL;
27562 }
27563
27564
27565 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) {
27566 PyObject *resultobj;
27567 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27568 wxTreeItemId *arg2 = 0 ;
27569 PyObject * obj0 = 0 ;
27570 PyObject * obj1 = 0 ;
27571 char *kwnames[] = {
27572 (char *) "self",(char *) "item", NULL
27573 };
27574
27575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27579 SWIG_POINTER_EXCEPTION | 0)) == -1)
27580 SWIG_fail;
27581 if (arg2 == NULL) {
27582 PyErr_SetString(PyExc_TypeError,"null reference");
27583 SWIG_fail;
27584 }
27585 {
27586 PyThreadState* __tstate = wxPyBeginAllowThreads();
27587 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27588
27589 wxPyEndAllowThreads(__tstate);
27590 if (PyErr_Occurred()) SWIG_fail;
27591 }
27592 Py_INCREF(Py_None); resultobj = Py_None;
27593 return resultobj;
27594 fail:
27595 return NULL;
27596 }
27597
27598
27599 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
27600 PyObject *resultobj;
27601 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27602 PyObject * obj0 = 0 ;
27603 char *kwnames[] = {
27604 (char *) "self", NULL
27605 };
27606
27607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27610 {
27611 PyThreadState* __tstate = wxPyBeginAllowThreads();
27612 (arg1)->UnselectAll();
27613
27614 wxPyEndAllowThreads(__tstate);
27615 if (PyErr_Occurred()) SWIG_fail;
27616 }
27617 Py_INCREF(Py_None); resultobj = Py_None;
27618 return resultobj;
27619 fail:
27620 return NULL;
27621 }
27622
27623
27624 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) {
27625 PyObject *resultobj;
27626 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27627 wxTreeItemId *arg2 = 0 ;
27628 bool arg3 = (bool) True ;
27629 PyObject * obj0 = 0 ;
27630 PyObject * obj1 = 0 ;
27631 PyObject * obj2 = 0 ;
27632 char *kwnames[] = {
27633 (char *) "self",(char *) "item",(char *) "select", NULL
27634 };
27635
27636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27639 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27640 SWIG_POINTER_EXCEPTION | 0)) == -1)
27641 SWIG_fail;
27642 if (arg2 == NULL) {
27643 PyErr_SetString(PyExc_TypeError,"null reference");
27644 SWIG_fail;
27645 }
27646 if (obj2) {
27647 arg3 = (bool)SWIG_As_bool(obj2);
27648 if (PyErr_Occurred()) SWIG_fail;
27649 }
27650 {
27651 PyThreadState* __tstate = wxPyBeginAllowThreads();
27652 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27653
27654 wxPyEndAllowThreads(__tstate);
27655 if (PyErr_Occurred()) SWIG_fail;
27656 }
27657 Py_INCREF(Py_None); resultobj = Py_None;
27658 return resultobj;
27659 fail:
27660 return NULL;
27661 }
27662
27663
27664 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) {
27665 PyObject *resultobj;
27666 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27667 wxTreeItemId *arg2 = 0 ;
27668 PyObject * obj0 = 0 ;
27669 PyObject * obj1 = 0 ;
27670 char *kwnames[] = {
27671 (char *) "self",(char *) "item", NULL
27672 };
27673
27674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27677 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27678 SWIG_POINTER_EXCEPTION | 0)) == -1)
27679 SWIG_fail;
27680 if (arg2 == NULL) {
27681 PyErr_SetString(PyExc_TypeError,"null reference");
27682 SWIG_fail;
27683 }
27684 {
27685 PyThreadState* __tstate = wxPyBeginAllowThreads();
27686 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27687
27688 wxPyEndAllowThreads(__tstate);
27689 if (PyErr_Occurred()) SWIG_fail;
27690 }
27691 Py_INCREF(Py_None); resultobj = Py_None;
27692 return resultobj;
27693 fail:
27694 return NULL;
27695 }
27696
27697
27698 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27699 PyObject *resultobj;
27700 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27701 wxTreeItemId *arg2 = 0 ;
27702 PyObject * obj0 = 0 ;
27703 PyObject * obj1 = 0 ;
27704 char *kwnames[] = {
27705 (char *) "self",(char *) "item", NULL
27706 };
27707
27708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27711 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27712 SWIG_POINTER_EXCEPTION | 0)) == -1)
27713 SWIG_fail;
27714 if (arg2 == NULL) {
27715 PyErr_SetString(PyExc_TypeError,"null reference");
27716 SWIG_fail;
27717 }
27718 {
27719 PyThreadState* __tstate = wxPyBeginAllowThreads();
27720 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27721
27722 wxPyEndAllowThreads(__tstate);
27723 if (PyErr_Occurred()) SWIG_fail;
27724 }
27725 Py_INCREF(Py_None); resultobj = Py_None;
27726 return resultobj;
27727 fail:
27728 return NULL;
27729 }
27730
27731
27732 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) {
27733 PyObject *resultobj;
27734 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27735 wxTreeItemId *arg2 = 0 ;
27736 PyObject * obj0 = 0 ;
27737 PyObject * obj1 = 0 ;
27738 char *kwnames[] = {
27739 (char *) "self",(char *) "item", NULL
27740 };
27741
27742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27745 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27746 SWIG_POINTER_EXCEPTION | 0)) == -1)
27747 SWIG_fail;
27748 if (arg2 == NULL) {
27749 PyErr_SetString(PyExc_TypeError,"null reference");
27750 SWIG_fail;
27751 }
27752 {
27753 PyThreadState* __tstate = wxPyBeginAllowThreads();
27754 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27755
27756 wxPyEndAllowThreads(__tstate);
27757 if (PyErr_Occurred()) SWIG_fail;
27758 }
27759 Py_INCREF(Py_None); resultobj = Py_None;
27760 return resultobj;
27761 fail:
27762 return NULL;
27763 }
27764
27765
27766 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
27767 PyObject *resultobj;
27768 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27769 wxTreeItemId *arg2 = 0 ;
27770 PyObject * obj0 = 0 ;
27771 PyObject * obj1 = 0 ;
27772 char *kwnames[] = {
27773 (char *) "self",(char *) "item", NULL
27774 };
27775
27776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27779 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27780 SWIG_POINTER_EXCEPTION | 0)) == -1)
27781 SWIG_fail;
27782 if (arg2 == NULL) {
27783 PyErr_SetString(PyExc_TypeError,"null reference");
27784 SWIG_fail;
27785 }
27786 {
27787 PyThreadState* __tstate = wxPyBeginAllowThreads();
27788 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27789
27790 wxPyEndAllowThreads(__tstate);
27791 if (PyErr_Occurred()) SWIG_fail;
27792 }
27793 Py_INCREF(Py_None); resultobj = Py_None;
27794 return resultobj;
27795 fail:
27796 return NULL;
27797 }
27798
27799
27800 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
27801 PyObject *resultobj;
27802 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27803 wxTextCtrl *result;
27804 PyObject * obj0 = 0 ;
27805 char *kwnames[] = {
27806 (char *) "self", NULL
27807 };
27808
27809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27812 {
27813 PyThreadState* __tstate = wxPyBeginAllowThreads();
27814 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27815
27816 wxPyEndAllowThreads(__tstate);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 }
27819 {
27820 resultobj = wxPyMake_wxObject(result, 0);
27821 }
27822 return resultobj;
27823 fail:
27824 return NULL;
27825 }
27826
27827
27828 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27829 PyObject *resultobj;
27830 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27831 wxTreeItemId *arg2 = 0 ;
27832 PyObject * obj0 = 0 ;
27833 PyObject * obj1 = 0 ;
27834 char *kwnames[] = {
27835 (char *) "self",(char *) "item", NULL
27836 };
27837
27838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
27839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27841 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27842 SWIG_POINTER_EXCEPTION | 0)) == -1)
27843 SWIG_fail;
27844 if (arg2 == NULL) {
27845 PyErr_SetString(PyExc_TypeError,"null reference");
27846 SWIG_fail;
27847 }
27848 {
27849 PyThreadState* __tstate = wxPyBeginAllowThreads();
27850 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
27851
27852 wxPyEndAllowThreads(__tstate);
27853 if (PyErr_Occurred()) SWIG_fail;
27854 }
27855 Py_INCREF(Py_None); resultobj = Py_None;
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
27863 PyObject *resultobj;
27864 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27865 wxPoint *arg2 = 0 ;
27866 int *arg3 = 0 ;
27867 wxTreeItemId result;
27868 wxPoint temp2 ;
27869 int temp3 ;
27870 int res3 = 0 ;
27871 PyObject * obj0 = 0 ;
27872 PyObject * obj1 = 0 ;
27873 char *kwnames[] = {
27874 (char *) "self",(char *) "point", NULL
27875 };
27876
27877 arg3 = &temp3; res3 = SWIG_NEWOBJ;
27878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
27879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27881 {
27882 arg2 = &temp2;
27883 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27884 }
27885 {
27886 PyThreadState* __tstate = wxPyBeginAllowThreads();
27887 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
27888
27889 wxPyEndAllowThreads(__tstate);
27890 if (PyErr_Occurred()) SWIG_fail;
27891 }
27892 {
27893 wxTreeItemId * resultptr;
27894 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27895 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27896 }
27897 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
27898 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
27899 return resultobj;
27900 fail:
27901 return NULL;
27902 }
27903
27904
27905 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) {
27906 PyObject *resultobj;
27907 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27908 wxTreeItemId *arg2 = 0 ;
27909 bool arg3 = (bool) False ;
27910 PyObject *result;
27911 PyObject * obj0 = 0 ;
27912 PyObject * obj1 = 0 ;
27913 PyObject * obj2 = 0 ;
27914 char *kwnames[] = {
27915 (char *) "self",(char *) "item",(char *) "textOnly", NULL
27916 };
27917
27918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
27919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27921 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27922 SWIG_POINTER_EXCEPTION | 0)) == -1)
27923 SWIG_fail;
27924 if (arg2 == NULL) {
27925 PyErr_SetString(PyExc_TypeError,"null reference");
27926 SWIG_fail;
27927 }
27928 if (obj2) {
27929 arg3 = (bool)SWIG_As_bool(obj2);
27930 if (PyErr_Occurred()) SWIG_fail;
27931 }
27932 {
27933 PyThreadState* __tstate = wxPyBeginAllowThreads();
27934 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
27935
27936 wxPyEndAllowThreads(__tstate);
27937 if (PyErr_Occurred()) SWIG_fail;
27938 }
27939 resultobj = result;
27940 return resultobj;
27941 fail:
27942 return NULL;
27943 }
27944
27945
27946 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
27947 PyObject *resultobj;
27948 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
27949 wxVisualAttributes result;
27950 PyObject * obj0 = 0 ;
27951 char *kwnames[] = {
27952 (char *) "variant", NULL
27953 };
27954
27955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
27956 if (obj0) {
27957 arg1 = (int)SWIG_As_int(obj0);
27958 if (PyErr_Occurred()) SWIG_fail;
27959 }
27960 {
27961 if (!wxPyCheckForApp()) SWIG_fail;
27962 PyThreadState* __tstate = wxPyBeginAllowThreads();
27963 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
27964
27965 wxPyEndAllowThreads(__tstate);
27966 if (PyErr_Occurred()) SWIG_fail;
27967 }
27968 {
27969 wxVisualAttributes * resultptr;
27970 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
27971 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
27972 }
27973 return resultobj;
27974 fail:
27975 return NULL;
27976 }
27977
27978
27979 static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) {
27980 PyObject *obj;
27981 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27982 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
27983 Py_INCREF(obj);
27984 return Py_BuildValue((char *)"");
27985 }
27986 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
27987 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
27988 return 1;
27989 }
27990
27991
27992 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
27993 PyObject *pyobj;
27994
27995 {
27996 #if wxUSE_UNICODE
27997 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27998 #else
27999 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28000 #endif
28001 }
28002 return pyobj;
28003 }
28004
28005
28006 static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28007 PyObject *resultobj;
28008 wxWindow *arg1 = (wxWindow *) 0 ;
28009 int arg2 = (int) (int)-1 ;
28010 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
28011 wxString *arg3 = (wxString *) &arg3_defvalue ;
28012 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28013 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28014 wxSize const &arg5_defvalue = wxDefaultSize ;
28015 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28016 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28017 wxString const &arg7_defvalue = wxPyEmptyString ;
28018 wxString *arg7 = (wxString *) &arg7_defvalue ;
28019 int arg8 = (int) 0 ;
28020 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
28021 wxString *arg9 = (wxString *) &arg9_defvalue ;
28022 wxGenericDirCtrl *result;
28023 bool temp3 = False ;
28024 wxPoint temp4 ;
28025 wxSize temp5 ;
28026 bool temp7 = False ;
28027 bool temp9 = False ;
28028 PyObject * obj0 = 0 ;
28029 PyObject * obj1 = 0 ;
28030 PyObject * obj2 = 0 ;
28031 PyObject * obj3 = 0 ;
28032 PyObject * obj4 = 0 ;
28033 PyObject * obj5 = 0 ;
28034 PyObject * obj6 = 0 ;
28035 PyObject * obj7 = 0 ;
28036 PyObject * obj8 = 0 ;
28037 char *kwnames[] = {
28038 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28039 };
28040
28041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
28042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28044 if (obj1) {
28045 arg2 = (int)SWIG_As_int(obj1);
28046 if (PyErr_Occurred()) SWIG_fail;
28047 }
28048 if (obj2) {
28049 {
28050 arg3 = wxString_in_helper(obj2);
28051 if (arg3 == NULL) SWIG_fail;
28052 temp3 = True;
28053 }
28054 }
28055 if (obj3) {
28056 {
28057 arg4 = &temp4;
28058 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28059 }
28060 }
28061 if (obj4) {
28062 {
28063 arg5 = &temp5;
28064 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28065 }
28066 }
28067 if (obj5) {
28068 arg6 = (long)SWIG_As_long(obj5);
28069 if (PyErr_Occurred()) SWIG_fail;
28070 }
28071 if (obj6) {
28072 {
28073 arg7 = wxString_in_helper(obj6);
28074 if (arg7 == NULL) SWIG_fail;
28075 temp7 = True;
28076 }
28077 }
28078 if (obj7) {
28079 arg8 = (int)SWIG_As_int(obj7);
28080 if (PyErr_Occurred()) SWIG_fail;
28081 }
28082 if (obj8) {
28083 {
28084 arg9 = wxString_in_helper(obj8);
28085 if (arg9 == NULL) SWIG_fail;
28086 temp9 = True;
28087 }
28088 }
28089 {
28090 if (!wxPyCheckForApp()) SWIG_fail;
28091 PyThreadState* __tstate = wxPyBeginAllowThreads();
28092 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
28093
28094 wxPyEndAllowThreads(__tstate);
28095 if (PyErr_Occurred()) SWIG_fail;
28096 }
28097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28098 {
28099 if (temp3)
28100 delete arg3;
28101 }
28102 {
28103 if (temp7)
28104 delete arg7;
28105 }
28106 {
28107 if (temp9)
28108 delete arg9;
28109 }
28110 return resultobj;
28111 fail:
28112 {
28113 if (temp3)
28114 delete arg3;
28115 }
28116 {
28117 if (temp7)
28118 delete arg7;
28119 }
28120 {
28121 if (temp9)
28122 delete arg9;
28123 }
28124 return NULL;
28125 }
28126
28127
28128 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28129 PyObject *resultobj;
28130 wxGenericDirCtrl *result;
28131 char *kwnames[] = {
28132 NULL
28133 };
28134
28135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
28136 {
28137 if (!wxPyCheckForApp()) SWIG_fail;
28138 PyThreadState* __tstate = wxPyBeginAllowThreads();
28139 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
28140
28141 wxPyEndAllowThreads(__tstate);
28142 if (PyErr_Occurred()) SWIG_fail;
28143 }
28144 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28145 return resultobj;
28146 fail:
28147 return NULL;
28148 }
28149
28150
28151 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28152 PyObject *resultobj;
28153 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28154 wxWindow *arg2 = (wxWindow *) 0 ;
28155 int arg3 = (int) (int)-1 ;
28156 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28157 wxString *arg4 = (wxString *) &arg4_defvalue ;
28158 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28159 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28160 wxSize const &arg6_defvalue = wxDefaultSize ;
28161 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28162 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28163 wxString const &arg8_defvalue = wxPyEmptyString ;
28164 wxString *arg8 = (wxString *) &arg8_defvalue ;
28165 int arg9 = (int) 0 ;
28166 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28167 wxString *arg10 = (wxString *) &arg10_defvalue ;
28168 bool result;
28169 bool temp4 = False ;
28170 wxPoint temp5 ;
28171 wxSize temp6 ;
28172 bool temp8 = False ;
28173 bool temp10 = False ;
28174 PyObject * obj0 = 0 ;
28175 PyObject * obj1 = 0 ;
28176 PyObject * obj2 = 0 ;
28177 PyObject * obj3 = 0 ;
28178 PyObject * obj4 = 0 ;
28179 PyObject * obj5 = 0 ;
28180 PyObject * obj6 = 0 ;
28181 PyObject * obj7 = 0 ;
28182 PyObject * obj8 = 0 ;
28183 PyObject * obj9 = 0 ;
28184 char *kwnames[] = {
28185 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28186 };
28187
28188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28191 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28193 if (obj2) {
28194 arg3 = (int)SWIG_As_int(obj2);
28195 if (PyErr_Occurred()) SWIG_fail;
28196 }
28197 if (obj3) {
28198 {
28199 arg4 = wxString_in_helper(obj3);
28200 if (arg4 == NULL) SWIG_fail;
28201 temp4 = True;
28202 }
28203 }
28204 if (obj4) {
28205 {
28206 arg5 = &temp5;
28207 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28208 }
28209 }
28210 if (obj5) {
28211 {
28212 arg6 = &temp6;
28213 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28214 }
28215 }
28216 if (obj6) {
28217 arg7 = (long)SWIG_As_long(obj6);
28218 if (PyErr_Occurred()) SWIG_fail;
28219 }
28220 if (obj7) {
28221 {
28222 arg8 = wxString_in_helper(obj7);
28223 if (arg8 == NULL) SWIG_fail;
28224 temp8 = True;
28225 }
28226 }
28227 if (obj8) {
28228 arg9 = (int)SWIG_As_int(obj8);
28229 if (PyErr_Occurred()) SWIG_fail;
28230 }
28231 if (obj9) {
28232 {
28233 arg10 = wxString_in_helper(obj9);
28234 if (arg10 == NULL) SWIG_fail;
28235 temp10 = True;
28236 }
28237 }
28238 {
28239 PyThreadState* __tstate = wxPyBeginAllowThreads();
28240 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28241
28242 wxPyEndAllowThreads(__tstate);
28243 if (PyErr_Occurred()) SWIG_fail;
28244 }
28245 {
28246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28247 }
28248 {
28249 if (temp4)
28250 delete arg4;
28251 }
28252 {
28253 if (temp8)
28254 delete arg8;
28255 }
28256 {
28257 if (temp10)
28258 delete arg10;
28259 }
28260 return resultobj;
28261 fail:
28262 {
28263 if (temp4)
28264 delete arg4;
28265 }
28266 {
28267 if (temp8)
28268 delete arg8;
28269 }
28270 {
28271 if (temp10)
28272 delete arg10;
28273 }
28274 return NULL;
28275 }
28276
28277
28278 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) {
28279 PyObject *resultobj;
28280 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28281 wxString *arg2 = 0 ;
28282 bool result;
28283 bool temp2 = False ;
28284 PyObject * obj0 = 0 ;
28285 PyObject * obj1 = 0 ;
28286 char *kwnames[] = {
28287 (char *) "self",(char *) "path", NULL
28288 };
28289
28290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28293 {
28294 arg2 = wxString_in_helper(obj1);
28295 if (arg2 == NULL) SWIG_fail;
28296 temp2 = True;
28297 }
28298 {
28299 PyThreadState* __tstate = wxPyBeginAllowThreads();
28300 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28301
28302 wxPyEndAllowThreads(__tstate);
28303 if (PyErr_Occurred()) SWIG_fail;
28304 }
28305 {
28306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28307 }
28308 {
28309 if (temp2)
28310 delete arg2;
28311 }
28312 return resultobj;
28313 fail:
28314 {
28315 if (temp2)
28316 delete arg2;
28317 }
28318 return NULL;
28319 }
28320
28321
28322 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28323 PyObject *resultobj;
28324 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28325 wxString result;
28326 PyObject * obj0 = 0 ;
28327 char *kwnames[] = {
28328 (char *) "self", NULL
28329 };
28330
28331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28334 {
28335 PyThreadState* __tstate = wxPyBeginAllowThreads();
28336 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28337
28338 wxPyEndAllowThreads(__tstate);
28339 if (PyErr_Occurred()) SWIG_fail;
28340 }
28341 {
28342 #if wxUSE_UNICODE
28343 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28344 #else
28345 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28346 #endif
28347 }
28348 return resultobj;
28349 fail:
28350 return NULL;
28351 }
28352
28353
28354 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28355 PyObject *resultobj;
28356 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28357 wxString *arg2 = 0 ;
28358 bool temp2 = False ;
28359 PyObject * obj0 = 0 ;
28360 PyObject * obj1 = 0 ;
28361 char *kwnames[] = {
28362 (char *) "self",(char *) "path", NULL
28363 };
28364
28365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28368 {
28369 arg2 = wxString_in_helper(obj1);
28370 if (arg2 == NULL) SWIG_fail;
28371 temp2 = True;
28372 }
28373 {
28374 PyThreadState* __tstate = wxPyBeginAllowThreads();
28375 (arg1)->SetDefaultPath((wxString const &)*arg2);
28376
28377 wxPyEndAllowThreads(__tstate);
28378 if (PyErr_Occurred()) SWIG_fail;
28379 }
28380 Py_INCREF(Py_None); resultobj = Py_None;
28381 {
28382 if (temp2)
28383 delete arg2;
28384 }
28385 return resultobj;
28386 fail:
28387 {
28388 if (temp2)
28389 delete arg2;
28390 }
28391 return NULL;
28392 }
28393
28394
28395 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28396 PyObject *resultobj;
28397 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28398 wxString result;
28399 PyObject * obj0 = 0 ;
28400 char *kwnames[] = {
28401 (char *) "self", NULL
28402 };
28403
28404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28407 {
28408 PyThreadState* __tstate = wxPyBeginAllowThreads();
28409 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28410
28411 wxPyEndAllowThreads(__tstate);
28412 if (PyErr_Occurred()) SWIG_fail;
28413 }
28414 {
28415 #if wxUSE_UNICODE
28416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28417 #else
28418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28419 #endif
28420 }
28421 return resultobj;
28422 fail:
28423 return NULL;
28424 }
28425
28426
28427 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) {
28428 PyObject *resultobj;
28429 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28430 wxString result;
28431 PyObject * obj0 = 0 ;
28432 char *kwnames[] = {
28433 (char *) "self", NULL
28434 };
28435
28436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28439 {
28440 PyThreadState* __tstate = wxPyBeginAllowThreads();
28441 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28442
28443 wxPyEndAllowThreads(__tstate);
28444 if (PyErr_Occurred()) SWIG_fail;
28445 }
28446 {
28447 #if wxUSE_UNICODE
28448 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28449 #else
28450 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28451 #endif
28452 }
28453 return resultobj;
28454 fail:
28455 return NULL;
28456 }
28457
28458
28459 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28460 PyObject *resultobj;
28461 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28462 wxString *arg2 = 0 ;
28463 bool temp2 = False ;
28464 PyObject * obj0 = 0 ;
28465 PyObject * obj1 = 0 ;
28466 char *kwnames[] = {
28467 (char *) "self",(char *) "path", NULL
28468 };
28469
28470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28473 {
28474 arg2 = wxString_in_helper(obj1);
28475 if (arg2 == NULL) SWIG_fail;
28476 temp2 = True;
28477 }
28478 {
28479 PyThreadState* __tstate = wxPyBeginAllowThreads();
28480 (arg1)->SetPath((wxString const &)*arg2);
28481
28482 wxPyEndAllowThreads(__tstate);
28483 if (PyErr_Occurred()) SWIG_fail;
28484 }
28485 Py_INCREF(Py_None); resultobj = Py_None;
28486 {
28487 if (temp2)
28488 delete arg2;
28489 }
28490 return resultobj;
28491 fail:
28492 {
28493 if (temp2)
28494 delete arg2;
28495 }
28496 return NULL;
28497 }
28498
28499
28500 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
28501 PyObject *resultobj;
28502 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28503 bool arg2 ;
28504 PyObject * obj0 = 0 ;
28505 PyObject * obj1 = 0 ;
28506 char *kwnames[] = {
28507 (char *) "self",(char *) "show", NULL
28508 };
28509
28510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28513 arg2 = (bool)SWIG_As_bool(obj1);
28514 if (PyErr_Occurred()) SWIG_fail;
28515 {
28516 PyThreadState* __tstate = wxPyBeginAllowThreads();
28517 (arg1)->ShowHidden(arg2);
28518
28519 wxPyEndAllowThreads(__tstate);
28520 if (PyErr_Occurred()) SWIG_fail;
28521 }
28522 Py_INCREF(Py_None); resultobj = Py_None;
28523 return resultobj;
28524 fail:
28525 return NULL;
28526 }
28527
28528
28529 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
28530 PyObject *resultobj;
28531 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28532 bool result;
28533 PyObject * obj0 = 0 ;
28534 char *kwnames[] = {
28535 (char *) "self", NULL
28536 };
28537
28538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28541 {
28542 PyThreadState* __tstate = wxPyBeginAllowThreads();
28543 result = (bool)(arg1)->GetShowHidden();
28544
28545 wxPyEndAllowThreads(__tstate);
28546 if (PyErr_Occurred()) SWIG_fail;
28547 }
28548 {
28549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28550 }
28551 return resultobj;
28552 fail:
28553 return NULL;
28554 }
28555
28556
28557 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
28558 PyObject *resultobj;
28559 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28560 wxString result;
28561 PyObject * obj0 = 0 ;
28562 char *kwnames[] = {
28563 (char *) "self", NULL
28564 };
28565
28566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28569 {
28570 PyThreadState* __tstate = wxPyBeginAllowThreads();
28571 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28572
28573 wxPyEndAllowThreads(__tstate);
28574 if (PyErr_Occurred()) SWIG_fail;
28575 }
28576 {
28577 #if wxUSE_UNICODE
28578 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28579 #else
28580 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28581 #endif
28582 }
28583 return resultobj;
28584 fail:
28585 return NULL;
28586 }
28587
28588
28589 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
28590 PyObject *resultobj;
28591 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28592 wxString *arg2 = 0 ;
28593 bool temp2 = False ;
28594 PyObject * obj0 = 0 ;
28595 PyObject * obj1 = 0 ;
28596 char *kwnames[] = {
28597 (char *) "self",(char *) "filter", NULL
28598 };
28599
28600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28603 {
28604 arg2 = wxString_in_helper(obj1);
28605 if (arg2 == NULL) SWIG_fail;
28606 temp2 = True;
28607 }
28608 {
28609 PyThreadState* __tstate = wxPyBeginAllowThreads();
28610 (arg1)->SetFilter((wxString const &)*arg2);
28611
28612 wxPyEndAllowThreads(__tstate);
28613 if (PyErr_Occurred()) SWIG_fail;
28614 }
28615 Py_INCREF(Py_None); resultobj = Py_None;
28616 {
28617 if (temp2)
28618 delete arg2;
28619 }
28620 return resultobj;
28621 fail:
28622 {
28623 if (temp2)
28624 delete arg2;
28625 }
28626 return NULL;
28627 }
28628
28629
28630 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
28631 PyObject *resultobj;
28632 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28633 int result;
28634 PyObject * obj0 = 0 ;
28635 char *kwnames[] = {
28636 (char *) "self", NULL
28637 };
28638
28639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28642 {
28643 PyThreadState* __tstate = wxPyBeginAllowThreads();
28644 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28645
28646 wxPyEndAllowThreads(__tstate);
28647 if (PyErr_Occurred()) SWIG_fail;
28648 }
28649 resultobj = SWIG_From_int((int)result);
28650 return resultobj;
28651 fail:
28652 return NULL;
28653 }
28654
28655
28656 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
28657 PyObject *resultobj;
28658 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28659 int arg2 ;
28660 PyObject * obj0 = 0 ;
28661 PyObject * obj1 = 0 ;
28662 char *kwnames[] = {
28663 (char *) "self",(char *) "n", NULL
28664 };
28665
28666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28669 arg2 = (int)SWIG_As_int(obj1);
28670 if (PyErr_Occurred()) SWIG_fail;
28671 {
28672 PyThreadState* __tstate = wxPyBeginAllowThreads();
28673 (arg1)->SetFilterIndex(arg2);
28674
28675 wxPyEndAllowThreads(__tstate);
28676 if (PyErr_Occurred()) SWIG_fail;
28677 }
28678 Py_INCREF(Py_None); resultobj = Py_None;
28679 return resultobj;
28680 fail:
28681 return NULL;
28682 }
28683
28684
28685 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) {
28686 PyObject *resultobj;
28687 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28688 wxTreeItemId result;
28689 PyObject * obj0 = 0 ;
28690 char *kwnames[] = {
28691 (char *) "self", NULL
28692 };
28693
28694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28697 {
28698 PyThreadState* __tstate = wxPyBeginAllowThreads();
28699 result = (arg1)->GetRootId();
28700
28701 wxPyEndAllowThreads(__tstate);
28702 if (PyErr_Occurred()) SWIG_fail;
28703 }
28704 {
28705 wxTreeItemId * resultptr;
28706 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28707 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28708 }
28709 return resultobj;
28710 fail:
28711 return NULL;
28712 }
28713
28714
28715 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28716 PyObject *resultobj;
28717 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28718 wxPyTreeCtrl *result;
28719 PyObject * obj0 = 0 ;
28720 char *kwnames[] = {
28721 (char *) "self", NULL
28722 };
28723
28724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
28725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28727 {
28728 PyThreadState* __tstate = wxPyBeginAllowThreads();
28729 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
28730
28731 wxPyEndAllowThreads(__tstate);
28732 if (PyErr_Occurred()) SWIG_fail;
28733 }
28734 {
28735 resultobj = wxPyMake_wxObject(result, 0);
28736 }
28737 return resultobj;
28738 fail:
28739 return NULL;
28740 }
28741
28742
28743 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28744 PyObject *resultobj;
28745 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28746 wxDirFilterListCtrl *result;
28747 PyObject * obj0 = 0 ;
28748 char *kwnames[] = {
28749 (char *) "self", NULL
28750 };
28751
28752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
28753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28755 {
28756 PyThreadState* __tstate = wxPyBeginAllowThreads();
28757 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
28758
28759 wxPyEndAllowThreads(__tstate);
28760 if (PyErr_Occurred()) SWIG_fail;
28761 }
28762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
28763 return resultobj;
28764 fail:
28765 return NULL;
28766 }
28767
28768
28769 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) {
28770 PyObject *resultobj;
28771 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28772 wxTreeItemId arg2 ;
28773 wxString *arg3 = 0 ;
28774 bool *arg4 = 0 ;
28775 wxTreeItemId result;
28776 wxTreeItemId *argp2 ;
28777 bool temp3 = False ;
28778 bool temp4 ;
28779 int res4 = 0 ;
28780 PyObject * obj0 = 0 ;
28781 PyObject * obj1 = 0 ;
28782 PyObject * obj2 = 0 ;
28783 char *kwnames[] = {
28784 (char *) "self",(char *) "parentId",(char *) "path", NULL
28785 };
28786
28787 arg4 = &temp4; res4 = SWIG_NEWOBJ;
28788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
28789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28791 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
28792 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
28793 arg2 = *argp2;
28794 {
28795 arg3 = wxString_in_helper(obj2);
28796 if (arg3 == NULL) SWIG_fail;
28797 temp3 = True;
28798 }
28799 {
28800 PyThreadState* __tstate = wxPyBeginAllowThreads();
28801 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
28802
28803 wxPyEndAllowThreads(__tstate);
28804 if (PyErr_Occurred()) SWIG_fail;
28805 }
28806 {
28807 wxTreeItemId * resultptr;
28808 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28809 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28810 }
28811 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
28812 SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0)));
28813 {
28814 if (temp3)
28815 delete arg3;
28816 }
28817 return resultobj;
28818 fail:
28819 {
28820 if (temp3)
28821 delete arg3;
28822 }
28823 return NULL;
28824 }
28825
28826
28827 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) {
28828 PyObject *resultobj;
28829 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28830 PyObject * obj0 = 0 ;
28831 char *kwnames[] = {
28832 (char *) "self", NULL
28833 };
28834
28835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
28836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28838 {
28839 PyThreadState* __tstate = wxPyBeginAllowThreads();
28840 (arg1)->DoResize();
28841
28842 wxPyEndAllowThreads(__tstate);
28843 if (PyErr_Occurred()) SWIG_fail;
28844 }
28845 Py_INCREF(Py_None); resultobj = Py_None;
28846 return resultobj;
28847 fail:
28848 return NULL;
28849 }
28850
28851
28852 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) {
28853 PyObject *resultobj;
28854 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28855 PyObject * obj0 = 0 ;
28856 char *kwnames[] = {
28857 (char *) "self", NULL
28858 };
28859
28860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
28861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28863 {
28864 PyThreadState* __tstate = wxPyBeginAllowThreads();
28865 (arg1)->ReCreateTree();
28866
28867 wxPyEndAllowThreads(__tstate);
28868 if (PyErr_Occurred()) SWIG_fail;
28869 }
28870 Py_INCREF(Py_None); resultobj = Py_None;
28871 return resultobj;
28872 fail:
28873 return NULL;
28874 }
28875
28876
28877 static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) {
28878 PyObject *obj;
28879 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28880 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
28881 Py_INCREF(obj);
28882 return Py_BuildValue((char *)"");
28883 }
28884 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28885 PyObject *resultobj;
28886 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28887 int arg2 = (int) (int)-1 ;
28888 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28889 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28890 wxSize const &arg4_defvalue = wxDefaultSize ;
28891 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28892 long arg5 = (long) 0 ;
28893 wxDirFilterListCtrl *result;
28894 wxPoint temp3 ;
28895 wxSize temp4 ;
28896 PyObject * obj0 = 0 ;
28897 PyObject * obj1 = 0 ;
28898 PyObject * obj2 = 0 ;
28899 PyObject * obj3 = 0 ;
28900 PyObject * obj4 = 0 ;
28901 char *kwnames[] = {
28902 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28903 };
28904
28905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28908 if (obj1) {
28909 arg2 = (int)SWIG_As_int(obj1);
28910 if (PyErr_Occurred()) SWIG_fail;
28911 }
28912 if (obj2) {
28913 {
28914 arg3 = &temp3;
28915 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28916 }
28917 }
28918 if (obj3) {
28919 {
28920 arg4 = &temp4;
28921 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28922 }
28923 }
28924 if (obj4) {
28925 arg5 = (long)SWIG_As_long(obj4);
28926 if (PyErr_Occurred()) SWIG_fail;
28927 }
28928 {
28929 if (!wxPyCheckForApp()) SWIG_fail;
28930 PyThreadState* __tstate = wxPyBeginAllowThreads();
28931 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28932
28933 wxPyEndAllowThreads(__tstate);
28934 if (PyErr_Occurred()) SWIG_fail;
28935 }
28936 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28937 return resultobj;
28938 fail:
28939 return NULL;
28940 }
28941
28942
28943 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28944 PyObject *resultobj;
28945 wxDirFilterListCtrl *result;
28946 char *kwnames[] = {
28947 NULL
28948 };
28949
28950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
28951 {
28952 if (!wxPyCheckForApp()) SWIG_fail;
28953 PyThreadState* __tstate = wxPyBeginAllowThreads();
28954 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
28955
28956 wxPyEndAllowThreads(__tstate);
28957 if (PyErr_Occurred()) SWIG_fail;
28958 }
28959 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28960 return resultobj;
28961 fail:
28962 return NULL;
28963 }
28964
28965
28966 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28967 PyObject *resultobj;
28968 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28969 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
28970 int arg3 = (int) (int)-1 ;
28971 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28972 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28973 wxSize const &arg5_defvalue = wxDefaultSize ;
28974 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28975 long arg6 = (long) 0 ;
28976 bool result;
28977 wxPoint temp4 ;
28978 wxSize temp5 ;
28979 PyObject * obj0 = 0 ;
28980 PyObject * obj1 = 0 ;
28981 PyObject * obj2 = 0 ;
28982 PyObject * obj3 = 0 ;
28983 PyObject * obj4 = 0 ;
28984 PyObject * obj5 = 0 ;
28985 char *kwnames[] = {
28986 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28987 };
28988
28989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28992 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
28993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28994 if (obj2) {
28995 arg3 = (int)SWIG_As_int(obj2);
28996 if (PyErr_Occurred()) SWIG_fail;
28997 }
28998 if (obj3) {
28999 {
29000 arg4 = &temp4;
29001 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29002 }
29003 }
29004 if (obj4) {
29005 {
29006 arg5 = &temp5;
29007 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29008 }
29009 }
29010 if (obj5) {
29011 arg6 = (long)SWIG_As_long(obj5);
29012 if (PyErr_Occurred()) SWIG_fail;
29013 }
29014 {
29015 PyThreadState* __tstate = wxPyBeginAllowThreads();
29016 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
29017
29018 wxPyEndAllowThreads(__tstate);
29019 if (PyErr_Occurred()) SWIG_fail;
29020 }
29021 {
29022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29023 }
29024 return resultobj;
29025 fail:
29026 return NULL;
29027 }
29028
29029
29030 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) {
29031 PyObject *resultobj;
29032 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29033 wxString *arg2 = 0 ;
29034 int arg3 ;
29035 bool temp2 = False ;
29036 PyObject * obj0 = 0 ;
29037 PyObject * obj1 = 0 ;
29038 PyObject * obj2 = 0 ;
29039 char *kwnames[] = {
29040 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
29041 };
29042
29043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
29044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29046 {
29047 arg2 = wxString_in_helper(obj1);
29048 if (arg2 == NULL) SWIG_fail;
29049 temp2 = True;
29050 }
29051 arg3 = (int)SWIG_As_int(obj2);
29052 if (PyErr_Occurred()) SWIG_fail;
29053 {
29054 PyThreadState* __tstate = wxPyBeginAllowThreads();
29055 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
29056
29057 wxPyEndAllowThreads(__tstate);
29058 if (PyErr_Occurred()) SWIG_fail;
29059 }
29060 Py_INCREF(Py_None); resultobj = Py_None;
29061 {
29062 if (temp2)
29063 delete arg2;
29064 }
29065 return resultobj;
29066 fail:
29067 {
29068 if (temp2)
29069 delete arg2;
29070 }
29071 return NULL;
29072 }
29073
29074
29075 static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) {
29076 PyObject *obj;
29077 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29078 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
29079 Py_INCREF(obj);
29080 return Py_BuildValue((char *)"");
29081 }
29082 static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29083 PyObject *resultobj;
29084 wxWindow *arg1 = (wxWindow *) 0 ;
29085 int arg2 = (int) (int)-1 ;
29086 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29087 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29088 wxSize const &arg4_defvalue = wxDefaultSize ;
29089 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29090 long arg5 = (long) 0 ;
29091 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29092 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29093 wxString const &arg7_defvalue = wxPyControlNameStr ;
29094 wxString *arg7 = (wxString *) &arg7_defvalue ;
29095 wxPyControl *result;
29096 wxPoint temp3 ;
29097 wxSize temp4 ;
29098 bool temp7 = False ;
29099 PyObject * obj0 = 0 ;
29100 PyObject * obj1 = 0 ;
29101 PyObject * obj2 = 0 ;
29102 PyObject * obj3 = 0 ;
29103 PyObject * obj4 = 0 ;
29104 PyObject * obj5 = 0 ;
29105 PyObject * obj6 = 0 ;
29106 char *kwnames[] = {
29107 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29108 };
29109
29110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
29111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29113 if (obj1) {
29114 arg2 = (int)SWIG_As_int(obj1);
29115 if (PyErr_Occurred()) SWIG_fail;
29116 }
29117 if (obj2) {
29118 {
29119 arg3 = &temp3;
29120 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29121 }
29122 }
29123 if (obj3) {
29124 {
29125 arg4 = &temp4;
29126 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29127 }
29128 }
29129 if (obj4) {
29130 arg5 = (long)SWIG_As_long(obj4);
29131 if (PyErr_Occurred()) SWIG_fail;
29132 }
29133 if (obj5) {
29134 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
29135 SWIG_POINTER_EXCEPTION | 0)) == -1)
29136 SWIG_fail;
29137 if (arg6 == NULL) {
29138 PyErr_SetString(PyExc_TypeError,"null reference");
29139 SWIG_fail;
29140 }
29141 }
29142 if (obj6) {
29143 {
29144 arg7 = wxString_in_helper(obj6);
29145 if (arg7 == NULL) SWIG_fail;
29146 temp7 = True;
29147 }
29148 }
29149 {
29150 if (!wxPyCheckForApp()) SWIG_fail;
29151 PyThreadState* __tstate = wxPyBeginAllowThreads();
29152 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29153
29154 wxPyEndAllowThreads(__tstate);
29155 if (PyErr_Occurred()) SWIG_fail;
29156 }
29157 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29158 {
29159 if (temp7)
29160 delete arg7;
29161 }
29162 return resultobj;
29163 fail:
29164 {
29165 if (temp7)
29166 delete arg7;
29167 }
29168 return NULL;
29169 }
29170
29171
29172 static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29173 PyObject *resultobj;
29174 wxPyControl *result;
29175 char *kwnames[] = {
29176 NULL
29177 };
29178
29179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29180 {
29181 if (!wxPyCheckForApp()) SWIG_fail;
29182 PyThreadState* __tstate = wxPyBeginAllowThreads();
29183 result = (wxPyControl *)new wxPyControl();
29184
29185 wxPyEndAllowThreads(__tstate);
29186 if (PyErr_Occurred()) SWIG_fail;
29187 }
29188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29189 return resultobj;
29190 fail:
29191 return NULL;
29192 }
29193
29194
29195 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29196 PyObject *resultobj;
29197 wxPyControl *arg1 = (wxPyControl *) 0 ;
29198 PyObject *arg2 = (PyObject *) 0 ;
29199 PyObject *arg3 = (PyObject *) 0 ;
29200 PyObject * obj0 = 0 ;
29201 PyObject * obj1 = 0 ;
29202 PyObject * obj2 = 0 ;
29203 char *kwnames[] = {
29204 (char *) "self",(char *) "self",(char *) "_class", NULL
29205 };
29206
29207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29210 arg2 = obj1;
29211 arg3 = obj2;
29212 {
29213 PyThreadState* __tstate = wxPyBeginAllowThreads();
29214 (arg1)->_setCallbackInfo(arg2,arg3);
29215
29216 wxPyEndAllowThreads(__tstate);
29217 if (PyErr_Occurred()) SWIG_fail;
29218 }
29219 Py_INCREF(Py_None); resultobj = Py_None;
29220 return resultobj;
29221 fail:
29222 return NULL;
29223 }
29224
29225
29226 static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29227 PyObject *resultobj;
29228 wxPyControl *arg1 = (wxPyControl *) 0 ;
29229 wxSize *arg2 = 0 ;
29230 wxSize temp2 ;
29231 PyObject * obj0 = 0 ;
29232 PyObject * obj1 = 0 ;
29233 char *kwnames[] = {
29234 (char *) "self",(char *) "size", NULL
29235 };
29236
29237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29240 {
29241 arg2 = &temp2;
29242 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29243 }
29244 {
29245 PyThreadState* __tstate = wxPyBeginAllowThreads();
29246 (arg1)->SetBestSize((wxSize const &)*arg2);
29247
29248 wxPyEndAllowThreads(__tstate);
29249 if (PyErr_Occurred()) SWIG_fail;
29250 }
29251 Py_INCREF(Py_None); resultobj = Py_None;
29252 return resultobj;
29253 fail:
29254 return NULL;
29255 }
29256
29257
29258 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29259 PyObject *resultobj;
29260 wxPyControl *arg1 = (wxPyControl *) 0 ;
29261 int arg2 ;
29262 int arg3 ;
29263 int arg4 ;
29264 int arg5 ;
29265 PyObject * obj0 = 0 ;
29266 PyObject * obj1 = 0 ;
29267 PyObject * obj2 = 0 ;
29268 PyObject * obj3 = 0 ;
29269 PyObject * obj4 = 0 ;
29270 char *kwnames[] = {
29271 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29272 };
29273
29274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29277 arg2 = (int)SWIG_As_int(obj1);
29278 if (PyErr_Occurred()) SWIG_fail;
29279 arg3 = (int)SWIG_As_int(obj2);
29280 if (PyErr_Occurred()) SWIG_fail;
29281 arg4 = (int)SWIG_As_int(obj3);
29282 if (PyErr_Occurred()) SWIG_fail;
29283 arg5 = (int)SWIG_As_int(obj4);
29284 if (PyErr_Occurred()) SWIG_fail;
29285 {
29286 PyThreadState* __tstate = wxPyBeginAllowThreads();
29287 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29288
29289 wxPyEndAllowThreads(__tstate);
29290 if (PyErr_Occurred()) SWIG_fail;
29291 }
29292 Py_INCREF(Py_None); resultobj = Py_None;
29293 return resultobj;
29294 fail:
29295 return NULL;
29296 }
29297
29298
29299 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29300 PyObject *resultobj;
29301 wxPyControl *arg1 = (wxPyControl *) 0 ;
29302 int arg2 ;
29303 int arg3 ;
29304 int arg4 ;
29305 int arg5 ;
29306 int arg6 = (int) wxSIZE_AUTO ;
29307 PyObject * obj0 = 0 ;
29308 PyObject * obj1 = 0 ;
29309 PyObject * obj2 = 0 ;
29310 PyObject * obj3 = 0 ;
29311 PyObject * obj4 = 0 ;
29312 PyObject * obj5 = 0 ;
29313 char *kwnames[] = {
29314 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29315 };
29316
29317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29320 arg2 = (int)SWIG_As_int(obj1);
29321 if (PyErr_Occurred()) SWIG_fail;
29322 arg3 = (int)SWIG_As_int(obj2);
29323 if (PyErr_Occurred()) SWIG_fail;
29324 arg4 = (int)SWIG_As_int(obj3);
29325 if (PyErr_Occurred()) SWIG_fail;
29326 arg5 = (int)SWIG_As_int(obj4);
29327 if (PyErr_Occurred()) SWIG_fail;
29328 if (obj5) {
29329 arg6 = (int)SWIG_As_int(obj5);
29330 if (PyErr_Occurred()) SWIG_fail;
29331 }
29332 {
29333 PyThreadState* __tstate = wxPyBeginAllowThreads();
29334 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29335
29336 wxPyEndAllowThreads(__tstate);
29337 if (PyErr_Occurred()) SWIG_fail;
29338 }
29339 Py_INCREF(Py_None); resultobj = Py_None;
29340 return resultobj;
29341 fail:
29342 return NULL;
29343 }
29344
29345
29346 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29347 PyObject *resultobj;
29348 wxPyControl *arg1 = (wxPyControl *) 0 ;
29349 int arg2 ;
29350 int arg3 ;
29351 PyObject * obj0 = 0 ;
29352 PyObject * obj1 = 0 ;
29353 PyObject * obj2 = 0 ;
29354 char *kwnames[] = {
29355 (char *) "self",(char *) "width",(char *) "height", NULL
29356 };
29357
29358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29361 arg2 = (int)SWIG_As_int(obj1);
29362 if (PyErr_Occurred()) SWIG_fail;
29363 arg3 = (int)SWIG_As_int(obj2);
29364 if (PyErr_Occurred()) SWIG_fail;
29365 {
29366 PyThreadState* __tstate = wxPyBeginAllowThreads();
29367 (arg1)->base_DoSetClientSize(arg2,arg3);
29368
29369 wxPyEndAllowThreads(__tstate);
29370 if (PyErr_Occurred()) SWIG_fail;
29371 }
29372 Py_INCREF(Py_None); resultobj = Py_None;
29373 return resultobj;
29374 fail:
29375 return NULL;
29376 }
29377
29378
29379 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29380 PyObject *resultobj;
29381 wxPyControl *arg1 = (wxPyControl *) 0 ;
29382 int arg2 ;
29383 int arg3 ;
29384 PyObject * obj0 = 0 ;
29385 PyObject * obj1 = 0 ;
29386 PyObject * obj2 = 0 ;
29387 char *kwnames[] = {
29388 (char *) "self",(char *) "x",(char *) "y", NULL
29389 };
29390
29391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29394 arg2 = (int)SWIG_As_int(obj1);
29395 if (PyErr_Occurred()) SWIG_fail;
29396 arg3 = (int)SWIG_As_int(obj2);
29397 if (PyErr_Occurred()) SWIG_fail;
29398 {
29399 PyThreadState* __tstate = wxPyBeginAllowThreads();
29400 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29401
29402 wxPyEndAllowThreads(__tstate);
29403 if (PyErr_Occurred()) SWIG_fail;
29404 }
29405 Py_INCREF(Py_None); resultobj = Py_None;
29406 return resultobj;
29407 fail:
29408 return NULL;
29409 }
29410
29411
29412 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29413 PyObject *resultobj;
29414 wxPyControl *arg1 = (wxPyControl *) 0 ;
29415 int *arg2 = (int *) 0 ;
29416 int *arg3 = (int *) 0 ;
29417 int temp2 ;
29418 int res2 = 0 ;
29419 int temp3 ;
29420 int res3 = 0 ;
29421 PyObject * obj0 = 0 ;
29422 char *kwnames[] = {
29423 (char *) "self", NULL
29424 };
29425
29426 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29427 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29431 {
29432 PyThreadState* __tstate = wxPyBeginAllowThreads();
29433 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29434
29435 wxPyEndAllowThreads(__tstate);
29436 if (PyErr_Occurred()) SWIG_fail;
29437 }
29438 Py_INCREF(Py_None); resultobj = Py_None;
29439 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29440 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29441 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29442 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29443 return resultobj;
29444 fail:
29445 return NULL;
29446 }
29447
29448
29449 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29450 PyObject *resultobj;
29451 wxPyControl *arg1 = (wxPyControl *) 0 ;
29452 int *arg2 = (int *) 0 ;
29453 int *arg3 = (int *) 0 ;
29454 int temp2 ;
29455 int res2 = 0 ;
29456 int temp3 ;
29457 int res3 = 0 ;
29458 PyObject * obj0 = 0 ;
29459 char *kwnames[] = {
29460 (char *) "self", NULL
29461 };
29462
29463 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29464 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29468 {
29469 PyThreadState* __tstate = wxPyBeginAllowThreads();
29470 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29471
29472 wxPyEndAllowThreads(__tstate);
29473 if (PyErr_Occurred()) SWIG_fail;
29474 }
29475 Py_INCREF(Py_None); resultobj = Py_None;
29476 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29477 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29478 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29479 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29480 return resultobj;
29481 fail:
29482 return NULL;
29483 }
29484
29485
29486 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
29487 PyObject *resultobj;
29488 wxPyControl *arg1 = (wxPyControl *) 0 ;
29489 int *arg2 = (int *) 0 ;
29490 int *arg3 = (int *) 0 ;
29491 int temp2 ;
29492 int res2 = 0 ;
29493 int temp3 ;
29494 int res3 = 0 ;
29495 PyObject * obj0 = 0 ;
29496 char *kwnames[] = {
29497 (char *) "self", NULL
29498 };
29499
29500 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29501 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29505 {
29506 PyThreadState* __tstate = wxPyBeginAllowThreads();
29507 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29508
29509 wxPyEndAllowThreads(__tstate);
29510 if (PyErr_Occurred()) SWIG_fail;
29511 }
29512 Py_INCREF(Py_None); resultobj = Py_None;
29513 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29514 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29515 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29516 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29517 return resultobj;
29518 fail:
29519 return NULL;
29520 }
29521
29522
29523 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29524 PyObject *resultobj;
29525 wxPyControl *arg1 = (wxPyControl *) 0 ;
29526 wxSize result;
29527 PyObject * obj0 = 0 ;
29528 char *kwnames[] = {
29529 (char *) "self", NULL
29530 };
29531
29532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29535 {
29536 PyThreadState* __tstate = wxPyBeginAllowThreads();
29537 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29538
29539 wxPyEndAllowThreads(__tstate);
29540 if (PyErr_Occurred()) SWIG_fail;
29541 }
29542 {
29543 wxSize * resultptr;
29544 resultptr = new wxSize((wxSize &) result);
29545 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29546 }
29547 return resultobj;
29548 fail:
29549 return NULL;
29550 }
29551
29552
29553 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29554 PyObject *resultobj;
29555 wxPyControl *arg1 = (wxPyControl *) 0 ;
29556 wxSize result;
29557 PyObject * obj0 = 0 ;
29558 char *kwnames[] = {
29559 (char *) "self", NULL
29560 };
29561
29562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",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 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29568
29569 wxPyEndAllowThreads(__tstate);
29570 if (PyErr_Occurred()) SWIG_fail;
29571 }
29572 {
29573 wxSize * resultptr;
29574 resultptr = new wxSize((wxSize &) result);
29575 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29576 }
29577 return resultobj;
29578 fail:
29579 return NULL;
29580 }
29581
29582
29583 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
29584 PyObject *resultobj;
29585 wxPyControl *arg1 = (wxPyControl *) 0 ;
29586 PyObject * obj0 = 0 ;
29587 char *kwnames[] = {
29588 (char *) "self", NULL
29589 };
29590
29591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29594 {
29595 PyThreadState* __tstate = wxPyBeginAllowThreads();
29596 (arg1)->base_InitDialog();
29597
29598 wxPyEndAllowThreads(__tstate);
29599 if (PyErr_Occurred()) SWIG_fail;
29600 }
29601 Py_INCREF(Py_None); resultobj = Py_None;
29602 return resultobj;
29603 fail:
29604 return NULL;
29605 }
29606
29607
29608 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29609 PyObject *resultobj;
29610 wxPyControl *arg1 = (wxPyControl *) 0 ;
29611 bool result;
29612 PyObject * obj0 = 0 ;
29613 char *kwnames[] = {
29614 (char *) "self", NULL
29615 };
29616
29617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29620 {
29621 PyThreadState* __tstate = wxPyBeginAllowThreads();
29622 result = (bool)(arg1)->base_TransferDataToWindow();
29623
29624 wxPyEndAllowThreads(__tstate);
29625 if (PyErr_Occurred()) SWIG_fail;
29626 }
29627 {
29628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29629 }
29630 return resultobj;
29631 fail:
29632 return NULL;
29633 }
29634
29635
29636 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29637 PyObject *resultobj;
29638 wxPyControl *arg1 = (wxPyControl *) 0 ;
29639 bool result;
29640 PyObject * obj0 = 0 ;
29641 char *kwnames[] = {
29642 (char *) "self", NULL
29643 };
29644
29645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29648 {
29649 PyThreadState* __tstate = wxPyBeginAllowThreads();
29650 result = (bool)(arg1)->base_TransferDataFromWindow();
29651
29652 wxPyEndAllowThreads(__tstate);
29653 if (PyErr_Occurred()) SWIG_fail;
29654 }
29655 {
29656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29657 }
29658 return resultobj;
29659 fail:
29660 return NULL;
29661 }
29662
29663
29664 static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
29665 PyObject *resultobj;
29666 wxPyControl *arg1 = (wxPyControl *) 0 ;
29667 bool result;
29668 PyObject * obj0 = 0 ;
29669 char *kwnames[] = {
29670 (char *) "self", NULL
29671 };
29672
29673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29676 {
29677 PyThreadState* __tstate = wxPyBeginAllowThreads();
29678 result = (bool)(arg1)->base_Validate();
29679
29680 wxPyEndAllowThreads(__tstate);
29681 if (PyErr_Occurred()) SWIG_fail;
29682 }
29683 {
29684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29685 }
29686 return resultobj;
29687 fail:
29688 return NULL;
29689 }
29690
29691
29692 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
29693 PyObject *resultobj;
29694 wxPyControl *arg1 = (wxPyControl *) 0 ;
29695 bool result;
29696 PyObject * obj0 = 0 ;
29697 char *kwnames[] = {
29698 (char *) "self", NULL
29699 };
29700
29701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29704 {
29705 PyThreadState* __tstate = wxPyBeginAllowThreads();
29706 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29707
29708 wxPyEndAllowThreads(__tstate);
29709 if (PyErr_Occurred()) SWIG_fail;
29710 }
29711 {
29712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29713 }
29714 return resultobj;
29715 fail:
29716 return NULL;
29717 }
29718
29719
29720 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
29721 PyObject *resultobj;
29722 wxPyControl *arg1 = (wxPyControl *) 0 ;
29723 bool result;
29724 PyObject * obj0 = 0 ;
29725 char *kwnames[] = {
29726 (char *) "self", NULL
29727 };
29728
29729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
29730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29732 {
29733 PyThreadState* __tstate = wxPyBeginAllowThreads();
29734 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
29735
29736 wxPyEndAllowThreads(__tstate);
29737 if (PyErr_Occurred()) SWIG_fail;
29738 }
29739 {
29740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29741 }
29742 return resultobj;
29743 fail:
29744 return NULL;
29745 }
29746
29747
29748 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
29749 PyObject *resultobj;
29750 wxPyControl *arg1 = (wxPyControl *) 0 ;
29751 wxSize result;
29752 PyObject * obj0 = 0 ;
29753 char *kwnames[] = {
29754 (char *) "self", NULL
29755 };
29756
29757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
29758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29760 {
29761 PyThreadState* __tstate = wxPyBeginAllowThreads();
29762 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
29763
29764 wxPyEndAllowThreads(__tstate);
29765 if (PyErr_Occurred()) SWIG_fail;
29766 }
29767 {
29768 wxSize * resultptr;
29769 resultptr = new wxSize((wxSize &) result);
29770 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29771 }
29772 return resultobj;
29773 fail:
29774 return NULL;
29775 }
29776
29777
29778 static PyObject *_wrap_PyControl_base_AddChild(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_AddChild",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_AddChild(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_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
29808 PyObject *resultobj;
29809 wxPyControl *arg1 = (wxPyControl *) 0 ;
29810 wxWindow *arg2 = (wxWindow *) 0 ;
29811 PyObject * obj0 = 0 ;
29812 PyObject * obj1 = 0 ;
29813 char *kwnames[] = {
29814 (char *) "self",(char *) "child", NULL
29815 };
29816
29817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
29818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29822 {
29823 PyThreadState* __tstate = wxPyBeginAllowThreads();
29824 (arg1)->base_RemoveChild(arg2);
29825
29826 wxPyEndAllowThreads(__tstate);
29827 if (PyErr_Occurred()) SWIG_fail;
29828 }
29829 Py_INCREF(Py_None); resultobj = Py_None;
29830 return resultobj;
29831 fail:
29832 return NULL;
29833 }
29834
29835
29836 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
29837 PyObject *resultobj;
29838 wxPyControl *arg1 = (wxPyControl *) 0 ;
29839 bool result;
29840 PyObject * obj0 = 0 ;
29841 char *kwnames[] = {
29842 (char *) "self", NULL
29843 };
29844
29845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
29846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29848 {
29849 PyThreadState* __tstate = wxPyBeginAllowThreads();
29850 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
29851
29852 wxPyEndAllowThreads(__tstate);
29853 if (PyErr_Occurred()) SWIG_fail;
29854 }
29855 {
29856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29857 }
29858 return resultobj;
29859 fail:
29860 return NULL;
29861 }
29862
29863
29864 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
29865 PyObject *resultobj;
29866 wxPyControl *arg1 = (wxPyControl *) 0 ;
29867 wxColour *arg2 = 0 ;
29868 wxColour temp2 ;
29869 PyObject * obj0 = 0 ;
29870 PyObject * obj1 = 0 ;
29871 char *kwnames[] = {
29872 (char *) "self",(char *) "c", NULL
29873 };
29874
29875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
29876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29878 {
29879 arg2 = &temp2;
29880 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29881 }
29882 {
29883 PyThreadState* __tstate = wxPyBeginAllowThreads();
29884 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
29885
29886 wxPyEndAllowThreads(__tstate);
29887 if (PyErr_Occurred()) SWIG_fail;
29888 }
29889 Py_INCREF(Py_None); resultobj = Py_None;
29890 return resultobj;
29891 fail:
29892 return NULL;
29893 }
29894
29895
29896 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
29897 PyObject *resultobj;
29898 wxPyControl *arg1 = (wxPyControl *) 0 ;
29899 wxVisualAttributes result;
29900 PyObject * obj0 = 0 ;
29901 char *kwnames[] = {
29902 (char *) "self", NULL
29903 };
29904
29905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
29906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29908 {
29909 PyThreadState* __tstate = wxPyBeginAllowThreads();
29910 result = (arg1)->base_GetDefaultAttributes();
29911
29912 wxPyEndAllowThreads(__tstate);
29913 if (PyErr_Occurred()) SWIG_fail;
29914 }
29915 {
29916 wxVisualAttributes * resultptr;
29917 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
29918 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
29919 }
29920 return resultobj;
29921 fail:
29922 return NULL;
29923 }
29924
29925
29926 static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
29927 PyObject *obj;
29928 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29929 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
29930 Py_INCREF(obj);
29931 return Py_BuildValue((char *)"");
29932 }
29933 static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) {
29934 PyObject *resultobj;
29935 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29936 int arg2 = (int) 0 ;
29937 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29938 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29939 wxHelpEvent *result;
29940 wxPoint temp3 ;
29941 PyObject * obj0 = 0 ;
29942 PyObject * obj1 = 0 ;
29943 PyObject * obj2 = 0 ;
29944 char *kwnames[] = {
29945 (char *) "type",(char *) "winid",(char *) "pt", NULL
29946 };
29947
29948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
29949 if (obj0) {
29950 arg1 = (wxEventType)SWIG_As_int(obj0);
29951 if (PyErr_Occurred()) SWIG_fail;
29952 }
29953 if (obj1) {
29954 arg2 = (int)SWIG_As_int(obj1);
29955 if (PyErr_Occurred()) SWIG_fail;
29956 }
29957 if (obj2) {
29958 {
29959 arg3 = &temp3;
29960 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29961 }
29962 }
29963 {
29964 PyThreadState* __tstate = wxPyBeginAllowThreads();
29965 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
29966
29967 wxPyEndAllowThreads(__tstate);
29968 if (PyErr_Occurred()) SWIG_fail;
29969 }
29970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
29971 return resultobj;
29972 fail:
29973 return NULL;
29974 }
29975
29976
29977 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
29978 PyObject *resultobj;
29979 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29980 wxPoint result;
29981 PyObject * obj0 = 0 ;
29982 char *kwnames[] = {
29983 (char *) "self", NULL
29984 };
29985
29986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
29987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29989 {
29990 PyThreadState* __tstate = wxPyBeginAllowThreads();
29991 result = ((wxHelpEvent const *)arg1)->GetPosition();
29992
29993 wxPyEndAllowThreads(__tstate);
29994 if (PyErr_Occurred()) SWIG_fail;
29995 }
29996 {
29997 wxPoint * resultptr;
29998 resultptr = new wxPoint((wxPoint &) result);
29999 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
30000 }
30001 return resultobj;
30002 fail:
30003 return NULL;
30004 }
30005
30006
30007 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30008 PyObject *resultobj;
30009 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30010 wxPoint *arg2 = 0 ;
30011 wxPoint temp2 ;
30012 PyObject * obj0 = 0 ;
30013 PyObject * obj1 = 0 ;
30014 char *kwnames[] = {
30015 (char *) "self",(char *) "pos", NULL
30016 };
30017
30018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
30019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30021 {
30022 arg2 = &temp2;
30023 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30024 }
30025 {
30026 PyThreadState* __tstate = wxPyBeginAllowThreads();
30027 (arg1)->SetPosition((wxPoint const &)*arg2);
30028
30029 wxPyEndAllowThreads(__tstate);
30030 if (PyErr_Occurred()) SWIG_fail;
30031 }
30032 Py_INCREF(Py_None); resultobj = Py_None;
30033 return resultobj;
30034 fail:
30035 return NULL;
30036 }
30037
30038
30039 static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30040 PyObject *resultobj;
30041 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30042 wxString *result;
30043 PyObject * obj0 = 0 ;
30044 char *kwnames[] = {
30045 (char *) "self", NULL
30046 };
30047
30048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
30049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30051 {
30052 PyThreadState* __tstate = wxPyBeginAllowThreads();
30053 {
30054 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
30055 result = (wxString *) &_result_ref;
30056 }
30057
30058 wxPyEndAllowThreads(__tstate);
30059 if (PyErr_Occurred()) SWIG_fail;
30060 }
30061 {
30062 #if wxUSE_UNICODE
30063 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30064 #else
30065 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30066 #endif
30067 }
30068 return resultobj;
30069 fail:
30070 return NULL;
30071 }
30072
30073
30074 static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30075 PyObject *resultobj;
30076 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30077 wxString *arg2 = 0 ;
30078 bool temp2 = False ;
30079 PyObject * obj0 = 0 ;
30080 PyObject * obj1 = 0 ;
30081 char *kwnames[] = {
30082 (char *) "self",(char *) "link", NULL
30083 };
30084
30085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
30086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30088 {
30089 arg2 = wxString_in_helper(obj1);
30090 if (arg2 == NULL) SWIG_fail;
30091 temp2 = True;
30092 }
30093 {
30094 PyThreadState* __tstate = wxPyBeginAllowThreads();
30095 (arg1)->SetLink((wxString const &)*arg2);
30096
30097 wxPyEndAllowThreads(__tstate);
30098 if (PyErr_Occurred()) SWIG_fail;
30099 }
30100 Py_INCREF(Py_None); resultobj = Py_None;
30101 {
30102 if (temp2)
30103 delete arg2;
30104 }
30105 return resultobj;
30106 fail:
30107 {
30108 if (temp2)
30109 delete arg2;
30110 }
30111 return NULL;
30112 }
30113
30114
30115 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30116 PyObject *resultobj;
30117 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30118 wxString *result;
30119 PyObject * obj0 = 0 ;
30120 char *kwnames[] = {
30121 (char *) "self", NULL
30122 };
30123
30124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
30125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30127 {
30128 PyThreadState* __tstate = wxPyBeginAllowThreads();
30129 {
30130 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
30131 result = (wxString *) &_result_ref;
30132 }
30133
30134 wxPyEndAllowThreads(__tstate);
30135 if (PyErr_Occurred()) SWIG_fail;
30136 }
30137 {
30138 #if wxUSE_UNICODE
30139 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30140 #else
30141 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30142 #endif
30143 }
30144 return resultobj;
30145 fail:
30146 return NULL;
30147 }
30148
30149
30150 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30151 PyObject *resultobj;
30152 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30153 wxString *arg2 = 0 ;
30154 bool temp2 = False ;
30155 PyObject * obj0 = 0 ;
30156 PyObject * obj1 = 0 ;
30157 char *kwnames[] = {
30158 (char *) "self",(char *) "target", NULL
30159 };
30160
30161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
30162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30164 {
30165 arg2 = wxString_in_helper(obj1);
30166 if (arg2 == NULL) SWIG_fail;
30167 temp2 = True;
30168 }
30169 {
30170 PyThreadState* __tstate = wxPyBeginAllowThreads();
30171 (arg1)->SetTarget((wxString const &)*arg2);
30172
30173 wxPyEndAllowThreads(__tstate);
30174 if (PyErr_Occurred()) SWIG_fail;
30175 }
30176 Py_INCREF(Py_None); resultobj = Py_None;
30177 {
30178 if (temp2)
30179 delete arg2;
30180 }
30181 return resultobj;
30182 fail:
30183 {
30184 if (temp2)
30185 delete arg2;
30186 }
30187 return NULL;
30188 }
30189
30190
30191 static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) {
30192 PyObject *obj;
30193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30194 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30195 Py_INCREF(obj);
30196 return Py_BuildValue((char *)"");
30197 }
30198 static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30199 PyObject *resultobj;
30200 wxWindow *arg1 = (wxWindow *) NULL ;
30201 bool arg2 = (bool) True ;
30202 wxContextHelp *result;
30203 PyObject * obj0 = 0 ;
30204 PyObject * obj1 = 0 ;
30205 char *kwnames[] = {
30206 (char *) "window",(char *) "doNow", NULL
30207 };
30208
30209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30210 if (obj0) {
30211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30213 }
30214 if (obj1) {
30215 arg2 = (bool)SWIG_As_bool(obj1);
30216 if (PyErr_Occurred()) SWIG_fail;
30217 }
30218 {
30219 if (!wxPyCheckForApp()) SWIG_fail;
30220 PyThreadState* __tstate = wxPyBeginAllowThreads();
30221 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30222
30223 wxPyEndAllowThreads(__tstate);
30224 if (PyErr_Occurred()) SWIG_fail;
30225 }
30226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30227 return resultobj;
30228 fail:
30229 return NULL;
30230 }
30231
30232
30233 static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30234 PyObject *resultobj;
30235 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30236 PyObject * obj0 = 0 ;
30237 char *kwnames[] = {
30238 (char *) "self", NULL
30239 };
30240
30241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30244 {
30245 PyThreadState* __tstate = wxPyBeginAllowThreads();
30246 delete arg1;
30247
30248 wxPyEndAllowThreads(__tstate);
30249 if (PyErr_Occurred()) SWIG_fail;
30250 }
30251 Py_INCREF(Py_None); resultobj = Py_None;
30252 return resultobj;
30253 fail:
30254 return NULL;
30255 }
30256
30257
30258 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30259 PyObject *resultobj;
30260 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30261 wxWindow *arg2 = (wxWindow *) NULL ;
30262 bool result;
30263 PyObject * obj0 = 0 ;
30264 PyObject * obj1 = 0 ;
30265 char *kwnames[] = {
30266 (char *) "self",(char *) "window", NULL
30267 };
30268
30269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30272 if (obj1) {
30273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30275 }
30276 {
30277 PyThreadState* __tstate = wxPyBeginAllowThreads();
30278 result = (bool)(arg1)->BeginContextHelp(arg2);
30279
30280 wxPyEndAllowThreads(__tstate);
30281 if (PyErr_Occurred()) SWIG_fail;
30282 }
30283 {
30284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30285 }
30286 return resultobj;
30287 fail:
30288 return NULL;
30289 }
30290
30291
30292 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30293 PyObject *resultobj;
30294 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30295 bool result;
30296 PyObject * obj0 = 0 ;
30297 char *kwnames[] = {
30298 (char *) "self", NULL
30299 };
30300
30301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30304 {
30305 PyThreadState* __tstate = wxPyBeginAllowThreads();
30306 result = (bool)(arg1)->EndContextHelp();
30307
30308 wxPyEndAllowThreads(__tstate);
30309 if (PyErr_Occurred()) SWIG_fail;
30310 }
30311 {
30312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30313 }
30314 return resultobj;
30315 fail:
30316 return NULL;
30317 }
30318
30319
30320 static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) {
30321 PyObject *obj;
30322 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30323 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30324 Py_INCREF(obj);
30325 return Py_BuildValue((char *)"");
30326 }
30327 static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
30328 PyObject *resultobj;
30329 wxWindow *arg1 = (wxWindow *) 0 ;
30330 int arg2 = (int) wxID_CONTEXT_HELP ;
30331 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30332 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30333 wxSize const &arg4_defvalue = wxDefaultSize ;
30334 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30335 long arg5 = (long) wxBU_AUTODRAW ;
30336 wxContextHelpButton *result;
30337 wxPoint temp3 ;
30338 wxSize temp4 ;
30339 PyObject * obj0 = 0 ;
30340 PyObject * obj1 = 0 ;
30341 PyObject * obj2 = 0 ;
30342 PyObject * obj3 = 0 ;
30343 PyObject * obj4 = 0 ;
30344 char *kwnames[] = {
30345 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30346 };
30347
30348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30351 if (obj1) {
30352 arg2 = (int)SWIG_As_int(obj1);
30353 if (PyErr_Occurred()) SWIG_fail;
30354 }
30355 if (obj2) {
30356 {
30357 arg3 = &temp3;
30358 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30359 }
30360 }
30361 if (obj3) {
30362 {
30363 arg4 = &temp4;
30364 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30365 }
30366 }
30367 if (obj4) {
30368 arg5 = (long)SWIG_As_long(obj4);
30369 if (PyErr_Occurred()) SWIG_fail;
30370 }
30371 {
30372 if (!wxPyCheckForApp()) SWIG_fail;
30373 PyThreadState* __tstate = wxPyBeginAllowThreads();
30374 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30375
30376 wxPyEndAllowThreads(__tstate);
30377 if (PyErr_Occurred()) SWIG_fail;
30378 }
30379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30380 return resultobj;
30381 fail:
30382 return NULL;
30383 }
30384
30385
30386 static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) {
30387 PyObject *obj;
30388 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30389 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30390 Py_INCREF(obj);
30391 return Py_BuildValue((char *)"");
30392 }
30393 static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) {
30394 PyObject *resultobj;
30395 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30396 wxHelpProvider *result;
30397 PyObject * obj0 = 0 ;
30398 char *kwnames[] = {
30399 (char *) "helpProvider", NULL
30400 };
30401
30402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30405 {
30406 PyThreadState* __tstate = wxPyBeginAllowThreads();
30407 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30408
30409 wxPyEndAllowThreads(__tstate);
30410 if (PyErr_Occurred()) SWIG_fail;
30411 }
30412 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30413 return resultobj;
30414 fail:
30415 return NULL;
30416 }
30417
30418
30419 static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) {
30420 PyObject *resultobj;
30421 wxHelpProvider *result;
30422 char *kwnames[] = {
30423 NULL
30424 };
30425
30426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30427 {
30428 PyThreadState* __tstate = wxPyBeginAllowThreads();
30429 result = (wxHelpProvider *)wxHelpProvider::Get();
30430
30431 wxPyEndAllowThreads(__tstate);
30432 if (PyErr_Occurred()) SWIG_fail;
30433 }
30434 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30435 return resultobj;
30436 fail:
30437 return NULL;
30438 }
30439
30440
30441 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30442 PyObject *resultobj;
30443 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30444 wxWindow *arg2 = (wxWindow *) 0 ;
30445 wxString result;
30446 PyObject * obj0 = 0 ;
30447 PyObject * obj1 = 0 ;
30448 char *kwnames[] = {
30449 (char *) "self",(char *) "window", NULL
30450 };
30451
30452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30455 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30457 {
30458 PyThreadState* __tstate = wxPyBeginAllowThreads();
30459 result = (arg1)->GetHelp((wxWindow const *)arg2);
30460
30461 wxPyEndAllowThreads(__tstate);
30462 if (PyErr_Occurred()) SWIG_fail;
30463 }
30464 {
30465 #if wxUSE_UNICODE
30466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30467 #else
30468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30469 #endif
30470 }
30471 return resultobj;
30472 fail:
30473 return NULL;
30474 }
30475
30476
30477 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30478 PyObject *resultobj;
30479 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30480 wxWindow *arg2 = (wxWindow *) 0 ;
30481 bool result;
30482 PyObject * obj0 = 0 ;
30483 PyObject * obj1 = 0 ;
30484 char *kwnames[] = {
30485 (char *) "self",(char *) "window", NULL
30486 };
30487
30488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30491 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30493 {
30494 PyThreadState* __tstate = wxPyBeginAllowThreads();
30495 result = (bool)(arg1)->ShowHelp(arg2);
30496
30497 wxPyEndAllowThreads(__tstate);
30498 if (PyErr_Occurred()) SWIG_fail;
30499 }
30500 {
30501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30502 }
30503 return resultobj;
30504 fail:
30505 return NULL;
30506 }
30507
30508
30509 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30510 PyObject *resultobj;
30511 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30512 wxWindow *arg2 = (wxWindow *) 0 ;
30513 wxString *arg3 = 0 ;
30514 bool temp3 = False ;
30515 PyObject * obj0 = 0 ;
30516 PyObject * obj1 = 0 ;
30517 PyObject * obj2 = 0 ;
30518 char *kwnames[] = {
30519 (char *) "self",(char *) "window",(char *) "text", NULL
30520 };
30521
30522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30527 {
30528 arg3 = wxString_in_helper(obj2);
30529 if (arg3 == NULL) SWIG_fail;
30530 temp3 = True;
30531 }
30532 {
30533 PyThreadState* __tstate = wxPyBeginAllowThreads();
30534 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30535
30536 wxPyEndAllowThreads(__tstate);
30537 if (PyErr_Occurred()) SWIG_fail;
30538 }
30539 Py_INCREF(Py_None); resultobj = Py_None;
30540 {
30541 if (temp3)
30542 delete arg3;
30543 }
30544 return resultobj;
30545 fail:
30546 {
30547 if (temp3)
30548 delete arg3;
30549 }
30550 return NULL;
30551 }
30552
30553
30554 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) {
30555 PyObject *resultobj;
30556 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30557 int arg2 ;
30558 wxString *arg3 = 0 ;
30559 bool temp3 = False ;
30560 PyObject * obj0 = 0 ;
30561 PyObject * obj1 = 0 ;
30562 PyObject * obj2 = 0 ;
30563 char *kwnames[] = {
30564 (char *) "self",(char *) "id",(char *) "text", NULL
30565 };
30566
30567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30570 arg2 = (int)SWIG_As_int(obj1);
30571 if (PyErr_Occurred()) SWIG_fail;
30572 {
30573 arg3 = wxString_in_helper(obj2);
30574 if (arg3 == NULL) SWIG_fail;
30575 temp3 = True;
30576 }
30577 {
30578 PyThreadState* __tstate = wxPyBeginAllowThreads();
30579 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30580
30581 wxPyEndAllowThreads(__tstate);
30582 if (PyErr_Occurred()) SWIG_fail;
30583 }
30584 Py_INCREF(Py_None); resultobj = Py_None;
30585 {
30586 if (temp3)
30587 delete arg3;
30588 }
30589 return resultobj;
30590 fail:
30591 {
30592 if (temp3)
30593 delete arg3;
30594 }
30595 return NULL;
30596 }
30597
30598
30599 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30600 PyObject *resultobj;
30601 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30602 wxWindow *arg2 = (wxWindow *) 0 ;
30603 PyObject * obj0 = 0 ;
30604 PyObject * obj1 = 0 ;
30605 char *kwnames[] = {
30606 (char *) "self",(char *) "window", NULL
30607 };
30608
30609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30612 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30614 {
30615 PyThreadState* __tstate = wxPyBeginAllowThreads();
30616 (arg1)->RemoveHelp(arg2);
30617
30618 wxPyEndAllowThreads(__tstate);
30619 if (PyErr_Occurred()) SWIG_fail;
30620 }
30621 Py_INCREF(Py_None); resultobj = Py_None;
30622 return resultobj;
30623 fail:
30624 return NULL;
30625 }
30626
30627
30628 static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
30629 PyObject *resultobj;
30630 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30631 PyObject * obj0 = 0 ;
30632 char *kwnames[] = {
30633 (char *) "self", NULL
30634 };
30635
30636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30639 {
30640 PyThreadState* __tstate = wxPyBeginAllowThreads();
30641 wxHelpProvider_Destroy(arg1);
30642
30643 wxPyEndAllowThreads(__tstate);
30644 if (PyErr_Occurred()) SWIG_fail;
30645 }
30646 Py_INCREF(Py_None); resultobj = Py_None;
30647 return resultobj;
30648 fail:
30649 return NULL;
30650 }
30651
30652
30653 static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) {
30654 PyObject *obj;
30655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30656 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30657 Py_INCREF(obj);
30658 return Py_BuildValue((char *)"");
30659 }
30660 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) {
30661 PyObject *resultobj;
30662 wxSimpleHelpProvider *result;
30663 char *kwnames[] = {
30664 NULL
30665 };
30666
30667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30668 {
30669 PyThreadState* __tstate = wxPyBeginAllowThreads();
30670 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30671
30672 wxPyEndAllowThreads(__tstate);
30673 if (PyErr_Occurred()) SWIG_fail;
30674 }
30675 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30676 return resultobj;
30677 fail:
30678 return NULL;
30679 }
30680
30681
30682 static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) {
30683 PyObject *obj;
30684 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30685 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30686 Py_INCREF(obj);
30687 return Py_BuildValue((char *)"");
30688 }
30689 static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
30690 PyObject *resultobj;
30691 wxBitmap *arg1 = 0 ;
30692 wxCursor const &arg2_defvalue = wxNullCursor ;
30693 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30694 wxGenericDragImage *result;
30695 PyObject * obj0 = 0 ;
30696 PyObject * obj1 = 0 ;
30697 char *kwnames[] = {
30698 (char *) "image",(char *) "cursor", NULL
30699 };
30700
30701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30703 SWIG_POINTER_EXCEPTION | 0)) == -1)
30704 SWIG_fail;
30705 if (arg1 == NULL) {
30706 PyErr_SetString(PyExc_TypeError,"null reference");
30707 SWIG_fail;
30708 }
30709 if (obj1) {
30710 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30711 SWIG_POINTER_EXCEPTION | 0)) == -1)
30712 SWIG_fail;
30713 if (arg2 == NULL) {
30714 PyErr_SetString(PyExc_TypeError,"null reference");
30715 SWIG_fail;
30716 }
30717 }
30718 {
30719 if (!wxPyCheckForApp()) SWIG_fail;
30720 PyThreadState* __tstate = wxPyBeginAllowThreads();
30721 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30722
30723 wxPyEndAllowThreads(__tstate);
30724 if (PyErr_Occurred()) SWIG_fail;
30725 }
30726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30727 return resultobj;
30728 fail:
30729 return NULL;
30730 }
30731
30732
30733 static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) {
30734 PyObject *resultobj;
30735 wxIcon *arg1 = 0 ;
30736 wxCursor const &arg2_defvalue = wxNullCursor ;
30737 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30738 wxGenericDragImage *result;
30739 PyObject * obj0 = 0 ;
30740 PyObject * obj1 = 0 ;
30741 char *kwnames[] = {
30742 (char *) "image",(char *) "cursor", NULL
30743 };
30744
30745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
30746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
30747 SWIG_POINTER_EXCEPTION | 0)) == -1)
30748 SWIG_fail;
30749 if (arg1 == NULL) {
30750 PyErr_SetString(PyExc_TypeError,"null reference");
30751 SWIG_fail;
30752 }
30753 if (obj1) {
30754 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30755 SWIG_POINTER_EXCEPTION | 0)) == -1)
30756 SWIG_fail;
30757 if (arg2 == NULL) {
30758 PyErr_SetString(PyExc_TypeError,"null reference");
30759 SWIG_fail;
30760 }
30761 }
30762 {
30763 if (!wxPyCheckForApp()) SWIG_fail;
30764 PyThreadState* __tstate = wxPyBeginAllowThreads();
30765 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
30766
30767 wxPyEndAllowThreads(__tstate);
30768 if (PyErr_Occurred()) SWIG_fail;
30769 }
30770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30771 return resultobj;
30772 fail:
30773 return NULL;
30774 }
30775
30776
30777 static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) {
30778 PyObject *resultobj;
30779 wxString *arg1 = 0 ;
30780 wxCursor const &arg2_defvalue = wxNullCursor ;
30781 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30782 wxGenericDragImage *result;
30783 bool temp1 = False ;
30784 PyObject * obj0 = 0 ;
30785 PyObject * obj1 = 0 ;
30786 char *kwnames[] = {
30787 (char *) "str",(char *) "cursor", NULL
30788 };
30789
30790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
30791 {
30792 arg1 = wxString_in_helper(obj0);
30793 if (arg1 == NULL) SWIG_fail;
30794 temp1 = True;
30795 }
30796 if (obj1) {
30797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30798 SWIG_POINTER_EXCEPTION | 0)) == -1)
30799 SWIG_fail;
30800 if (arg2 == NULL) {
30801 PyErr_SetString(PyExc_TypeError,"null reference");
30802 SWIG_fail;
30803 }
30804 }
30805 {
30806 if (!wxPyCheckForApp()) SWIG_fail;
30807 PyThreadState* __tstate = wxPyBeginAllowThreads();
30808 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
30809
30810 wxPyEndAllowThreads(__tstate);
30811 if (PyErr_Occurred()) SWIG_fail;
30812 }
30813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30814 {
30815 if (temp1)
30816 delete arg1;
30817 }
30818 return resultobj;
30819 fail:
30820 {
30821 if (temp1)
30822 delete arg1;
30823 }
30824 return NULL;
30825 }
30826
30827
30828 static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) {
30829 PyObject *resultobj;
30830 wxPyTreeCtrl *arg1 = 0 ;
30831 wxTreeItemId *arg2 = 0 ;
30832 wxGenericDragImage *result;
30833 PyObject * obj0 = 0 ;
30834 PyObject * obj1 = 0 ;
30835 char *kwnames[] = {
30836 (char *) "treeCtrl",(char *) "id", NULL
30837 };
30838
30839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
30840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
30841 SWIG_POINTER_EXCEPTION | 0)) == -1)
30842 SWIG_fail;
30843 if (arg1 == NULL) {
30844 PyErr_SetString(PyExc_TypeError,"null reference");
30845 SWIG_fail;
30846 }
30847 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
30848 SWIG_POINTER_EXCEPTION | 0)) == -1)
30849 SWIG_fail;
30850 if (arg2 == NULL) {
30851 PyErr_SetString(PyExc_TypeError,"null reference");
30852 SWIG_fail;
30853 }
30854 {
30855 if (!wxPyCheckForApp()) SWIG_fail;
30856 PyThreadState* __tstate = wxPyBeginAllowThreads();
30857 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
30858
30859 wxPyEndAllowThreads(__tstate);
30860 if (PyErr_Occurred()) SWIG_fail;
30861 }
30862 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30863 return resultobj;
30864 fail:
30865 return NULL;
30866 }
30867
30868
30869 static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) {
30870 PyObject *resultobj;
30871 wxPyListCtrl *arg1 = 0 ;
30872 long arg2 ;
30873 wxGenericDragImage *result;
30874 PyObject * obj0 = 0 ;
30875 PyObject * obj1 = 0 ;
30876 char *kwnames[] = {
30877 (char *) "listCtrl",(char *) "id", NULL
30878 };
30879
30880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
30881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
30882 SWIG_POINTER_EXCEPTION | 0)) == -1)
30883 SWIG_fail;
30884 if (arg1 == NULL) {
30885 PyErr_SetString(PyExc_TypeError,"null reference");
30886 SWIG_fail;
30887 }
30888 arg2 = (long)SWIG_As_long(obj1);
30889 if (PyErr_Occurred()) SWIG_fail;
30890 {
30891 if (!wxPyCheckForApp()) SWIG_fail;
30892 PyThreadState* __tstate = wxPyBeginAllowThreads();
30893 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
30894
30895 wxPyEndAllowThreads(__tstate);
30896 if (PyErr_Occurred()) SWIG_fail;
30897 }
30898 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30899 return resultobj;
30900 fail:
30901 return NULL;
30902 }
30903
30904
30905 static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
30906 PyObject *resultobj;
30907 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30908 PyObject * obj0 = 0 ;
30909 char *kwnames[] = {
30910 (char *) "self", NULL
30911 };
30912
30913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
30914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30916 {
30917 PyThreadState* __tstate = wxPyBeginAllowThreads();
30918 delete arg1;
30919
30920 wxPyEndAllowThreads(__tstate);
30921 if (PyErr_Occurred()) SWIG_fail;
30922 }
30923 Py_INCREF(Py_None); resultobj = Py_None;
30924 return resultobj;
30925 fail:
30926 return NULL;
30927 }
30928
30929
30930 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
30931 PyObject *resultobj;
30932 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30933 wxBitmap *arg2 = (wxBitmap *) 0 ;
30934 PyObject * obj0 = 0 ;
30935 PyObject * obj1 = 0 ;
30936 char *kwnames[] = {
30937 (char *) "self",(char *) "bitmap", NULL
30938 };
30939
30940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
30941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30943 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
30944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30945 {
30946 PyThreadState* __tstate = wxPyBeginAllowThreads();
30947 (arg1)->SetBackingBitmap(arg2);
30948
30949 wxPyEndAllowThreads(__tstate);
30950 if (PyErr_Occurred()) SWIG_fail;
30951 }
30952 Py_INCREF(Py_None); resultobj = Py_None;
30953 return resultobj;
30954 fail:
30955 return NULL;
30956 }
30957
30958
30959 static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) {
30960 PyObject *resultobj;
30961 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30962 wxPoint *arg2 = 0 ;
30963 wxWindow *arg3 = (wxWindow *) 0 ;
30964 bool arg4 = (bool) False ;
30965 wxRect *arg5 = (wxRect *) NULL ;
30966 bool result;
30967 wxPoint temp2 ;
30968 PyObject * obj0 = 0 ;
30969 PyObject * obj1 = 0 ;
30970 PyObject * obj2 = 0 ;
30971 PyObject * obj3 = 0 ;
30972 PyObject * obj4 = 0 ;
30973 char *kwnames[] = {
30974 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
30975 };
30976
30977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30980 {
30981 arg2 = &temp2;
30982 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30983 }
30984 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30986 if (obj3) {
30987 arg4 = (bool)SWIG_As_bool(obj3);
30988 if (PyErr_Occurred()) SWIG_fail;
30989 }
30990 if (obj4) {
30991 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
30992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30993 }
30994 {
30995 PyThreadState* __tstate = wxPyBeginAllowThreads();
30996 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
30997
30998 wxPyEndAllowThreads(__tstate);
30999 if (PyErr_Occurred()) SWIG_fail;
31000 }
31001 {
31002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31003 }
31004 return resultobj;
31005 fail:
31006 return NULL;
31007 }
31008
31009
31010 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) {
31011 PyObject *resultobj;
31012 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31013 wxPoint *arg2 = 0 ;
31014 wxWindow *arg3 = (wxWindow *) 0 ;
31015 wxWindow *arg4 = (wxWindow *) 0 ;
31016 bool result;
31017 wxPoint temp2 ;
31018 PyObject * obj0 = 0 ;
31019 PyObject * obj1 = 0 ;
31020 PyObject * obj2 = 0 ;
31021 PyObject * obj3 = 0 ;
31022 char *kwnames[] = {
31023 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
31024 };
31025
31026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31029 {
31030 arg2 = &temp2;
31031 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31032 }
31033 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31035 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
31036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31037 {
31038 PyThreadState* __tstate = wxPyBeginAllowThreads();
31039 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
31040
31041 wxPyEndAllowThreads(__tstate);
31042 if (PyErr_Occurred()) SWIG_fail;
31043 }
31044 {
31045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31046 }
31047 return resultobj;
31048 fail:
31049 return NULL;
31050 }
31051
31052
31053 static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31054 PyObject *resultobj;
31055 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31056 bool result;
31057 PyObject * obj0 = 0 ;
31058 char *kwnames[] = {
31059 (char *) "self", NULL
31060 };
31061
31062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
31063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31065 {
31066 PyThreadState* __tstate = wxPyBeginAllowThreads();
31067 result = (bool)(arg1)->EndDrag();
31068
31069 wxPyEndAllowThreads(__tstate);
31070 if (PyErr_Occurred()) SWIG_fail;
31071 }
31072 {
31073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31074 }
31075 return resultobj;
31076 fail:
31077 return NULL;
31078 }
31079
31080
31081 static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) {
31082 PyObject *resultobj;
31083 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31084 wxPoint *arg2 = 0 ;
31085 bool result;
31086 wxPoint temp2 ;
31087 PyObject * obj0 = 0 ;
31088 PyObject * obj1 = 0 ;
31089 char *kwnames[] = {
31090 (char *) "self",(char *) "pt", NULL
31091 };
31092
31093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
31094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31096 {
31097 arg2 = &temp2;
31098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31099 }
31100 {
31101 PyThreadState* __tstate = wxPyBeginAllowThreads();
31102 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
31103
31104 wxPyEndAllowThreads(__tstate);
31105 if (PyErr_Occurred()) SWIG_fail;
31106 }
31107 {
31108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31109 }
31110 return resultobj;
31111 fail:
31112 return NULL;
31113 }
31114
31115
31116 static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) {
31117 PyObject *resultobj;
31118 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31119 bool result;
31120 PyObject * obj0 = 0 ;
31121 char *kwnames[] = {
31122 (char *) "self", NULL
31123 };
31124
31125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
31126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31128 {
31129 PyThreadState* __tstate = wxPyBeginAllowThreads();
31130 result = (bool)(arg1)->Show();
31131
31132 wxPyEndAllowThreads(__tstate);
31133 if (PyErr_Occurred()) SWIG_fail;
31134 }
31135 {
31136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31137 }
31138 return resultobj;
31139 fail:
31140 return NULL;
31141 }
31142
31143
31144 static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
31145 PyObject *resultobj;
31146 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31147 bool result;
31148 PyObject * obj0 = 0 ;
31149 char *kwnames[] = {
31150 (char *) "self", NULL
31151 };
31152
31153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
31154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31156 {
31157 PyThreadState* __tstate = wxPyBeginAllowThreads();
31158 result = (bool)(arg1)->Hide();
31159
31160 wxPyEndAllowThreads(__tstate);
31161 if (PyErr_Occurred()) SWIG_fail;
31162 }
31163 {
31164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31165 }
31166 return resultobj;
31167 fail:
31168 return NULL;
31169 }
31170
31171
31172 static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) {
31173 PyObject *resultobj;
31174 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31175 wxPoint *arg2 = 0 ;
31176 wxRect result;
31177 wxPoint temp2 ;
31178 PyObject * obj0 = 0 ;
31179 PyObject * obj1 = 0 ;
31180 char *kwnames[] = {
31181 (char *) "self",(char *) "pos", NULL
31182 };
31183
31184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31187 {
31188 arg2 = &temp2;
31189 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31190 }
31191 {
31192 PyThreadState* __tstate = wxPyBeginAllowThreads();
31193 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31194
31195 wxPyEndAllowThreads(__tstate);
31196 if (PyErr_Occurred()) SWIG_fail;
31197 }
31198 {
31199 wxRect * resultptr;
31200 resultptr = new wxRect((wxRect &) result);
31201 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31202 }
31203 return resultobj;
31204 fail:
31205 return NULL;
31206 }
31207
31208
31209 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31210 PyObject *resultobj;
31211 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31212 wxDC *arg2 = 0 ;
31213 wxPoint *arg3 = 0 ;
31214 bool result;
31215 wxPoint temp3 ;
31216 PyObject * obj0 = 0 ;
31217 PyObject * obj1 = 0 ;
31218 PyObject * obj2 = 0 ;
31219 char *kwnames[] = {
31220 (char *) "self",(char *) "dc",(char *) "pos", NULL
31221 };
31222
31223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31226 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31227 SWIG_POINTER_EXCEPTION | 0)) == -1)
31228 SWIG_fail;
31229 if (arg2 == NULL) {
31230 PyErr_SetString(PyExc_TypeError,"null reference");
31231 SWIG_fail;
31232 }
31233 {
31234 arg3 = &temp3;
31235 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31236 }
31237 {
31238 PyThreadState* __tstate = wxPyBeginAllowThreads();
31239 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31240
31241 wxPyEndAllowThreads(__tstate);
31242 if (PyErr_Occurred()) SWIG_fail;
31243 }
31244 {
31245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31246 }
31247 return resultobj;
31248 fail:
31249 return NULL;
31250 }
31251
31252
31253 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31254 PyObject *resultobj;
31255 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31256 wxDC *arg2 = 0 ;
31257 wxMemoryDC *arg3 = 0 ;
31258 wxRect *arg4 = 0 ;
31259 wxRect *arg5 = 0 ;
31260 bool result;
31261 wxRect temp4 ;
31262 wxRect temp5 ;
31263 PyObject * obj0 = 0 ;
31264 PyObject * obj1 = 0 ;
31265 PyObject * obj2 = 0 ;
31266 PyObject * obj3 = 0 ;
31267 PyObject * obj4 = 0 ;
31268 char *kwnames[] = {
31269 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31270 };
31271
31272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31276 SWIG_POINTER_EXCEPTION | 0)) == -1)
31277 SWIG_fail;
31278 if (arg2 == NULL) {
31279 PyErr_SetString(PyExc_TypeError,"null reference");
31280 SWIG_fail;
31281 }
31282 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31283 SWIG_POINTER_EXCEPTION | 0)) == -1)
31284 SWIG_fail;
31285 if (arg3 == NULL) {
31286 PyErr_SetString(PyExc_TypeError,"null reference");
31287 SWIG_fail;
31288 }
31289 {
31290 arg4 = &temp4;
31291 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31292 }
31293 {
31294 arg5 = &temp5;
31295 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31296 }
31297 {
31298 PyThreadState* __tstate = wxPyBeginAllowThreads();
31299 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31300
31301 wxPyEndAllowThreads(__tstate);
31302 if (PyErr_Occurred()) SWIG_fail;
31303 }
31304 {
31305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31306 }
31307 return resultobj;
31308 fail:
31309 return NULL;
31310 }
31311
31312
31313 static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31314 PyObject *resultobj;
31315 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31316 wxPoint *arg2 = 0 ;
31317 wxPoint *arg3 = 0 ;
31318 bool arg4 ;
31319 bool arg5 ;
31320 bool result;
31321 wxPoint temp2 ;
31322 wxPoint temp3 ;
31323 PyObject * obj0 = 0 ;
31324 PyObject * obj1 = 0 ;
31325 PyObject * obj2 = 0 ;
31326 PyObject * obj3 = 0 ;
31327 PyObject * obj4 = 0 ;
31328 char *kwnames[] = {
31329 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31330 };
31331
31332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31335 {
31336 arg2 = &temp2;
31337 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31338 }
31339 {
31340 arg3 = &temp3;
31341 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31342 }
31343 arg4 = (bool)SWIG_As_bool(obj3);
31344 if (PyErr_Occurred()) SWIG_fail;
31345 arg5 = (bool)SWIG_As_bool(obj4);
31346 if (PyErr_Occurred()) SWIG_fail;
31347 {
31348 PyThreadState* __tstate = wxPyBeginAllowThreads();
31349 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31350
31351 wxPyEndAllowThreads(__tstate);
31352 if (PyErr_Occurred()) SWIG_fail;
31353 }
31354 {
31355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31356 }
31357 return resultobj;
31358 fail:
31359 return NULL;
31360 }
31361
31362
31363 static PyObject * DragImage_swigregister(PyObject *, PyObject *args) {
31364 PyObject *obj;
31365 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31366 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31367 Py_INCREF(obj);
31368 return Py_BuildValue((char *)"");
31369 }
31370 static PyMethodDef SwigMethods[] = {
31371 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL },
31372 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL },
31373 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31374 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31375 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31376 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31377 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL },
31378 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31379 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31380 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31381 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31382 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31383 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31384 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31385 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31386 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31387 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31388 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31389 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31390 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL },
31391 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL },
31392 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL },
31393 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31394 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31395 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31396 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31397 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31398 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31399 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31400 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31401 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL },
31402 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL },
31403 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31404 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL },
31405 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL },
31406 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL },
31407 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31408 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31409 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31410 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31411 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31412 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL },
31413 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31414 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31415 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31416 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31417 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31418 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31419 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31420 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31421 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31422 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31423 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31424 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31425 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31426 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL },
31427 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31428 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31429 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31430 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31431 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31432 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31433 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL },
31434 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL },
31435 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL },
31436 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31437 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31438 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31439 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31440 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31441 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31442 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31443 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31444 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
31445 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
31446 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31447 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL },
31448 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
31449 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
31450 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31451 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31452 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL },
31453 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
31454 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
31455 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31456 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31457 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31458 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31459 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL },
31460 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL },
31461 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL },
31462 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31463 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31464 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL },
31465 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31466 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31467 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31468 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31469 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31470 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
31471 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31472 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL },
31473 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31474 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31475 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31476 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
31477 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL },
31478 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL },
31479 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31480 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31481 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL },
31482 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL },
31483 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31484 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31485 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
31486 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL },
31487 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL },
31488 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31489 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31490 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL },
31491 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31492 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31493 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
31494 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31495 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL },
31496 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31497 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31498 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31499 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31500 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL },
31501 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL },
31502 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31503 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
31504 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL },
31505 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31506 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31507 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL },
31508 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31509 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31510 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31511 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31512 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31513 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31514 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31515 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
31516 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31517 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31518 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
31519 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31520 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31521 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31522 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31523 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
31524 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31525 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31526 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31527 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31528 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31529 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31530 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31531 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31532 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
31533 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31534 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL },
31535 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL },
31536 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31537 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31538 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31539 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31540 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31541 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31542 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL },
31543 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL },
31544 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL },
31545 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL },
31546 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31547 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL },
31548 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL },
31549 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31550 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31551 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
31552 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31553 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31554 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
31555 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
31556 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL },
31557 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL },
31558 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL },
31559 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL },
31560 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL },
31561 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL },
31562 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31563 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31564 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31565 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31566 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31567 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL },
31568 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31569 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31570 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL },
31571 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31572 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31573 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31574 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
31575 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
31576 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
31577 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
31578 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
31579 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
31580 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
31581 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31582 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31583 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31584 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31585 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31586 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31587 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31588 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL },
31589 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
31590 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31591 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL },
31592 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31593 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31594 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL },
31595 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31596 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL },
31597 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
31598 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
31599 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31600 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31601 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL },
31602 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31603 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31604 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31605 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31606 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
31607 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31608 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL },
31609 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
31610 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
31611 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31612 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31613 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31614 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31615 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31616 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31617 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31618 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31619 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31620 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31621 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL },
31622 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31623 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31624 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31625 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31626 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31627 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL },
31628 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31629 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31630 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31631 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31632 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31633 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL },
31634 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31635 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31636 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31637 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL },
31638 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
31639 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
31640 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31641 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31642 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31643 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31644 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31645 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
31646 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
31647 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
31648 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31649 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL },
31650 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL },
31651 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
31652 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
31653 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
31654 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31655 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL },
31656 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
31657 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
31658 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31659 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31660 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31661 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31662 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL },
31663 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL },
31664 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL },
31665 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31666 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31667 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31668 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31669 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31670 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31671 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31672 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31673 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
31674 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31675 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
31676 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31677 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
31678 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
31679 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
31680 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
31681 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL },
31682 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL },
31683 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL },
31684 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31685 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL },
31686 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31687 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31688 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL },
31689 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
31690 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
31691 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31692 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31693 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31694 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31695 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31696 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL },
31697 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL },
31698 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS, NULL },
31699 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31700 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
31701 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
31702 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31703 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31704 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31705 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
31706 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
31707 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31708 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
31709 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL },
31710 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL },
31711 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
31712 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS, NULL },
31713 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL },
31714 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31715 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31716 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31717 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS, NULL },
31718 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31719 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31720 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31721 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31722 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31723 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS, NULL },
31724 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL },
31725 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
31726 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31727 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
31728 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL },
31729 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL },
31730 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31731 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
31732 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31733 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL },
31734 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31735 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL },
31736 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL },
31737 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL },
31738 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31739 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31740 { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL },
31741 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL },
31742 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31743 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL },
31744 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL },
31745 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
31746 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
31747 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
31748 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL },
31749 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL },
31750 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
31751 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
31752 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
31753 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL },
31754 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
31755 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
31756 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
31757 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
31758 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL },
31759 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
31760 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31761 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
31762 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
31763 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL },
31764 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL },
31765 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31766 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31767 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31768 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31769 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31770 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31771 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
31772 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
31773 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
31774 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31775 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31776 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31777 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31778 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31779 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
31780 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
31781 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
31782 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
31783 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL },
31784 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL },
31785 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL },
31786 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
31787 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
31788 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL },
31789 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL },
31790 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL },
31791 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
31792 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
31793 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL },
31794 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL },
31795 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL },
31796 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL },
31797 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL },
31798 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL },
31799 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL },
31800 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
31801 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
31802 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
31803 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL },
31804 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL },
31805 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
31806 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31807 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31808 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31809 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
31810 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL },
31811 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31812 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
31813 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
31814 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31815 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31816 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
31817 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
31818 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
31819 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL },
31820 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL },
31821 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL },
31822 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
31823 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
31824 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL },
31825 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31826 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL },
31827 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31828 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL },
31829 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
31830 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
31831 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31832 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31833 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31834 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL },
31835 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31836 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31837 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31838 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31839 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31840 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31841 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
31842 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31843 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31844 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31845 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
31846 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL },
31847 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
31848 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
31849 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
31850 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31851 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
31852 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
31853 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31854 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
31855 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL },
31856 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
31857 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL },
31858 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
31859 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31860 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
31861 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31862 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31863 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31864 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
31865 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
31866 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31867 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
31868 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
31869 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
31870 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
31871 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31872 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
31873 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31874 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31875 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31876 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31877 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31878 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL },
31879 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL },
31880 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL },
31881 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL },
31882 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
31883 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
31884 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL },
31885 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL },
31886 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL },
31887 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL },
31888 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL },
31889 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL },
31890 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL },
31891 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL },
31892 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL },
31893 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL },
31894 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL },
31895 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL },
31896 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
31897 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
31898 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL },
31899 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31900 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL },
31901 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL },
31902 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
31903 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
31904 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
31905 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
31906 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
31907 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
31908 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL },
31909 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL },
31910 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL },
31911 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
31912 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
31913 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31914 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31915 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31916 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
31917 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
31918 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
31919 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
31920 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
31921 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL },
31922 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL },
31923 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
31924 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
31925 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL },
31926 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31927 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31928 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31929 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
31930 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31931 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31932 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31933 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31934 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31935 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31936 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL },
31937 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL },
31938 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
31939 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
31940 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
31941 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
31942 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
31943 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
31944 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
31945 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
31946 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
31947 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
31948 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31949 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL },
31950 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31951 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
31952 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
31953 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
31954 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
31955 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
31956 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31957 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31958 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL },
31959 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31960 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
31961 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
31962 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31963 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31964 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31965 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL },
31966 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL },
31967 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL },
31968 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL },
31969 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL },
31970 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
31971 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
31972 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31973 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL },
31974 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL },
31975 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31976 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31977 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
31978 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL },
31979 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL },
31980 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31981 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
31982 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
31983 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL },
31984 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
31985 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL },
31986 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL },
31987 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
31988 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL },
31989 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31990 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31991 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31992 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31993 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL },
31994 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL },
31995 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31996 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL },
31997 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL },
31998 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL },
31999 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32000 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32001 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL },
32002 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL },
32003 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32004 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32005 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32006 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32007 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32008 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL },
32009 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32010 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32011 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
32012 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
32013 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
32014 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL },
32015 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL },
32016 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL },
32017 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32018 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32019 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32020 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32021 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32022 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32023 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL },
32024 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32025 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32026 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32027 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32028 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32029 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32030 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32031 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32032 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32033 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32034 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32035 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32036 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32037 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32038 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
32039 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL },
32040 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32041 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32042 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32043 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32044 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32045 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32046 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32047 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32048 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32049 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32050 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32051 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32052 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32053 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32054 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32055 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32056 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32057 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32058 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32059 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32060 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32061 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32062 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32063 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32064 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32065 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32066 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32067 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL },
32068 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32069 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32070 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32071 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32072 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32073 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL },
32074 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32075 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL },
32076 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL },
32077 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL },
32078 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32079 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32080 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL },
32081 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL },
32082 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL },
32083 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL },
32084 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32085 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32086 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL },
32087 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32088 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32089 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL },
32090 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
32091 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32092 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL },
32093 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
32094 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
32095 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32096 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32097 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL },
32098 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL },
32099 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL },
32100 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32101 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL },
32102 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32103 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32104 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32105 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32106 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32107 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL },
32108 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32109 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32110 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32111 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32112 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL },
32113 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32114 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL },
32115 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32116 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32117 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32118 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL },
32119 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32120 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32121 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32122 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL },
32123 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32124 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32125 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32126 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32127 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32128 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32129 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32130 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL },
32131 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32132 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32133 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL },
32134 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL },
32135 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL },
32136 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL },
32137 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32138 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32139 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32140 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
32141 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
32142 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32143 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32144 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32145 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32146 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32147 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32148 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32149 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32150 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32151 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32152 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32153 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32154 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32155 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
32156 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32157 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32158 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
32159 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
32160 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
32161 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
32162 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
32163 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
32164 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
32165 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32166 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32167 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
32168 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32169 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32170 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32171 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32172 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32173 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32174 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32175 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL },
32176 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32177 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32178 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32179 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32180 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL },
32181 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL },
32182 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL },
32183 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32184 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL },
32185 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32186 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32187 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32188 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL },
32189 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32190 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32191 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL },
32192 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL },
32193 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL },
32194 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32195 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32196 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL },
32197 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL },
32198 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32199 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32200 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32201 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32202 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL },
32203 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32204 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL },
32205 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL },
32206 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
32207 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL },
32208 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32209 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32210 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32211 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL },
32212 { NULL, NULL, 0, NULL }
32213 };
32214
32215
32216 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32217
32218 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
32219 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32220 }
32221 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
32222 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
32223 }
32224 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32225 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32226 }
32227 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32228 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32229 }
32230 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32231 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32232 }
32233 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32234 return (void *)((wxSizer *) ((wxGridSizer *) x));
32235 }
32236 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32237 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32238 }
32239 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32240 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32241 }
32242 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32243 return (void *)((wxSizer *) ((wxPySizer *) x));
32244 }
32245 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32246 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32247 }
32248 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32249 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32250 }
32251 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32252 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32253 }
32254 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32255 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32256 }
32257 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32258 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32259 }
32260 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32261 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32262 }
32263 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32264 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32265 }
32266 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32267 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32268 }
32269 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32270 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32271 }
32272 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32273 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32274 }
32275 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32276 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32277 }
32278 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
32279 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32280 }
32281 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32282 return (void *)((wxEvent *) ((wxPyEvent *) x));
32283 }
32284 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32285 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32286 }
32287 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32288 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32289 }
32290 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32291 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32292 }
32293 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32294 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32295 }
32296 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32297 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32298 }
32299 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32300 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32301 }
32302 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32303 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32304 }
32305 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32306 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32307 }
32308 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32309 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32310 }
32311 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32312 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32313 }
32314 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32315 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32316 }
32317 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32318 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32319 }
32320 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32321 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32322 }
32323 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32324 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32325 }
32326 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32327 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32328 }
32329 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32330 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32331 }
32332 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32333 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32334 }
32335 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32336 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32337 }
32338 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32339 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32340 }
32341 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32342 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32343 }
32344 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32345 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32346 }
32347 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32348 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32349 }
32350 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32351 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32352 }
32353 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32354 return (void *)((wxEvent *) ((wxShowEvent *) x));
32355 }
32356 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32357 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32358 }
32359 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32360 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32361 }
32362 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32363 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32364 }
32365 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32366 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32367 }
32368 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32369 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32370 }
32371 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32372 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32373 }
32374 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32375 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32376 }
32377 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32378 return (void *)((wxItemContainer *) ((wxComboBox *) x));
32379 }
32380 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32381 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32382 }
32383 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32384 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32385 }
32386 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32387 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32388 }
32389 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32390 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32391 }
32392 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32393 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32394 }
32395 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32396 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32397 }
32398 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
32399 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32400 }
32401 static void *_p_wxListBoxTo_p_wxControl(void *x) {
32402 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
32403 }
32404 static void *_p_wxChoiceTo_p_wxControl(void *x) {
32405 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
32406 }
32407 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32408 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32409 }
32410 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
32411 return (void *)((wxControl *) ((wxStaticBitmap *) x));
32412 }
32413 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32414 return (void *)((wxControl *) ((wxComboBox *) x));
32415 }
32416 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
32417 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32418 }
32419 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32420 return (void *)((wxControl *) ((wxStaticBox *) x));
32421 }
32422 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32423 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32424 }
32425 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32426 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32427 }
32428 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32429 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32430 }
32431 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32432 return (void *)((wxControl *) ((wxScrollBar *) x));
32433 }
32434 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32435 return (void *)((wxControl *) ((wxBookCtrl *) x));
32436 }
32437 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32438 return (void *)((wxControl *) ((wxRadioButton *) x));
32439 }
32440 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32441 return (void *)((wxControl *) ((wxToggleButton *) x));
32442 }
32443 static void *_p_wxGaugeTo_p_wxControl(void *x) {
32444 return (void *)((wxControl *) ((wxGauge *) x));
32445 }
32446 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32447 return (void *)((wxControl *) ((wxToolBarBase *) x));
32448 }
32449 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32450 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32451 }
32452 static void *_p_wxButtonTo_p_wxControl(void *x) {
32453 return (void *)((wxControl *) ((wxButton *) x));
32454 }
32455 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32456 return (void *)((wxControl *) ((wxSpinButton *) x));
32457 }
32458 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32459 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32460 }
32461 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32462 return (void *)((wxControl *) ((wxControlWithItems *) x));
32463 }
32464 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32465 return (void *)((wxControl *) ((wxRadioBox *) x));
32466 }
32467 static void *_p_wxNotebookTo_p_wxControl(void *x) {
32468 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32469 }
32470 static void *_p_wxListbookTo_p_wxControl(void *x) {
32471 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32472 }
32473 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32474 return (void *)((wxControl *) ((wxCheckBox *) x));
32475 }
32476 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32477 return (void *)((wxControl *) ((wxTextCtrl *) x));
32478 }
32479 static void *_p_wxListViewTo_p_wxControl(void *x) {
32480 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32481 }
32482 static void *_p_wxSliderTo_p_wxControl(void *x) {
32483 return (void *)((wxControl *) ((wxSlider *) x));
32484 }
32485 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32486 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32487 }
32488 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32489 return (void *)((wxControl *) ((wxPyControl *) x));
32490 }
32491 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32492 return (void *)((wxControl *) ((wxStaticLine *) x));
32493 }
32494 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32495 return (void *)((wxControl *) ((wxStaticText *) x));
32496 }
32497 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32498 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32499 }
32500 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32501 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32502 }
32503 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32504 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32505 }
32506 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32507 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32508 }
32509 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32510 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32511 }
32512 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32513 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32514 }
32515 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32516 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32517 }
32518 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32519 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32520 }
32521 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32522 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32523 }
32524 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32525 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32526 }
32527 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32528 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32529 }
32530 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32531 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32532 }
32533 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32534 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32535 }
32536 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32537 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32538 }
32539 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32540 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32541 }
32542 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32543 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32544 }
32545 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32546 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32547 }
32548 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32549 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32550 }
32551 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32552 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32553 }
32554 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32555 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32556 }
32557 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32558 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
32559 }
32560 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32561 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32562 }
32563 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32564 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32565 }
32566 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32567 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32568 }
32569 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32570 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32571 }
32572 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32573 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32574 }
32575 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32576 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32577 }
32578 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32579 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32580 }
32581 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32582 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32583 }
32584 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32585 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32586 }
32587 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32588 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32589 }
32590 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32591 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32592 }
32593 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32594 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32595 }
32596 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32597 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32598 }
32599 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32600 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32601 }
32602 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32603 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32604 }
32605 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32606 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32607 }
32608 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32609 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32610 }
32611 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32612 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32613 }
32614 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32615 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32616 }
32617 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32618 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32619 }
32620 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32621 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32622 }
32623 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32624 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32625 }
32626 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32627 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32628 }
32629 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32630 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32631 }
32632 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32633 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32634 }
32635 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32636 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32637 }
32638 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32639 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32640 }
32641 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32642 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32643 }
32644 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32645 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32646 }
32647 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32648 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32649 }
32650 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32651 return (void *)((wxButton *) ((wxBitmapButton *) x));
32652 }
32653 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32654 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32655 }
32656 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32657 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32658 }
32659 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32660 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32661 }
32662 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32663 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32664 }
32665 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32666 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32667 }
32668 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32669 return (void *)((wxObject *) ((wxSizerItem *) x));
32670 }
32671 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32672 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32673 }
32674 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32675 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32676 }
32677 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32678 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32679 }
32680 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32681 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32682 }
32683 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32684 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32685 }
32686 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32687 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32688 }
32689 static void *_p_wxSizerTo_p_wxObject(void *x) {
32690 return (void *)((wxObject *) ((wxSizer *) x));
32691 }
32692 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32693 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32694 }
32695 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32696 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32697 }
32698 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32699 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32700 }
32701 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32702 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32703 }
32704 static void *_p_wxEventTo_p_wxObject(void *x) {
32705 return (void *)((wxObject *) ((wxEvent *) x));
32706 }
32707 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32708 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32709 }
32710 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32711 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32712 }
32713 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32714 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32715 }
32716 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
32717 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32718 }
32719 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
32720 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32721 }
32722 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
32723 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32724 }
32725 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32726 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32727 }
32728 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32729 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32730 }
32731 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32732 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32733 }
32734 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32735 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32736 }
32737 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32738 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32739 }
32740 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32741 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32742 }
32743 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
32744 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
32745 }
32746 static void *_p_wxControlTo_p_wxObject(void *x) {
32747 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32748 }
32749 static void *_p_wxPyControlTo_p_wxObject(void *x) {
32750 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
32751 }
32752 static void *_p_wxGaugeTo_p_wxObject(void *x) {
32753 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
32754 }
32755 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
32756 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
32757 }
32758 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
32759 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
32760 }
32761 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
32762 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32763 }
32764 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32765 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32766 }
32767 static void *_p_wxChoiceTo_p_wxObject(void *x) {
32768 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32769 }
32770 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32771 return (void *)((wxObject *) ((wxFSFile *) x));
32772 }
32773 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32774 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32775 }
32776 static void *_p_wxListViewTo_p_wxObject(void *x) {
32777 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32778 }
32779 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
32780 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32781 }
32782 static void *_p_wxNotebookTo_p_wxObject(void *x) {
32783 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32784 }
32785 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32786 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32787 }
32788 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32789 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32790 }
32791 static void *_p_wxListbookTo_p_wxObject(void *x) {
32792 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32793 }
32794 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32795 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32796 }
32797 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
32798 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32799 }
32800 static void *_p_wxSliderTo_p_wxObject(void *x) {
32801 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
32802 }
32803 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32804 return (void *)((wxObject *) ((wxMenuItem *) x));
32805 }
32806 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32807 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32808 }
32809 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32810 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32811 }
32812 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32813 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32814 }
32815 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32816 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32817 }
32818 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32819 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32820 }
32821 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32822 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32823 }
32824 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32825 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32826 }
32827 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32828 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32829 }
32830 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
32831 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
32832 }
32833 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
32834 return (void *)((wxObject *) ((wxContextHelp *) x));
32835 }
32836 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32837 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32838 }
32839 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32840 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32841 }
32842 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32843 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32844 }
32845 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32846 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32847 }
32848 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32849 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32850 }
32851 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32852 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32853 }
32854 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32855 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32856 }
32857 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32858 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32859 }
32860 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32861 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32862 }
32863 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32864 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32865 }
32866 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32867 return (void *)((wxObject *) ((wxImageHandler *) x));
32868 }
32869 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32870 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32871 }
32872 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32873 return (void *)((wxObject *) ((wxEvtHandler *) x));
32874 }
32875 static void *_p_wxListEventTo_p_wxObject(void *x) {
32876 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32877 }
32878 static void *_p_wxListBoxTo_p_wxObject(void *x) {
32879 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32880 }
32881 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
32882 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32883 }
32884 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
32885 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32886 }
32887 static void *_p_wxButtonTo_p_wxObject(void *x) {
32888 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
32889 }
32890 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
32891 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32892 }
32893 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
32894 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
32895 }
32896 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
32897 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32898 }
32899 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32900 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32901 }
32902 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
32903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
32904 }
32905 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
32906 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
32907 }
32908 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
32909 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
32910 }
32911 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
32912 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
32913 }
32914 static void *_p_wxListItemTo_p_wxObject(void *x) {
32915 return (void *)((wxObject *) ((wxListItem *) x));
32916 }
32917 static void *_p_wxImageTo_p_wxObject(void *x) {
32918 return (void *)((wxObject *) ((wxImage *) x));
32919 }
32920 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
32921 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
32922 }
32923 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32924 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32925 }
32926 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
32927 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32928 }
32929 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
32930 return (void *)((wxObject *) ((wxGenericDragImage *) x));
32931 }
32932 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
32933 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32934 }
32935 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
32936 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32937 }
32938 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
32939 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32940 }
32941 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32942 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32943 }
32944 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32945 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32946 }
32947 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32948 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32949 }
32950 static void *_p_wxWindowTo_p_wxObject(void *x) {
32951 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32952 }
32953 static void *_p_wxMenuTo_p_wxObject(void *x) {
32954 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32955 }
32956 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32957 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32958 }
32959 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32960 return (void *)((wxObject *) ((wxFileSystem *) x));
32961 }
32962 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32963 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32964 }
32965 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32966 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32967 }
32968 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32969 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32970 }
32971 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32972 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32973 }
32974 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32975 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32976 }
32977 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32978 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32979 }
32980 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
32981 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32982 }
32983 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32984 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32985 }
32986 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32987 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32988 }
32989 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
32990 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
32991 }
32992 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32993 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32994 }
32995 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32996 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32997 }
32998 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32999 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33000 }
33001 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
33002 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33003 }
33004 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
33005 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
33006 }
33007 static void *_p_wxToolBarTo_p_wxObject(void *x) {
33008 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33009 }
33010 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
33011 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
33012 }
33013 static void *_p_wxValidatorTo_p_wxObject(void *x) {
33014 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
33015 }
33016 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
33017 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
33018 }
33019 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
33020 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
33021 }
33022 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
33023 return (void *)((wxWindow *) ((wxMenuBar *) x));
33024 }
33025 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
33026 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33027 }
33028 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
33029 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
33030 }
33031 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
33032 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
33033 }
33034 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
33035 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
33036 }
33037 static void *_p_wxControlTo_p_wxWindow(void *x) {
33038 return (void *)((wxWindow *) ((wxControl *) x));
33039 }
33040 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
33041 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
33042 }
33043 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
33044 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33045 }
33046 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
33047 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
33048 }
33049 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
33050 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
33051 }
33052 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
33053 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
33054 }
33055 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
33056 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
33057 }
33058 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33059 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33060 }
33061 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
33062 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
33063 }
33064 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
33065 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
33066 }
33067 static void *_p_wxListbookTo_p_wxWindow(void *x) {
33068 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33069 }
33070 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
33071 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
33072 }
33073 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
33074 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
33075 }
33076 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
33077 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
33078 }
33079 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
33080 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33081 }
33082 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
33083 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33084 }
33085 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
33086 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33087 }
33088 static void *_p_wxListViewTo_p_wxWindow(void *x) {
33089 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33090 }
33091 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
33092 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33093 }
33094 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
33095 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
33096 }
33097 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
33098 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
33099 }
33100 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
33101 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
33102 }
33103 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
33104 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
33105 }
33106 static void *_p_wxSliderTo_p_wxWindow(void *x) {
33107 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
33108 }
33109 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
33110 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
33111 }
33112 static void *_p_wxButtonTo_p_wxWindow(void *x) {
33113 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
33114 }
33115 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
33116 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
33117 }
33118 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
33119 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33120 }
33121 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
33122 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
33123 }
33124 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
33125 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33126 }
33127 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
33128 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
33129 }
33130 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
33131 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
33132 }
33133 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
33134 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
33135 }
33136 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
33137 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
33138 }
33139 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
33140 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
33141 }
33142 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
33143 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
33144 }
33145 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
33146 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33147 }
33148 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
33149 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33150 }
33151 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
33152 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
33153 }
33154 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
33155 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
33156 }
33157 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
33158 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
33159 }
33160 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
33161 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
33162 }
33163 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
33164 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
33165 }
33166 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
33167 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
33168 }
33169 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
33170 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
33171 }
33172 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
33173 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
33174 }
33175 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33176 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33177 }
33178 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33179 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33180 }
33181 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33182 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33183 }
33184 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33185 return (void *)((wxValidator *) ((wxPyValidator *) x));
33186 }
33187 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}};
33188 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}};
33189 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}};
33190 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}};
33191 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}};
33192 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}};
33193 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}};
33194 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}};
33195 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}};
33196 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}};
33197 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}};
33198 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}};
33199 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}};
33200 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}};
33201 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}};
33202 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}};
33203 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}};
33204 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}};
33205 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}};
33206 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}};
33207 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}};
33208 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}};
33209 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}};
33210 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}};
33211 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}};
33212 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}};
33213 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}};
33214 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}};
33215 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}};
33216 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}};
33217 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}};
33218 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}};
33219 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}};
33220 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}};
33221 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}};
33222 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}};
33223 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}};
33224 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}};
33225 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}};
33226 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}};
33227 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}};
33228 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}};
33229 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}};
33230 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}};
33231 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}};
33232 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}};
33233 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}};
33234 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}};
33235 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}};
33236 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}};
33237 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}};
33238 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}};
33239 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}};
33240 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}};
33241 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}};
33242 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}};
33243 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}};
33244 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}};
33245 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}};
33246 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}};
33247 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}};
33248 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}};
33249 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}};
33250 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}};
33251 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}};
33252 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}};
33253 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}};
33254 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}};
33255 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}};
33256 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}};
33257 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}};
33258 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}};
33259 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}};
33260 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}};
33261 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}};
33262 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}};
33263 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}};
33264 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}};
33265 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}};
33266 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}};
33267 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}};
33268 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}};
33269 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}};
33270 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}};
33271 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}};
33272
33273 static swig_type_info *swig_types_initial[] = {
33274 _swigt__p_wxTextUrlEvent,
33275 _swigt__p_wxBookCtrlEvent,
33276 _swigt__p_wxSizer,
33277 _swigt__p_wxCheckBox,
33278 _swigt__p_wxPyTreeCtrl,
33279 _swigt__p_wxEvent,
33280 _swigt__p_wxGenericDirCtrl,
33281 _swigt__p_bool,
33282 _swigt__p_wxPyTreeItemData,
33283 _swigt__p_wxItemContainer,
33284 _swigt__p_wxPyListCtrl,
33285 _swigt__p_wxDirFilterListCtrl,
33286 _swigt__p_wxStaticLine,
33287 _swigt__p_wxControl,
33288 _swigt__p_wxPyControl,
33289 _swigt__p_wxGauge,
33290 _swigt__p_wxToolBarBase,
33291 _swigt__p_wxFont,
33292 _swigt__p_wxToggleButton,
33293 _swigt__p_wxRadioButton,
33294 _swigt__p_wxChoice,
33295 _swigt__p_wxMemoryDC,
33296 _swigt__p_wxListItemAttr,
33297 _swigt__p_void,
33298 _swigt__p_int,
33299 _swigt__p_wxSize,
33300 _swigt__p_wxDC,
33301 _swigt__p_wxListView,
33302 _swigt__p_wxIcon,
33303 _swigt__p_wxVisualAttributes,
33304 _swigt__p_wxTextCtrl,
33305 _swigt__p_wxNotebook,
33306 _swigt__p_wxNotifyEvent,
33307 _swigt__p_wxArrayString,
33308 _swigt__p_wxListbook,
33309 _swigt__p_wxStaticBitmap,
33310 _swigt__p_wxSlider,
33311 _swigt__p_wxStaticBox,
33312 _swigt__p_wxArrayInt,
33313 _swigt__p_wxContextHelp,
33314 _swigt__p_long,
33315 _swigt__p_wxEvtHandler,
33316 _swigt__p_wxListEvent,
33317 _swigt__p_wxCheckListBox,
33318 _swigt__p_wxListBox,
33319 _swigt__p_wxBookCtrl,
33320 _swigt__p_wxSpinButton,
33321 _swigt__p_wxButton,
33322 _swigt__p_wxBitmapButton,
33323 _swigt__p_wxRect,
33324 _swigt__p_wxContextHelpButton,
33325 _swigt__p_wxRadioBox,
33326 _swigt__p_wxScrollBar,
33327 _swigt__p_char,
33328 _swigt__p_wxTreeItemId,
33329 _swigt__p_wxComboBox,
33330 _swigt__p_wxHelpEvent,
33331 _swigt__p_wxListItem,
33332 _swigt__p_wxNotebookSizer,
33333 _swigt__p_wxSpinEvent,
33334 _swigt__p_wxGenericDragImage,
33335 _swigt__p_wxSpinCtrl,
33336 _swigt__p_wxImageList,
33337 _swigt__p_wxHelpProvider,
33338 _swigt__p_wxTextAttr,
33339 _swigt__p_wxSimpleHelpProvider,
33340 _swigt__p_wxPoint,
33341 _swigt__p_wxListbookEvent,
33342 _swigt__p_wxNotebookEvent,
33343 _swigt__p_wxObject,
33344 _swigt__p_wxCursor,
33345 _swigt__p_wxKeyEvent,
33346 _swigt__p_wxWindow,
33347 _swigt__p_wxString,
33348 _swigt__p_wxBitmap,
33349 _swigt__p_wxTreeEvent,
33350 _swigt__p_wxMouseEvent,
33351 _swigt__p_wxCommandEvent,
33352 _swigt__p_wxStaticText,
33353 _swigt__p_wxControlWithItems,
33354 _swigt__p_wxToolBarToolBase,
33355 _swigt__p_wxColour,
33356 _swigt__p_wxToolBar,
33357 _swigt__p_wxBookCtrlSizer,
33358 _swigt__p_wxValidator,
33359 0
33360 };
33361
33362
33363 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33364
33365 static swig_const_info swig_const_table[] = {
33366 {0, 0, 0, 0.0, 0, 0}};
33367
33368 #ifdef __cplusplus
33369 }
33370 #endif
33371
33372 #ifdef __cplusplus
33373 extern "C"
33374 #endif
33375 SWIGEXPORT(void) SWIG_init(void) {
33376 static PyObject *SWIG_globals = 0;
33377 static int typeinit = 0;
33378 PyObject *m, *d;
33379 int i;
33380 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33381 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33382 d = PyModule_GetDict(m);
33383
33384 if (!typeinit) {
33385 for (i = 0; swig_types_initial[i]; i++) {
33386 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33387 }
33388 typeinit = 1;
33389 }
33390 SWIG_InstallConstants(d,swig_const_table);
33391
33392 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33393 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33394 PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT));
33395 PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP));
33396 PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT));
33397 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM));
33398 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT));
33399 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW));
33400 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33401 PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE));
33402 PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE));
33403 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
33404 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED));
33405 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED));
33406 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED));
33407 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
33408 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
33409 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
33410 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL));
33411 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL));
33412 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH));
33413 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR));
33414 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
33415 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
33416 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
33417 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33418 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33419 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL));
33420 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL));
33421 PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY));
33422 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE));
33423 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB));
33424 PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT));
33425 PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER));
33426 PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT));
33427 PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE));
33428 PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH));
33429 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER));
33430 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD));
33431 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL));
33432 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL));
33433 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP));
33434 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP));
33435 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP));
33436 PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2));
33437 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT));
33438 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT));
33439 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE));
33440 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER));
33441 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT));
33442 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33443 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR));
33444 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33445 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE));
33446 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE));
33447 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT));
33448 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC));
33449 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE));
33450 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT));
33451 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT));
33452 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT));
33453 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT));
33454 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS));
33455 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN));
33456 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE));
33457 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT));
33458 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW));
33459 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND));
33460 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33461 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33462 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33463 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33464 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33465 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33466 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33467 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL));
33468 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL));
33469 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS));
33470 PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP));
33471 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33472 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33473 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33474 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33475 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33476 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33477 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33478 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH));
33479 PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP));
33480 PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT));
33481 PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT));
33482 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM));
33483 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE));
33484 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE));
33485 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON));
33486 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL));
33487 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM));
33488 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33489 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33490 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT));
33491 PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP));
33492 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM));
33493 PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT));
33494 PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT));
33495 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK));
33496 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33497 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33498 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON));
33499 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR));
33500 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL));
33501 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL));
33502 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL));
33503 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS));
33504 PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT));
33505 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE));
33506 PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS));
33507 PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT));
33508 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER));
33509 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN));
33510 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT));
33511 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT));
33512 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33513 PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES));
33514 PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES));
33515 PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON));
33516 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON));
33517 PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST));
33518 PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT));
33519 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP));
33520 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT));
33521 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE));
33522 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL));
33523 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS));
33524 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER));
33525 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER));
33526 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL));
33527 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING));
33528 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING));
33529 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE));
33530 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN));
33531 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT));
33532 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE));
33533 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT));
33534 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE));
33535 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA));
33536 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM));
33537 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH));
33538 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT));
33539 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE));
33540 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED));
33541 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED));
33542 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED));
33543 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT));
33544 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED));
33545 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED));
33546 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE));
33547 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED));
33548 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE));
33549 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE));
33550 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW));
33551 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE));
33552 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON));
33553 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL));
33554 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT));
33555 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON));
33556 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT));
33557 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT));
33558 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM));
33559 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE));
33560 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL));
33561 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW));
33562 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT));
33563 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT));
33564 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT));
33565 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT));
33566 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP));
33567 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID));
33568 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT));
33569 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT));
33570 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE));
33571 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER));
33572 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE));
33573 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER));
33574 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS));
33575 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON));
33576 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL));
33577 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP));
33578 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN));
33579 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT));
33580 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT));
33581 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33582 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33583 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33584 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33585 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33586 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33587 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33588 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33589 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33590 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33591 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33592 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33593 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33594 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33595 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33596 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33597 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33598 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33599 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33600 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33601 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33602 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33603
33604 // Map renamed classes back to their common name for OOR
33605 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33606
33607 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33608 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS));
33609 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS));
33610 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES));
33611 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT));
33612 PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE));
33613 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE));
33614 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED));
33615 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33616 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS));
33617 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT));
33618 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES));
33619 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT));
33620 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE));
33621 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS));
33622 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS));
33623 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS));
33624 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal));
33625 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected));
33626 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded));
33627 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded));
33628 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max));
33629 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE));
33630 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW));
33631 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE));
33632 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON));
33633 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON));
33634 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT));
33635 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL));
33636 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT));
33637 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON));
33638 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT));
33639 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT));
33640 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART));
33641 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART));
33642 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM));
33643 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33644 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33645 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33646 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33647 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33648 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33649 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33650 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33651 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33652 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33653 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33654 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33655 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33656 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33657 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33658 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33659 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33660 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33661 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33662 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33663
33664 // Map renamed classes back to their common name for OOR
33665 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33666 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33667
33668 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33669 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY));
33670 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST));
33671 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS));
33672 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL));
33673 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS));
33674 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP));
33675 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP));
33676 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33677 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33678
33679 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33680
33681 }
33682