]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
Don't use deprecated wx.MaskColour
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxTextUrlEvent swig_types[0]
210 #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1]
211 #define SWIGTYPE_p_wxSizer swig_types[2]
212 #define SWIGTYPE_p_wxCheckBox swig_types[3]
213 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4]
214 #define SWIGTYPE_p_wxEvent swig_types[5]
215 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6]
216 #define SWIGTYPE_p_bool swig_types[7]
217 #define SWIGTYPE_p_wxPyTreeItemData swig_types[8]
218 #define SWIGTYPE_p_wxItemContainer swig_types[9]
219 #define SWIGTYPE_p_wxPyListCtrl swig_types[10]
220 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11]
221 #define SWIGTYPE_p_wxStaticLine swig_types[12]
222 #define SWIGTYPE_p_wxControl swig_types[13]
223 #define SWIGTYPE_p_wxPyControl swig_types[14]
224 #define SWIGTYPE_p_wxGauge swig_types[15]
225 #define SWIGTYPE_p_wxToolBarBase swig_types[16]
226 #define SWIGTYPE_p_wxFont swig_types[17]
227 #define SWIGTYPE_p_wxToggleButton swig_types[18]
228 #define SWIGTYPE_p_wxRadioButton swig_types[19]
229 #define SWIGTYPE_p_wxChoice swig_types[20]
230 #define SWIGTYPE_p_wxMemoryDC swig_types[21]
231 #define SWIGTYPE_p_wxListItemAttr swig_types[22]
232 #define SWIGTYPE_p_void swig_types[23]
233 #define SWIGTYPE_p_int swig_types[24]
234 #define SWIGTYPE_p_wxSize swig_types[25]
235 #define SWIGTYPE_p_wxDC swig_types[26]
236 #define SWIGTYPE_p_wxListView swig_types[27]
237 #define SWIGTYPE_p_wxIcon swig_types[28]
238 #define SWIGTYPE_p_wxVisualAttributes swig_types[29]
239 #define SWIGTYPE_p_wxTextCtrl swig_types[30]
240 #define SWIGTYPE_p_wxNotebook swig_types[31]
241 #define SWIGTYPE_p_wxNotifyEvent swig_types[32]
242 #define SWIGTYPE_p_wxArrayString swig_types[33]
243 #define SWIGTYPE_p_wxListbook swig_types[34]
244 #define SWIGTYPE_p_wxStaticBitmap swig_types[35]
245 #define SWIGTYPE_p_wxSlider swig_types[36]
246 #define SWIGTYPE_p_wxStaticBox swig_types[37]
247 #define SWIGTYPE_p_wxArrayInt swig_types[38]
248 #define SWIGTYPE_p_wxContextHelp swig_types[39]
249 #define SWIGTYPE_p_long swig_types[40]
250 #define SWIGTYPE_p_wxEvtHandler swig_types[41]
251 #define SWIGTYPE_p_wxListEvent swig_types[42]
252 #define SWIGTYPE_p_wxCheckListBox swig_types[43]
253 #define SWIGTYPE_p_wxListBox swig_types[44]
254 #define SWIGTYPE_p_wxBookCtrl swig_types[45]
255 #define SWIGTYPE_p_wxSpinButton swig_types[46]
256 #define SWIGTYPE_p_wxButton swig_types[47]
257 #define SWIGTYPE_p_wxBitmapButton swig_types[48]
258 #define SWIGTYPE_p_wxRect swig_types[49]
259 #define SWIGTYPE_p_wxContextHelpButton swig_types[50]
260 #define SWIGTYPE_p_wxRadioBox swig_types[51]
261 #define SWIGTYPE_p_wxScrollBar swig_types[52]
262 #define SWIGTYPE_p_char swig_types[53]
263 #define SWIGTYPE_p_wxTreeItemId swig_types[54]
264 #define SWIGTYPE_p_wxComboBox swig_types[55]
265 #define SWIGTYPE_p_wxHelpEvent swig_types[56]
266 #define SWIGTYPE_p_wxListItem swig_types[57]
267 #define SWIGTYPE_p_wxNotebookSizer swig_types[58]
268 #define SWIGTYPE_p_wxSpinEvent swig_types[59]
269 #define SWIGTYPE_p_wxGenericDragImage swig_types[60]
270 #define SWIGTYPE_p_wxSpinCtrl swig_types[61]
271 #define SWIGTYPE_p_wxImageList swig_types[62]
272 #define SWIGTYPE_p_wxHelpProvider swig_types[63]
273 #define SWIGTYPE_p_wxTextAttr swig_types[64]
274 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65]
275 #define SWIGTYPE_p_wxPoint swig_types[66]
276 #define SWIGTYPE_p_wxListbookEvent swig_types[67]
277 #define SWIGTYPE_p_wxNotebookEvent swig_types[68]
278 #define SWIGTYPE_p_wxObject swig_types[69]
279 #define SWIGTYPE_p_wxCursor swig_types[70]
280 #define SWIGTYPE_p_wxKeyEvent swig_types[71]
281 #define SWIGTYPE_p_wxWindow swig_types[72]
282 #define SWIGTYPE_p_wxString swig_types[73]
283 #define SWIGTYPE_p_wxBitmap swig_types[74]
284 #define SWIGTYPE_p_wxTreeEvent swig_types[75]
285 #define SWIGTYPE_p_wxMouseEvent swig_types[76]
286 #define SWIGTYPE_p_wxCommandEvent swig_types[77]
287 #define SWIGTYPE_p_wxStaticText swig_types[78]
288 #define SWIGTYPE_p_wxControlWithItems swig_types[79]
289 #define SWIGTYPE_p_wxToolBarToolBase swig_types[80]
290 #define SWIGTYPE_p_wxColour swig_types[81]
291 #define SWIGTYPE_p_wxToolBar swig_types[82]
292 #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83]
293 #define SWIGTYPE_p_wxValidator swig_types[84]
294 static swig_type_info *swig_types[86];
295
296 /* -------- TYPES TABLE (END) -------- */
297
298
299 /*-----------------------------------------------
300 @(target):= _controls_.so
301 ------------------------------------------------*/
302 #define SWIG_init init_controls_
303
304 #define SWIG_name "_controls_"
305
306 /* Auxiliar swig macros */
307
308 #ifdef __cplusplus
309 #define SWIGSTATICINLINE(a) static inline a
310 #define SWIGSTATIC(a) static a
311 #define swig_new_array(type, size) (new type[(size)])
312 #define swig_delete_array(cptr) delete[] cptr
313 #define swig_const_cast(type,a) const_cast<type>(a)
314 #define swig_static_cast(type,a) static_cast<type>(a)
315 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
316
317 #ifdef HAVE_NUMERIC_CAST
318 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
319 #else
320 #define swig_numeric_cast(type,a) static_cast<type>(a)
321 #endif
322
323 #else /* C case */
324
325 #define SWIGSTATICINLINE(a) static a
326 #define SWIGSTATIC(a) static a
327 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
328 #define swig_delete_array(cptr) free((char*)cptr)
329 #define swig_const_cast(type,a) (type)(a)
330 #define swig_static_cast(type,a) (type)(a)
331 #define swig_reinterpret_cast(type,a) (type)(a)
332 #define swig_numeric_cast(type,a) (type)(a)
333
334 #endif /* __cplusplus */
335
336
337 #define SWIG_FromSignedChar PyInt_FromLong
338 #define SWIG_FromUnsignedChar PyInt_FromLong
339 #define SWIG_FromShort PyInt_FromLong
340 #define SWIG_FromUnsignedShort PyInt_FromLong
341 #define SWIG_FromInt PyInt_FromLong
342 #define SWIG_FromLong PyInt_FromLong
343 #define SWIG_FromFloat PyFloat_FromDouble
344 #define SWIG_FromDouble PyFloat_FromDouble
345 #define SWIG_FromFloat PyFloat_FromDouble
346 #define SWIG_FromDouble PyFloat_FromDouble
347
348
349 #include "wx/wxPython/wxPython.h"
350 #include "wx/wxPython/pyclasses.h"
351
352 static const wxString wxPyPanelNameStr(wxPanelNameStr);
353 static const wxString wxPyEmptyString(wxEmptyString);
354 static const wxString wxPyControlNameStr(wxControlNameStr);
355
356 const wxArrayString wxPyEmptyStringArray;
357
358 static const wxString wxPyButtonNameStr(wxButtonNameStr);
359
360 #include <limits.h>
361
362
363 SWIGSTATICINLINE(long)
364 SWIG_CheckLongInRange(long value, const char* type,
365 long min_value, long max_value)
366 {
367 if (!PyErr_Occurred()) {
368 if (value < min_value) {
369 PyObject *err =
370 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
371 value, type, min_value);
372
373 PyErr_SetObject(PyExc_OverflowError, err);
374 Py_DECREF(err);
375 } else if (value > max_value) {
376 PyObject *err =
377 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
378 value, type, max_value);
379 PyErr_SetObject(PyExc_OverflowError, err);
380 Py_DECREF(err);
381 }
382 }
383 return value;
384 }
385
386
387 SWIGSTATICINLINE(long)
388 SWIG_AsLong(PyObject * obj)
389 {
390 if (PyNumber_Check(obj))
391 return PyInt_AsLong(obj);
392 else {
393 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
394 obj->ob_type->tp_name);
395 PyErr_SetObject(PyExc_TypeError, errmsg);
396 Py_DECREF(errmsg);
397 return 0;
398 }
399 }
400
401
402 #if INT_MAX != LONG_MAX
403 SWIGSTATICINLINE(int)
404 SWIG_AsInt(PyObject *obj)
405 {
406 return swig_numeric_cast(int,
407 SWIG_CheckLongInRange(SWIG_AsLong(obj),
408 "int", INT_MIN, INT_MAX));
409 }
410 #else
411 #define SWIG_AsInt SWIG_AsLong
412 #endif
413
414
415 SWIGSTATICINLINE(int)
416 SWIG_CheckInt(PyObject* obj)
417 {
418 SWIG_AsInt(obj);
419 if (PyErr_Occurred()) {
420 PyErr_Clear();
421 return 0;
422 } else {
423 return 1;
424 }
425 }
426
427
428 SWIGSTATICINLINE(int)
429 SWIG_CheckLong(PyObject* obj)
430 {
431 SWIG_AsLong(obj);
432 if (PyErr_Occurred()) {
433 PyErr_Clear();
434 return 0;
435 } else {
436 return 1;
437 }
438 }
439
440 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
441
442 SWIGSTATICINLINE(bool)
443 SWIG_AsBool(PyObject *obj)
444 {
445 return PyObject_IsTrue(obj) ? true : false;
446 }
447
448
449 SWIGSTATICINLINE(int)
450 SWIG_CheckBool(PyObject* obj)
451 {
452 SWIG_AsBool(obj);
453 if (PyErr_Occurred()) {
454 PyErr_Clear();
455 return 0;
456 } else {
457 return 1;
458 }
459 }
460
461 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
462 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
463 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
464 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
465 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
466 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
467
468 #include <wx/checklst.h>
469
470
471 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
472 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
473 if (clientData) {
474 wxPyClientData* data = new wxPyClientData(clientData);
475 self->Insert(item, pos, data);
476 } else
477 self->Insert(item, pos);
478 }
479 PyObject *wxListBox_GetSelections(wxListBox *self){
480 wxArrayInt lst;
481 self->GetSelections(lst);
482 PyObject *tup = PyTuple_New(lst.GetCount());
483 for(size_t i=0; i<lst.GetCount(); i++) {
484 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
485 }
486 return tup;
487 }
488 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
489 #ifdef __WXMSW__
490 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
491 self->GetItem(item)->SetTextColour(c);
492 #endif
493 }
494 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
495 #ifdef __WXMSW__
496 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
497 self->GetItem(item)->SetBackgroundColour(c);
498 #endif
499 }
500 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
501 #ifdef __WXMSW__
502 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
503 self->GetItem(item)->SetFont(f);
504 #endif
505 }
506 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
507
508 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
509 PyObject* o2;
510 PyObject* o3;
511
512 if (!target) {
513 target = o;
514 } else if (target == Py_None) {
515 Py_DECREF(Py_None);
516 target = o;
517 } else {
518 if (!PyTuple_Check(target)) {
519 o2 = target;
520 target = PyTuple_New(1);
521 PyTuple_SetItem(target, 0, o2);
522 }
523 o3 = PyTuple_New(1);
524 PyTuple_SetItem(o3, 0, o);
525
526 o2 = target;
527 target = PySequence_Concat(o2, o3);
528 Py_DECREF(o2);
529 Py_DECREF(o3);
530 }
531 return target;
532 }
533
534
535 SWIGSTATICINLINE(unsigned long)
536 SWIG_AsUnsignedLong(PyObject * obj)
537 {
538 if (PyLong_Check(obj)) {
539 return PyLong_AsUnsignedLong(obj);
540 } else {
541 long i = SWIG_AsLong(obj);
542 if ( !PyErr_Occurred() && (i < 0)) {
543 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
544 }
545 return i;
546 }
547 }
548
549
550 SWIGSTATICINLINE(int)
551 SWIG_CheckUnsignedLong(PyObject* obj)
552 {
553 SWIG_AsUnsignedLong(obj);
554 if (PyErr_Occurred()) {
555 PyErr_Clear();
556 return 0;
557 } else {
558 return 1;
559 }
560 }
561
562 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
563 self->AppendText(text);
564 }
565 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
566 return self->GetValue().Mid(from, to - from);
567 }
568 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
569 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
570 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
571 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
572 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
573
574 #include <wx/slider.h>
575
576
577 static const wxString wxPySliderNameStr(wxSliderNameStr);
578 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
579
580 #if !wxUSE_TOGGLEBTN
581 // implement dummy items for platforms that don't have this class
582
583 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
584
585 class wxToggleButton : public wxControl
586 {
587 public:
588 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
589 const wxPoint&, const wxSize&, long,
590 const wxValidator&, const wxString&)
591 { wxPyRaiseNotImplemented(); }
592
593 wxToggleButton()
594 { wxPyRaiseNotImplemented(); }
595 };
596 #endif
597
598 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
599
600 SWIGSTATICINLINE(PyObject* )
601 SWIG_FromUnsignedLong(unsigned long value)
602 {
603 return (value > LONG_MAX) ?
604 PyLong_FromUnsignedLong(value)
605 : PyInt_FromLong(swig_numeric_cast(long,value));
606 }
607
608 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
609 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
610 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
611 if (udata) {
612 Py_INCREF(udata->m_obj);
613 return udata->m_obj;
614 } else {
615 Py_INCREF(Py_None);
616 return Py_None;
617 }
618 }
619 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
620 self->SetClientData(new wxPyUserData(clientData));
621 }
622 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){
623 wxPyUserData* udata = NULL;
624 if (clientData && clientData != Py_None)
625 udata = new wxPyUserData(clientData);
626 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
627 shortHelp, longHelp, udata);
628 }
629 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){
630 wxPyUserData* udata = NULL;
631 if (clientData && clientData != Py_None)
632 udata = new wxPyUserData(clientData);
633 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
634 shortHelp, longHelp, udata);
635 }
636 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
637 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
638 if (udata) {
639 Py_INCREF(udata->m_obj);
640 return udata->m_obj;
641 } else {
642 Py_INCREF(Py_None);
643 return Py_None;
644 }
645 }
646 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
647 self->SetToolClientData(id, new wxPyUserData(clientData));
648 }
649
650 #include <wx/listctrl.h>
651
652
653 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
654 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
655 // Python aware sorting function for wxPyListCtrl
656 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
657 int retval = 0;
658 PyObject* func = (PyObject*)funcPtr;
659 bool blocked = wxPyBeginBlockThreads();
660
661 PyObject* args = Py_BuildValue("(ii)", item1, item2);
662 PyObject* result = PyEval_CallObject(func, args);
663 Py_DECREF(args);
664 if (result) {
665 retval = PyInt_AsLong(result);
666 Py_DECREF(result);
667 }
668
669 wxPyEndBlockThreads(blocked);
670 return retval;
671 }
672
673 // C++ Version of a Python aware class
674 class wxPyListCtrl : public wxListCtrl {
675 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
676 public:
677 wxPyListCtrl() : wxListCtrl() {}
678 wxPyListCtrl(wxWindow* parent, wxWindowID id,
679 const wxPoint& pos,
680 const wxSize& size,
681 long style,
682 const wxValidator& validator,
683 const wxString& name) :
684 wxListCtrl(parent, id, pos, size, style, validator, name) {}
685
686 bool Create(wxWindow* parent, wxWindowID id,
687 const wxPoint& pos,
688 const wxSize& size,
689 long style,
690 const wxValidator& validator,
691 const wxString& name) {
692 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
693 }
694
695 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
696 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
697 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
698
699 PYPRIVATE;
700 };
701
702 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
703
704 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
705 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
706 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
707
708 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
709 wxListItem item;
710 item.SetMask( wxLIST_MASK_STATE |
711 wxLIST_MASK_TEXT |
712 wxLIST_MASK_IMAGE |
713 wxLIST_MASK_DATA |
714 wxLIST_SET_ITEM |
715 wxLIST_MASK_WIDTH |
716 wxLIST_MASK_FORMAT
717 );
718 if (self->GetColumn(col, item))
719 return new wxListItem(item);
720 else
721 return NULL;
722 }
723 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
724 wxListItem* info = new wxListItem;
725 info->m_itemId = itemId;
726 info->m_col = col;
727 info->m_mask = 0xFFFF;
728 self->GetItem(*info);
729 return info;
730 }
731 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
732 wxPoint pos;
733 self->GetItemPosition(item, pos);
734 return pos;
735 }
736 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
737 wxRect rect;
738 self->GetItemRect(item, rect, code);
739 return rect;
740 }
741 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
742 if (!PyCallable_Check(func))
743 return False;
744 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
745 }
746 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
747
748
749
750 return (wxWindow*)self->m_mainWin;
751
752 }
753
754 #include <wx/treectrl.h>
755 #include "wx/wxPython/pytree.h"
756
757 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
758 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
759 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
760 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
761 // C++ version of Python aware wxTreeCtrl
762 class wxPyTreeCtrl : public wxTreeCtrl {
763 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
764 public:
765 wxPyTreeCtrl() : wxTreeCtrl() {}
766 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
767 const wxPoint& pos,
768 const wxSize& size,
769 long style,
770 const wxValidator& validator,
771 const wxString& name) :
772 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
773
774 bool Create(wxWindow *parent, wxWindowID id,
775 const wxPoint& pos,
776 const wxSize& size,
777 long style,
778 const wxValidator& validator,
779 const wxString& name) {
780 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
781 }
782
783
784 int OnCompareItems(const wxTreeItemId& item1,
785 const wxTreeItemId& item2) {
786 int rval = 0;
787 bool found;
788 bool blocked = wxPyBeginBlockThreads();
789 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
790 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
791 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
792 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
793 Py_DECREF(o1);
794 Py_DECREF(o2);
795 }
796 wxPyEndBlockThreads(blocked);
797 if (! found)
798 rval = wxTreeCtrl::OnCompareItems(item1, item2);
799 return rval;
800 }
801 PYPRIVATE;
802 };
803
804 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
805
806
807
808 #if UINT_MAX < LONG_MAX
809 #define SWIG_FromUnsignedInt SWIG_FromLong
810 #else
811 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
812 #endif
813
814
815 SWIGSTATICINLINE(unsigned long)
816 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
817 unsigned long max_value)
818 {
819 if (!PyErr_Occurred()) {
820 if (value > max_value) {
821 PyObject *err =
822 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
823 value, type, max_value);
824 PyErr_SetObject(PyExc_OverflowError, err);
825 Py_DECREF(err);
826 }
827 }
828 return value;
829 }
830
831
832 #if UINT_MAX != ULONG_MAX
833 SWIGSTATICINLINE(unsigned int)
834 SWIG_AsUnsignedInt(PyObject *obj)
835 {
836 return swig_numeric_cast(unsigned int,
837 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
838 "unsigned int", UINT_MAX));
839 }
840 #else
841 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
842 #endif
843
844
845 SWIGSTATICINLINE(int)
846 SWIG_CheckUnsignedInt(PyObject* obj)
847 {
848 SWIG_AsUnsignedInt(obj);
849 if (PyErr_Occurred()) {
850 PyErr_Clear();
851 return 0;
852 } else {
853 return 1;
854 }
855 }
856
857 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
858 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
859 if (data == NULL) {
860 data = new wxPyTreeItemData();
861 data->SetId(item); // set the id
862 self->SetItemData(item, data);
863 }
864 return data;
865 }
866 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
867 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
868 if (data == NULL) {
869 data = new wxPyTreeItemData();
870 data->SetId(item); // set the id
871 self->SetItemData(item, data);
872 }
873 return data->GetData();
874 }
875 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
876 data->SetId(item); // set the id
877 self->SetItemData(item, data);
878 }
879 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
880 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
881 if (data == NULL) {
882 data = new wxPyTreeItemData(obj);
883 data->SetId(item); // set the id
884 self->SetItemData(item, data);
885 } else
886 data->SetData(obj);
887 }
888 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
889 bool blocked = wxPyBeginBlockThreads();
890 PyObject* rval = PyList_New(0);
891 wxArrayTreeItemIds array;
892 size_t num, x;
893 num = self->GetSelections(array);
894 for (x=0; x < num; x++) {
895 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
896 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
897 PyList_Append(rval, item);
898 Py_DECREF(item);
899 }
900 wxPyEndBlockThreads(blocked);
901 return rval;
902 }
903 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
904 void* cookie = 0;
905 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
906 bool blocked = wxPyBeginBlockThreads();
907 PyObject* tup = PyTuple_New(2);
908 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
909 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
910 wxPyEndBlockThreads(blocked);
911 return tup;
912 }
913 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
914 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
915 bool blocked = wxPyBeginBlockThreads();
916 PyObject* tup = PyTuple_New(2);
917 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
918 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
919 wxPyEndBlockThreads(blocked);
920 return tup;
921 }
922 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
923 wxRect rect;
924 if (self->GetBoundingRect(item, rect, textOnly)) {
925 bool blocked = wxPyBeginBlockThreads();
926 wxRect* r = new wxRect(rect);
927 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
928 wxPyEndBlockThreads(blocked);
929 return val;
930 }
931 else
932 RETURN_NONE();
933 }
934 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
935 // C++ version of Python aware wxControl
936 class wxPyControl : public wxControl
937 {
938 DECLARE_DYNAMIC_CLASS(wxPyControl)
939 public:
940 wxPyControl() : wxControl() {}
941 wxPyControl(wxWindow* parent, const wxWindowID id,
942 const wxPoint& pos = wxDefaultPosition,
943 const wxSize& size = wxDefaultSize,
944 long style = 0,
945 const wxValidator& validator=wxDefaultValidator,
946 const wxString& name = wxPyControlNameStr)
947 : wxControl(parent, id, pos, size, style, validator, name) {}
948
949 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
950
951 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
952 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
953 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
954 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
955
956 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
957 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
958 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
959
960 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
961 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
962
963 DEC_PYCALLBACK__(InitDialog);
964 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
965 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
966 DEC_PYCALLBACK_BOOL_(Validate);
967
968 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
969 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
970 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
971
972 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
973 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
974
975 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
976 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
977 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
978
979 PYPRIVATE;
980 };
981
982 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
983
984 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
985 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
986 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
987 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
988
989 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
990 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
991 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
992
993 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
994 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
995
996 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
997 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
998 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
999 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1000
1001 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1002 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1003 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1004
1005 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1006 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1007
1008 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
1009 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1010 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
1011
1012
1013
1014 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1015
1016 #include <wx/generic/dragimgg.h>
1017
1018 #ifdef __cplusplus
1019 extern "C" {
1020 #endif
1021 static int _wrap_ButtonNameStr_set(PyObject *_val) {
1022 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1023 return 1;
1024 }
1025
1026
1027 static PyObject *_wrap_ButtonNameStr_get() {
1028 PyObject *pyobj;
1029
1030 {
1031 #if wxUSE_UNICODE
1032 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1033 #else
1034 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1035 #endif
1036 }
1037 return pyobj;
1038 }
1039
1040
1041 static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
1042 PyObject *resultobj;
1043 wxWindow *arg1 = (wxWindow *) 0 ;
1044 int arg2 ;
1045 wxString *arg3 = 0 ;
1046 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1047 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1048 wxSize const &arg5_defvalue = wxDefaultSize ;
1049 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1050 long arg6 = (long) 0 ;
1051 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1052 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1053 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1054 wxString *arg8 = (wxString *) &arg8_defvalue ;
1055 wxButton *result;
1056 bool temp3 = False ;
1057 wxPoint temp4 ;
1058 wxSize temp5 ;
1059 bool temp8 = False ;
1060 PyObject * obj0 = 0 ;
1061 PyObject * obj1 = 0 ;
1062 PyObject * obj2 = 0 ;
1063 PyObject * obj3 = 0 ;
1064 PyObject * obj4 = 0 ;
1065 PyObject * obj5 = 0 ;
1066 PyObject * obj6 = 0 ;
1067 PyObject * obj7 = 0 ;
1068 char *kwnames[] = {
1069 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1070 };
1071
1072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1075 arg2 = (int) SWIG_AsInt(obj1);
1076 if (PyErr_Occurred()) SWIG_fail;
1077 {
1078 arg3 = wxString_in_helper(obj2);
1079 if (arg3 == NULL) SWIG_fail;
1080 temp3 = True;
1081 }
1082 if (obj3) {
1083 {
1084 arg4 = &temp4;
1085 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1086 }
1087 }
1088 if (obj4) {
1089 {
1090 arg5 = &temp5;
1091 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1092 }
1093 }
1094 if (obj5) {
1095 arg6 = (long) SWIG_AsLong(obj5);
1096 if (PyErr_Occurred()) SWIG_fail;
1097 }
1098 if (obj6) {
1099 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1100 SWIG_POINTER_EXCEPTION | 0)) == -1)
1101 SWIG_fail;
1102 if (arg7 == NULL) {
1103 PyErr_SetString(PyExc_TypeError,"null reference");
1104 SWIG_fail;
1105 }
1106 }
1107 if (obj7) {
1108 {
1109 arg8 = wxString_in_helper(obj7);
1110 if (arg8 == NULL) SWIG_fail;
1111 temp8 = True;
1112 }
1113 }
1114 {
1115 PyThreadState* __tstate = wxPyBeginAllowThreads();
1116 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1117
1118 wxPyEndAllowThreads(__tstate);
1119 if (PyErr_Occurred()) SWIG_fail;
1120 }
1121 {
1122 resultobj = wxPyMake_wxObject(result);
1123 }
1124 {
1125 if (temp3)
1126 delete arg3;
1127 }
1128 {
1129 if (temp8)
1130 delete arg8;
1131 }
1132 return resultobj;
1133 fail:
1134 {
1135 if (temp3)
1136 delete arg3;
1137 }
1138 {
1139 if (temp8)
1140 delete arg8;
1141 }
1142 return NULL;
1143 }
1144
1145
1146 static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1147 PyObject *resultobj;
1148 wxButton *result;
1149 char *kwnames[] = {
1150 NULL
1151 };
1152
1153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1154 {
1155 PyThreadState* __tstate = wxPyBeginAllowThreads();
1156 result = (wxButton *)new wxButton();
1157
1158 wxPyEndAllowThreads(__tstate);
1159 if (PyErr_Occurred()) SWIG_fail;
1160 }
1161 {
1162 resultobj = wxPyMake_wxObject(result);
1163 }
1164 return resultobj;
1165 fail:
1166 return NULL;
1167 }
1168
1169
1170 static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1171 PyObject *resultobj;
1172 wxButton *arg1 = (wxButton *) 0 ;
1173 wxWindow *arg2 = (wxWindow *) 0 ;
1174 int arg3 ;
1175 wxString *arg4 = 0 ;
1176 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1177 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1178 wxSize const &arg6_defvalue = wxDefaultSize ;
1179 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1180 long arg7 = (long) 0 ;
1181 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1182 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1183 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1184 wxString *arg9 = (wxString *) &arg9_defvalue ;
1185 bool result;
1186 bool temp4 = False ;
1187 wxPoint temp5 ;
1188 wxSize temp6 ;
1189 bool temp9 = False ;
1190 PyObject * obj0 = 0 ;
1191 PyObject * obj1 = 0 ;
1192 PyObject * obj2 = 0 ;
1193 PyObject * obj3 = 0 ;
1194 PyObject * obj4 = 0 ;
1195 PyObject * obj5 = 0 ;
1196 PyObject * obj6 = 0 ;
1197 PyObject * obj7 = 0 ;
1198 PyObject * obj8 = 0 ;
1199 char *kwnames[] = {
1200 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1201 };
1202
1203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1208 arg3 = (int) SWIG_AsInt(obj2);
1209 if (PyErr_Occurred()) SWIG_fail;
1210 {
1211 arg4 = wxString_in_helper(obj3);
1212 if (arg4 == NULL) SWIG_fail;
1213 temp4 = True;
1214 }
1215 if (obj4) {
1216 {
1217 arg5 = &temp5;
1218 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1219 }
1220 }
1221 if (obj5) {
1222 {
1223 arg6 = &temp6;
1224 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1225 }
1226 }
1227 if (obj6) {
1228 arg7 = (long) SWIG_AsLong(obj6);
1229 if (PyErr_Occurred()) SWIG_fail;
1230 }
1231 if (obj7) {
1232 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1233 SWIG_POINTER_EXCEPTION | 0)) == -1)
1234 SWIG_fail;
1235 if (arg8 == NULL) {
1236 PyErr_SetString(PyExc_TypeError,"null reference");
1237 SWIG_fail;
1238 }
1239 }
1240 if (obj8) {
1241 {
1242 arg9 = wxString_in_helper(obj8);
1243 if (arg9 == NULL) SWIG_fail;
1244 temp9 = True;
1245 }
1246 }
1247 {
1248 PyThreadState* __tstate = wxPyBeginAllowThreads();
1249 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1250
1251 wxPyEndAllowThreads(__tstate);
1252 if (PyErr_Occurred()) SWIG_fail;
1253 }
1254 {
1255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1256 }
1257 {
1258 if (temp4)
1259 delete arg4;
1260 }
1261 {
1262 if (temp9)
1263 delete arg9;
1264 }
1265 return resultobj;
1266 fail:
1267 {
1268 if (temp4)
1269 delete arg4;
1270 }
1271 {
1272 if (temp9)
1273 delete arg9;
1274 }
1275 return NULL;
1276 }
1277
1278
1279 static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1280 PyObject *resultobj;
1281 wxButton *arg1 = (wxButton *) 0 ;
1282 PyObject * obj0 = 0 ;
1283 char *kwnames[] = {
1284 (char *) "self", NULL
1285 };
1286
1287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1290 {
1291 PyThreadState* __tstate = wxPyBeginAllowThreads();
1292 (arg1)->SetDefault();
1293
1294 wxPyEndAllowThreads(__tstate);
1295 if (PyErr_Occurred()) SWIG_fail;
1296 }
1297 Py_INCREF(Py_None); resultobj = Py_None;
1298 return resultobj;
1299 fail:
1300 return NULL;
1301 }
1302
1303
1304 static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1305 PyObject *resultobj;
1306 wxSize result;
1307 char *kwnames[] = {
1308 NULL
1309 };
1310
1311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1312 {
1313 PyThreadState* __tstate = wxPyBeginAllowThreads();
1314 result = wxButton::GetDefaultSize();
1315
1316 wxPyEndAllowThreads(__tstate);
1317 if (PyErr_Occurred()) SWIG_fail;
1318 }
1319 {
1320 wxSize * resultptr;
1321 resultptr = new wxSize((wxSize &) result);
1322 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1323 }
1324 return resultobj;
1325 fail:
1326 return NULL;
1327 }
1328
1329
1330 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1331 PyObject *resultobj;
1332 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1333 wxVisualAttributes result;
1334 PyObject * obj0 = 0 ;
1335 char *kwnames[] = {
1336 (char *) "variant", NULL
1337 };
1338
1339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1340 if (obj0) {
1341 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
1342 if (PyErr_Occurred()) SWIG_fail;
1343 }
1344 {
1345 PyThreadState* __tstate = wxPyBeginAllowThreads();
1346 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1347
1348 wxPyEndAllowThreads(__tstate);
1349 if (PyErr_Occurred()) SWIG_fail;
1350 }
1351 {
1352 wxVisualAttributes * resultptr;
1353 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1354 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1355 }
1356 return resultobj;
1357 fail:
1358 return NULL;
1359 }
1360
1361
1362 static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1363 PyObject *obj;
1364 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1365 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1366 Py_INCREF(obj);
1367 return Py_BuildValue((char *)"");
1368 }
1369 static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1370 PyObject *resultobj;
1371 wxWindow *arg1 = (wxWindow *) 0 ;
1372 int arg2 ;
1373 wxBitmap *arg3 = 0 ;
1374 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1375 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1376 wxSize const &arg5_defvalue = wxDefaultSize ;
1377 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1378 long arg6 = (long) wxBU_AUTODRAW ;
1379 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1380 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1381 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1382 wxString *arg8 = (wxString *) &arg8_defvalue ;
1383 wxBitmapButton *result;
1384 wxPoint temp4 ;
1385 wxSize temp5 ;
1386 bool temp8 = False ;
1387 PyObject * obj0 = 0 ;
1388 PyObject * obj1 = 0 ;
1389 PyObject * obj2 = 0 ;
1390 PyObject * obj3 = 0 ;
1391 PyObject * obj4 = 0 ;
1392 PyObject * obj5 = 0 ;
1393 PyObject * obj6 = 0 ;
1394 PyObject * obj7 = 0 ;
1395 char *kwnames[] = {
1396 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1397 };
1398
1399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1402 arg2 = (int) SWIG_AsInt(obj1);
1403 if (PyErr_Occurred()) SWIG_fail;
1404 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1405 SWIG_POINTER_EXCEPTION | 0)) == -1)
1406 SWIG_fail;
1407 if (arg3 == NULL) {
1408 PyErr_SetString(PyExc_TypeError,"null reference");
1409 SWIG_fail;
1410 }
1411 if (obj3) {
1412 {
1413 arg4 = &temp4;
1414 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1415 }
1416 }
1417 if (obj4) {
1418 {
1419 arg5 = &temp5;
1420 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1421 }
1422 }
1423 if (obj5) {
1424 arg6 = (long) SWIG_AsLong(obj5);
1425 if (PyErr_Occurred()) SWIG_fail;
1426 }
1427 if (obj6) {
1428 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1429 SWIG_POINTER_EXCEPTION | 0)) == -1)
1430 SWIG_fail;
1431 if (arg7 == NULL) {
1432 PyErr_SetString(PyExc_TypeError,"null reference");
1433 SWIG_fail;
1434 }
1435 }
1436 if (obj7) {
1437 {
1438 arg8 = wxString_in_helper(obj7);
1439 if (arg8 == NULL) SWIG_fail;
1440 temp8 = True;
1441 }
1442 }
1443 {
1444 PyThreadState* __tstate = wxPyBeginAllowThreads();
1445 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1446
1447 wxPyEndAllowThreads(__tstate);
1448 if (PyErr_Occurred()) SWIG_fail;
1449 }
1450 {
1451 resultobj = wxPyMake_wxObject(result);
1452 }
1453 {
1454 if (temp8)
1455 delete arg8;
1456 }
1457 return resultobj;
1458 fail:
1459 {
1460 if (temp8)
1461 delete arg8;
1462 }
1463 return NULL;
1464 }
1465
1466
1467 static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1468 PyObject *resultobj;
1469 wxBitmapButton *result;
1470 char *kwnames[] = {
1471 NULL
1472 };
1473
1474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1475 {
1476 PyThreadState* __tstate = wxPyBeginAllowThreads();
1477 result = (wxBitmapButton *)new wxBitmapButton();
1478
1479 wxPyEndAllowThreads(__tstate);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 }
1482 {
1483 resultobj = wxPyMake_wxObject(result);
1484 }
1485 return resultobj;
1486 fail:
1487 return NULL;
1488 }
1489
1490
1491 static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1492 PyObject *resultobj;
1493 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1494 wxWindow *arg2 = (wxWindow *) 0 ;
1495 int arg3 ;
1496 wxBitmap *arg4 = 0 ;
1497 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1498 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1499 wxSize const &arg6_defvalue = wxDefaultSize ;
1500 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1501 long arg7 = (long) wxBU_AUTODRAW ;
1502 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1503 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1504 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1505 wxString *arg9 = (wxString *) &arg9_defvalue ;
1506 bool result;
1507 wxPoint temp5 ;
1508 wxSize temp6 ;
1509 bool temp9 = False ;
1510 PyObject * obj0 = 0 ;
1511 PyObject * obj1 = 0 ;
1512 PyObject * obj2 = 0 ;
1513 PyObject * obj3 = 0 ;
1514 PyObject * obj4 = 0 ;
1515 PyObject * obj5 = 0 ;
1516 PyObject * obj6 = 0 ;
1517 PyObject * obj7 = 0 ;
1518 PyObject * obj8 = 0 ;
1519 char *kwnames[] = {
1520 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1521 };
1522
1523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1528 arg3 = (int) SWIG_AsInt(obj2);
1529 if (PyErr_Occurred()) SWIG_fail;
1530 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1531 SWIG_POINTER_EXCEPTION | 0)) == -1)
1532 SWIG_fail;
1533 if (arg4 == NULL) {
1534 PyErr_SetString(PyExc_TypeError,"null reference");
1535 SWIG_fail;
1536 }
1537 if (obj4) {
1538 {
1539 arg5 = &temp5;
1540 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1541 }
1542 }
1543 if (obj5) {
1544 {
1545 arg6 = &temp6;
1546 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1547 }
1548 }
1549 if (obj6) {
1550 arg7 = (long) SWIG_AsLong(obj6);
1551 if (PyErr_Occurred()) SWIG_fail;
1552 }
1553 if (obj7) {
1554 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1555 SWIG_POINTER_EXCEPTION | 0)) == -1)
1556 SWIG_fail;
1557 if (arg8 == NULL) {
1558 PyErr_SetString(PyExc_TypeError,"null reference");
1559 SWIG_fail;
1560 }
1561 }
1562 if (obj8) {
1563 {
1564 arg9 = wxString_in_helper(obj8);
1565 if (arg9 == NULL) SWIG_fail;
1566 temp9 = True;
1567 }
1568 }
1569 {
1570 PyThreadState* __tstate = wxPyBeginAllowThreads();
1571 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1572
1573 wxPyEndAllowThreads(__tstate);
1574 if (PyErr_Occurred()) SWIG_fail;
1575 }
1576 {
1577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1578 }
1579 {
1580 if (temp9)
1581 delete arg9;
1582 }
1583 return resultobj;
1584 fail:
1585 {
1586 if (temp9)
1587 delete arg9;
1588 }
1589 return NULL;
1590 }
1591
1592
1593 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1594 PyObject *resultobj;
1595 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1596 wxBitmap result;
1597 PyObject * obj0 = 0 ;
1598 char *kwnames[] = {
1599 (char *) "self", NULL
1600 };
1601
1602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1605 {
1606 PyThreadState* __tstate = wxPyBeginAllowThreads();
1607 result = (arg1)->GetBitmapLabel();
1608
1609 wxPyEndAllowThreads(__tstate);
1610 if (PyErr_Occurred()) SWIG_fail;
1611 }
1612 {
1613 wxBitmap * resultptr;
1614 resultptr = new wxBitmap((wxBitmap &) result);
1615 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1616 }
1617 return resultobj;
1618 fail:
1619 return NULL;
1620 }
1621
1622
1623 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1624 PyObject *resultobj;
1625 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1626 wxBitmap result;
1627 PyObject * obj0 = 0 ;
1628 char *kwnames[] = {
1629 (char *) "self", NULL
1630 };
1631
1632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1635 {
1636 PyThreadState* __tstate = wxPyBeginAllowThreads();
1637 result = (arg1)->GetBitmapDisabled();
1638
1639 wxPyEndAllowThreads(__tstate);
1640 if (PyErr_Occurred()) SWIG_fail;
1641 }
1642 {
1643 wxBitmap * resultptr;
1644 resultptr = new wxBitmap((wxBitmap &) result);
1645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1646 }
1647 return resultobj;
1648 fail:
1649 return NULL;
1650 }
1651
1652
1653 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1654 PyObject *resultobj;
1655 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1656 wxBitmap result;
1657 PyObject * obj0 = 0 ;
1658 char *kwnames[] = {
1659 (char *) "self", NULL
1660 };
1661
1662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1665 {
1666 PyThreadState* __tstate = wxPyBeginAllowThreads();
1667 result = (arg1)->GetBitmapFocus();
1668
1669 wxPyEndAllowThreads(__tstate);
1670 if (PyErr_Occurred()) SWIG_fail;
1671 }
1672 {
1673 wxBitmap * resultptr;
1674 resultptr = new wxBitmap((wxBitmap &) result);
1675 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1676 }
1677 return resultobj;
1678 fail:
1679 return NULL;
1680 }
1681
1682
1683 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1684 PyObject *resultobj;
1685 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1686 wxBitmap result;
1687 PyObject * obj0 = 0 ;
1688 char *kwnames[] = {
1689 (char *) "self", NULL
1690 };
1691
1692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1695 {
1696 PyThreadState* __tstate = wxPyBeginAllowThreads();
1697 result = (arg1)->GetBitmapSelected();
1698
1699 wxPyEndAllowThreads(__tstate);
1700 if (PyErr_Occurred()) SWIG_fail;
1701 }
1702 {
1703 wxBitmap * resultptr;
1704 resultptr = new wxBitmap((wxBitmap &) result);
1705 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1706 }
1707 return resultobj;
1708 fail:
1709 return NULL;
1710 }
1711
1712
1713 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1714 PyObject *resultobj;
1715 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1716 wxBitmap *arg2 = 0 ;
1717 PyObject * obj0 = 0 ;
1718 PyObject * obj1 = 0 ;
1719 char *kwnames[] = {
1720 (char *) "self",(char *) "bitmap", NULL
1721 };
1722
1723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1726 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1727 SWIG_POINTER_EXCEPTION | 0)) == -1)
1728 SWIG_fail;
1729 if (arg2 == NULL) {
1730 PyErr_SetString(PyExc_TypeError,"null reference");
1731 SWIG_fail;
1732 }
1733 {
1734 PyThreadState* __tstate = wxPyBeginAllowThreads();
1735 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1736
1737 wxPyEndAllowThreads(__tstate);
1738 if (PyErr_Occurred()) SWIG_fail;
1739 }
1740 Py_INCREF(Py_None); resultobj = Py_None;
1741 return resultobj;
1742 fail:
1743 return NULL;
1744 }
1745
1746
1747 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1748 PyObject *resultobj;
1749 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1750 wxBitmap *arg2 = 0 ;
1751 PyObject * obj0 = 0 ;
1752 PyObject * obj1 = 0 ;
1753 char *kwnames[] = {
1754 (char *) "self",(char *) "bitmap", NULL
1755 };
1756
1757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1761 SWIG_POINTER_EXCEPTION | 0)) == -1)
1762 SWIG_fail;
1763 if (arg2 == NULL) {
1764 PyErr_SetString(PyExc_TypeError,"null reference");
1765 SWIG_fail;
1766 }
1767 {
1768 PyThreadState* __tstate = wxPyBeginAllowThreads();
1769 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1770
1771 wxPyEndAllowThreads(__tstate);
1772 if (PyErr_Occurred()) SWIG_fail;
1773 }
1774 Py_INCREF(Py_None); resultobj = Py_None;
1775 return resultobj;
1776 fail:
1777 return NULL;
1778 }
1779
1780
1781 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1782 PyObject *resultobj;
1783 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1784 wxBitmap *arg2 = 0 ;
1785 PyObject * obj0 = 0 ;
1786 PyObject * obj1 = 0 ;
1787 char *kwnames[] = {
1788 (char *) "self",(char *) "bitmap", NULL
1789 };
1790
1791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1794 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1795 SWIG_POINTER_EXCEPTION | 0)) == -1)
1796 SWIG_fail;
1797 if (arg2 == NULL) {
1798 PyErr_SetString(PyExc_TypeError,"null reference");
1799 SWIG_fail;
1800 }
1801 {
1802 PyThreadState* __tstate = wxPyBeginAllowThreads();
1803 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1804
1805 wxPyEndAllowThreads(__tstate);
1806 if (PyErr_Occurred()) SWIG_fail;
1807 }
1808 Py_INCREF(Py_None); resultobj = Py_None;
1809 return resultobj;
1810 fail:
1811 return NULL;
1812 }
1813
1814
1815 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1816 PyObject *resultobj;
1817 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1818 wxBitmap *arg2 = 0 ;
1819 PyObject * obj0 = 0 ;
1820 PyObject * obj1 = 0 ;
1821 char *kwnames[] = {
1822 (char *) "self",(char *) "bitmap", NULL
1823 };
1824
1825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1828 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1829 SWIG_POINTER_EXCEPTION | 0)) == -1)
1830 SWIG_fail;
1831 if (arg2 == NULL) {
1832 PyErr_SetString(PyExc_TypeError,"null reference");
1833 SWIG_fail;
1834 }
1835 {
1836 PyThreadState* __tstate = wxPyBeginAllowThreads();
1837 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1838
1839 wxPyEndAllowThreads(__tstate);
1840 if (PyErr_Occurred()) SWIG_fail;
1841 }
1842 Py_INCREF(Py_None); resultobj = Py_None;
1843 return resultobj;
1844 fail:
1845 return NULL;
1846 }
1847
1848
1849 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1850 PyObject *resultobj;
1851 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1852 int arg2 ;
1853 int arg3 ;
1854 PyObject * obj0 = 0 ;
1855 PyObject * obj1 = 0 ;
1856 PyObject * obj2 = 0 ;
1857 char *kwnames[] = {
1858 (char *) "self",(char *) "x",(char *) "y", NULL
1859 };
1860
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1864 arg2 = (int) SWIG_AsInt(obj1);
1865 if (PyErr_Occurred()) SWIG_fail;
1866 arg3 = (int) SWIG_AsInt(obj2);
1867 if (PyErr_Occurred()) SWIG_fail;
1868 {
1869 PyThreadState* __tstate = wxPyBeginAllowThreads();
1870 (arg1)->SetMargins(arg2,arg3);
1871
1872 wxPyEndAllowThreads(__tstate);
1873 if (PyErr_Occurred()) SWIG_fail;
1874 }
1875 Py_INCREF(Py_None); resultobj = Py_None;
1876 return resultobj;
1877 fail:
1878 return NULL;
1879 }
1880
1881
1882 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1883 PyObject *resultobj;
1884 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1885 int result;
1886 PyObject * obj0 = 0 ;
1887 char *kwnames[] = {
1888 (char *) "self", NULL
1889 };
1890
1891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1894 {
1895 PyThreadState* __tstate = wxPyBeginAllowThreads();
1896 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1897
1898 wxPyEndAllowThreads(__tstate);
1899 if (PyErr_Occurred()) SWIG_fail;
1900 }
1901 resultobj = SWIG_FromInt((int)result);
1902 return resultobj;
1903 fail:
1904 return NULL;
1905 }
1906
1907
1908 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1909 PyObject *resultobj;
1910 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1911 int result;
1912 PyObject * obj0 = 0 ;
1913 char *kwnames[] = {
1914 (char *) "self", NULL
1915 };
1916
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1920 {
1921 PyThreadState* __tstate = wxPyBeginAllowThreads();
1922 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1923
1924 wxPyEndAllowThreads(__tstate);
1925 if (PyErr_Occurred()) SWIG_fail;
1926 }
1927 resultobj = SWIG_FromInt((int)result);
1928 return resultobj;
1929 fail:
1930 return NULL;
1931 }
1932
1933
1934 static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1935 PyObject *obj;
1936 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1937 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1938 Py_INCREF(obj);
1939 return Py_BuildValue((char *)"");
1940 }
1941 static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1942 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1943 return 1;
1944 }
1945
1946
1947 static PyObject *_wrap_CheckBoxNameStr_get() {
1948 PyObject *pyobj;
1949
1950 {
1951 #if wxUSE_UNICODE
1952 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1953 #else
1954 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1955 #endif
1956 }
1957 return pyobj;
1958 }
1959
1960
1961 static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1962 PyObject *resultobj;
1963 wxWindow *arg1 = (wxWindow *) 0 ;
1964 int arg2 ;
1965 wxString *arg3 = 0 ;
1966 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1967 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1968 wxSize const &arg5_defvalue = wxDefaultSize ;
1969 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1970 long arg6 = (long) 0 ;
1971 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1972 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1973 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1974 wxString *arg8 = (wxString *) &arg8_defvalue ;
1975 wxCheckBox *result;
1976 bool temp3 = False ;
1977 wxPoint temp4 ;
1978 wxSize temp5 ;
1979 bool temp8 = False ;
1980 PyObject * obj0 = 0 ;
1981 PyObject * obj1 = 0 ;
1982 PyObject * obj2 = 0 ;
1983 PyObject * obj3 = 0 ;
1984 PyObject * obj4 = 0 ;
1985 PyObject * obj5 = 0 ;
1986 PyObject * obj6 = 0 ;
1987 PyObject * obj7 = 0 ;
1988 char *kwnames[] = {
1989 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1990 };
1991
1992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1995 arg2 = (int) SWIG_AsInt(obj1);
1996 if (PyErr_Occurred()) SWIG_fail;
1997 {
1998 arg3 = wxString_in_helper(obj2);
1999 if (arg3 == NULL) SWIG_fail;
2000 temp3 = True;
2001 }
2002 if (obj3) {
2003 {
2004 arg4 = &temp4;
2005 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2006 }
2007 }
2008 if (obj4) {
2009 {
2010 arg5 = &temp5;
2011 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2012 }
2013 }
2014 if (obj5) {
2015 arg6 = (long) SWIG_AsLong(obj5);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 }
2018 if (obj6) {
2019 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2020 SWIG_POINTER_EXCEPTION | 0)) == -1)
2021 SWIG_fail;
2022 if (arg7 == NULL) {
2023 PyErr_SetString(PyExc_TypeError,"null reference");
2024 SWIG_fail;
2025 }
2026 }
2027 if (obj7) {
2028 {
2029 arg8 = wxString_in_helper(obj7);
2030 if (arg8 == NULL) SWIG_fail;
2031 temp8 = True;
2032 }
2033 }
2034 {
2035 PyThreadState* __tstate = wxPyBeginAllowThreads();
2036 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2037
2038 wxPyEndAllowThreads(__tstate);
2039 if (PyErr_Occurred()) SWIG_fail;
2040 }
2041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2042 {
2043 if (temp3)
2044 delete arg3;
2045 }
2046 {
2047 if (temp8)
2048 delete arg8;
2049 }
2050 return resultobj;
2051 fail:
2052 {
2053 if (temp3)
2054 delete arg3;
2055 }
2056 {
2057 if (temp8)
2058 delete arg8;
2059 }
2060 return NULL;
2061 }
2062
2063
2064 static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2065 PyObject *resultobj;
2066 wxCheckBox *result;
2067 char *kwnames[] = {
2068 NULL
2069 };
2070
2071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2072 {
2073 PyThreadState* __tstate = wxPyBeginAllowThreads();
2074 result = (wxCheckBox *)new wxCheckBox();
2075
2076 wxPyEndAllowThreads(__tstate);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 }
2079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2080 return resultobj;
2081 fail:
2082 return NULL;
2083 }
2084
2085
2086 static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2087 PyObject *resultobj;
2088 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2089 wxWindow *arg2 = (wxWindow *) 0 ;
2090 int arg3 ;
2091 wxString *arg4 = 0 ;
2092 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2093 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2094 wxSize const &arg6_defvalue = wxDefaultSize ;
2095 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2096 long arg7 = (long) 0 ;
2097 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2098 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2099 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2100 wxString *arg9 = (wxString *) &arg9_defvalue ;
2101 bool result;
2102 bool temp4 = False ;
2103 wxPoint temp5 ;
2104 wxSize temp6 ;
2105 bool temp9 = False ;
2106 PyObject * obj0 = 0 ;
2107 PyObject * obj1 = 0 ;
2108 PyObject * obj2 = 0 ;
2109 PyObject * obj3 = 0 ;
2110 PyObject * obj4 = 0 ;
2111 PyObject * obj5 = 0 ;
2112 PyObject * obj6 = 0 ;
2113 PyObject * obj7 = 0 ;
2114 PyObject * obj8 = 0 ;
2115 char *kwnames[] = {
2116 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2117 };
2118
2119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2124 arg3 = (int) SWIG_AsInt(obj2);
2125 if (PyErr_Occurred()) SWIG_fail;
2126 {
2127 arg4 = wxString_in_helper(obj3);
2128 if (arg4 == NULL) SWIG_fail;
2129 temp4 = True;
2130 }
2131 if (obj4) {
2132 {
2133 arg5 = &temp5;
2134 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2135 }
2136 }
2137 if (obj5) {
2138 {
2139 arg6 = &temp6;
2140 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2141 }
2142 }
2143 if (obj6) {
2144 arg7 = (long) SWIG_AsLong(obj6);
2145 if (PyErr_Occurred()) SWIG_fail;
2146 }
2147 if (obj7) {
2148 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2149 SWIG_POINTER_EXCEPTION | 0)) == -1)
2150 SWIG_fail;
2151 if (arg8 == NULL) {
2152 PyErr_SetString(PyExc_TypeError,"null reference");
2153 SWIG_fail;
2154 }
2155 }
2156 if (obj8) {
2157 {
2158 arg9 = wxString_in_helper(obj8);
2159 if (arg9 == NULL) SWIG_fail;
2160 temp9 = True;
2161 }
2162 }
2163 {
2164 PyThreadState* __tstate = wxPyBeginAllowThreads();
2165 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2166
2167 wxPyEndAllowThreads(__tstate);
2168 if (PyErr_Occurred()) SWIG_fail;
2169 }
2170 {
2171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2172 }
2173 {
2174 if (temp4)
2175 delete arg4;
2176 }
2177 {
2178 if (temp9)
2179 delete arg9;
2180 }
2181 return resultobj;
2182 fail:
2183 {
2184 if (temp4)
2185 delete arg4;
2186 }
2187 {
2188 if (temp9)
2189 delete arg9;
2190 }
2191 return NULL;
2192 }
2193
2194
2195 static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2196 PyObject *resultobj;
2197 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2198 bool result;
2199 PyObject * obj0 = 0 ;
2200 char *kwnames[] = {
2201 (char *) "self", NULL
2202 };
2203
2204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2207 {
2208 PyThreadState* __tstate = wxPyBeginAllowThreads();
2209 result = (bool)(arg1)->GetValue();
2210
2211 wxPyEndAllowThreads(__tstate);
2212 if (PyErr_Occurred()) SWIG_fail;
2213 }
2214 {
2215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2216 }
2217 return resultobj;
2218 fail:
2219 return NULL;
2220 }
2221
2222
2223 static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2224 PyObject *resultobj;
2225 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2226 bool result;
2227 PyObject * obj0 = 0 ;
2228 char *kwnames[] = {
2229 (char *) "self", NULL
2230 };
2231
2232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2235 {
2236 PyThreadState* __tstate = wxPyBeginAllowThreads();
2237 result = (bool)(arg1)->IsChecked();
2238
2239 wxPyEndAllowThreads(__tstate);
2240 if (PyErr_Occurred()) SWIG_fail;
2241 }
2242 {
2243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2244 }
2245 return resultobj;
2246 fail:
2247 return NULL;
2248 }
2249
2250
2251 static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2252 PyObject *resultobj;
2253 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2254 bool arg2 ;
2255 PyObject * obj0 = 0 ;
2256 PyObject * obj1 = 0 ;
2257 char *kwnames[] = {
2258 (char *) "self",(char *) "state", NULL
2259 };
2260
2261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2264 arg2 = (bool const) SWIG_AsBool(obj1);
2265 if (PyErr_Occurred()) SWIG_fail;
2266 {
2267 PyThreadState* __tstate = wxPyBeginAllowThreads();
2268 (arg1)->SetValue(arg2);
2269
2270 wxPyEndAllowThreads(__tstate);
2271 if (PyErr_Occurred()) SWIG_fail;
2272 }
2273 Py_INCREF(Py_None); resultobj = Py_None;
2274 return resultobj;
2275 fail:
2276 return NULL;
2277 }
2278
2279
2280 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2281 PyObject *resultobj;
2282 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2283 int result;
2284 PyObject * obj0 = 0 ;
2285 char *kwnames[] = {
2286 (char *) "self", NULL
2287 };
2288
2289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2292 {
2293 PyThreadState* __tstate = wxPyBeginAllowThreads();
2294 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2295
2296 wxPyEndAllowThreads(__tstate);
2297 if (PyErr_Occurred()) SWIG_fail;
2298 }
2299 resultobj = SWIG_FromInt((int)result);
2300 return resultobj;
2301 fail:
2302 return NULL;
2303 }
2304
2305
2306 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2307 PyObject *resultobj;
2308 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2309 int arg2 ;
2310 PyObject * obj0 = 0 ;
2311 PyObject * obj1 = 0 ;
2312 char *kwnames[] = {
2313 (char *) "self",(char *) "state", NULL
2314 };
2315
2316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2319 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2320 if (PyErr_Occurred()) SWIG_fail;
2321 {
2322 PyThreadState* __tstate = wxPyBeginAllowThreads();
2323 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2324
2325 wxPyEndAllowThreads(__tstate);
2326 if (PyErr_Occurred()) SWIG_fail;
2327 }
2328 Py_INCREF(Py_None); resultobj = Py_None;
2329 return resultobj;
2330 fail:
2331 return NULL;
2332 }
2333
2334
2335 static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2336 PyObject *resultobj;
2337 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2338 bool result;
2339 PyObject * obj0 = 0 ;
2340 char *kwnames[] = {
2341 (char *) "self", NULL
2342 };
2343
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2347 {
2348 PyThreadState* __tstate = wxPyBeginAllowThreads();
2349 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2350
2351 wxPyEndAllowThreads(__tstate);
2352 if (PyErr_Occurred()) SWIG_fail;
2353 }
2354 {
2355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2356 }
2357 return resultobj;
2358 fail:
2359 return NULL;
2360 }
2361
2362
2363 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2364 PyObject *resultobj;
2365 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2366 bool result;
2367 PyObject * obj0 = 0 ;
2368 char *kwnames[] = {
2369 (char *) "self", NULL
2370 };
2371
2372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2375 {
2376 PyThreadState* __tstate = wxPyBeginAllowThreads();
2377 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2378
2379 wxPyEndAllowThreads(__tstate);
2380 if (PyErr_Occurred()) SWIG_fail;
2381 }
2382 {
2383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2384 }
2385 return resultobj;
2386 fail:
2387 return NULL;
2388 }
2389
2390
2391 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2392 PyObject *resultobj;
2393 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2394 wxVisualAttributes result;
2395 PyObject * obj0 = 0 ;
2396 char *kwnames[] = {
2397 (char *) "variant", NULL
2398 };
2399
2400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2401 if (obj0) {
2402 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2403 if (PyErr_Occurred()) SWIG_fail;
2404 }
2405 {
2406 PyThreadState* __tstate = wxPyBeginAllowThreads();
2407 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2408
2409 wxPyEndAllowThreads(__tstate);
2410 if (PyErr_Occurred()) SWIG_fail;
2411 }
2412 {
2413 wxVisualAttributes * resultptr;
2414 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2415 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2416 }
2417 return resultobj;
2418 fail:
2419 return NULL;
2420 }
2421
2422
2423 static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2424 PyObject *obj;
2425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2426 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2427 Py_INCREF(obj);
2428 return Py_BuildValue((char *)"");
2429 }
2430 static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2431 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2432 return 1;
2433 }
2434
2435
2436 static PyObject *_wrap_ChoiceNameStr_get() {
2437 PyObject *pyobj;
2438
2439 {
2440 #if wxUSE_UNICODE
2441 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2442 #else
2443 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2444 #endif
2445 }
2446 return pyobj;
2447 }
2448
2449
2450 static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2451 PyObject *resultobj;
2452 wxWindow *arg1 = (wxWindow *) 0 ;
2453 int arg2 = (int) -1 ;
2454 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2455 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2456 wxSize const &arg4_defvalue = wxDefaultSize ;
2457 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2458 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2459 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2460 long arg6 = (long) 0 ;
2461 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2462 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2463 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2464 wxString *arg8 = (wxString *) &arg8_defvalue ;
2465 wxChoice *result;
2466 wxPoint temp3 ;
2467 wxSize temp4 ;
2468 bool temp5 = False ;
2469 bool temp8 = False ;
2470 PyObject * obj0 = 0 ;
2471 PyObject * obj1 = 0 ;
2472 PyObject * obj2 = 0 ;
2473 PyObject * obj3 = 0 ;
2474 PyObject * obj4 = 0 ;
2475 PyObject * obj5 = 0 ;
2476 PyObject * obj6 = 0 ;
2477 PyObject * obj7 = 0 ;
2478 char *kwnames[] = {
2479 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2480 };
2481
2482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2485 if (obj1) {
2486 arg2 = (int) SWIG_AsInt(obj1);
2487 if (PyErr_Occurred()) SWIG_fail;
2488 }
2489 if (obj2) {
2490 {
2491 arg3 = &temp3;
2492 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2493 }
2494 }
2495 if (obj3) {
2496 {
2497 arg4 = &temp4;
2498 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2499 }
2500 }
2501 if (obj4) {
2502 {
2503 if (! PySequence_Check(obj4)) {
2504 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2505 SWIG_fail;
2506 }
2507 arg5 = new wxArrayString;
2508 temp5 = True;
2509 int i, len=PySequence_Length(obj4);
2510 for (i=0; i<len; i++) {
2511 PyObject* item = PySequence_GetItem(obj4, i);
2512 #if wxUSE_UNICODE
2513 PyObject* str = PyObject_Unicode(item);
2514 #else
2515 PyObject* str = PyObject_Str(item);
2516 #endif
2517 if (PyErr_Occurred()) SWIG_fail;
2518 arg5->Add(Py2wxString(str));
2519 Py_DECREF(item);
2520 Py_DECREF(str);
2521 }
2522 }
2523 }
2524 if (obj5) {
2525 arg6 = (long) SWIG_AsLong(obj5);
2526 if (PyErr_Occurred()) SWIG_fail;
2527 }
2528 if (obj6) {
2529 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2530 SWIG_POINTER_EXCEPTION | 0)) == -1)
2531 SWIG_fail;
2532 if (arg7 == NULL) {
2533 PyErr_SetString(PyExc_TypeError,"null reference");
2534 SWIG_fail;
2535 }
2536 }
2537 if (obj7) {
2538 {
2539 arg8 = wxString_in_helper(obj7);
2540 if (arg8 == NULL) SWIG_fail;
2541 temp8 = True;
2542 }
2543 }
2544 {
2545 PyThreadState* __tstate = wxPyBeginAllowThreads();
2546 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2547
2548 wxPyEndAllowThreads(__tstate);
2549 if (PyErr_Occurred()) SWIG_fail;
2550 }
2551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2552 {
2553 if (temp5) delete arg5;
2554 }
2555 {
2556 if (temp8)
2557 delete arg8;
2558 }
2559 return resultobj;
2560 fail:
2561 {
2562 if (temp5) delete arg5;
2563 }
2564 {
2565 if (temp8)
2566 delete arg8;
2567 }
2568 return NULL;
2569 }
2570
2571
2572 static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2573 PyObject *resultobj;
2574 wxChoice *result;
2575 char *kwnames[] = {
2576 NULL
2577 };
2578
2579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2580 {
2581 PyThreadState* __tstate = wxPyBeginAllowThreads();
2582 result = (wxChoice *)new wxChoice();
2583
2584 wxPyEndAllowThreads(__tstate);
2585 if (PyErr_Occurred()) SWIG_fail;
2586 }
2587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2588 return resultobj;
2589 fail:
2590 return NULL;
2591 }
2592
2593
2594 static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2595 PyObject *resultobj;
2596 wxChoice *arg1 = (wxChoice *) 0 ;
2597 wxWindow *arg2 = (wxWindow *) 0 ;
2598 int arg3 = (int) -1 ;
2599 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2600 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2601 wxSize const &arg5_defvalue = wxDefaultSize ;
2602 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2603 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2604 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2605 long arg7 = (long) 0 ;
2606 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2607 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2608 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2609 wxString *arg9 = (wxString *) &arg9_defvalue ;
2610 bool result;
2611 wxPoint temp4 ;
2612 wxSize temp5 ;
2613 bool temp6 = False ;
2614 bool temp9 = False ;
2615 PyObject * obj0 = 0 ;
2616 PyObject * obj1 = 0 ;
2617 PyObject * obj2 = 0 ;
2618 PyObject * obj3 = 0 ;
2619 PyObject * obj4 = 0 ;
2620 PyObject * obj5 = 0 ;
2621 PyObject * obj6 = 0 ;
2622 PyObject * obj7 = 0 ;
2623 PyObject * obj8 = 0 ;
2624 char *kwnames[] = {
2625 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2626 };
2627
2628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2633 if (obj2) {
2634 arg3 = (int) SWIG_AsInt(obj2);
2635 if (PyErr_Occurred()) SWIG_fail;
2636 }
2637 if (obj3) {
2638 {
2639 arg4 = &temp4;
2640 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2641 }
2642 }
2643 if (obj4) {
2644 {
2645 arg5 = &temp5;
2646 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2647 }
2648 }
2649 if (obj5) {
2650 {
2651 if (! PySequence_Check(obj5)) {
2652 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2653 SWIG_fail;
2654 }
2655 arg6 = new wxArrayString;
2656 temp6 = True;
2657 int i, len=PySequence_Length(obj5);
2658 for (i=0; i<len; i++) {
2659 PyObject* item = PySequence_GetItem(obj5, i);
2660 #if wxUSE_UNICODE
2661 PyObject* str = PyObject_Unicode(item);
2662 #else
2663 PyObject* str = PyObject_Str(item);
2664 #endif
2665 if (PyErr_Occurred()) SWIG_fail;
2666 arg6->Add(Py2wxString(str));
2667 Py_DECREF(item);
2668 Py_DECREF(str);
2669 }
2670 }
2671 }
2672 if (obj6) {
2673 arg7 = (long) SWIG_AsLong(obj6);
2674 if (PyErr_Occurred()) SWIG_fail;
2675 }
2676 if (obj7) {
2677 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2678 SWIG_POINTER_EXCEPTION | 0)) == -1)
2679 SWIG_fail;
2680 if (arg8 == NULL) {
2681 PyErr_SetString(PyExc_TypeError,"null reference");
2682 SWIG_fail;
2683 }
2684 }
2685 if (obj8) {
2686 {
2687 arg9 = wxString_in_helper(obj8);
2688 if (arg9 == NULL) SWIG_fail;
2689 temp9 = True;
2690 }
2691 }
2692 {
2693 PyThreadState* __tstate = wxPyBeginAllowThreads();
2694 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2695
2696 wxPyEndAllowThreads(__tstate);
2697 if (PyErr_Occurred()) SWIG_fail;
2698 }
2699 {
2700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2701 }
2702 {
2703 if (temp6) delete arg6;
2704 }
2705 {
2706 if (temp9)
2707 delete arg9;
2708 }
2709 return resultobj;
2710 fail:
2711 {
2712 if (temp6) delete arg6;
2713 }
2714 {
2715 if (temp9)
2716 delete arg9;
2717 }
2718 return NULL;
2719 }
2720
2721
2722 static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2723 PyObject *resultobj;
2724 wxChoice *arg1 = (wxChoice *) 0 ;
2725 int arg2 ;
2726 PyObject * obj0 = 0 ;
2727 PyObject * obj1 = 0 ;
2728 char *kwnames[] = {
2729 (char *) "self",(char *) "n", NULL
2730 };
2731
2732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2735 arg2 = (int const) SWIG_AsInt(obj1);
2736 if (PyErr_Occurred()) SWIG_fail;
2737 {
2738 PyThreadState* __tstate = wxPyBeginAllowThreads();
2739 (arg1)->SetSelection(arg2);
2740
2741 wxPyEndAllowThreads(__tstate);
2742 if (PyErr_Occurred()) SWIG_fail;
2743 }
2744 Py_INCREF(Py_None); resultobj = Py_None;
2745 return resultobj;
2746 fail:
2747 return NULL;
2748 }
2749
2750
2751 static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2752 PyObject *resultobj;
2753 wxChoice *arg1 = (wxChoice *) 0 ;
2754 wxString *arg2 = 0 ;
2755 bool result;
2756 bool temp2 = False ;
2757 PyObject * obj0 = 0 ;
2758 PyObject * obj1 = 0 ;
2759 char *kwnames[] = {
2760 (char *) "self",(char *) "string", NULL
2761 };
2762
2763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2766 {
2767 arg2 = wxString_in_helper(obj1);
2768 if (arg2 == NULL) SWIG_fail;
2769 temp2 = True;
2770 }
2771 {
2772 PyThreadState* __tstate = wxPyBeginAllowThreads();
2773 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2774
2775 wxPyEndAllowThreads(__tstate);
2776 if (PyErr_Occurred()) SWIG_fail;
2777 }
2778 {
2779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2780 }
2781 {
2782 if (temp2)
2783 delete arg2;
2784 }
2785 return resultobj;
2786 fail:
2787 {
2788 if (temp2)
2789 delete arg2;
2790 }
2791 return NULL;
2792 }
2793
2794
2795 static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2796 PyObject *resultobj;
2797 wxChoice *arg1 = (wxChoice *) 0 ;
2798 int arg2 ;
2799 wxString *arg3 = 0 ;
2800 bool temp3 = False ;
2801 PyObject * obj0 = 0 ;
2802 PyObject * obj1 = 0 ;
2803 PyObject * obj2 = 0 ;
2804 char *kwnames[] = {
2805 (char *) "self",(char *) "n",(char *) "string", NULL
2806 };
2807
2808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2811 arg2 = (int) SWIG_AsInt(obj1);
2812 if (PyErr_Occurred()) SWIG_fail;
2813 {
2814 arg3 = wxString_in_helper(obj2);
2815 if (arg3 == NULL) SWIG_fail;
2816 temp3 = True;
2817 }
2818 {
2819 PyThreadState* __tstate = wxPyBeginAllowThreads();
2820 (arg1)->SetString(arg2,(wxString const &)*arg3);
2821
2822 wxPyEndAllowThreads(__tstate);
2823 if (PyErr_Occurred()) SWIG_fail;
2824 }
2825 Py_INCREF(Py_None); resultobj = Py_None;
2826 {
2827 if (temp3)
2828 delete arg3;
2829 }
2830 return resultobj;
2831 fail:
2832 {
2833 if (temp3)
2834 delete arg3;
2835 }
2836 return NULL;
2837 }
2838
2839
2840 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2841 PyObject *resultobj;
2842 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2843 wxVisualAttributes result;
2844 PyObject * obj0 = 0 ;
2845 char *kwnames[] = {
2846 (char *) "variant", NULL
2847 };
2848
2849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2850 if (obj0) {
2851 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2852 if (PyErr_Occurred()) SWIG_fail;
2853 }
2854 {
2855 PyThreadState* __tstate = wxPyBeginAllowThreads();
2856 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
2857
2858 wxPyEndAllowThreads(__tstate);
2859 if (PyErr_Occurred()) SWIG_fail;
2860 }
2861 {
2862 wxVisualAttributes * resultptr;
2863 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2864 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2865 }
2866 return resultobj;
2867 fail:
2868 return NULL;
2869 }
2870
2871
2872 static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2873 PyObject *obj;
2874 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2875 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2876 Py_INCREF(obj);
2877 return Py_BuildValue((char *)"");
2878 }
2879 static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2880 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2881 return 1;
2882 }
2883
2884
2885 static PyObject *_wrap_ComboBoxNameStr_get() {
2886 PyObject *pyobj;
2887
2888 {
2889 #if wxUSE_UNICODE
2890 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2891 #else
2892 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2893 #endif
2894 }
2895 return pyobj;
2896 }
2897
2898
2899 static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2900 PyObject *resultobj;
2901 wxWindow *arg1 = (wxWindow *) 0 ;
2902 int arg2 = (int) -1 ;
2903 wxString const &arg3_defvalue = wxPyEmptyString ;
2904 wxString *arg3 = (wxString *) &arg3_defvalue ;
2905 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2906 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2907 wxSize const &arg5_defvalue = wxDefaultSize ;
2908 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2909 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2910 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2911 long arg7 = (long) 0 ;
2912 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2913 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2914 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2915 wxString *arg9 = (wxString *) &arg9_defvalue ;
2916 wxComboBox *result;
2917 bool temp3 = False ;
2918 wxPoint temp4 ;
2919 wxSize temp5 ;
2920 bool temp6 = False ;
2921 bool temp9 = False ;
2922 PyObject * obj0 = 0 ;
2923 PyObject * obj1 = 0 ;
2924 PyObject * obj2 = 0 ;
2925 PyObject * obj3 = 0 ;
2926 PyObject * obj4 = 0 ;
2927 PyObject * obj5 = 0 ;
2928 PyObject * obj6 = 0 ;
2929 PyObject * obj7 = 0 ;
2930 PyObject * obj8 = 0 ;
2931 char *kwnames[] = {
2932 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2933 };
2934
2935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2938 if (obj1) {
2939 arg2 = (int) SWIG_AsInt(obj1);
2940 if (PyErr_Occurred()) SWIG_fail;
2941 }
2942 if (obj2) {
2943 {
2944 arg3 = wxString_in_helper(obj2);
2945 if (arg3 == NULL) SWIG_fail;
2946 temp3 = True;
2947 }
2948 }
2949 if (obj3) {
2950 {
2951 arg4 = &temp4;
2952 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2953 }
2954 }
2955 if (obj4) {
2956 {
2957 arg5 = &temp5;
2958 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2959 }
2960 }
2961 if (obj5) {
2962 {
2963 if (! PySequence_Check(obj5)) {
2964 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2965 SWIG_fail;
2966 }
2967 arg6 = new wxArrayString;
2968 temp6 = True;
2969 int i, len=PySequence_Length(obj5);
2970 for (i=0; i<len; i++) {
2971 PyObject* item = PySequence_GetItem(obj5, i);
2972 #if wxUSE_UNICODE
2973 PyObject* str = PyObject_Unicode(item);
2974 #else
2975 PyObject* str = PyObject_Str(item);
2976 #endif
2977 if (PyErr_Occurred()) SWIG_fail;
2978 arg6->Add(Py2wxString(str));
2979 Py_DECREF(item);
2980 Py_DECREF(str);
2981 }
2982 }
2983 }
2984 if (obj6) {
2985 arg7 = (long) SWIG_AsLong(obj6);
2986 if (PyErr_Occurred()) SWIG_fail;
2987 }
2988 if (obj7) {
2989 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2990 SWIG_POINTER_EXCEPTION | 0)) == -1)
2991 SWIG_fail;
2992 if (arg8 == NULL) {
2993 PyErr_SetString(PyExc_TypeError,"null reference");
2994 SWIG_fail;
2995 }
2996 }
2997 if (obj8) {
2998 {
2999 arg9 = wxString_in_helper(obj8);
3000 if (arg9 == NULL) SWIG_fail;
3001 temp9 = True;
3002 }
3003 }
3004 {
3005 PyThreadState* __tstate = wxPyBeginAllowThreads();
3006 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);
3007
3008 wxPyEndAllowThreads(__tstate);
3009 if (PyErr_Occurred()) SWIG_fail;
3010 }
3011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3012 {
3013 if (temp3)
3014 delete arg3;
3015 }
3016 {
3017 if (temp6) delete arg6;
3018 }
3019 {
3020 if (temp9)
3021 delete arg9;
3022 }
3023 return resultobj;
3024 fail:
3025 {
3026 if (temp3)
3027 delete arg3;
3028 }
3029 {
3030 if (temp6) delete arg6;
3031 }
3032 {
3033 if (temp9)
3034 delete arg9;
3035 }
3036 return NULL;
3037 }
3038
3039
3040 static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3041 PyObject *resultobj;
3042 wxComboBox *result;
3043 char *kwnames[] = {
3044 NULL
3045 };
3046
3047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3048 {
3049 PyThreadState* __tstate = wxPyBeginAllowThreads();
3050 result = (wxComboBox *)new wxComboBox();
3051
3052 wxPyEndAllowThreads(__tstate);
3053 if (PyErr_Occurred()) SWIG_fail;
3054 }
3055 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3056 return resultobj;
3057 fail:
3058 return NULL;
3059 }
3060
3061
3062 static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3063 PyObject *resultobj;
3064 wxComboBox *arg1 = (wxComboBox *) 0 ;
3065 wxWindow *arg2 = (wxWindow *) 0 ;
3066 int arg3 = (int) -1 ;
3067 wxString const &arg4_defvalue = wxPyEmptyString ;
3068 wxString *arg4 = (wxString *) &arg4_defvalue ;
3069 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3070 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3071 wxSize const &arg6_defvalue = wxDefaultSize ;
3072 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3073 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3074 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3075 long arg8 = (long) 0 ;
3076 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3077 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3078 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3079 wxString *arg10 = (wxString *) &arg10_defvalue ;
3080 bool result;
3081 bool temp4 = False ;
3082 wxPoint temp5 ;
3083 wxSize temp6 ;
3084 bool temp7 = False ;
3085 bool temp10 = False ;
3086 PyObject * obj0 = 0 ;
3087 PyObject * obj1 = 0 ;
3088 PyObject * obj2 = 0 ;
3089 PyObject * obj3 = 0 ;
3090 PyObject * obj4 = 0 ;
3091 PyObject * obj5 = 0 ;
3092 PyObject * obj6 = 0 ;
3093 PyObject * obj7 = 0 ;
3094 PyObject * obj8 = 0 ;
3095 PyObject * obj9 = 0 ;
3096 char *kwnames[] = {
3097 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3098 };
3099
3100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3103 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3105 if (obj2) {
3106 arg3 = (int) SWIG_AsInt(obj2);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 if (obj3) {
3110 {
3111 arg4 = wxString_in_helper(obj3);
3112 if (arg4 == NULL) SWIG_fail;
3113 temp4 = True;
3114 }
3115 }
3116 if (obj4) {
3117 {
3118 arg5 = &temp5;
3119 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3120 }
3121 }
3122 if (obj5) {
3123 {
3124 arg6 = &temp6;
3125 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3126 }
3127 }
3128 if (obj6) {
3129 {
3130 if (! PySequence_Check(obj6)) {
3131 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3132 SWIG_fail;
3133 }
3134 arg7 = new wxArrayString;
3135 temp7 = True;
3136 int i, len=PySequence_Length(obj6);
3137 for (i=0; i<len; i++) {
3138 PyObject* item = PySequence_GetItem(obj6, i);
3139 #if wxUSE_UNICODE
3140 PyObject* str = PyObject_Unicode(item);
3141 #else
3142 PyObject* str = PyObject_Str(item);
3143 #endif
3144 if (PyErr_Occurred()) SWIG_fail;
3145 arg7->Add(Py2wxString(str));
3146 Py_DECREF(item);
3147 Py_DECREF(str);
3148 }
3149 }
3150 }
3151 if (obj7) {
3152 arg8 = (long) SWIG_AsLong(obj7);
3153 if (PyErr_Occurred()) SWIG_fail;
3154 }
3155 if (obj8) {
3156 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3157 SWIG_POINTER_EXCEPTION | 0)) == -1)
3158 SWIG_fail;
3159 if (arg9 == NULL) {
3160 PyErr_SetString(PyExc_TypeError,"null reference");
3161 SWIG_fail;
3162 }
3163 }
3164 if (obj9) {
3165 {
3166 arg10 = wxString_in_helper(obj9);
3167 if (arg10 == NULL) SWIG_fail;
3168 temp10 = True;
3169 }
3170 }
3171 {
3172 PyThreadState* __tstate = wxPyBeginAllowThreads();
3173 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);
3174
3175 wxPyEndAllowThreads(__tstate);
3176 if (PyErr_Occurred()) SWIG_fail;
3177 }
3178 {
3179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3180 }
3181 {
3182 if (temp4)
3183 delete arg4;
3184 }
3185 {
3186 if (temp7) delete arg7;
3187 }
3188 {
3189 if (temp10)
3190 delete arg10;
3191 }
3192 return resultobj;
3193 fail:
3194 {
3195 if (temp4)
3196 delete arg4;
3197 }
3198 {
3199 if (temp7) delete arg7;
3200 }
3201 {
3202 if (temp10)
3203 delete arg10;
3204 }
3205 return NULL;
3206 }
3207
3208
3209 static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3210 PyObject *resultobj;
3211 wxComboBox *arg1 = (wxComboBox *) 0 ;
3212 wxString result;
3213 PyObject * obj0 = 0 ;
3214 char *kwnames[] = {
3215 (char *) "self", NULL
3216 };
3217
3218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3221 {
3222 PyThreadState* __tstate = wxPyBeginAllowThreads();
3223 result = ((wxComboBox const *)arg1)->GetValue();
3224
3225 wxPyEndAllowThreads(__tstate);
3226 if (PyErr_Occurred()) SWIG_fail;
3227 }
3228 {
3229 #if wxUSE_UNICODE
3230 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3231 #else
3232 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3233 #endif
3234 }
3235 return resultobj;
3236 fail:
3237 return NULL;
3238 }
3239
3240
3241 static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3242 PyObject *resultobj;
3243 wxComboBox *arg1 = (wxComboBox *) 0 ;
3244 wxString *arg2 = 0 ;
3245 bool temp2 = False ;
3246 PyObject * obj0 = 0 ;
3247 PyObject * obj1 = 0 ;
3248 char *kwnames[] = {
3249 (char *) "self",(char *) "value", NULL
3250 };
3251
3252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3255 {
3256 arg2 = wxString_in_helper(obj1);
3257 if (arg2 == NULL) SWIG_fail;
3258 temp2 = True;
3259 }
3260 {
3261 PyThreadState* __tstate = wxPyBeginAllowThreads();
3262 (arg1)->SetValue((wxString const &)*arg2);
3263
3264 wxPyEndAllowThreads(__tstate);
3265 if (PyErr_Occurred()) SWIG_fail;
3266 }
3267 Py_INCREF(Py_None); resultobj = Py_None;
3268 {
3269 if (temp2)
3270 delete arg2;
3271 }
3272 return resultobj;
3273 fail:
3274 {
3275 if (temp2)
3276 delete arg2;
3277 }
3278 return NULL;
3279 }
3280
3281
3282 static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3283 PyObject *resultobj;
3284 wxComboBox *arg1 = (wxComboBox *) 0 ;
3285 PyObject * obj0 = 0 ;
3286 char *kwnames[] = {
3287 (char *) "self", NULL
3288 };
3289
3290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3293 {
3294 PyThreadState* __tstate = wxPyBeginAllowThreads();
3295 (arg1)->Copy();
3296
3297 wxPyEndAllowThreads(__tstate);
3298 if (PyErr_Occurred()) SWIG_fail;
3299 }
3300 Py_INCREF(Py_None); resultobj = Py_None;
3301 return resultobj;
3302 fail:
3303 return NULL;
3304 }
3305
3306
3307 static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3308 PyObject *resultobj;
3309 wxComboBox *arg1 = (wxComboBox *) 0 ;
3310 PyObject * obj0 = 0 ;
3311 char *kwnames[] = {
3312 (char *) "self", NULL
3313 };
3314
3315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3318 {
3319 PyThreadState* __tstate = wxPyBeginAllowThreads();
3320 (arg1)->Cut();
3321
3322 wxPyEndAllowThreads(__tstate);
3323 if (PyErr_Occurred()) SWIG_fail;
3324 }
3325 Py_INCREF(Py_None); resultobj = Py_None;
3326 return resultobj;
3327 fail:
3328 return NULL;
3329 }
3330
3331
3332 static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3333 PyObject *resultobj;
3334 wxComboBox *arg1 = (wxComboBox *) 0 ;
3335 PyObject * obj0 = 0 ;
3336 char *kwnames[] = {
3337 (char *) "self", NULL
3338 };
3339
3340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 (arg1)->Paste();
3346
3347 wxPyEndAllowThreads(__tstate);
3348 if (PyErr_Occurred()) SWIG_fail;
3349 }
3350 Py_INCREF(Py_None); resultobj = Py_None;
3351 return resultobj;
3352 fail:
3353 return NULL;
3354 }
3355
3356
3357 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3358 PyObject *resultobj;
3359 wxComboBox *arg1 = (wxComboBox *) 0 ;
3360 long arg2 ;
3361 PyObject * obj0 = 0 ;
3362 PyObject * obj1 = 0 ;
3363 char *kwnames[] = {
3364 (char *) "self",(char *) "pos", NULL
3365 };
3366
3367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3370 arg2 = (long) SWIG_AsLong(obj1);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 {
3373 PyThreadState* __tstate = wxPyBeginAllowThreads();
3374 (arg1)->SetInsertionPoint(arg2);
3375
3376 wxPyEndAllowThreads(__tstate);
3377 if (PyErr_Occurred()) SWIG_fail;
3378 }
3379 Py_INCREF(Py_None); resultobj = Py_None;
3380 return resultobj;
3381 fail:
3382 return NULL;
3383 }
3384
3385
3386 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3387 PyObject *resultobj;
3388 wxComboBox *arg1 = (wxComboBox *) 0 ;
3389 long result;
3390 PyObject * obj0 = 0 ;
3391 char *kwnames[] = {
3392 (char *) "self", NULL
3393 };
3394
3395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3398 {
3399 PyThreadState* __tstate = wxPyBeginAllowThreads();
3400 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3401
3402 wxPyEndAllowThreads(__tstate);
3403 if (PyErr_Occurred()) SWIG_fail;
3404 }
3405 resultobj = SWIG_FromLong((long)result);
3406 return resultobj;
3407 fail:
3408 return NULL;
3409 }
3410
3411
3412 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3413 PyObject *resultobj;
3414 wxComboBox *arg1 = (wxComboBox *) 0 ;
3415 long result;
3416 PyObject * obj0 = 0 ;
3417 char *kwnames[] = {
3418 (char *) "self", NULL
3419 };
3420
3421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3424 {
3425 PyThreadState* __tstate = wxPyBeginAllowThreads();
3426 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3427
3428 wxPyEndAllowThreads(__tstate);
3429 if (PyErr_Occurred()) SWIG_fail;
3430 }
3431 resultobj = SWIG_FromLong((long)result);
3432 return resultobj;
3433 fail:
3434 return NULL;
3435 }
3436
3437
3438 static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3439 PyObject *resultobj;
3440 wxComboBox *arg1 = (wxComboBox *) 0 ;
3441 long arg2 ;
3442 long arg3 ;
3443 wxString *arg4 = 0 ;
3444 bool temp4 = False ;
3445 PyObject * obj0 = 0 ;
3446 PyObject * obj1 = 0 ;
3447 PyObject * obj2 = 0 ;
3448 PyObject * obj3 = 0 ;
3449 char *kwnames[] = {
3450 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3451 };
3452
3453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3456 arg2 = (long) SWIG_AsLong(obj1);
3457 if (PyErr_Occurred()) SWIG_fail;
3458 arg3 = (long) SWIG_AsLong(obj2);
3459 if (PyErr_Occurred()) SWIG_fail;
3460 {
3461 arg4 = wxString_in_helper(obj3);
3462 if (arg4 == NULL) SWIG_fail;
3463 temp4 = True;
3464 }
3465 {
3466 PyThreadState* __tstate = wxPyBeginAllowThreads();
3467 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3468
3469 wxPyEndAllowThreads(__tstate);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 }
3472 Py_INCREF(Py_None); resultobj = Py_None;
3473 {
3474 if (temp4)
3475 delete arg4;
3476 }
3477 return resultobj;
3478 fail:
3479 {
3480 if (temp4)
3481 delete arg4;
3482 }
3483 return NULL;
3484 }
3485
3486
3487 static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3488 PyObject *resultobj;
3489 wxComboBox *arg1 = (wxComboBox *) 0 ;
3490 int arg2 ;
3491 PyObject * obj0 = 0 ;
3492 PyObject * obj1 = 0 ;
3493 char *kwnames[] = {
3494 (char *) "self",(char *) "n", NULL
3495 };
3496
3497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3500 arg2 = (int) SWIG_AsInt(obj1);
3501 if (PyErr_Occurred()) SWIG_fail;
3502 {
3503 PyThreadState* __tstate = wxPyBeginAllowThreads();
3504 (arg1)->SetSelection(arg2);
3505
3506 wxPyEndAllowThreads(__tstate);
3507 if (PyErr_Occurred()) SWIG_fail;
3508 }
3509 Py_INCREF(Py_None); resultobj = Py_None;
3510 return resultobj;
3511 fail:
3512 return NULL;
3513 }
3514
3515
3516 static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3517 PyObject *resultobj;
3518 wxComboBox *arg1 = (wxComboBox *) 0 ;
3519 long arg2 ;
3520 long arg3 ;
3521 PyObject * obj0 = 0 ;
3522 PyObject * obj1 = 0 ;
3523 PyObject * obj2 = 0 ;
3524 char *kwnames[] = {
3525 (char *) "self",(char *) "from",(char *) "to", NULL
3526 };
3527
3528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3531 arg2 = (long) SWIG_AsLong(obj1);
3532 if (PyErr_Occurred()) SWIG_fail;
3533 arg3 = (long) SWIG_AsLong(obj2);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 {
3536 PyThreadState* __tstate = wxPyBeginAllowThreads();
3537 (arg1)->SetSelection(arg2,arg3);
3538
3539 wxPyEndAllowThreads(__tstate);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 }
3542 Py_INCREF(Py_None); resultobj = Py_None;
3543 return resultobj;
3544 fail:
3545 return NULL;
3546 }
3547
3548
3549 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3550 PyObject *resultobj;
3551 wxComboBox *arg1 = (wxComboBox *) 0 ;
3552 wxString *arg2 = 0 ;
3553 bool result;
3554 bool temp2 = False ;
3555 PyObject * obj0 = 0 ;
3556 PyObject * obj1 = 0 ;
3557 char *kwnames[] = {
3558 (char *) "self",(char *) "string", NULL
3559 };
3560
3561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3564 {
3565 arg2 = wxString_in_helper(obj1);
3566 if (arg2 == NULL) SWIG_fail;
3567 temp2 = True;
3568 }
3569 {
3570 PyThreadState* __tstate = wxPyBeginAllowThreads();
3571 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3572
3573 wxPyEndAllowThreads(__tstate);
3574 if (PyErr_Occurred()) SWIG_fail;
3575 }
3576 {
3577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3578 }
3579 {
3580 if (temp2)
3581 delete arg2;
3582 }
3583 return resultobj;
3584 fail:
3585 {
3586 if (temp2)
3587 delete arg2;
3588 }
3589 return NULL;
3590 }
3591
3592
3593 static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3594 PyObject *resultobj;
3595 wxComboBox *arg1 = (wxComboBox *) 0 ;
3596 int arg2 ;
3597 wxString *arg3 = 0 ;
3598 bool temp3 = False ;
3599 PyObject * obj0 = 0 ;
3600 PyObject * obj1 = 0 ;
3601 PyObject * obj2 = 0 ;
3602 char *kwnames[] = {
3603 (char *) "self",(char *) "n",(char *) "string", NULL
3604 };
3605
3606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3609 arg2 = (int) SWIG_AsInt(obj1);
3610 if (PyErr_Occurred()) SWIG_fail;
3611 {
3612 arg3 = wxString_in_helper(obj2);
3613 if (arg3 == NULL) SWIG_fail;
3614 temp3 = True;
3615 }
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 (arg1)->SetString(arg2,(wxString const &)*arg3);
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 Py_INCREF(Py_None); resultobj = Py_None;
3624 {
3625 if (temp3)
3626 delete arg3;
3627 }
3628 return resultobj;
3629 fail:
3630 {
3631 if (temp3)
3632 delete arg3;
3633 }
3634 return NULL;
3635 }
3636
3637
3638 static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3639 PyObject *resultobj;
3640 wxComboBox *arg1 = (wxComboBox *) 0 ;
3641 bool arg2 ;
3642 PyObject * obj0 = 0 ;
3643 PyObject * obj1 = 0 ;
3644 char *kwnames[] = {
3645 (char *) "self",(char *) "editable", NULL
3646 };
3647
3648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3651 arg2 = (bool) SWIG_AsBool(obj1);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 {
3654 PyThreadState* __tstate = wxPyBeginAllowThreads();
3655 (arg1)->SetEditable(arg2);
3656
3657 wxPyEndAllowThreads(__tstate);
3658 if (PyErr_Occurred()) SWIG_fail;
3659 }
3660 Py_INCREF(Py_None); resultobj = Py_None;
3661 return resultobj;
3662 fail:
3663 return NULL;
3664 }
3665
3666
3667 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3668 PyObject *resultobj;
3669 wxComboBox *arg1 = (wxComboBox *) 0 ;
3670 PyObject * obj0 = 0 ;
3671 char *kwnames[] = {
3672 (char *) "self", NULL
3673 };
3674
3675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3678 {
3679 PyThreadState* __tstate = wxPyBeginAllowThreads();
3680 (arg1)->SetInsertionPointEnd();
3681
3682 wxPyEndAllowThreads(__tstate);
3683 if (PyErr_Occurred()) SWIG_fail;
3684 }
3685 Py_INCREF(Py_None); resultobj = Py_None;
3686 return resultobj;
3687 fail:
3688 return NULL;
3689 }
3690
3691
3692 static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3693 PyObject *resultobj;
3694 wxComboBox *arg1 = (wxComboBox *) 0 ;
3695 long arg2 ;
3696 long arg3 ;
3697 PyObject * obj0 = 0 ;
3698 PyObject * obj1 = 0 ;
3699 PyObject * obj2 = 0 ;
3700 char *kwnames[] = {
3701 (char *) "self",(char *) "from",(char *) "to", NULL
3702 };
3703
3704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3707 arg2 = (long) SWIG_AsLong(obj1);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 arg3 = (long) SWIG_AsLong(obj2);
3710 if (PyErr_Occurred()) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 (arg1)->Remove(arg2,arg3);
3714
3715 wxPyEndAllowThreads(__tstate);
3716 if (PyErr_Occurred()) SWIG_fail;
3717 }
3718 Py_INCREF(Py_None); resultobj = Py_None;
3719 return resultobj;
3720 fail:
3721 return NULL;
3722 }
3723
3724
3725 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
3726 PyObject *resultobj;
3727 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3728 wxVisualAttributes result;
3729 PyObject * obj0 = 0 ;
3730 char *kwnames[] = {
3731 (char *) "variant", NULL
3732 };
3733
3734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3735 if (obj0) {
3736 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
3737 if (PyErr_Occurred()) SWIG_fail;
3738 }
3739 {
3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
3741 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3742
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 {
3747 wxVisualAttributes * resultptr;
3748 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3749 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3750 }
3751 return resultobj;
3752 fail:
3753 return NULL;
3754 }
3755
3756
3757 static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3758 PyObject *obj;
3759 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3760 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3761 Py_INCREF(obj);
3762 return Py_BuildValue((char *)"");
3763 }
3764 static int _wrap_GaugeNameStr_set(PyObject *_val) {
3765 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3766 return 1;
3767 }
3768
3769
3770 static PyObject *_wrap_GaugeNameStr_get() {
3771 PyObject *pyobj;
3772
3773 {
3774 #if wxUSE_UNICODE
3775 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3776 #else
3777 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3778 #endif
3779 }
3780 return pyobj;
3781 }
3782
3783
3784 static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3785 PyObject *resultobj;
3786 wxWindow *arg1 = (wxWindow *) 0 ;
3787 int arg2 ;
3788 int arg3 ;
3789 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3790 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3791 wxSize const &arg5_defvalue = wxDefaultSize ;
3792 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3793 long arg6 = (long) wxGA_HORIZONTAL ;
3794 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3795 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3796 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3797 wxString *arg8 = (wxString *) &arg8_defvalue ;
3798 wxGauge *result;
3799 wxPoint temp4 ;
3800 wxSize temp5 ;
3801 bool temp8 = False ;
3802 PyObject * obj0 = 0 ;
3803 PyObject * obj1 = 0 ;
3804 PyObject * obj2 = 0 ;
3805 PyObject * obj3 = 0 ;
3806 PyObject * obj4 = 0 ;
3807 PyObject * obj5 = 0 ;
3808 PyObject * obj6 = 0 ;
3809 PyObject * obj7 = 0 ;
3810 char *kwnames[] = {
3811 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3812 };
3813
3814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3817 arg2 = (int) SWIG_AsInt(obj1);
3818 if (PyErr_Occurred()) SWIG_fail;
3819 arg3 = (int) SWIG_AsInt(obj2);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 if (obj3) {
3822 {
3823 arg4 = &temp4;
3824 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3825 }
3826 }
3827 if (obj4) {
3828 {
3829 arg5 = &temp5;
3830 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3831 }
3832 }
3833 if (obj5) {
3834 arg6 = (long) SWIG_AsLong(obj5);
3835 if (PyErr_Occurred()) SWIG_fail;
3836 }
3837 if (obj6) {
3838 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3839 SWIG_POINTER_EXCEPTION | 0)) == -1)
3840 SWIG_fail;
3841 if (arg7 == NULL) {
3842 PyErr_SetString(PyExc_TypeError,"null reference");
3843 SWIG_fail;
3844 }
3845 }
3846 if (obj7) {
3847 {
3848 arg8 = wxString_in_helper(obj7);
3849 if (arg8 == NULL) SWIG_fail;
3850 temp8 = True;
3851 }
3852 }
3853 {
3854 PyThreadState* __tstate = wxPyBeginAllowThreads();
3855 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3856
3857 wxPyEndAllowThreads(__tstate);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 }
3860 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3861 {
3862 if (temp8)
3863 delete arg8;
3864 }
3865 return resultobj;
3866 fail:
3867 {
3868 if (temp8)
3869 delete arg8;
3870 }
3871 return NULL;
3872 }
3873
3874
3875 static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3876 PyObject *resultobj;
3877 wxGauge *result;
3878 char *kwnames[] = {
3879 NULL
3880 };
3881
3882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3883 {
3884 PyThreadState* __tstate = wxPyBeginAllowThreads();
3885 result = (wxGauge *)new wxGauge();
3886
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3891 return resultobj;
3892 fail:
3893 return NULL;
3894 }
3895
3896
3897 static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj;
3899 wxGauge *arg1 = (wxGauge *) 0 ;
3900 wxWindow *arg2 = (wxWindow *) 0 ;
3901 int arg3 ;
3902 int arg4 ;
3903 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3904 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3905 wxSize const &arg6_defvalue = wxDefaultSize ;
3906 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3907 long arg7 = (long) wxGA_HORIZONTAL ;
3908 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3909 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3910 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3911 wxString *arg9 = (wxString *) &arg9_defvalue ;
3912 bool result;
3913 wxPoint temp5 ;
3914 wxSize temp6 ;
3915 bool temp9 = False ;
3916 PyObject * obj0 = 0 ;
3917 PyObject * obj1 = 0 ;
3918 PyObject * obj2 = 0 ;
3919 PyObject * obj3 = 0 ;
3920 PyObject * obj4 = 0 ;
3921 PyObject * obj5 = 0 ;
3922 PyObject * obj6 = 0 ;
3923 PyObject * obj7 = 0 ;
3924 PyObject * obj8 = 0 ;
3925 char *kwnames[] = {
3926 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3927 };
3928
3929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3932 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3934 arg3 = (int) SWIG_AsInt(obj2);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 arg4 = (int) SWIG_AsInt(obj3);
3937 if (PyErr_Occurred()) SWIG_fail;
3938 if (obj4) {
3939 {
3940 arg5 = &temp5;
3941 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3942 }
3943 }
3944 if (obj5) {
3945 {
3946 arg6 = &temp6;
3947 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3948 }
3949 }
3950 if (obj6) {
3951 arg7 = (long) SWIG_AsLong(obj6);
3952 if (PyErr_Occurred()) SWIG_fail;
3953 }
3954 if (obj7) {
3955 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3956 SWIG_POINTER_EXCEPTION | 0)) == -1)
3957 SWIG_fail;
3958 if (arg8 == NULL) {
3959 PyErr_SetString(PyExc_TypeError,"null reference");
3960 SWIG_fail;
3961 }
3962 }
3963 if (obj8) {
3964 {
3965 arg9 = wxString_in_helper(obj8);
3966 if (arg9 == NULL) SWIG_fail;
3967 temp9 = True;
3968 }
3969 }
3970 {
3971 PyThreadState* __tstate = wxPyBeginAllowThreads();
3972 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3973
3974 wxPyEndAllowThreads(__tstate);
3975 if (PyErr_Occurred()) SWIG_fail;
3976 }
3977 {
3978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3979 }
3980 {
3981 if (temp9)
3982 delete arg9;
3983 }
3984 return resultobj;
3985 fail:
3986 {
3987 if (temp9)
3988 delete arg9;
3989 }
3990 return NULL;
3991 }
3992
3993
3994 static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3995 PyObject *resultobj;
3996 wxGauge *arg1 = (wxGauge *) 0 ;
3997 int arg2 ;
3998 PyObject * obj0 = 0 ;
3999 PyObject * obj1 = 0 ;
4000 char *kwnames[] = {
4001 (char *) "self",(char *) "range", NULL
4002 };
4003
4004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4007 arg2 = (int) SWIG_AsInt(obj1);
4008 if (PyErr_Occurred()) SWIG_fail;
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 (arg1)->SetRange(arg2);
4012
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
4016 Py_INCREF(Py_None); resultobj = Py_None;
4017 return resultobj;
4018 fail:
4019 return NULL;
4020 }
4021
4022
4023 static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
4024 PyObject *resultobj;
4025 wxGauge *arg1 = (wxGauge *) 0 ;
4026 int result;
4027 PyObject * obj0 = 0 ;
4028 char *kwnames[] = {
4029 (char *) "self", NULL
4030 };
4031
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4035 {
4036 PyThreadState* __tstate = wxPyBeginAllowThreads();
4037 result = (int)((wxGauge const *)arg1)->GetRange();
4038
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 resultobj = SWIG_FromInt((int)result);
4043 return resultobj;
4044 fail:
4045 return NULL;
4046 }
4047
4048
4049 static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4050 PyObject *resultobj;
4051 wxGauge *arg1 = (wxGauge *) 0 ;
4052 int arg2 ;
4053 PyObject * obj0 = 0 ;
4054 PyObject * obj1 = 0 ;
4055 char *kwnames[] = {
4056 (char *) "self",(char *) "pos", NULL
4057 };
4058
4059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4062 arg2 = (int) SWIG_AsInt(obj1);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 {
4065 PyThreadState* __tstate = wxPyBeginAllowThreads();
4066 (arg1)->SetValue(arg2);
4067
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 Py_INCREF(Py_None); resultobj = Py_None;
4072 return resultobj;
4073 fail:
4074 return NULL;
4075 }
4076
4077
4078 static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4079 PyObject *resultobj;
4080 wxGauge *arg1 = (wxGauge *) 0 ;
4081 int result;
4082 PyObject * obj0 = 0 ;
4083 char *kwnames[] = {
4084 (char *) "self", NULL
4085 };
4086
4087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 result = (int)((wxGauge const *)arg1)->GetValue();
4093
4094 wxPyEndAllowThreads(__tstate);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 }
4097 resultobj = SWIG_FromInt((int)result);
4098 return resultobj;
4099 fail:
4100 return NULL;
4101 }
4102
4103
4104 static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4105 PyObject *resultobj;
4106 wxGauge *arg1 = (wxGauge *) 0 ;
4107 bool result;
4108 PyObject * obj0 = 0 ;
4109 char *kwnames[] = {
4110 (char *) "self", NULL
4111 };
4112
4113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4116 {
4117 PyThreadState* __tstate = wxPyBeginAllowThreads();
4118 result = (bool)((wxGauge const *)arg1)->IsVertical();
4119
4120 wxPyEndAllowThreads(__tstate);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 {
4124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4125 }
4126 return resultobj;
4127 fail:
4128 return NULL;
4129 }
4130
4131
4132 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4133 PyObject *resultobj;
4134 wxGauge *arg1 = (wxGauge *) 0 ;
4135 int arg2 ;
4136 PyObject * obj0 = 0 ;
4137 PyObject * obj1 = 0 ;
4138 char *kwnames[] = {
4139 (char *) "self",(char *) "w", NULL
4140 };
4141
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4145 arg2 = (int) SWIG_AsInt(obj1);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 {
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 (arg1)->SetShadowWidth(arg2);
4150
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
4154 Py_INCREF(Py_None); resultobj = Py_None;
4155 return resultobj;
4156 fail:
4157 return NULL;
4158 }
4159
4160
4161 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4162 PyObject *resultobj;
4163 wxGauge *arg1 = (wxGauge *) 0 ;
4164 int result;
4165 PyObject * obj0 = 0 ;
4166 char *kwnames[] = {
4167 (char *) "self", NULL
4168 };
4169
4170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4173 {
4174 PyThreadState* __tstate = wxPyBeginAllowThreads();
4175 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4176
4177 wxPyEndAllowThreads(__tstate);
4178 if (PyErr_Occurred()) SWIG_fail;
4179 }
4180 resultobj = SWIG_FromInt((int)result);
4181 return resultobj;
4182 fail:
4183 return NULL;
4184 }
4185
4186
4187 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4188 PyObject *resultobj;
4189 wxGauge *arg1 = (wxGauge *) 0 ;
4190 int arg2 ;
4191 PyObject * obj0 = 0 ;
4192 PyObject * obj1 = 0 ;
4193 char *kwnames[] = {
4194 (char *) "self",(char *) "w", NULL
4195 };
4196
4197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4200 arg2 = (int) SWIG_AsInt(obj1);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 {
4203 PyThreadState* __tstate = wxPyBeginAllowThreads();
4204 (arg1)->SetBezelFace(arg2);
4205
4206 wxPyEndAllowThreads(__tstate);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
4209 Py_INCREF(Py_None); resultobj = Py_None;
4210 return resultobj;
4211 fail:
4212 return NULL;
4213 }
4214
4215
4216 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4217 PyObject *resultobj;
4218 wxGauge *arg1 = (wxGauge *) 0 ;
4219 int result;
4220 PyObject * obj0 = 0 ;
4221 char *kwnames[] = {
4222 (char *) "self", NULL
4223 };
4224
4225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4228 {
4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
4230 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4231
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) SWIG_fail;
4234 }
4235 resultobj = SWIG_FromInt((int)result);
4236 return resultobj;
4237 fail:
4238 return NULL;
4239 }
4240
4241
4242 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4243 PyObject *resultobj;
4244 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4245 wxVisualAttributes result;
4246 PyObject * obj0 = 0 ;
4247 char *kwnames[] = {
4248 (char *) "variant", NULL
4249 };
4250
4251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4252 if (obj0) {
4253 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4259
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 {
4264 wxVisualAttributes * resultptr;
4265 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4266 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4267 }
4268 return resultobj;
4269 fail:
4270 return NULL;
4271 }
4272
4273
4274 static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
4275 PyObject *obj;
4276 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4277 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4278 Py_INCREF(obj);
4279 return Py_BuildValue((char *)"");
4280 }
4281 static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
4282 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4283 return 1;
4284 }
4285
4286
4287 static PyObject *_wrap_StaticBitmapNameStr_get() {
4288 PyObject *pyobj;
4289
4290 {
4291 #if wxUSE_UNICODE
4292 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4293 #else
4294 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4295 #endif
4296 }
4297 return pyobj;
4298 }
4299
4300
4301 static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
4302 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4303 return 1;
4304 }
4305
4306
4307 static PyObject *_wrap_StaticBoxNameStr_get() {
4308 PyObject *pyobj;
4309
4310 {
4311 #if wxUSE_UNICODE
4312 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4313 #else
4314 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4315 #endif
4316 }
4317 return pyobj;
4318 }
4319
4320
4321 static int _wrap_StaticTextNameStr_set(PyObject *_val) {
4322 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4323 return 1;
4324 }
4325
4326
4327 static PyObject *_wrap_StaticTextNameStr_get() {
4328 PyObject *pyobj;
4329
4330 {
4331 #if wxUSE_UNICODE
4332 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4333 #else
4334 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4335 #endif
4336 }
4337 return pyobj;
4338 }
4339
4340
4341 static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj;
4343 wxWindow *arg1 = (wxWindow *) 0 ;
4344 int arg2 ;
4345 wxString *arg3 = 0 ;
4346 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4347 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4348 wxSize const &arg5_defvalue = wxDefaultSize ;
4349 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4350 long arg6 = (long) 0 ;
4351 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4352 wxString *arg7 = (wxString *) &arg7_defvalue ;
4353 wxStaticBox *result;
4354 bool temp3 = False ;
4355 wxPoint temp4 ;
4356 wxSize temp5 ;
4357 bool temp7 = False ;
4358 PyObject * obj0 = 0 ;
4359 PyObject * obj1 = 0 ;
4360 PyObject * obj2 = 0 ;
4361 PyObject * obj3 = 0 ;
4362 PyObject * obj4 = 0 ;
4363 PyObject * obj5 = 0 ;
4364 PyObject * obj6 = 0 ;
4365 char *kwnames[] = {
4366 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4367 };
4368
4369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4372 arg2 = (int) SWIG_AsInt(obj1);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 {
4375 arg3 = wxString_in_helper(obj2);
4376 if (arg3 == NULL) SWIG_fail;
4377 temp3 = True;
4378 }
4379 if (obj3) {
4380 {
4381 arg4 = &temp4;
4382 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4383 }
4384 }
4385 if (obj4) {
4386 {
4387 arg5 = &temp5;
4388 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4389 }
4390 }
4391 if (obj5) {
4392 arg6 = (long) SWIG_AsLong(obj5);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 if (obj6) {
4396 {
4397 arg7 = wxString_in_helper(obj6);
4398 if (arg7 == NULL) SWIG_fail;
4399 temp7 = True;
4400 }
4401 }
4402 {
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
4404 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4405
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 {
4410 resultobj = wxPyMake_wxObject(result);
4411 }
4412 {
4413 if (temp3)
4414 delete arg3;
4415 }
4416 {
4417 if (temp7)
4418 delete arg7;
4419 }
4420 return resultobj;
4421 fail:
4422 {
4423 if (temp3)
4424 delete arg3;
4425 }
4426 {
4427 if (temp7)
4428 delete arg7;
4429 }
4430 return NULL;
4431 }
4432
4433
4434 static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4435 PyObject *resultobj;
4436 wxStaticBox *result;
4437 char *kwnames[] = {
4438 NULL
4439 };
4440
4441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4442 {
4443 PyThreadState* __tstate = wxPyBeginAllowThreads();
4444 result = (wxStaticBox *)new wxStaticBox();
4445
4446 wxPyEndAllowThreads(__tstate);
4447 if (PyErr_Occurred()) SWIG_fail;
4448 }
4449 {
4450 resultobj = wxPyMake_wxObject(result);
4451 }
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4459 PyObject *resultobj;
4460 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4461 wxWindow *arg2 = (wxWindow *) 0 ;
4462 int arg3 ;
4463 wxString *arg4 = 0 ;
4464 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4465 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4466 wxSize const &arg6_defvalue = wxDefaultSize ;
4467 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4468 long arg7 = (long) 0 ;
4469 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4470 wxString *arg8 = (wxString *) &arg8_defvalue ;
4471 bool result;
4472 bool temp4 = False ;
4473 wxPoint temp5 ;
4474 wxSize temp6 ;
4475 bool temp8 = False ;
4476 PyObject * obj0 = 0 ;
4477 PyObject * obj1 = 0 ;
4478 PyObject * obj2 = 0 ;
4479 PyObject * obj3 = 0 ;
4480 PyObject * obj4 = 0 ;
4481 PyObject * obj5 = 0 ;
4482 PyObject * obj6 = 0 ;
4483 PyObject * obj7 = 0 ;
4484 char *kwnames[] = {
4485 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4486 };
4487
4488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4491 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4493 arg3 = (int) SWIG_AsInt(obj2);
4494 if (PyErr_Occurred()) SWIG_fail;
4495 {
4496 arg4 = wxString_in_helper(obj3);
4497 if (arg4 == NULL) SWIG_fail;
4498 temp4 = True;
4499 }
4500 if (obj4) {
4501 {
4502 arg5 = &temp5;
4503 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4504 }
4505 }
4506 if (obj5) {
4507 {
4508 arg6 = &temp6;
4509 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4510 }
4511 }
4512 if (obj6) {
4513 arg7 = (long) SWIG_AsLong(obj6);
4514 if (PyErr_Occurred()) SWIG_fail;
4515 }
4516 if (obj7) {
4517 {
4518 arg8 = wxString_in_helper(obj7);
4519 if (arg8 == NULL) SWIG_fail;
4520 temp8 = True;
4521 }
4522 }
4523 {
4524 PyThreadState* __tstate = wxPyBeginAllowThreads();
4525 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4526
4527 wxPyEndAllowThreads(__tstate);
4528 if (PyErr_Occurred()) SWIG_fail;
4529 }
4530 {
4531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4532 }
4533 {
4534 if (temp4)
4535 delete arg4;
4536 }
4537 {
4538 if (temp8)
4539 delete arg8;
4540 }
4541 return resultobj;
4542 fail:
4543 {
4544 if (temp4)
4545 delete arg4;
4546 }
4547 {
4548 if (temp8)
4549 delete arg8;
4550 }
4551 return NULL;
4552 }
4553
4554
4555 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4556 PyObject *resultobj;
4557 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4558 wxVisualAttributes result;
4559 PyObject * obj0 = 0 ;
4560 char *kwnames[] = {
4561 (char *) "variant", NULL
4562 };
4563
4564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4565 if (obj0) {
4566 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4567 if (PyErr_Occurred()) SWIG_fail;
4568 }
4569 {
4570 PyThreadState* __tstate = wxPyBeginAllowThreads();
4571 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4572
4573 wxPyEndAllowThreads(__tstate);
4574 if (PyErr_Occurred()) SWIG_fail;
4575 }
4576 {
4577 wxVisualAttributes * resultptr;
4578 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4580 }
4581 return resultobj;
4582 fail:
4583 return NULL;
4584 }
4585
4586
4587 static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4588 PyObject *obj;
4589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4590 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4591 Py_INCREF(obj);
4592 return Py_BuildValue((char *)"");
4593 }
4594 static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4595 PyObject *resultobj;
4596 wxWindow *arg1 = (wxWindow *) 0 ;
4597 int arg2 ;
4598 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4599 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4600 wxSize const &arg4_defvalue = wxDefaultSize ;
4601 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4602 long arg5 = (long) wxLI_HORIZONTAL ;
4603 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4604 wxString *arg6 = (wxString *) &arg6_defvalue ;
4605 wxStaticLine *result;
4606 wxPoint temp3 ;
4607 wxSize temp4 ;
4608 bool temp6 = False ;
4609 PyObject * obj0 = 0 ;
4610 PyObject * obj1 = 0 ;
4611 PyObject * obj2 = 0 ;
4612 PyObject * obj3 = 0 ;
4613 PyObject * obj4 = 0 ;
4614 PyObject * obj5 = 0 ;
4615 char *kwnames[] = {
4616 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4617 };
4618
4619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4622 arg2 = (int) SWIG_AsInt(obj1);
4623 if (PyErr_Occurred()) SWIG_fail;
4624 if (obj2) {
4625 {
4626 arg3 = &temp3;
4627 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4628 }
4629 }
4630 if (obj3) {
4631 {
4632 arg4 = &temp4;
4633 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4634 }
4635 }
4636 if (obj4) {
4637 arg5 = (long) SWIG_AsLong(obj4);
4638 if (PyErr_Occurred()) SWIG_fail;
4639 }
4640 if (obj5) {
4641 {
4642 arg6 = wxString_in_helper(obj5);
4643 if (arg6 == NULL) SWIG_fail;
4644 temp6 = True;
4645 }
4646 }
4647 {
4648 PyThreadState* __tstate = wxPyBeginAllowThreads();
4649 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4650
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4655 {
4656 if (temp6)
4657 delete arg6;
4658 }
4659 return resultobj;
4660 fail:
4661 {
4662 if (temp6)
4663 delete arg6;
4664 }
4665 return NULL;
4666 }
4667
4668
4669 static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4670 PyObject *resultobj;
4671 wxStaticLine *result;
4672 char *kwnames[] = {
4673 NULL
4674 };
4675
4676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4677 {
4678 PyThreadState* __tstate = wxPyBeginAllowThreads();
4679 result = (wxStaticLine *)new wxStaticLine();
4680
4681 wxPyEndAllowThreads(__tstate);
4682 if (PyErr_Occurred()) SWIG_fail;
4683 }
4684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4685 return resultobj;
4686 fail:
4687 return NULL;
4688 }
4689
4690
4691 static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4692 PyObject *resultobj;
4693 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4694 wxWindow *arg2 = (wxWindow *) 0 ;
4695 int arg3 ;
4696 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4697 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4698 wxSize const &arg5_defvalue = wxDefaultSize ;
4699 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4700 long arg6 = (long) wxLI_HORIZONTAL ;
4701 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4702 wxString *arg7 = (wxString *) &arg7_defvalue ;
4703 bool result;
4704 wxPoint temp4 ;
4705 wxSize temp5 ;
4706 bool temp7 = False ;
4707 PyObject * obj0 = 0 ;
4708 PyObject * obj1 = 0 ;
4709 PyObject * obj2 = 0 ;
4710 PyObject * obj3 = 0 ;
4711 PyObject * obj4 = 0 ;
4712 PyObject * obj5 = 0 ;
4713 PyObject * obj6 = 0 ;
4714 char *kwnames[] = {
4715 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4716 };
4717
4718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4721 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4723 arg3 = (int) SWIG_AsInt(obj2);
4724 if (PyErr_Occurred()) SWIG_fail;
4725 if (obj3) {
4726 {
4727 arg4 = &temp4;
4728 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4729 }
4730 }
4731 if (obj4) {
4732 {
4733 arg5 = &temp5;
4734 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4735 }
4736 }
4737 if (obj5) {
4738 arg6 = (long) SWIG_AsLong(obj5);
4739 if (PyErr_Occurred()) SWIG_fail;
4740 }
4741 if (obj6) {
4742 {
4743 arg7 = wxString_in_helper(obj6);
4744 if (arg7 == NULL) SWIG_fail;
4745 temp7 = True;
4746 }
4747 }
4748 {
4749 PyThreadState* __tstate = wxPyBeginAllowThreads();
4750 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4751
4752 wxPyEndAllowThreads(__tstate);
4753 if (PyErr_Occurred()) SWIG_fail;
4754 }
4755 {
4756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4757 }
4758 {
4759 if (temp7)
4760 delete arg7;
4761 }
4762 return resultobj;
4763 fail:
4764 {
4765 if (temp7)
4766 delete arg7;
4767 }
4768 return NULL;
4769 }
4770
4771
4772 static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4773 PyObject *resultobj;
4774 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4775 bool result;
4776 PyObject * obj0 = 0 ;
4777 char *kwnames[] = {
4778 (char *) "self", NULL
4779 };
4780
4781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4784 {
4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
4786 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4787
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 {
4792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4793 }
4794 return resultobj;
4795 fail:
4796 return NULL;
4797 }
4798
4799
4800 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4801 PyObject *resultobj;
4802 int result;
4803 char *kwnames[] = {
4804 NULL
4805 };
4806
4807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4808 {
4809 PyThreadState* __tstate = wxPyBeginAllowThreads();
4810 result = (int)wxStaticLine::GetDefaultSize();
4811
4812 wxPyEndAllowThreads(__tstate);
4813 if (PyErr_Occurred()) SWIG_fail;
4814 }
4815 resultobj = SWIG_FromInt((int)result);
4816 return resultobj;
4817 fail:
4818 return NULL;
4819 }
4820
4821
4822 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4823 PyObject *resultobj;
4824 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4825 wxVisualAttributes result;
4826 PyObject * obj0 = 0 ;
4827 char *kwnames[] = {
4828 (char *) "variant", NULL
4829 };
4830
4831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4832 if (obj0) {
4833 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 {
4837 PyThreadState* __tstate = wxPyBeginAllowThreads();
4838 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
4839
4840 wxPyEndAllowThreads(__tstate);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 }
4843 {
4844 wxVisualAttributes * resultptr;
4845 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4846 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4847 }
4848 return resultobj;
4849 fail:
4850 return NULL;
4851 }
4852
4853
4854 static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4855 PyObject *obj;
4856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4857 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4858 Py_INCREF(obj);
4859 return Py_BuildValue((char *)"");
4860 }
4861 static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj;
4863 wxWindow *arg1 = (wxWindow *) 0 ;
4864 int arg2 ;
4865 wxString *arg3 = 0 ;
4866 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4867 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4868 wxSize const &arg5_defvalue = wxDefaultSize ;
4869 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4870 long arg6 = (long) 0 ;
4871 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4872 wxString *arg7 = (wxString *) &arg7_defvalue ;
4873 wxStaticText *result;
4874 bool temp3 = False ;
4875 wxPoint temp4 ;
4876 wxSize temp5 ;
4877 bool temp7 = False ;
4878 PyObject * obj0 = 0 ;
4879 PyObject * obj1 = 0 ;
4880 PyObject * obj2 = 0 ;
4881 PyObject * obj3 = 0 ;
4882 PyObject * obj4 = 0 ;
4883 PyObject * obj5 = 0 ;
4884 PyObject * obj6 = 0 ;
4885 char *kwnames[] = {
4886 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4887 };
4888
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4892 arg2 = (int) SWIG_AsInt(obj1);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 {
4895 arg3 = wxString_in_helper(obj2);
4896 if (arg3 == NULL) SWIG_fail;
4897 temp3 = True;
4898 }
4899 if (obj3) {
4900 {
4901 arg4 = &temp4;
4902 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4903 }
4904 }
4905 if (obj4) {
4906 {
4907 arg5 = &temp5;
4908 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4909 }
4910 }
4911 if (obj5) {
4912 arg6 = (long) SWIG_AsLong(obj5);
4913 if (PyErr_Occurred()) SWIG_fail;
4914 }
4915 if (obj6) {
4916 {
4917 arg7 = wxString_in_helper(obj6);
4918 if (arg7 == NULL) SWIG_fail;
4919 temp7 = True;
4920 }
4921 }
4922 {
4923 PyThreadState* __tstate = wxPyBeginAllowThreads();
4924 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4925
4926 wxPyEndAllowThreads(__tstate);
4927 if (PyErr_Occurred()) SWIG_fail;
4928 }
4929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4930 {
4931 if (temp3)
4932 delete arg3;
4933 }
4934 {
4935 if (temp7)
4936 delete arg7;
4937 }
4938 return resultobj;
4939 fail:
4940 {
4941 if (temp3)
4942 delete arg3;
4943 }
4944 {
4945 if (temp7)
4946 delete arg7;
4947 }
4948 return NULL;
4949 }
4950
4951
4952 static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4953 PyObject *resultobj;
4954 wxStaticText *result;
4955 char *kwnames[] = {
4956 NULL
4957 };
4958
4959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 result = (wxStaticText *)new wxStaticText();
4963
4964 wxPyEndAllowThreads(__tstate);
4965 if (PyErr_Occurred()) SWIG_fail;
4966 }
4967 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4968 return resultobj;
4969 fail:
4970 return NULL;
4971 }
4972
4973
4974 static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4975 PyObject *resultobj;
4976 wxStaticText *arg1 = (wxStaticText *) 0 ;
4977 wxWindow *arg2 = (wxWindow *) 0 ;
4978 int arg3 ;
4979 wxString *arg4 = 0 ;
4980 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4981 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4982 wxSize const &arg6_defvalue = wxDefaultSize ;
4983 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4984 long arg7 = (long) 0 ;
4985 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4986 wxString *arg8 = (wxString *) &arg8_defvalue ;
4987 bool result;
4988 bool temp4 = False ;
4989 wxPoint temp5 ;
4990 wxSize temp6 ;
4991 bool temp8 = False ;
4992 PyObject * obj0 = 0 ;
4993 PyObject * obj1 = 0 ;
4994 PyObject * obj2 = 0 ;
4995 PyObject * obj3 = 0 ;
4996 PyObject * obj4 = 0 ;
4997 PyObject * obj5 = 0 ;
4998 PyObject * obj6 = 0 ;
4999 PyObject * obj7 = 0 ;
5000 char *kwnames[] = {
5001 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5002 };
5003
5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5007 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5009 arg3 = (int) SWIG_AsInt(obj2);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 {
5012 arg4 = wxString_in_helper(obj3);
5013 if (arg4 == NULL) SWIG_fail;
5014 temp4 = True;
5015 }
5016 if (obj4) {
5017 {
5018 arg5 = &temp5;
5019 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5020 }
5021 }
5022 if (obj5) {
5023 {
5024 arg6 = &temp6;
5025 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5026 }
5027 }
5028 if (obj6) {
5029 arg7 = (long) SWIG_AsLong(obj6);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 if (obj7) {
5033 {
5034 arg8 = wxString_in_helper(obj7);
5035 if (arg8 == NULL) SWIG_fail;
5036 temp8 = True;
5037 }
5038 }
5039 {
5040 PyThreadState* __tstate = wxPyBeginAllowThreads();
5041 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5042
5043 wxPyEndAllowThreads(__tstate);
5044 if (PyErr_Occurred()) SWIG_fail;
5045 }
5046 {
5047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5048 }
5049 {
5050 if (temp4)
5051 delete arg4;
5052 }
5053 {
5054 if (temp8)
5055 delete arg8;
5056 }
5057 return resultobj;
5058 fail:
5059 {
5060 if (temp4)
5061 delete arg4;
5062 }
5063 {
5064 if (temp8)
5065 delete arg8;
5066 }
5067 return NULL;
5068 }
5069
5070
5071 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5072 PyObject *resultobj;
5073 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5074 wxVisualAttributes result;
5075 PyObject * obj0 = 0 ;
5076 char *kwnames[] = {
5077 (char *) "variant", NULL
5078 };
5079
5080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5081 if (obj0) {
5082 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 {
5086 PyThreadState* __tstate = wxPyBeginAllowThreads();
5087 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5088
5089 wxPyEndAllowThreads(__tstate);
5090 if (PyErr_Occurred()) SWIG_fail;
5091 }
5092 {
5093 wxVisualAttributes * resultptr;
5094 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5095 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5096 }
5097 return resultobj;
5098 fail:
5099 return NULL;
5100 }
5101
5102
5103 static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
5104 PyObject *obj;
5105 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5106 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5107 Py_INCREF(obj);
5108 return Py_BuildValue((char *)"");
5109 }
5110 static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5111 PyObject *resultobj;
5112 wxWindow *arg1 = (wxWindow *) 0 ;
5113 int arg2 ;
5114 wxBitmap *arg3 = 0 ;
5115 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5116 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5117 wxSize const &arg5_defvalue = wxDefaultSize ;
5118 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5119 long arg6 = (long) 0 ;
5120 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5121 wxString *arg7 = (wxString *) &arg7_defvalue ;
5122 wxStaticBitmap *result;
5123 wxPoint temp4 ;
5124 wxSize temp5 ;
5125 bool temp7 = False ;
5126 PyObject * obj0 = 0 ;
5127 PyObject * obj1 = 0 ;
5128 PyObject * obj2 = 0 ;
5129 PyObject * obj3 = 0 ;
5130 PyObject * obj4 = 0 ;
5131 PyObject * obj5 = 0 ;
5132 PyObject * obj6 = 0 ;
5133 char *kwnames[] = {
5134 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5135 };
5136
5137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5140 arg2 = (int) SWIG_AsInt(obj1);
5141 if (PyErr_Occurred()) SWIG_fail;
5142 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5143 SWIG_POINTER_EXCEPTION | 0)) == -1)
5144 SWIG_fail;
5145 if (arg3 == NULL) {
5146 PyErr_SetString(PyExc_TypeError,"null reference");
5147 SWIG_fail;
5148 }
5149 if (obj3) {
5150 {
5151 arg4 = &temp4;
5152 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5153 }
5154 }
5155 if (obj4) {
5156 {
5157 arg5 = &temp5;
5158 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5159 }
5160 }
5161 if (obj5) {
5162 arg6 = (long) SWIG_AsLong(obj5);
5163 if (PyErr_Occurred()) SWIG_fail;
5164 }
5165 if (obj6) {
5166 {
5167 arg7 = wxString_in_helper(obj6);
5168 if (arg7 == NULL) SWIG_fail;
5169 temp7 = True;
5170 }
5171 }
5172 {
5173 PyThreadState* __tstate = wxPyBeginAllowThreads();
5174 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5175
5176 wxPyEndAllowThreads(__tstate);
5177 if (PyErr_Occurred()) SWIG_fail;
5178 }
5179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5180 {
5181 if (temp7)
5182 delete arg7;
5183 }
5184 return resultobj;
5185 fail:
5186 {
5187 if (temp7)
5188 delete arg7;
5189 }
5190 return NULL;
5191 }
5192
5193
5194 static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5195 PyObject *resultobj;
5196 wxStaticBitmap *result;
5197 char *kwnames[] = {
5198 NULL
5199 };
5200
5201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5202 {
5203 PyThreadState* __tstate = wxPyBeginAllowThreads();
5204 result = (wxStaticBitmap *)new wxStaticBitmap();
5205
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 }
5209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5210 return resultobj;
5211 fail:
5212 return NULL;
5213 }
5214
5215
5216 static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5217 PyObject *resultobj;
5218 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5219 wxWindow *arg2 = (wxWindow *) 0 ;
5220 int arg3 ;
5221 wxBitmap *arg4 = 0 ;
5222 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5223 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5224 wxSize const &arg6_defvalue = wxDefaultSize ;
5225 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5226 long arg7 = (long) 0 ;
5227 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5228 wxString *arg8 = (wxString *) &arg8_defvalue ;
5229 bool result;
5230 wxPoint temp5 ;
5231 wxSize temp6 ;
5232 bool temp8 = False ;
5233 PyObject * obj0 = 0 ;
5234 PyObject * obj1 = 0 ;
5235 PyObject * obj2 = 0 ;
5236 PyObject * obj3 = 0 ;
5237 PyObject * obj4 = 0 ;
5238 PyObject * obj5 = 0 ;
5239 PyObject * obj6 = 0 ;
5240 PyObject * obj7 = 0 ;
5241 char *kwnames[] = {
5242 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5243 };
5244
5245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5248 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5250 arg3 = (int) SWIG_AsInt(obj2);
5251 if (PyErr_Occurred()) SWIG_fail;
5252 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5253 SWIG_POINTER_EXCEPTION | 0)) == -1)
5254 SWIG_fail;
5255 if (arg4 == NULL) {
5256 PyErr_SetString(PyExc_TypeError,"null reference");
5257 SWIG_fail;
5258 }
5259 if (obj4) {
5260 {
5261 arg5 = &temp5;
5262 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5263 }
5264 }
5265 if (obj5) {
5266 {
5267 arg6 = &temp6;
5268 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5269 }
5270 }
5271 if (obj6) {
5272 arg7 = (long) SWIG_AsLong(obj6);
5273 if (PyErr_Occurred()) SWIG_fail;
5274 }
5275 if (obj7) {
5276 {
5277 arg8 = wxString_in_helper(obj7);
5278 if (arg8 == NULL) SWIG_fail;
5279 temp8 = True;
5280 }
5281 }
5282 {
5283 PyThreadState* __tstate = wxPyBeginAllowThreads();
5284 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5285
5286 wxPyEndAllowThreads(__tstate);
5287 if (PyErr_Occurred()) SWIG_fail;
5288 }
5289 {
5290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5291 }
5292 {
5293 if (temp8)
5294 delete arg8;
5295 }
5296 return resultobj;
5297 fail:
5298 {
5299 if (temp8)
5300 delete arg8;
5301 }
5302 return NULL;
5303 }
5304
5305
5306 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj;
5308 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5309 wxBitmap result;
5310 PyObject * obj0 = 0 ;
5311 char *kwnames[] = {
5312 (char *) "self", NULL
5313 };
5314
5315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5318 {
5319 PyThreadState* __tstate = wxPyBeginAllowThreads();
5320 result = (arg1)->GetBitmap();
5321
5322 wxPyEndAllowThreads(__tstate);
5323 if (PyErr_Occurred()) SWIG_fail;
5324 }
5325 {
5326 wxBitmap * resultptr;
5327 resultptr = new wxBitmap((wxBitmap &) result);
5328 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5329 }
5330 return resultobj;
5331 fail:
5332 return NULL;
5333 }
5334
5335
5336 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5337 PyObject *resultobj;
5338 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5339 wxBitmap *arg2 = 0 ;
5340 PyObject * obj0 = 0 ;
5341 PyObject * obj1 = 0 ;
5342 char *kwnames[] = {
5343 (char *) "self",(char *) "bitmap", NULL
5344 };
5345
5346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5350 SWIG_POINTER_EXCEPTION | 0)) == -1)
5351 SWIG_fail;
5352 if (arg2 == NULL) {
5353 PyErr_SetString(PyExc_TypeError,"null reference");
5354 SWIG_fail;
5355 }
5356 {
5357 PyThreadState* __tstate = wxPyBeginAllowThreads();
5358 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5359
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 Py_INCREF(Py_None); resultobj = Py_None;
5364 return resultobj;
5365 fail:
5366 return NULL;
5367 }
5368
5369
5370 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5371 PyObject *resultobj;
5372 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5373 wxIcon *arg2 = 0 ;
5374 PyObject * obj0 = 0 ;
5375 PyObject * obj1 = 0 ;
5376 char *kwnames[] = {
5377 (char *) "self",(char *) "icon", NULL
5378 };
5379
5380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5383 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5384 SWIG_POINTER_EXCEPTION | 0)) == -1)
5385 SWIG_fail;
5386 if (arg2 == NULL) {
5387 PyErr_SetString(PyExc_TypeError,"null reference");
5388 SWIG_fail;
5389 }
5390 {
5391 PyThreadState* __tstate = wxPyBeginAllowThreads();
5392 (arg1)->SetIcon((wxIcon const &)*arg2);
5393
5394 wxPyEndAllowThreads(__tstate);
5395 if (PyErr_Occurred()) SWIG_fail;
5396 }
5397 Py_INCREF(Py_None); resultobj = Py_None;
5398 return resultobj;
5399 fail:
5400 return NULL;
5401 }
5402
5403
5404 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5405 PyObject *resultobj;
5406 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5407 wxVisualAttributes result;
5408 PyObject * obj0 = 0 ;
5409 char *kwnames[] = {
5410 (char *) "variant", NULL
5411 };
5412
5413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5414 if (obj0) {
5415 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 {
5419 PyThreadState* __tstate = wxPyBeginAllowThreads();
5420 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5421
5422 wxPyEndAllowThreads(__tstate);
5423 if (PyErr_Occurred()) SWIG_fail;
5424 }
5425 {
5426 wxVisualAttributes * resultptr;
5427 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5429 }
5430 return resultobj;
5431 fail:
5432 return NULL;
5433 }
5434
5435
5436 static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
5437 PyObject *obj;
5438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5439 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5440 Py_INCREF(obj);
5441 return Py_BuildValue((char *)"");
5442 }
5443 static int _wrap_ListBoxNameStr_set(PyObject *_val) {
5444 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5445 return 1;
5446 }
5447
5448
5449 static PyObject *_wrap_ListBoxNameStr_get() {
5450 PyObject *pyobj;
5451
5452 {
5453 #if wxUSE_UNICODE
5454 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5455 #else
5456 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5457 #endif
5458 }
5459 return pyobj;
5460 }
5461
5462
5463 static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj;
5465 wxWindow *arg1 = (wxWindow *) 0 ;
5466 int arg2 ;
5467 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5468 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5469 wxSize const &arg4_defvalue = wxDefaultSize ;
5470 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5471 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5472 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5473 long arg6 = (long) 0 ;
5474 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5475 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5476 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5477 wxString *arg8 = (wxString *) &arg8_defvalue ;
5478 wxListBox *result;
5479 wxPoint temp3 ;
5480 wxSize temp4 ;
5481 bool temp5 = False ;
5482 bool temp8 = False ;
5483 PyObject * obj0 = 0 ;
5484 PyObject * obj1 = 0 ;
5485 PyObject * obj2 = 0 ;
5486 PyObject * obj3 = 0 ;
5487 PyObject * obj4 = 0 ;
5488 PyObject * obj5 = 0 ;
5489 PyObject * obj6 = 0 ;
5490 PyObject * obj7 = 0 ;
5491 char *kwnames[] = {
5492 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5493 };
5494
5495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5498 arg2 = (int) SWIG_AsInt(obj1);
5499 if (PyErr_Occurred()) SWIG_fail;
5500 if (obj2) {
5501 {
5502 arg3 = &temp3;
5503 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5504 }
5505 }
5506 if (obj3) {
5507 {
5508 arg4 = &temp4;
5509 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5510 }
5511 }
5512 if (obj4) {
5513 {
5514 if (! PySequence_Check(obj4)) {
5515 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5516 SWIG_fail;
5517 }
5518 arg5 = new wxArrayString;
5519 temp5 = True;
5520 int i, len=PySequence_Length(obj4);
5521 for (i=0; i<len; i++) {
5522 PyObject* item = PySequence_GetItem(obj4, i);
5523 #if wxUSE_UNICODE
5524 PyObject* str = PyObject_Unicode(item);
5525 #else
5526 PyObject* str = PyObject_Str(item);
5527 #endif
5528 if (PyErr_Occurred()) SWIG_fail;
5529 arg5->Add(Py2wxString(str));
5530 Py_DECREF(item);
5531 Py_DECREF(str);
5532 }
5533 }
5534 }
5535 if (obj5) {
5536 arg6 = (long) SWIG_AsLong(obj5);
5537 if (PyErr_Occurred()) SWIG_fail;
5538 }
5539 if (obj6) {
5540 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5541 SWIG_POINTER_EXCEPTION | 0)) == -1)
5542 SWIG_fail;
5543 if (arg7 == NULL) {
5544 PyErr_SetString(PyExc_TypeError,"null reference");
5545 SWIG_fail;
5546 }
5547 }
5548 if (obj7) {
5549 {
5550 arg8 = wxString_in_helper(obj7);
5551 if (arg8 == NULL) SWIG_fail;
5552 temp8 = True;
5553 }
5554 }
5555 {
5556 PyThreadState* __tstate = wxPyBeginAllowThreads();
5557 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5558
5559 wxPyEndAllowThreads(__tstate);
5560 if (PyErr_Occurred()) SWIG_fail;
5561 }
5562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5563 {
5564 if (temp5) delete arg5;
5565 }
5566 {
5567 if (temp8)
5568 delete arg8;
5569 }
5570 return resultobj;
5571 fail:
5572 {
5573 if (temp5) delete arg5;
5574 }
5575 {
5576 if (temp8)
5577 delete arg8;
5578 }
5579 return NULL;
5580 }
5581
5582
5583 static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5584 PyObject *resultobj;
5585 wxListBox *result;
5586 char *kwnames[] = {
5587 NULL
5588 };
5589
5590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5591 {
5592 PyThreadState* __tstate = wxPyBeginAllowThreads();
5593 result = (wxListBox *)new wxListBox();
5594
5595 wxPyEndAllowThreads(__tstate);
5596 if (PyErr_Occurred()) SWIG_fail;
5597 }
5598 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5599 return resultobj;
5600 fail:
5601 return NULL;
5602 }
5603
5604
5605 static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5606 PyObject *resultobj;
5607 wxListBox *arg1 = (wxListBox *) 0 ;
5608 wxWindow *arg2 = (wxWindow *) 0 ;
5609 int arg3 ;
5610 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5611 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5612 wxSize const &arg5_defvalue = wxDefaultSize ;
5613 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5614 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5615 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5616 long arg7 = (long) 0 ;
5617 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5618 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5619 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5620 wxString *arg9 = (wxString *) &arg9_defvalue ;
5621 bool result;
5622 wxPoint temp4 ;
5623 wxSize temp5 ;
5624 bool temp6 = False ;
5625 bool temp9 = False ;
5626 PyObject * obj0 = 0 ;
5627 PyObject * obj1 = 0 ;
5628 PyObject * obj2 = 0 ;
5629 PyObject * obj3 = 0 ;
5630 PyObject * obj4 = 0 ;
5631 PyObject * obj5 = 0 ;
5632 PyObject * obj6 = 0 ;
5633 PyObject * obj7 = 0 ;
5634 PyObject * obj8 = 0 ;
5635 char *kwnames[] = {
5636 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5637 };
5638
5639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5642 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5644 arg3 = (int) SWIG_AsInt(obj2);
5645 if (PyErr_Occurred()) SWIG_fail;
5646 if (obj3) {
5647 {
5648 arg4 = &temp4;
5649 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5650 }
5651 }
5652 if (obj4) {
5653 {
5654 arg5 = &temp5;
5655 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5656 }
5657 }
5658 if (obj5) {
5659 {
5660 if (! PySequence_Check(obj5)) {
5661 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5662 SWIG_fail;
5663 }
5664 arg6 = new wxArrayString;
5665 temp6 = True;
5666 int i, len=PySequence_Length(obj5);
5667 for (i=0; i<len; i++) {
5668 PyObject* item = PySequence_GetItem(obj5, i);
5669 #if wxUSE_UNICODE
5670 PyObject* str = PyObject_Unicode(item);
5671 #else
5672 PyObject* str = PyObject_Str(item);
5673 #endif
5674 if (PyErr_Occurred()) SWIG_fail;
5675 arg6->Add(Py2wxString(str));
5676 Py_DECREF(item);
5677 Py_DECREF(str);
5678 }
5679 }
5680 }
5681 if (obj6) {
5682 arg7 = (long) SWIG_AsLong(obj6);
5683 if (PyErr_Occurred()) SWIG_fail;
5684 }
5685 if (obj7) {
5686 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5687 SWIG_POINTER_EXCEPTION | 0)) == -1)
5688 SWIG_fail;
5689 if (arg8 == NULL) {
5690 PyErr_SetString(PyExc_TypeError,"null reference");
5691 SWIG_fail;
5692 }
5693 }
5694 if (obj8) {
5695 {
5696 arg9 = wxString_in_helper(obj8);
5697 if (arg9 == NULL) SWIG_fail;
5698 temp9 = True;
5699 }
5700 }
5701 {
5702 PyThreadState* __tstate = wxPyBeginAllowThreads();
5703 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5704
5705 wxPyEndAllowThreads(__tstate);
5706 if (PyErr_Occurred()) SWIG_fail;
5707 }
5708 {
5709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5710 }
5711 {
5712 if (temp6) delete arg6;
5713 }
5714 {
5715 if (temp9)
5716 delete arg9;
5717 }
5718 return resultobj;
5719 fail:
5720 {
5721 if (temp6) delete arg6;
5722 }
5723 {
5724 if (temp9)
5725 delete arg9;
5726 }
5727 return NULL;
5728 }
5729
5730
5731 static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5732 PyObject *resultobj;
5733 wxListBox *arg1 = (wxListBox *) 0 ;
5734 wxString *arg2 = 0 ;
5735 int arg3 ;
5736 PyObject *arg4 = (PyObject *) NULL ;
5737 bool temp2 = False ;
5738 PyObject * obj0 = 0 ;
5739 PyObject * obj1 = 0 ;
5740 PyObject * obj2 = 0 ;
5741 PyObject * obj3 = 0 ;
5742 char *kwnames[] = {
5743 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5744 };
5745
5746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5749 {
5750 arg2 = wxString_in_helper(obj1);
5751 if (arg2 == NULL) SWIG_fail;
5752 temp2 = True;
5753 }
5754 arg3 = (int) SWIG_AsInt(obj2);
5755 if (PyErr_Occurred()) SWIG_fail;
5756 if (obj3) {
5757 arg4 = obj3;
5758 }
5759 {
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5762
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 Py_INCREF(Py_None); resultobj = Py_None;
5767 {
5768 if (temp2)
5769 delete arg2;
5770 }
5771 return resultobj;
5772 fail:
5773 {
5774 if (temp2)
5775 delete arg2;
5776 }
5777 return NULL;
5778 }
5779
5780
5781 static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5782 PyObject *resultobj;
5783 wxListBox *arg1 = (wxListBox *) 0 ;
5784 wxArrayString *arg2 = 0 ;
5785 int arg3 ;
5786 bool temp2 = False ;
5787 PyObject * obj0 = 0 ;
5788 PyObject * obj1 = 0 ;
5789 PyObject * obj2 = 0 ;
5790 char *kwnames[] = {
5791 (char *) "self",(char *) "items",(char *) "pos", NULL
5792 };
5793
5794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5797 {
5798 if (! PySequence_Check(obj1)) {
5799 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5800 SWIG_fail;
5801 }
5802 arg2 = new wxArrayString;
5803 temp2 = True;
5804 int i, len=PySequence_Length(obj1);
5805 for (i=0; i<len; i++) {
5806 PyObject* item = PySequence_GetItem(obj1, i);
5807 #if wxUSE_UNICODE
5808 PyObject* str = PyObject_Unicode(item);
5809 #else
5810 PyObject* str = PyObject_Str(item);
5811 #endif
5812 if (PyErr_Occurred()) SWIG_fail;
5813 arg2->Add(Py2wxString(str));
5814 Py_DECREF(item);
5815 Py_DECREF(str);
5816 }
5817 }
5818 arg3 = (int) SWIG_AsInt(obj2);
5819 if (PyErr_Occurred()) SWIG_fail;
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5823
5824 wxPyEndAllowThreads(__tstate);
5825 if (PyErr_Occurred()) SWIG_fail;
5826 }
5827 Py_INCREF(Py_None); resultobj = Py_None;
5828 {
5829 if (temp2) delete arg2;
5830 }
5831 return resultobj;
5832 fail:
5833 {
5834 if (temp2) delete arg2;
5835 }
5836 return NULL;
5837 }
5838
5839
5840 static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5841 PyObject *resultobj;
5842 wxListBox *arg1 = (wxListBox *) 0 ;
5843 wxArrayString *arg2 = 0 ;
5844 bool temp2 = False ;
5845 PyObject * obj0 = 0 ;
5846 PyObject * obj1 = 0 ;
5847 char *kwnames[] = {
5848 (char *) "self",(char *) "items", NULL
5849 };
5850
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5854 {
5855 if (! PySequence_Check(obj1)) {
5856 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5857 SWIG_fail;
5858 }
5859 arg2 = new wxArrayString;
5860 temp2 = True;
5861 int i, len=PySequence_Length(obj1);
5862 for (i=0; i<len; i++) {
5863 PyObject* item = PySequence_GetItem(obj1, i);
5864 #if wxUSE_UNICODE
5865 PyObject* str = PyObject_Unicode(item);
5866 #else
5867 PyObject* str = PyObject_Str(item);
5868 #endif
5869 if (PyErr_Occurred()) SWIG_fail;
5870 arg2->Add(Py2wxString(str));
5871 Py_DECREF(item);
5872 Py_DECREF(str);
5873 }
5874 }
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 (arg1)->Set((wxArrayString const &)*arg2);
5878
5879 wxPyEndAllowThreads(__tstate);
5880 if (PyErr_Occurred()) SWIG_fail;
5881 }
5882 Py_INCREF(Py_None); resultobj = Py_None;
5883 {
5884 if (temp2) delete arg2;
5885 }
5886 return resultobj;
5887 fail:
5888 {
5889 if (temp2) delete arg2;
5890 }
5891 return NULL;
5892 }
5893
5894
5895 static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5896 PyObject *resultobj;
5897 wxListBox *arg1 = (wxListBox *) 0 ;
5898 int arg2 ;
5899 bool result;
5900 PyObject * obj0 = 0 ;
5901 PyObject * obj1 = 0 ;
5902 char *kwnames[] = {
5903 (char *) "self",(char *) "n", NULL
5904 };
5905
5906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5909 arg2 = (int) SWIG_AsInt(obj1);
5910 if (PyErr_Occurred()) SWIG_fail;
5911 {
5912 PyThreadState* __tstate = wxPyBeginAllowThreads();
5913 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5914
5915 wxPyEndAllowThreads(__tstate);
5916 if (PyErr_Occurred()) SWIG_fail;
5917 }
5918 {
5919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5920 }
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj;
5929 wxListBox *arg1 = (wxListBox *) 0 ;
5930 int arg2 ;
5931 bool arg3 = (bool) True ;
5932 PyObject * obj0 = 0 ;
5933 PyObject * obj1 = 0 ;
5934 PyObject * obj2 = 0 ;
5935 char *kwnames[] = {
5936 (char *) "self",(char *) "n",(char *) "select", NULL
5937 };
5938
5939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5942 arg2 = (int) SWIG_AsInt(obj1);
5943 if (PyErr_Occurred()) SWIG_fail;
5944 if (obj2) {
5945 arg3 = (bool) SWIG_AsBool(obj2);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 {
5949 PyThreadState* __tstate = wxPyBeginAllowThreads();
5950 (arg1)->SetSelection(arg2,arg3);
5951
5952 wxPyEndAllowThreads(__tstate);
5953 if (PyErr_Occurred()) SWIG_fail;
5954 }
5955 Py_INCREF(Py_None); resultobj = Py_None;
5956 return resultobj;
5957 fail:
5958 return NULL;
5959 }
5960
5961
5962 static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5963 PyObject *resultobj;
5964 wxListBox *arg1 = (wxListBox *) 0 ;
5965 int arg2 ;
5966 PyObject * obj0 = 0 ;
5967 PyObject * obj1 = 0 ;
5968 char *kwnames[] = {
5969 (char *) "self",(char *) "n", NULL
5970 };
5971
5972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5975 arg2 = (int) SWIG_AsInt(obj1);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 {
5978 PyThreadState* __tstate = wxPyBeginAllowThreads();
5979 (arg1)->Select(arg2);
5980
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 Py_INCREF(Py_None); resultobj = Py_None;
5985 return resultobj;
5986 fail:
5987 return NULL;
5988 }
5989
5990
5991 static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5992 PyObject *resultobj;
5993 wxListBox *arg1 = (wxListBox *) 0 ;
5994 int arg2 ;
5995 PyObject * obj0 = 0 ;
5996 PyObject * obj1 = 0 ;
5997 char *kwnames[] = {
5998 (char *) "self",(char *) "n", NULL
5999 };
6000
6001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6004 arg2 = (int) SWIG_AsInt(obj1);
6005 if (PyErr_Occurred()) SWIG_fail;
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->Deselect(arg2);
6009
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 Py_INCREF(Py_None); resultobj = Py_None;
6014 return resultobj;
6015 fail:
6016 return NULL;
6017 }
6018
6019
6020 static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
6021 PyObject *resultobj;
6022 wxListBox *arg1 = (wxListBox *) 0 ;
6023 int arg2 = (int) -1 ;
6024 PyObject * obj0 = 0 ;
6025 PyObject * obj1 = 0 ;
6026 char *kwnames[] = {
6027 (char *) "self",(char *) "itemToLeaveSelected", NULL
6028 };
6029
6030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6033 if (obj1) {
6034 arg2 = (int) SWIG_AsInt(obj1);
6035 if (PyErr_Occurred()) SWIG_fail;
6036 }
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 (arg1)->DeselectAll(arg2);
6040
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) SWIG_fail;
6043 }
6044 Py_INCREF(Py_None); resultobj = Py_None;
6045 return resultobj;
6046 fail:
6047 return NULL;
6048 }
6049
6050
6051 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6052 PyObject *resultobj;
6053 wxListBox *arg1 = (wxListBox *) 0 ;
6054 wxString *arg2 = 0 ;
6055 bool arg3 = (bool) True ;
6056 bool result;
6057 bool temp2 = False ;
6058 PyObject * obj0 = 0 ;
6059 PyObject * obj1 = 0 ;
6060 PyObject * obj2 = 0 ;
6061 char *kwnames[] = {
6062 (char *) "self",(char *) "s",(char *) "select", NULL
6063 };
6064
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6068 {
6069 arg2 = wxString_in_helper(obj1);
6070 if (arg2 == NULL) SWIG_fail;
6071 temp2 = True;
6072 }
6073 if (obj2) {
6074 arg3 = (bool) SWIG_AsBool(obj2);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 {
6078 PyThreadState* __tstate = wxPyBeginAllowThreads();
6079 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6080
6081 wxPyEndAllowThreads(__tstate);
6082 if (PyErr_Occurred()) SWIG_fail;
6083 }
6084 {
6085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6086 }
6087 {
6088 if (temp2)
6089 delete arg2;
6090 }
6091 return resultobj;
6092 fail:
6093 {
6094 if (temp2)
6095 delete arg2;
6096 }
6097 return NULL;
6098 }
6099
6100
6101 static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
6102 PyObject *resultobj;
6103 wxListBox *arg1 = (wxListBox *) 0 ;
6104 PyObject *result;
6105 PyObject * obj0 = 0 ;
6106 char *kwnames[] = {
6107 (char *) "self", NULL
6108 };
6109
6110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6113 {
6114 PyThreadState* __tstate = wxPyBeginAllowThreads();
6115 result = (PyObject *)wxListBox_GetSelections(arg1);
6116
6117 wxPyEndAllowThreads(__tstate);
6118 if (PyErr_Occurred()) SWIG_fail;
6119 }
6120 resultobj = result;
6121 return resultobj;
6122 fail:
6123 return NULL;
6124 }
6125
6126
6127 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6128 PyObject *resultobj;
6129 wxListBox *arg1 = (wxListBox *) 0 ;
6130 int arg2 ;
6131 PyObject * obj0 = 0 ;
6132 PyObject * obj1 = 0 ;
6133 char *kwnames[] = {
6134 (char *) "self",(char *) "n", NULL
6135 };
6136
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6140 arg2 = (int) SWIG_AsInt(obj1);
6141 if (PyErr_Occurred()) SWIG_fail;
6142 {
6143 PyThreadState* __tstate = wxPyBeginAllowThreads();
6144 (arg1)->SetFirstItem(arg2);
6145
6146 wxPyEndAllowThreads(__tstate);
6147 if (PyErr_Occurred()) SWIG_fail;
6148 }
6149 Py_INCREF(Py_None); resultobj = Py_None;
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj;
6158 wxListBox *arg1 = (wxListBox *) 0 ;
6159 wxString *arg2 = 0 ;
6160 bool temp2 = False ;
6161 PyObject * obj0 = 0 ;
6162 PyObject * obj1 = 0 ;
6163 char *kwnames[] = {
6164 (char *) "self",(char *) "s", NULL
6165 };
6166
6167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6170 {
6171 arg2 = wxString_in_helper(obj1);
6172 if (arg2 == NULL) SWIG_fail;
6173 temp2 = True;
6174 }
6175 {
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 (arg1)->SetFirstItem((wxString const &)*arg2);
6178
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 Py_INCREF(Py_None); resultobj = Py_None;
6183 {
6184 if (temp2)
6185 delete arg2;
6186 }
6187 return resultobj;
6188 fail:
6189 {
6190 if (temp2)
6191 delete arg2;
6192 }
6193 return NULL;
6194 }
6195
6196
6197 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6198 PyObject *resultobj;
6199 wxListBox *arg1 = (wxListBox *) 0 ;
6200 int arg2 ;
6201 PyObject * obj0 = 0 ;
6202 PyObject * obj1 = 0 ;
6203 char *kwnames[] = {
6204 (char *) "self",(char *) "n", NULL
6205 };
6206
6207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6210 arg2 = (int) SWIG_AsInt(obj1);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 (arg1)->EnsureVisible(arg2);
6215
6216 wxPyEndAllowThreads(__tstate);
6217 if (PyErr_Occurred()) SWIG_fail;
6218 }
6219 Py_INCREF(Py_None); resultobj = Py_None;
6220 return resultobj;
6221 fail:
6222 return NULL;
6223 }
6224
6225
6226 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6227 PyObject *resultobj;
6228 wxListBox *arg1 = (wxListBox *) 0 ;
6229 wxString *arg2 = 0 ;
6230 bool temp2 = False ;
6231 PyObject * obj0 = 0 ;
6232 PyObject * obj1 = 0 ;
6233 char *kwnames[] = {
6234 (char *) "self",(char *) "s", NULL
6235 };
6236
6237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6240 {
6241 arg2 = wxString_in_helper(obj1);
6242 if (arg2 == NULL) SWIG_fail;
6243 temp2 = True;
6244 }
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6248
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 Py_INCREF(Py_None); resultobj = Py_None;
6253 {
6254 if (temp2)
6255 delete arg2;
6256 }
6257 return resultobj;
6258 fail:
6259 {
6260 if (temp2)
6261 delete arg2;
6262 }
6263 return NULL;
6264 }
6265
6266
6267 static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj;
6269 wxListBox *arg1 = (wxListBox *) 0 ;
6270 bool result;
6271 PyObject * obj0 = 0 ;
6272 char *kwnames[] = {
6273 (char *) "self", NULL
6274 };
6275
6276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6279 {
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 result = (bool)((wxListBox const *)arg1)->IsSorted();
6282
6283 wxPyEndAllowThreads(__tstate);
6284 if (PyErr_Occurred()) SWIG_fail;
6285 }
6286 {
6287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6288 }
6289 return resultobj;
6290 fail:
6291 return NULL;
6292 }
6293
6294
6295 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6296 PyObject *resultobj;
6297 wxListBox *arg1 = (wxListBox *) 0 ;
6298 int arg2 ;
6299 wxColour *arg3 = 0 ;
6300 wxColour temp3 ;
6301 PyObject * obj0 = 0 ;
6302 PyObject * obj1 = 0 ;
6303 PyObject * obj2 = 0 ;
6304 char *kwnames[] = {
6305 (char *) "self",(char *) "item",(char *) "c", NULL
6306 };
6307
6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6311 arg2 = (int) SWIG_AsInt(obj1);
6312 if (PyErr_Occurred()) SWIG_fail;
6313 {
6314 arg3 = &temp3;
6315 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6316 }
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6320
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 Py_INCREF(Py_None); resultobj = Py_None;
6325 return resultobj;
6326 fail:
6327 return NULL;
6328 }
6329
6330
6331 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj;
6333 wxListBox *arg1 = (wxListBox *) 0 ;
6334 int arg2 ;
6335 wxColour *arg3 = 0 ;
6336 wxColour temp3 ;
6337 PyObject * obj0 = 0 ;
6338 PyObject * obj1 = 0 ;
6339 PyObject * obj2 = 0 ;
6340 char *kwnames[] = {
6341 (char *) "self",(char *) "item",(char *) "c", NULL
6342 };
6343
6344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6347 arg2 = (int) SWIG_AsInt(obj1);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 {
6350 arg3 = &temp3;
6351 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6352 }
6353 {
6354 PyThreadState* __tstate = wxPyBeginAllowThreads();
6355 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6356
6357 wxPyEndAllowThreads(__tstate);
6358 if (PyErr_Occurred()) SWIG_fail;
6359 }
6360 Py_INCREF(Py_None); resultobj = Py_None;
6361 return resultobj;
6362 fail:
6363 return NULL;
6364 }
6365
6366
6367 static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6368 PyObject *resultobj;
6369 wxListBox *arg1 = (wxListBox *) 0 ;
6370 int arg2 ;
6371 wxFont *arg3 = 0 ;
6372 PyObject * obj0 = 0 ;
6373 PyObject * obj1 = 0 ;
6374 PyObject * obj2 = 0 ;
6375 char *kwnames[] = {
6376 (char *) "self",(char *) "item",(char *) "f", NULL
6377 };
6378
6379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6382 arg2 = (int) SWIG_AsInt(obj1);
6383 if (PyErr_Occurred()) SWIG_fail;
6384 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6385 SWIG_POINTER_EXCEPTION | 0)) == -1)
6386 SWIG_fail;
6387 if (arg3 == NULL) {
6388 PyErr_SetString(PyExc_TypeError,"null reference");
6389 SWIG_fail;
6390 }
6391 {
6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
6393 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6394
6395 wxPyEndAllowThreads(__tstate);
6396 if (PyErr_Occurred()) SWIG_fail;
6397 }
6398 Py_INCREF(Py_None); resultobj = Py_None;
6399 return resultobj;
6400 fail:
6401 return NULL;
6402 }
6403
6404
6405 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6406 PyObject *resultobj;
6407 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6408 wxVisualAttributes result;
6409 PyObject * obj0 = 0 ;
6410 char *kwnames[] = {
6411 (char *) "variant", NULL
6412 };
6413
6414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6415 if (obj0) {
6416 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
6417 if (PyErr_Occurred()) SWIG_fail;
6418 }
6419 {
6420 PyThreadState* __tstate = wxPyBeginAllowThreads();
6421 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6422
6423 wxPyEndAllowThreads(__tstate);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 {
6427 wxVisualAttributes * resultptr;
6428 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6429 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6430 }
6431 return resultobj;
6432 fail:
6433 return NULL;
6434 }
6435
6436
6437 static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
6438 PyObject *obj;
6439 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6440 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6441 Py_INCREF(obj);
6442 return Py_BuildValue((char *)"");
6443 }
6444 static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6445 PyObject *resultobj;
6446 wxWindow *arg1 = (wxWindow *) 0 ;
6447 int arg2 ;
6448 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6449 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6450 wxSize const &arg4_defvalue = wxDefaultSize ;
6451 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6452 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6453 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6454 long arg6 = (long) 0 ;
6455 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6456 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6457 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6458 wxString *arg8 = (wxString *) &arg8_defvalue ;
6459 wxCheckListBox *result;
6460 wxPoint temp3 ;
6461 wxSize temp4 ;
6462 bool temp5 = False ;
6463 bool temp8 = False ;
6464 PyObject * obj0 = 0 ;
6465 PyObject * obj1 = 0 ;
6466 PyObject * obj2 = 0 ;
6467 PyObject * obj3 = 0 ;
6468 PyObject * obj4 = 0 ;
6469 PyObject * obj5 = 0 ;
6470 PyObject * obj6 = 0 ;
6471 PyObject * obj7 = 0 ;
6472 char *kwnames[] = {
6473 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6474 };
6475
6476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6479 arg2 = (int) SWIG_AsInt(obj1);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 if (obj2) {
6482 {
6483 arg3 = &temp3;
6484 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6485 }
6486 }
6487 if (obj3) {
6488 {
6489 arg4 = &temp4;
6490 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6491 }
6492 }
6493 if (obj4) {
6494 {
6495 if (! PySequence_Check(obj4)) {
6496 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6497 SWIG_fail;
6498 }
6499 arg5 = new wxArrayString;
6500 temp5 = True;
6501 int i, len=PySequence_Length(obj4);
6502 for (i=0; i<len; i++) {
6503 PyObject* item = PySequence_GetItem(obj4, i);
6504 #if wxUSE_UNICODE
6505 PyObject* str = PyObject_Unicode(item);
6506 #else
6507 PyObject* str = PyObject_Str(item);
6508 #endif
6509 if (PyErr_Occurred()) SWIG_fail;
6510 arg5->Add(Py2wxString(str));
6511 Py_DECREF(item);
6512 Py_DECREF(str);
6513 }
6514 }
6515 }
6516 if (obj5) {
6517 arg6 = (long) SWIG_AsLong(obj5);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 if (obj6) {
6521 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6522 SWIG_POINTER_EXCEPTION | 0)) == -1)
6523 SWIG_fail;
6524 if (arg7 == NULL) {
6525 PyErr_SetString(PyExc_TypeError,"null reference");
6526 SWIG_fail;
6527 }
6528 }
6529 if (obj7) {
6530 {
6531 arg8 = wxString_in_helper(obj7);
6532 if (arg8 == NULL) SWIG_fail;
6533 temp8 = True;
6534 }
6535 }
6536 {
6537 PyThreadState* __tstate = wxPyBeginAllowThreads();
6538 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6539
6540 wxPyEndAllowThreads(__tstate);
6541 if (PyErr_Occurred()) SWIG_fail;
6542 }
6543 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6544 {
6545 if (temp5) delete arg5;
6546 }
6547 {
6548 if (temp8)
6549 delete arg8;
6550 }
6551 return resultobj;
6552 fail:
6553 {
6554 if (temp5) delete arg5;
6555 }
6556 {
6557 if (temp8)
6558 delete arg8;
6559 }
6560 return NULL;
6561 }
6562
6563
6564 static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6565 PyObject *resultobj;
6566 wxCheckListBox *result;
6567 char *kwnames[] = {
6568 NULL
6569 };
6570
6571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 result = (wxCheckListBox *)new wxCheckListBox();
6575
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6587 PyObject *resultobj;
6588 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6589 wxWindow *arg2 = (wxWindow *) 0 ;
6590 int arg3 ;
6591 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6592 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6593 wxSize const &arg5_defvalue = wxDefaultSize ;
6594 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6595 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6596 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6597 long arg7 = (long) 0 ;
6598 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6599 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6600 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6601 wxString *arg9 = (wxString *) &arg9_defvalue ;
6602 bool result;
6603 wxPoint temp4 ;
6604 wxSize temp5 ;
6605 bool temp6 = False ;
6606 bool temp9 = False ;
6607 PyObject * obj0 = 0 ;
6608 PyObject * obj1 = 0 ;
6609 PyObject * obj2 = 0 ;
6610 PyObject * obj3 = 0 ;
6611 PyObject * obj4 = 0 ;
6612 PyObject * obj5 = 0 ;
6613 PyObject * obj6 = 0 ;
6614 PyObject * obj7 = 0 ;
6615 PyObject * obj8 = 0 ;
6616 char *kwnames[] = {
6617 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6618 };
6619
6620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6623 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6625 arg3 = (int) SWIG_AsInt(obj2);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 if (obj3) {
6628 {
6629 arg4 = &temp4;
6630 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6631 }
6632 }
6633 if (obj4) {
6634 {
6635 arg5 = &temp5;
6636 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6637 }
6638 }
6639 if (obj5) {
6640 {
6641 if (! PySequence_Check(obj5)) {
6642 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6643 SWIG_fail;
6644 }
6645 arg6 = new wxArrayString;
6646 temp6 = True;
6647 int i, len=PySequence_Length(obj5);
6648 for (i=0; i<len; i++) {
6649 PyObject* item = PySequence_GetItem(obj5, i);
6650 #if wxUSE_UNICODE
6651 PyObject* str = PyObject_Unicode(item);
6652 #else
6653 PyObject* str = PyObject_Str(item);
6654 #endif
6655 if (PyErr_Occurred()) SWIG_fail;
6656 arg6->Add(Py2wxString(str));
6657 Py_DECREF(item);
6658 Py_DECREF(str);
6659 }
6660 }
6661 }
6662 if (obj6) {
6663 arg7 = (long) SWIG_AsLong(obj6);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 if (obj7) {
6667 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6668 SWIG_POINTER_EXCEPTION | 0)) == -1)
6669 SWIG_fail;
6670 if (arg8 == NULL) {
6671 PyErr_SetString(PyExc_TypeError,"null reference");
6672 SWIG_fail;
6673 }
6674 }
6675 if (obj8) {
6676 {
6677 arg9 = wxString_in_helper(obj8);
6678 if (arg9 == NULL) SWIG_fail;
6679 temp9 = True;
6680 }
6681 }
6682 {
6683 PyThreadState* __tstate = wxPyBeginAllowThreads();
6684 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6685
6686 wxPyEndAllowThreads(__tstate);
6687 if (PyErr_Occurred()) SWIG_fail;
6688 }
6689 {
6690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6691 }
6692 {
6693 if (temp6) delete arg6;
6694 }
6695 {
6696 if (temp9)
6697 delete arg9;
6698 }
6699 return resultobj;
6700 fail:
6701 {
6702 if (temp6) delete arg6;
6703 }
6704 {
6705 if (temp9)
6706 delete arg9;
6707 }
6708 return NULL;
6709 }
6710
6711
6712 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6713 PyObject *resultobj;
6714 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6715 int arg2 ;
6716 bool result;
6717 PyObject * obj0 = 0 ;
6718 PyObject * obj1 = 0 ;
6719 char *kwnames[] = {
6720 (char *) "self",(char *) "index", NULL
6721 };
6722
6723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6726 arg2 = (int) SWIG_AsInt(obj1);
6727 if (PyErr_Occurred()) SWIG_fail;
6728 {
6729 PyThreadState* __tstate = wxPyBeginAllowThreads();
6730 result = (bool)(arg1)->IsChecked(arg2);
6731
6732 wxPyEndAllowThreads(__tstate);
6733 if (PyErr_Occurred()) SWIG_fail;
6734 }
6735 {
6736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6737 }
6738 return resultobj;
6739 fail:
6740 return NULL;
6741 }
6742
6743
6744 static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6745 PyObject *resultobj;
6746 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6747 int arg2 ;
6748 int arg3 = (int) True ;
6749 PyObject * obj0 = 0 ;
6750 PyObject * obj1 = 0 ;
6751 PyObject * obj2 = 0 ;
6752 char *kwnames[] = {
6753 (char *) "self",(char *) "index",(char *) "check", NULL
6754 };
6755
6756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6759 arg2 = (int) SWIG_AsInt(obj1);
6760 if (PyErr_Occurred()) SWIG_fail;
6761 if (obj2) {
6762 arg3 = (int) SWIG_AsInt(obj2);
6763 if (PyErr_Occurred()) SWIG_fail;
6764 }
6765 {
6766 PyThreadState* __tstate = wxPyBeginAllowThreads();
6767 (arg1)->Check(arg2,arg3);
6768
6769 wxPyEndAllowThreads(__tstate);
6770 if (PyErr_Occurred()) SWIG_fail;
6771 }
6772 Py_INCREF(Py_None); resultobj = Py_None;
6773 return resultobj;
6774 fail:
6775 return NULL;
6776 }
6777
6778
6779 static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6780 PyObject *resultobj;
6781 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6782 wxPoint *arg2 = 0 ;
6783 int result;
6784 wxPoint temp2 ;
6785 PyObject * obj0 = 0 ;
6786 PyObject * obj1 = 0 ;
6787 char *kwnames[] = {
6788 (char *) "self",(char *) "pt", NULL
6789 };
6790
6791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6794 {
6795 arg2 = &temp2;
6796 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6797 }
6798 {
6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
6800 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6801
6802 wxPyEndAllowThreads(__tstate);
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 resultobj = SWIG_FromInt((int)result);
6806 return resultobj;
6807 fail:
6808 return NULL;
6809 }
6810
6811
6812 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj;
6814 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6815 int arg2 ;
6816 int arg3 ;
6817 int result;
6818 PyObject * obj0 = 0 ;
6819 PyObject * obj1 = 0 ;
6820 PyObject * obj2 = 0 ;
6821 char *kwnames[] = {
6822 (char *) "self",(char *) "x",(char *) "y", NULL
6823 };
6824
6825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6828 arg2 = (int) SWIG_AsInt(obj1);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 arg3 = (int) SWIG_AsInt(obj2);
6831 if (PyErr_Occurred()) SWIG_fail;
6832 {
6833 PyThreadState* __tstate = wxPyBeginAllowThreads();
6834 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6835
6836 wxPyEndAllowThreads(__tstate);
6837 if (PyErr_Occurred()) SWIG_fail;
6838 }
6839 resultobj = SWIG_FromInt((int)result);
6840 return resultobj;
6841 fail:
6842 return NULL;
6843 }
6844
6845
6846 static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6847 PyObject *obj;
6848 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6849 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6850 Py_INCREF(obj);
6851 return Py_BuildValue((char *)"");
6852 }
6853 static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6854 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6855 return 1;
6856 }
6857
6858
6859 static PyObject *_wrap_TextCtrlNameStr_get() {
6860 PyObject *pyobj;
6861
6862 {
6863 #if wxUSE_UNICODE
6864 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6865 #else
6866 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6867 #endif
6868 }
6869 return pyobj;
6870 }
6871
6872
6873 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6874 PyObject *resultobj;
6875 wxTextAttr *result;
6876
6877 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6878 {
6879 PyThreadState* __tstate = wxPyBeginAllowThreads();
6880 result = (wxTextAttr *)new wxTextAttr();
6881
6882 wxPyEndAllowThreads(__tstate);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 }
6885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6886 return resultobj;
6887 fail:
6888 return NULL;
6889 }
6890
6891
6892 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6893 PyObject *resultobj;
6894 wxColour *arg1 = 0 ;
6895 wxColour const &arg2_defvalue = wxNullColour ;
6896 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6897 wxFont const &arg3_defvalue = wxNullFont ;
6898 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6899 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6900 wxTextAttr *result;
6901 wxColour temp1 ;
6902 wxColour temp2 ;
6903 PyObject * obj0 = 0 ;
6904 PyObject * obj1 = 0 ;
6905 PyObject * obj2 = 0 ;
6906 PyObject * obj3 = 0 ;
6907
6908 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6909 {
6910 arg1 = &temp1;
6911 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6912 }
6913 if (obj1) {
6914 {
6915 arg2 = &temp2;
6916 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6917 }
6918 }
6919 if (obj2) {
6920 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6921 SWIG_POINTER_EXCEPTION | 0)) == -1)
6922 SWIG_fail;
6923 if (arg3 == NULL) {
6924 PyErr_SetString(PyExc_TypeError,"null reference");
6925 SWIG_fail;
6926 }
6927 }
6928 if (obj3) {
6929 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 {
6933 PyThreadState* __tstate = wxPyBeginAllowThreads();
6934 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6935
6936 wxPyEndAllowThreads(__tstate);
6937 if (PyErr_Occurred()) SWIG_fail;
6938 }
6939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6940 return resultobj;
6941 fail:
6942 return NULL;
6943 }
6944
6945
6946 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6947 int argc;
6948 PyObject *argv[5];
6949 int ii;
6950
6951 argc = PyObject_Length(args);
6952 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6953 argv[ii] = PyTuple_GetItem(args,ii);
6954 }
6955 if (argc == 0) {
6956 return _wrap_new_TextAttr__SWIG_0(self,args);
6957 }
6958 if ((argc >= 1) && (argc <= 4)) {
6959 int _v;
6960 {
6961 _v = wxColour_typecheck(argv[0]);
6962 }
6963 if (_v) {
6964 if (argc <= 1) {
6965 return _wrap_new_TextAttr__SWIG_1(self,args);
6966 }
6967 {
6968 _v = wxColour_typecheck(argv[1]);
6969 }
6970 if (_v) {
6971 if (argc <= 2) {
6972 return _wrap_new_TextAttr__SWIG_1(self,args);
6973 }
6974 {
6975 void *ptr;
6976 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
6977 _v = 0;
6978 PyErr_Clear();
6979 } else {
6980 _v = 1;
6981 }
6982 }
6983 if (_v) {
6984 if (argc <= 3) {
6985 return _wrap_new_TextAttr__SWIG_1(self,args);
6986 }
6987 _v = SWIG_CheckInt(argv[3]);
6988 if (_v) {
6989 return _wrap_new_TextAttr__SWIG_1(self,args);
6990 }
6991 }
6992 }
6993 }
6994 }
6995
6996 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
6997 return NULL;
6998 }
6999
7000
7001 static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7002 PyObject *resultobj;
7003 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7004 PyObject * obj0 = 0 ;
7005 char *kwnames[] = {
7006 (char *) "self", NULL
7007 };
7008
7009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7012 {
7013 PyThreadState* __tstate = wxPyBeginAllowThreads();
7014 delete arg1;
7015
7016 wxPyEndAllowThreads(__tstate);
7017 if (PyErr_Occurred()) SWIG_fail;
7018 }
7019 Py_INCREF(Py_None); resultobj = Py_None;
7020 return resultobj;
7021 fail:
7022 return NULL;
7023 }
7024
7025
7026 static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
7027 PyObject *resultobj;
7028 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7029 PyObject * obj0 = 0 ;
7030 char *kwnames[] = {
7031 (char *) "self", NULL
7032 };
7033
7034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7037 {
7038 PyThreadState* __tstate = wxPyBeginAllowThreads();
7039 (arg1)->Init();
7040
7041 wxPyEndAllowThreads(__tstate);
7042 if (PyErr_Occurred()) SWIG_fail;
7043 }
7044 Py_INCREF(Py_None); resultobj = Py_None;
7045 return resultobj;
7046 fail:
7047 return NULL;
7048 }
7049
7050
7051 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7052 PyObject *resultobj;
7053 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7054 wxColour *arg2 = 0 ;
7055 wxColour temp2 ;
7056 PyObject * obj0 = 0 ;
7057 PyObject * obj1 = 0 ;
7058 char *kwnames[] = {
7059 (char *) "self",(char *) "colText", NULL
7060 };
7061
7062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7065 {
7066 arg2 = &temp2;
7067 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7068 }
7069 {
7070 PyThreadState* __tstate = wxPyBeginAllowThreads();
7071 (arg1)->SetTextColour((wxColour const &)*arg2);
7072
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 Py_INCREF(Py_None); resultobj = Py_None;
7077 return resultobj;
7078 fail:
7079 return NULL;
7080 }
7081
7082
7083 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7084 PyObject *resultobj;
7085 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7086 wxColour *arg2 = 0 ;
7087 wxColour temp2 ;
7088 PyObject * obj0 = 0 ;
7089 PyObject * obj1 = 0 ;
7090 char *kwnames[] = {
7091 (char *) "self",(char *) "colBack", NULL
7092 };
7093
7094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7097 {
7098 arg2 = &temp2;
7099 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7100 }
7101 {
7102 PyThreadState* __tstate = wxPyBeginAllowThreads();
7103 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7104
7105 wxPyEndAllowThreads(__tstate);
7106 if (PyErr_Occurred()) SWIG_fail;
7107 }
7108 Py_INCREF(Py_None); resultobj = Py_None;
7109 return resultobj;
7110 fail:
7111 return NULL;
7112 }
7113
7114
7115 static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7116 PyObject *resultobj;
7117 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7118 wxFont *arg2 = 0 ;
7119 long arg3 = (long) wxTEXT_ATTR_FONT ;
7120 PyObject * obj0 = 0 ;
7121 PyObject * obj1 = 0 ;
7122 PyObject * obj2 = 0 ;
7123 char *kwnames[] = {
7124 (char *) "self",(char *) "font",(char *) "flags", NULL
7125 };
7126
7127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7130 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7131 SWIG_POINTER_EXCEPTION | 0)) == -1)
7132 SWIG_fail;
7133 if (arg2 == NULL) {
7134 PyErr_SetString(PyExc_TypeError,"null reference");
7135 SWIG_fail;
7136 }
7137 if (obj2) {
7138 arg3 = (long) SWIG_AsLong(obj2);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 {
7142 PyThreadState* __tstate = wxPyBeginAllowThreads();
7143 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7144
7145 wxPyEndAllowThreads(__tstate);
7146 if (PyErr_Occurred()) SWIG_fail;
7147 }
7148 Py_INCREF(Py_None); resultobj = Py_None;
7149 return resultobj;
7150 fail:
7151 return NULL;
7152 }
7153
7154
7155 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7156 PyObject *resultobj;
7157 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7158 int arg2 ;
7159 PyObject * obj0 = 0 ;
7160 PyObject * obj1 = 0 ;
7161 char *kwnames[] = {
7162 (char *) "self",(char *) "alignment", NULL
7163 };
7164
7165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7168 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 {
7171 PyThreadState* __tstate = wxPyBeginAllowThreads();
7172 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7173
7174 wxPyEndAllowThreads(__tstate);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 Py_INCREF(Py_None); resultobj = Py_None;
7178 return resultobj;
7179 fail:
7180 return NULL;
7181 }
7182
7183
7184 static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7185 PyObject *resultobj;
7186 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7187 wxArrayInt *arg2 = 0 ;
7188 bool temp2 = False ;
7189 PyObject * obj0 = 0 ;
7190 PyObject * obj1 = 0 ;
7191 char *kwnames[] = {
7192 (char *) "self",(char *) "tabs", NULL
7193 };
7194
7195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7198 {
7199 if (! PySequence_Check(obj1)) {
7200 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7201 SWIG_fail;
7202 }
7203 arg2 = new wxArrayInt;
7204 temp2 = True;
7205 int i, len=PySequence_Length(obj1);
7206 for (i=0; i<len; i++) {
7207 PyObject* item = PySequence_GetItem(obj1, i);
7208 PyObject* number = PyNumber_Int(item);
7209 arg2->Add(PyInt_AS_LONG(number));
7210 Py_DECREF(item);
7211 Py_DECREF(number);
7212 }
7213 }
7214 {
7215 PyThreadState* __tstate = wxPyBeginAllowThreads();
7216 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7217
7218 wxPyEndAllowThreads(__tstate);
7219 if (PyErr_Occurred()) SWIG_fail;
7220 }
7221 Py_INCREF(Py_None); resultobj = Py_None;
7222 {
7223 if (temp2) delete arg2;
7224 }
7225 return resultobj;
7226 fail:
7227 {
7228 if (temp2) delete arg2;
7229 }
7230 return NULL;
7231 }
7232
7233
7234 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7235 PyObject *resultobj;
7236 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7237 int arg2 ;
7238 int arg3 = (int) 0 ;
7239 PyObject * obj0 = 0 ;
7240 PyObject * obj1 = 0 ;
7241 PyObject * obj2 = 0 ;
7242 char *kwnames[] = {
7243 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7244 };
7245
7246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7249 arg2 = (int) SWIG_AsInt(obj1);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 if (obj2) {
7252 arg3 = (int) SWIG_AsInt(obj2);
7253 if (PyErr_Occurred()) SWIG_fail;
7254 }
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 (arg1)->SetLeftIndent(arg2,arg3);
7258
7259 wxPyEndAllowThreads(__tstate);
7260 if (PyErr_Occurred()) SWIG_fail;
7261 }
7262 Py_INCREF(Py_None); resultobj = Py_None;
7263 return resultobj;
7264 fail:
7265 return NULL;
7266 }
7267
7268
7269 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7270 PyObject *resultobj;
7271 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7272 int arg2 ;
7273 PyObject * obj0 = 0 ;
7274 PyObject * obj1 = 0 ;
7275 char *kwnames[] = {
7276 (char *) "self",(char *) "indent", NULL
7277 };
7278
7279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7282 arg2 = (int) SWIG_AsInt(obj1);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 {
7285 PyThreadState* __tstate = wxPyBeginAllowThreads();
7286 (arg1)->SetRightIndent(arg2);
7287
7288 wxPyEndAllowThreads(__tstate);
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
7291 Py_INCREF(Py_None); resultobj = Py_None;
7292 return resultobj;
7293 fail:
7294 return NULL;
7295 }
7296
7297
7298 static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7299 PyObject *resultobj;
7300 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7301 long arg2 ;
7302 PyObject * obj0 = 0 ;
7303 PyObject * obj1 = 0 ;
7304 char *kwnames[] = {
7305 (char *) "self",(char *) "flags", NULL
7306 };
7307
7308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7311 arg2 = (long) SWIG_AsLong(obj1);
7312 if (PyErr_Occurred()) SWIG_fail;
7313 {
7314 PyThreadState* __tstate = wxPyBeginAllowThreads();
7315 (arg1)->SetFlags(arg2);
7316
7317 wxPyEndAllowThreads(__tstate);
7318 if (PyErr_Occurred()) SWIG_fail;
7319 }
7320 Py_INCREF(Py_None); resultobj = Py_None;
7321 return resultobj;
7322 fail:
7323 return NULL;
7324 }
7325
7326
7327 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7328 PyObject *resultobj;
7329 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7330 bool result;
7331 PyObject * obj0 = 0 ;
7332 char *kwnames[] = {
7333 (char *) "self", NULL
7334 };
7335
7336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7339 {
7340 PyThreadState* __tstate = wxPyBeginAllowThreads();
7341 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7342
7343 wxPyEndAllowThreads(__tstate);
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 {
7347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7348 }
7349 return resultobj;
7350 fail:
7351 return NULL;
7352 }
7353
7354
7355 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7356 PyObject *resultobj;
7357 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7358 bool result;
7359 PyObject * obj0 = 0 ;
7360 char *kwnames[] = {
7361 (char *) "self", NULL
7362 };
7363
7364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 {
7375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7376 }
7377 return resultobj;
7378 fail:
7379 return NULL;
7380 }
7381
7382
7383 static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7384 PyObject *resultobj;
7385 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7386 bool result;
7387 PyObject * obj0 = 0 ;
7388 char *kwnames[] = {
7389 (char *) "self", NULL
7390 };
7391
7392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7395 {
7396 PyThreadState* __tstate = wxPyBeginAllowThreads();
7397 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7398
7399 wxPyEndAllowThreads(__tstate);
7400 if (PyErr_Occurred()) SWIG_fail;
7401 }
7402 {
7403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7404 }
7405 return resultobj;
7406 fail:
7407 return NULL;
7408 }
7409
7410
7411 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7412 PyObject *resultobj;
7413 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7414 bool result;
7415 PyObject * obj0 = 0 ;
7416 char *kwnames[] = {
7417 (char *) "self", NULL
7418 };
7419
7420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7423 {
7424 PyThreadState* __tstate = wxPyBeginAllowThreads();
7425 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7426
7427 wxPyEndAllowThreads(__tstate);
7428 if (PyErr_Occurred()) SWIG_fail;
7429 }
7430 {
7431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7432 }
7433 return resultobj;
7434 fail:
7435 return NULL;
7436 }
7437
7438
7439 static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7440 PyObject *resultobj;
7441 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7442 bool result;
7443 PyObject * obj0 = 0 ;
7444 char *kwnames[] = {
7445 (char *) "self", NULL
7446 };
7447
7448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7451 {
7452 PyThreadState* __tstate = wxPyBeginAllowThreads();
7453 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7454
7455 wxPyEndAllowThreads(__tstate);
7456 if (PyErr_Occurred()) SWIG_fail;
7457 }
7458 {
7459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7460 }
7461 return resultobj;
7462 fail:
7463 return NULL;
7464 }
7465
7466
7467 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7468 PyObject *resultobj;
7469 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7470 bool result;
7471 PyObject * obj0 = 0 ;
7472 char *kwnames[] = {
7473 (char *) "self", NULL
7474 };
7475
7476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7479 {
7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
7481 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7482
7483 wxPyEndAllowThreads(__tstate);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 {
7487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7488 }
7489 return resultobj;
7490 fail:
7491 return NULL;
7492 }
7493
7494
7495 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7496 PyObject *resultobj;
7497 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7498 bool result;
7499 PyObject * obj0 = 0 ;
7500 char *kwnames[] = {
7501 (char *) "self", NULL
7502 };
7503
7504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7507 {
7508 PyThreadState* __tstate = wxPyBeginAllowThreads();
7509 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7510
7511 wxPyEndAllowThreads(__tstate);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 {
7515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7516 }
7517 return resultobj;
7518 fail:
7519 return NULL;
7520 }
7521
7522
7523 static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
7524 PyObject *resultobj;
7525 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7526 long arg2 ;
7527 bool result;
7528 PyObject * obj0 = 0 ;
7529 PyObject * obj1 = 0 ;
7530 char *kwnames[] = {
7531 (char *) "self",(char *) "flag", NULL
7532 };
7533
7534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7537 arg2 = (long) SWIG_AsLong(obj1);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 {
7540 PyThreadState* __tstate = wxPyBeginAllowThreads();
7541 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7542
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 {
7547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7548 }
7549 return resultobj;
7550 fail:
7551 return NULL;
7552 }
7553
7554
7555 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7556 PyObject *resultobj;
7557 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7558 wxColour *result;
7559 PyObject * obj0 = 0 ;
7560 char *kwnames[] = {
7561 (char *) "self", NULL
7562 };
7563
7564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7567 {
7568 PyThreadState* __tstate = wxPyBeginAllowThreads();
7569 {
7570 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7571 result = (wxColour *) &_result_ref;
7572 }
7573
7574 wxPyEndAllowThreads(__tstate);
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7578 return resultobj;
7579 fail:
7580 return NULL;
7581 }
7582
7583
7584 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7585 PyObject *resultobj;
7586 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7587 wxColour *result;
7588 PyObject * obj0 = 0 ;
7589 char *kwnames[] = {
7590 (char *) "self", NULL
7591 };
7592
7593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7596 {
7597 PyThreadState* __tstate = wxPyBeginAllowThreads();
7598 {
7599 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7600 result = (wxColour *) &_result_ref;
7601 }
7602
7603 wxPyEndAllowThreads(__tstate);
7604 if (PyErr_Occurred()) SWIG_fail;
7605 }
7606 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7607 return resultobj;
7608 fail:
7609 return NULL;
7610 }
7611
7612
7613 static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7614 PyObject *resultobj;
7615 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7616 wxFont *result;
7617 PyObject * obj0 = 0 ;
7618 char *kwnames[] = {
7619 (char *) "self", NULL
7620 };
7621
7622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7625 {
7626 PyThreadState* __tstate = wxPyBeginAllowThreads();
7627 {
7628 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7629 result = (wxFont *) &_result_ref;
7630 }
7631
7632 wxPyEndAllowThreads(__tstate);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 {
7636 wxFont* resultptr = new wxFont(*result);
7637 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7638 }
7639 return resultobj;
7640 fail:
7641 return NULL;
7642 }
7643
7644
7645 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7646 PyObject *resultobj;
7647 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7648 int result;
7649 PyObject * obj0 = 0 ;
7650 char *kwnames[] = {
7651 (char *) "self", NULL
7652 };
7653
7654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7657 {
7658 PyThreadState* __tstate = wxPyBeginAllowThreads();
7659 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7660
7661 wxPyEndAllowThreads(__tstate);
7662 if (PyErr_Occurred()) SWIG_fail;
7663 }
7664 resultobj = SWIG_FromInt((int)result);
7665 return resultobj;
7666 fail:
7667 return NULL;
7668 }
7669
7670
7671 static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7672 PyObject *resultobj;
7673 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7674 wxArrayInt *result;
7675 PyObject * obj0 = 0 ;
7676 char *kwnames[] = {
7677 (char *) "self", NULL
7678 };
7679
7680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7683 {
7684 PyThreadState* __tstate = wxPyBeginAllowThreads();
7685 {
7686 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7687 result = (wxArrayInt *) &_result_ref;
7688 }
7689
7690 wxPyEndAllowThreads(__tstate);
7691 if (PyErr_Occurred()) SWIG_fail;
7692 }
7693 {
7694 resultobj = PyList_New(0);
7695 size_t idx;
7696 for (idx = 0; idx < result->GetCount(); idx += 1) {
7697 PyObject* val = PyInt_FromLong( result->Item(idx) );
7698 PyList_Append(resultobj, val);
7699 Py_DECREF(val);
7700 }
7701 }
7702 return resultobj;
7703 fail:
7704 return NULL;
7705 }
7706
7707
7708 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7709 PyObject *resultobj;
7710 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7711 long result;
7712 PyObject * obj0 = 0 ;
7713 char *kwnames[] = {
7714 (char *) "self", NULL
7715 };
7716
7717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7720 {
7721 PyThreadState* __tstate = wxPyBeginAllowThreads();
7722 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7723
7724 wxPyEndAllowThreads(__tstate);
7725 if (PyErr_Occurred()) SWIG_fail;
7726 }
7727 resultobj = SWIG_FromLong((long)result);
7728 return resultobj;
7729 fail:
7730 return NULL;
7731 }
7732
7733
7734 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7735 PyObject *resultobj;
7736 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7737 long result;
7738 PyObject * obj0 = 0 ;
7739 char *kwnames[] = {
7740 (char *) "self", NULL
7741 };
7742
7743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
7744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7746 {
7747 PyThreadState* __tstate = wxPyBeginAllowThreads();
7748 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
7749
7750 wxPyEndAllowThreads(__tstate);
7751 if (PyErr_Occurred()) SWIG_fail;
7752 }
7753 resultobj = SWIG_FromLong((long)result);
7754 return resultobj;
7755 fail:
7756 return NULL;
7757 }
7758
7759
7760 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7761 PyObject *resultobj;
7762 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7763 long result;
7764 PyObject * obj0 = 0 ;
7765 char *kwnames[] = {
7766 (char *) "self", NULL
7767 };
7768
7769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7772 {
7773 PyThreadState* __tstate = wxPyBeginAllowThreads();
7774 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7775
7776 wxPyEndAllowThreads(__tstate);
7777 if (PyErr_Occurred()) SWIG_fail;
7778 }
7779 resultobj = SWIG_FromLong((long)result);
7780 return resultobj;
7781 fail:
7782 return NULL;
7783 }
7784
7785
7786 static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7787 PyObject *resultobj;
7788 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7789 long result;
7790 PyObject * obj0 = 0 ;
7791 char *kwnames[] = {
7792 (char *) "self", NULL
7793 };
7794
7795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7798 {
7799 PyThreadState* __tstate = wxPyBeginAllowThreads();
7800 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7801
7802 wxPyEndAllowThreads(__tstate);
7803 if (PyErr_Occurred()) SWIG_fail;
7804 }
7805 resultobj = SWIG_FromLong((long)result);
7806 return resultobj;
7807 fail:
7808 return NULL;
7809 }
7810
7811
7812 static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7813 PyObject *resultobj;
7814 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7815 bool result;
7816 PyObject * obj0 = 0 ;
7817 char *kwnames[] = {
7818 (char *) "self", NULL
7819 };
7820
7821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7824 {
7825 PyThreadState* __tstate = wxPyBeginAllowThreads();
7826 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7827
7828 wxPyEndAllowThreads(__tstate);
7829 if (PyErr_Occurred()) SWIG_fail;
7830 }
7831 {
7832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7833 }
7834 return resultobj;
7835 fail:
7836 return NULL;
7837 }
7838
7839
7840 static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7841 PyObject *resultobj;
7842 wxTextAttr *arg1 = 0 ;
7843 wxTextAttr *arg2 = 0 ;
7844 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7845 wxTextAttr result;
7846 PyObject * obj0 = 0 ;
7847 PyObject * obj1 = 0 ;
7848 PyObject * obj2 = 0 ;
7849 char *kwnames[] = {
7850 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7851 };
7852
7853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7855 SWIG_POINTER_EXCEPTION | 0)) == -1)
7856 SWIG_fail;
7857 if (arg1 == NULL) {
7858 PyErr_SetString(PyExc_TypeError,"null reference");
7859 SWIG_fail;
7860 }
7861 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7862 SWIG_POINTER_EXCEPTION | 0)) == -1)
7863 SWIG_fail;
7864 if (arg2 == NULL) {
7865 PyErr_SetString(PyExc_TypeError,"null reference");
7866 SWIG_fail;
7867 }
7868 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7870 {
7871 PyThreadState* __tstate = wxPyBeginAllowThreads();
7872 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7873
7874 wxPyEndAllowThreads(__tstate);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 {
7878 wxTextAttr * resultptr;
7879 resultptr = new wxTextAttr((wxTextAttr &) result);
7880 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7881 }
7882 return resultobj;
7883 fail:
7884 return NULL;
7885 }
7886
7887
7888 static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7889 PyObject *obj;
7890 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7891 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7892 Py_INCREF(obj);
7893 return Py_BuildValue((char *)"");
7894 }
7895 static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj;
7897 wxWindow *arg1 = (wxWindow *) 0 ;
7898 int arg2 ;
7899 wxString const &arg3_defvalue = wxPyEmptyString ;
7900 wxString *arg3 = (wxString *) &arg3_defvalue ;
7901 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7902 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7903 wxSize const &arg5_defvalue = wxDefaultSize ;
7904 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7905 long arg6 = (long) 0 ;
7906 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7907 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7908 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7909 wxString *arg8 = (wxString *) &arg8_defvalue ;
7910 wxTextCtrl *result;
7911 bool temp3 = False ;
7912 wxPoint temp4 ;
7913 wxSize temp5 ;
7914 bool temp8 = False ;
7915 PyObject * obj0 = 0 ;
7916 PyObject * obj1 = 0 ;
7917 PyObject * obj2 = 0 ;
7918 PyObject * obj3 = 0 ;
7919 PyObject * obj4 = 0 ;
7920 PyObject * obj5 = 0 ;
7921 PyObject * obj6 = 0 ;
7922 PyObject * obj7 = 0 ;
7923 char *kwnames[] = {
7924 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7925 };
7926
7927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7930 arg2 = (int) SWIG_AsInt(obj1);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 if (obj2) {
7933 {
7934 arg3 = wxString_in_helper(obj2);
7935 if (arg3 == NULL) SWIG_fail;
7936 temp3 = True;
7937 }
7938 }
7939 if (obj3) {
7940 {
7941 arg4 = &temp4;
7942 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7943 }
7944 }
7945 if (obj4) {
7946 {
7947 arg5 = &temp5;
7948 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7949 }
7950 }
7951 if (obj5) {
7952 arg6 = (long) SWIG_AsLong(obj5);
7953 if (PyErr_Occurred()) SWIG_fail;
7954 }
7955 if (obj6) {
7956 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7957 SWIG_POINTER_EXCEPTION | 0)) == -1)
7958 SWIG_fail;
7959 if (arg7 == NULL) {
7960 PyErr_SetString(PyExc_TypeError,"null reference");
7961 SWIG_fail;
7962 }
7963 }
7964 if (obj7) {
7965 {
7966 arg8 = wxString_in_helper(obj7);
7967 if (arg8 == NULL) SWIG_fail;
7968 temp8 = True;
7969 }
7970 }
7971 {
7972 PyThreadState* __tstate = wxPyBeginAllowThreads();
7973 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7974
7975 wxPyEndAllowThreads(__tstate);
7976 if (PyErr_Occurred()) SWIG_fail;
7977 }
7978 {
7979 resultobj = wxPyMake_wxObject(result);
7980 }
7981 {
7982 if (temp3)
7983 delete arg3;
7984 }
7985 {
7986 if (temp8)
7987 delete arg8;
7988 }
7989 return resultobj;
7990 fail:
7991 {
7992 if (temp3)
7993 delete arg3;
7994 }
7995 {
7996 if (temp8)
7997 delete arg8;
7998 }
7999 return NULL;
8000 }
8001
8002
8003 static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
8004 PyObject *resultobj;
8005 wxTextCtrl *result;
8006 char *kwnames[] = {
8007 NULL
8008 };
8009
8010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8011 {
8012 PyThreadState* __tstate = wxPyBeginAllowThreads();
8013 result = (wxTextCtrl *)new wxTextCtrl();
8014
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 {
8019 resultobj = wxPyMake_wxObject(result);
8020 }
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8028 PyObject *resultobj;
8029 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8030 wxWindow *arg2 = (wxWindow *) 0 ;
8031 int arg3 ;
8032 wxString const &arg4_defvalue = wxPyEmptyString ;
8033 wxString *arg4 = (wxString *) &arg4_defvalue ;
8034 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8035 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8036 wxSize const &arg6_defvalue = wxDefaultSize ;
8037 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8038 long arg7 = (long) 0 ;
8039 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8040 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8041 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8042 wxString *arg9 = (wxString *) &arg9_defvalue ;
8043 bool result;
8044 bool temp4 = False ;
8045 wxPoint temp5 ;
8046 wxSize temp6 ;
8047 bool temp9 = False ;
8048 PyObject * obj0 = 0 ;
8049 PyObject * obj1 = 0 ;
8050 PyObject * obj2 = 0 ;
8051 PyObject * obj3 = 0 ;
8052 PyObject * obj4 = 0 ;
8053 PyObject * obj5 = 0 ;
8054 PyObject * obj6 = 0 ;
8055 PyObject * obj7 = 0 ;
8056 PyObject * obj8 = 0 ;
8057 char *kwnames[] = {
8058 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8064 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8066 arg3 = (int) SWIG_AsInt(obj2);
8067 if (PyErr_Occurred()) SWIG_fail;
8068 if (obj3) {
8069 {
8070 arg4 = wxString_in_helper(obj3);
8071 if (arg4 == NULL) SWIG_fail;
8072 temp4 = True;
8073 }
8074 }
8075 if (obj4) {
8076 {
8077 arg5 = &temp5;
8078 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8079 }
8080 }
8081 if (obj5) {
8082 {
8083 arg6 = &temp6;
8084 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8085 }
8086 }
8087 if (obj6) {
8088 arg7 = (long) SWIG_AsLong(obj6);
8089 if (PyErr_Occurred()) SWIG_fail;
8090 }
8091 if (obj7) {
8092 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8093 SWIG_POINTER_EXCEPTION | 0)) == -1)
8094 SWIG_fail;
8095 if (arg8 == NULL) {
8096 PyErr_SetString(PyExc_TypeError,"null reference");
8097 SWIG_fail;
8098 }
8099 }
8100 if (obj8) {
8101 {
8102 arg9 = wxString_in_helper(obj8);
8103 if (arg9 == NULL) SWIG_fail;
8104 temp9 = True;
8105 }
8106 }
8107 {
8108 PyThreadState* __tstate = wxPyBeginAllowThreads();
8109 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8110
8111 wxPyEndAllowThreads(__tstate);
8112 if (PyErr_Occurred()) SWIG_fail;
8113 }
8114 {
8115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8116 }
8117 {
8118 if (temp4)
8119 delete arg4;
8120 }
8121 {
8122 if (temp9)
8123 delete arg9;
8124 }
8125 return resultobj;
8126 fail:
8127 {
8128 if (temp4)
8129 delete arg4;
8130 }
8131 {
8132 if (temp9)
8133 delete arg9;
8134 }
8135 return NULL;
8136 }
8137
8138
8139 static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8140 PyObject *resultobj;
8141 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8142 wxString result;
8143 PyObject * obj0 = 0 ;
8144 char *kwnames[] = {
8145 (char *) "self", NULL
8146 };
8147
8148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8151 {
8152 PyThreadState* __tstate = wxPyBeginAllowThreads();
8153 result = ((wxTextCtrl const *)arg1)->GetValue();
8154
8155 wxPyEndAllowThreads(__tstate);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 {
8159 #if wxUSE_UNICODE
8160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8161 #else
8162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8163 #endif
8164 }
8165 return resultobj;
8166 fail:
8167 return NULL;
8168 }
8169
8170
8171 static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8172 PyObject *resultobj;
8173 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8174 wxString *arg2 = 0 ;
8175 bool temp2 = False ;
8176 PyObject * obj0 = 0 ;
8177 PyObject * obj1 = 0 ;
8178 char *kwnames[] = {
8179 (char *) "self",(char *) "value", NULL
8180 };
8181
8182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8185 {
8186 arg2 = wxString_in_helper(obj1);
8187 if (arg2 == NULL) SWIG_fail;
8188 temp2 = True;
8189 }
8190 {
8191 PyThreadState* __tstate = wxPyBeginAllowThreads();
8192 (arg1)->SetValue((wxString const &)*arg2);
8193
8194 wxPyEndAllowThreads(__tstate);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 Py_INCREF(Py_None); resultobj = Py_None;
8198 {
8199 if (temp2)
8200 delete arg2;
8201 }
8202 return resultobj;
8203 fail:
8204 {
8205 if (temp2)
8206 delete arg2;
8207 }
8208 return NULL;
8209 }
8210
8211
8212 static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8213 PyObject *resultobj;
8214 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8215 long arg2 ;
8216 long arg3 ;
8217 wxString result;
8218 PyObject * obj0 = 0 ;
8219 PyObject * obj1 = 0 ;
8220 PyObject * obj2 = 0 ;
8221 char *kwnames[] = {
8222 (char *) "self",(char *) "from",(char *) "to", NULL
8223 };
8224
8225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8228 arg2 = (long) SWIG_AsLong(obj1);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 arg3 = (long) SWIG_AsLong(obj2);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 {
8233 PyThreadState* __tstate = wxPyBeginAllowThreads();
8234 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8235
8236 wxPyEndAllowThreads(__tstate);
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 {
8240 #if wxUSE_UNICODE
8241 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8242 #else
8243 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8244 #endif
8245 }
8246 return resultobj;
8247 fail:
8248 return NULL;
8249 }
8250
8251
8252 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8253 PyObject *resultobj;
8254 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8255 long arg2 ;
8256 int result;
8257 PyObject * obj0 = 0 ;
8258 PyObject * obj1 = 0 ;
8259 char *kwnames[] = {
8260 (char *) "self",(char *) "lineNo", NULL
8261 };
8262
8263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8266 arg2 = (long) SWIG_AsLong(obj1);
8267 if (PyErr_Occurred()) SWIG_fail;
8268 {
8269 PyThreadState* __tstate = wxPyBeginAllowThreads();
8270 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8271
8272 wxPyEndAllowThreads(__tstate);
8273 if (PyErr_Occurred()) SWIG_fail;
8274 }
8275 resultobj = SWIG_FromInt((int)result);
8276 return resultobj;
8277 fail:
8278 return NULL;
8279 }
8280
8281
8282 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
8283 PyObject *resultobj;
8284 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8285 long arg2 ;
8286 wxString result;
8287 PyObject * obj0 = 0 ;
8288 PyObject * obj1 = 0 ;
8289 char *kwnames[] = {
8290 (char *) "self",(char *) "lineNo", NULL
8291 };
8292
8293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8296 arg2 = (long) SWIG_AsLong(obj1);
8297 if (PyErr_Occurred()) SWIG_fail;
8298 {
8299 PyThreadState* __tstate = wxPyBeginAllowThreads();
8300 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8301
8302 wxPyEndAllowThreads(__tstate);
8303 if (PyErr_Occurred()) SWIG_fail;
8304 }
8305 {
8306 #if wxUSE_UNICODE
8307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8308 #else
8309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8310 #endif
8311 }
8312 return resultobj;
8313 fail:
8314 return NULL;
8315 }
8316
8317
8318 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
8319 PyObject *resultobj;
8320 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8321 int result;
8322 PyObject * obj0 = 0 ;
8323 char *kwnames[] = {
8324 (char *) "self", NULL
8325 };
8326
8327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8330 {
8331 PyThreadState* __tstate = wxPyBeginAllowThreads();
8332 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8333
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 resultobj = SWIG_FromInt((int)result);
8338 return resultobj;
8339 fail:
8340 return NULL;
8341 }
8342
8343
8344 static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
8345 PyObject *resultobj;
8346 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8347 bool result;
8348 PyObject * obj0 = 0 ;
8349 char *kwnames[] = {
8350 (char *) "self", NULL
8351 };
8352
8353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8356 {
8357 PyThreadState* __tstate = wxPyBeginAllowThreads();
8358 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8359
8360 wxPyEndAllowThreads(__tstate);
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 {
8364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8365 }
8366 return resultobj;
8367 fail:
8368 return NULL;
8369 }
8370
8371
8372 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8373 PyObject *resultobj;
8374 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8375 bool result;
8376 PyObject * obj0 = 0 ;
8377 char *kwnames[] = {
8378 (char *) "self", NULL
8379 };
8380
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8384 {
8385 PyThreadState* __tstate = wxPyBeginAllowThreads();
8386 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8387
8388 wxPyEndAllowThreads(__tstate);
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 {
8392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8393 }
8394 return resultobj;
8395 fail:
8396 return NULL;
8397 }
8398
8399
8400 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8401 PyObject *resultobj;
8402 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8403 bool result;
8404 PyObject * obj0 = 0 ;
8405 char *kwnames[] = {
8406 (char *) "self", NULL
8407 };
8408
8409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8412 {
8413 PyThreadState* __tstate = wxPyBeginAllowThreads();
8414 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8415
8416 wxPyEndAllowThreads(__tstate);
8417 if (PyErr_Occurred()) SWIG_fail;
8418 }
8419 {
8420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8421 }
8422 return resultobj;
8423 fail:
8424 return NULL;
8425 }
8426
8427
8428 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8429 PyObject *resultobj;
8430 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8431 bool result;
8432 PyObject * obj0 = 0 ;
8433 char *kwnames[] = {
8434 (char *) "self", NULL
8435 };
8436
8437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8440 {
8441 PyThreadState* __tstate = wxPyBeginAllowThreads();
8442 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8443
8444 wxPyEndAllowThreads(__tstate);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 {
8448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8449 }
8450 return resultobj;
8451 fail:
8452 return NULL;
8453 }
8454
8455
8456 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8457 PyObject *resultobj;
8458 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8459 long *arg2 = (long *) 0 ;
8460 long *arg3 = (long *) 0 ;
8461 long temp2 ;
8462 long temp3 ;
8463 PyObject * obj0 = 0 ;
8464 char *kwnames[] = {
8465 (char *) "self", NULL
8466 };
8467
8468 arg2 = &temp2;
8469 arg3 = &temp3;
8470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8473 {
8474 PyThreadState* __tstate = wxPyBeginAllowThreads();
8475 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8476
8477 wxPyEndAllowThreads(__tstate);
8478 if (PyErr_Occurred()) SWIG_fail;
8479 }
8480 Py_INCREF(Py_None); resultobj = Py_None;
8481 {
8482 PyObject *o = PyInt_FromLong((long) (*arg2));
8483 resultobj = t_output_helper(resultobj,o);
8484 }
8485 {
8486 PyObject *o = PyInt_FromLong((long) (*arg3));
8487 resultobj = t_output_helper(resultobj,o);
8488 }
8489 return resultobj;
8490 fail:
8491 return NULL;
8492 }
8493
8494
8495 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8496 PyObject *resultobj;
8497 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8498 wxString result;
8499 PyObject * obj0 = 0 ;
8500 char *kwnames[] = {
8501 (char *) "self", NULL
8502 };
8503
8504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8507 {
8508 PyThreadState* __tstate = wxPyBeginAllowThreads();
8509 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8510
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 {
8515 #if wxUSE_UNICODE
8516 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8517 #else
8518 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8519 #endif
8520 }
8521 return resultobj;
8522 fail:
8523 return NULL;
8524 }
8525
8526
8527 static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8528 PyObject *resultobj;
8529 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8530 PyObject * obj0 = 0 ;
8531 char *kwnames[] = {
8532 (char *) "self", NULL
8533 };
8534
8535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8538 {
8539 PyThreadState* __tstate = wxPyBeginAllowThreads();
8540 (arg1)->Clear();
8541
8542 wxPyEndAllowThreads(__tstate);
8543 if (PyErr_Occurred()) SWIG_fail;
8544 }
8545 Py_INCREF(Py_None); resultobj = Py_None;
8546 return resultobj;
8547 fail:
8548 return NULL;
8549 }
8550
8551
8552 static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8553 PyObject *resultobj;
8554 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8555 long arg2 ;
8556 long arg3 ;
8557 wxString *arg4 = 0 ;
8558 bool temp4 = False ;
8559 PyObject * obj0 = 0 ;
8560 PyObject * obj1 = 0 ;
8561 PyObject * obj2 = 0 ;
8562 PyObject * obj3 = 0 ;
8563 char *kwnames[] = {
8564 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8565 };
8566
8567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8570 arg2 = (long) SWIG_AsLong(obj1);
8571 if (PyErr_Occurred()) SWIG_fail;
8572 arg3 = (long) SWIG_AsLong(obj2);
8573 if (PyErr_Occurred()) SWIG_fail;
8574 {
8575 arg4 = wxString_in_helper(obj3);
8576 if (arg4 == NULL) SWIG_fail;
8577 temp4 = True;
8578 }
8579 {
8580 PyThreadState* __tstate = wxPyBeginAllowThreads();
8581 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8582
8583 wxPyEndAllowThreads(__tstate);
8584 if (PyErr_Occurred()) SWIG_fail;
8585 }
8586 Py_INCREF(Py_None); resultobj = Py_None;
8587 {
8588 if (temp4)
8589 delete arg4;
8590 }
8591 return resultobj;
8592 fail:
8593 {
8594 if (temp4)
8595 delete arg4;
8596 }
8597 return NULL;
8598 }
8599
8600
8601 static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8602 PyObject *resultobj;
8603 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8604 long arg2 ;
8605 long arg3 ;
8606 PyObject * obj0 = 0 ;
8607 PyObject * obj1 = 0 ;
8608 PyObject * obj2 = 0 ;
8609 char *kwnames[] = {
8610 (char *) "self",(char *) "from",(char *) "to", NULL
8611 };
8612
8613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8616 arg2 = (long) SWIG_AsLong(obj1);
8617 if (PyErr_Occurred()) SWIG_fail;
8618 arg3 = (long) SWIG_AsLong(obj2);
8619 if (PyErr_Occurred()) SWIG_fail;
8620 {
8621 PyThreadState* __tstate = wxPyBeginAllowThreads();
8622 (arg1)->Remove(arg2,arg3);
8623
8624 wxPyEndAllowThreads(__tstate);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 }
8627 Py_INCREF(Py_None); resultobj = Py_None;
8628 return resultobj;
8629 fail:
8630 return NULL;
8631 }
8632
8633
8634 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8635 PyObject *resultobj;
8636 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8637 wxString *arg2 = 0 ;
8638 bool result;
8639 bool temp2 = False ;
8640 PyObject * obj0 = 0 ;
8641 PyObject * obj1 = 0 ;
8642 char *kwnames[] = {
8643 (char *) "self",(char *) "file", NULL
8644 };
8645
8646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8649 {
8650 arg2 = wxString_in_helper(obj1);
8651 if (arg2 == NULL) SWIG_fail;
8652 temp2 = True;
8653 }
8654 {
8655 PyThreadState* __tstate = wxPyBeginAllowThreads();
8656 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8657
8658 wxPyEndAllowThreads(__tstate);
8659 if (PyErr_Occurred()) SWIG_fail;
8660 }
8661 {
8662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8663 }
8664 {
8665 if (temp2)
8666 delete arg2;
8667 }
8668 return resultobj;
8669 fail:
8670 {
8671 if (temp2)
8672 delete arg2;
8673 }
8674 return NULL;
8675 }
8676
8677
8678 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8679 PyObject *resultobj;
8680 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8681 wxString const &arg2_defvalue = wxPyEmptyString ;
8682 wxString *arg2 = (wxString *) &arg2_defvalue ;
8683 bool result;
8684 bool temp2 = False ;
8685 PyObject * obj0 = 0 ;
8686 PyObject * obj1 = 0 ;
8687 char *kwnames[] = {
8688 (char *) "self",(char *) "file", NULL
8689 };
8690
8691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8694 if (obj1) {
8695 {
8696 arg2 = wxString_in_helper(obj1);
8697 if (arg2 == NULL) SWIG_fail;
8698 temp2 = True;
8699 }
8700 }
8701 {
8702 PyThreadState* __tstate = wxPyBeginAllowThreads();
8703 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8704
8705 wxPyEndAllowThreads(__tstate);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 {
8709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8710 }
8711 {
8712 if (temp2)
8713 delete arg2;
8714 }
8715 return resultobj;
8716 fail:
8717 {
8718 if (temp2)
8719 delete arg2;
8720 }
8721 return NULL;
8722 }
8723
8724
8725 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8726 PyObject *resultobj;
8727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8728 PyObject * obj0 = 0 ;
8729 char *kwnames[] = {
8730 (char *) "self", NULL
8731 };
8732
8733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8736 {
8737 PyThreadState* __tstate = wxPyBeginAllowThreads();
8738 (arg1)->MarkDirty();
8739
8740 wxPyEndAllowThreads(__tstate);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 Py_INCREF(Py_None); resultobj = Py_None;
8744 return resultobj;
8745 fail:
8746 return NULL;
8747 }
8748
8749
8750 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8751 PyObject *resultobj;
8752 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8753 PyObject * obj0 = 0 ;
8754 char *kwnames[] = {
8755 (char *) "self", NULL
8756 };
8757
8758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8761 {
8762 PyThreadState* __tstate = wxPyBeginAllowThreads();
8763 (arg1)->DiscardEdits();
8764
8765 wxPyEndAllowThreads(__tstate);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
8768 Py_INCREF(Py_None); resultobj = Py_None;
8769 return resultobj;
8770 fail:
8771 return NULL;
8772 }
8773
8774
8775 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8776 PyObject *resultobj;
8777 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8778 unsigned long arg2 ;
8779 PyObject * obj0 = 0 ;
8780 PyObject * obj1 = 0 ;
8781 char *kwnames[] = {
8782 (char *) "self",(char *) "len", NULL
8783 };
8784
8785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8788 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8789 if (PyErr_Occurred()) SWIG_fail;
8790 {
8791 PyThreadState* __tstate = wxPyBeginAllowThreads();
8792 (arg1)->SetMaxLength(arg2);
8793
8794 wxPyEndAllowThreads(__tstate);
8795 if (PyErr_Occurred()) SWIG_fail;
8796 }
8797 Py_INCREF(Py_None); resultobj = Py_None;
8798 return resultobj;
8799 fail:
8800 return NULL;
8801 }
8802
8803
8804 static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8805 PyObject *resultobj;
8806 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8807 wxString *arg2 = 0 ;
8808 bool temp2 = False ;
8809 PyObject * obj0 = 0 ;
8810 PyObject * obj1 = 0 ;
8811 char *kwnames[] = {
8812 (char *) "self",(char *) "text", NULL
8813 };
8814
8815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8818 {
8819 arg2 = wxString_in_helper(obj1);
8820 if (arg2 == NULL) SWIG_fail;
8821 temp2 = True;
8822 }
8823 {
8824 PyThreadState* __tstate = wxPyBeginAllowThreads();
8825 (arg1)->WriteText((wxString const &)*arg2);
8826
8827 wxPyEndAllowThreads(__tstate);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 }
8830 Py_INCREF(Py_None); resultobj = Py_None;
8831 {
8832 if (temp2)
8833 delete arg2;
8834 }
8835 return resultobj;
8836 fail:
8837 {
8838 if (temp2)
8839 delete arg2;
8840 }
8841 return NULL;
8842 }
8843
8844
8845 static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj;
8847 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8848 wxString *arg2 = 0 ;
8849 bool temp2 = False ;
8850 PyObject * obj0 = 0 ;
8851 PyObject * obj1 = 0 ;
8852 char *kwnames[] = {
8853 (char *) "self",(char *) "text", NULL
8854 };
8855
8856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8859 {
8860 arg2 = wxString_in_helper(obj1);
8861 if (arg2 == NULL) SWIG_fail;
8862 temp2 = True;
8863 }
8864 {
8865 PyThreadState* __tstate = wxPyBeginAllowThreads();
8866 (arg1)->AppendText((wxString const &)*arg2);
8867
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 }
8871 Py_INCREF(Py_None); resultobj = Py_None;
8872 {
8873 if (temp2)
8874 delete arg2;
8875 }
8876 return resultobj;
8877 fail:
8878 {
8879 if (temp2)
8880 delete arg2;
8881 }
8882 return NULL;
8883 }
8884
8885
8886 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8887 PyObject *resultobj;
8888 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8889 wxKeyEvent *arg2 = 0 ;
8890 bool result;
8891 PyObject * obj0 = 0 ;
8892 PyObject * obj1 = 0 ;
8893 char *kwnames[] = {
8894 (char *) "self",(char *) "event", NULL
8895 };
8896
8897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8900 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8901 SWIG_POINTER_EXCEPTION | 0)) == -1)
8902 SWIG_fail;
8903 if (arg2 == NULL) {
8904 PyErr_SetString(PyExc_TypeError,"null reference");
8905 SWIG_fail;
8906 }
8907 {
8908 PyThreadState* __tstate = wxPyBeginAllowThreads();
8909 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8910
8911 wxPyEndAllowThreads(__tstate);
8912 if (PyErr_Occurred()) SWIG_fail;
8913 }
8914 {
8915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8916 }
8917 return resultobj;
8918 fail:
8919 return NULL;
8920 }
8921
8922
8923 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8924 PyObject *resultobj;
8925 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8926 long arg2 ;
8927 long arg3 ;
8928 wxTextAttr *arg4 = 0 ;
8929 bool result;
8930 PyObject * obj0 = 0 ;
8931 PyObject * obj1 = 0 ;
8932 PyObject * obj2 = 0 ;
8933 PyObject * obj3 = 0 ;
8934 char *kwnames[] = {
8935 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8936 };
8937
8938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8941 arg2 = (long) SWIG_AsLong(obj1);
8942 if (PyErr_Occurred()) SWIG_fail;
8943 arg3 = (long) SWIG_AsLong(obj2);
8944 if (PyErr_Occurred()) SWIG_fail;
8945 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8946 SWIG_POINTER_EXCEPTION | 0)) == -1)
8947 SWIG_fail;
8948 if (arg4 == NULL) {
8949 PyErr_SetString(PyExc_TypeError,"null reference");
8950 SWIG_fail;
8951 }
8952 {
8953 PyThreadState* __tstate = wxPyBeginAllowThreads();
8954 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8955
8956 wxPyEndAllowThreads(__tstate);
8957 if (PyErr_Occurred()) SWIG_fail;
8958 }
8959 {
8960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8961 }
8962 return resultobj;
8963 fail:
8964 return NULL;
8965 }
8966
8967
8968 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8969 PyObject *resultobj;
8970 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8971 long arg2 ;
8972 wxTextAttr *arg3 = 0 ;
8973 bool result;
8974 PyObject * obj0 = 0 ;
8975 PyObject * obj1 = 0 ;
8976 PyObject * obj2 = 0 ;
8977 char *kwnames[] = {
8978 (char *) "self",(char *) "position",(char *) "style", NULL
8979 };
8980
8981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8984 arg2 = (long) SWIG_AsLong(obj1);
8985 if (PyErr_Occurred()) SWIG_fail;
8986 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
8987 SWIG_POINTER_EXCEPTION | 0)) == -1)
8988 SWIG_fail;
8989 if (arg3 == NULL) {
8990 PyErr_SetString(PyExc_TypeError,"null reference");
8991 SWIG_fail;
8992 }
8993 {
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8996
8997 wxPyEndAllowThreads(__tstate);
8998 if (PyErr_Occurred()) SWIG_fail;
8999 }
9000 {
9001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9002 }
9003 return resultobj;
9004 fail:
9005 return NULL;
9006 }
9007
9008
9009 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9010 PyObject *resultobj;
9011 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9012 wxTextAttr *arg2 = 0 ;
9013 bool result;
9014 PyObject * obj0 = 0 ;
9015 PyObject * obj1 = 0 ;
9016 char *kwnames[] = {
9017 (char *) "self",(char *) "style", NULL
9018 };
9019
9020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9023 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9024 SWIG_POINTER_EXCEPTION | 0)) == -1)
9025 SWIG_fail;
9026 if (arg2 == NULL) {
9027 PyErr_SetString(PyExc_TypeError,"null reference");
9028 SWIG_fail;
9029 }
9030 {
9031 PyThreadState* __tstate = wxPyBeginAllowThreads();
9032 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9033
9034 wxPyEndAllowThreads(__tstate);
9035 if (PyErr_Occurred()) SWIG_fail;
9036 }
9037 {
9038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9039 }
9040 return resultobj;
9041 fail:
9042 return NULL;
9043 }
9044
9045
9046 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9047 PyObject *resultobj;
9048 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9049 wxTextAttr *result;
9050 PyObject * obj0 = 0 ;
9051 char *kwnames[] = {
9052 (char *) "self", NULL
9053 };
9054
9055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9058 {
9059 PyThreadState* __tstate = wxPyBeginAllowThreads();
9060 {
9061 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9062 result = (wxTextAttr *) &_result_ref;
9063 }
9064
9065 wxPyEndAllowThreads(__tstate);
9066 if (PyErr_Occurred()) SWIG_fail;
9067 }
9068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9069 return resultobj;
9070 fail:
9071 return NULL;
9072 }
9073
9074
9075 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9076 PyObject *resultobj;
9077 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9078 long arg2 ;
9079 long arg3 ;
9080 long result;
9081 PyObject * obj0 = 0 ;
9082 PyObject * obj1 = 0 ;
9083 PyObject * obj2 = 0 ;
9084 char *kwnames[] = {
9085 (char *) "self",(char *) "x",(char *) "y", NULL
9086 };
9087
9088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9091 arg2 = (long) SWIG_AsLong(obj1);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 arg3 = (long) SWIG_AsLong(obj2);
9094 if (PyErr_Occurred()) SWIG_fail;
9095 {
9096 PyThreadState* __tstate = wxPyBeginAllowThreads();
9097 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9098
9099 wxPyEndAllowThreads(__tstate);
9100 if (PyErr_Occurred()) SWIG_fail;
9101 }
9102 resultobj = SWIG_FromLong((long)result);
9103 return resultobj;
9104 fail:
9105 return NULL;
9106 }
9107
9108
9109 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9110 PyObject *resultobj;
9111 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9112 long arg2 ;
9113 long *arg3 = (long *) 0 ;
9114 long *arg4 = (long *) 0 ;
9115 long temp3 ;
9116 long temp4 ;
9117 PyObject * obj0 = 0 ;
9118 PyObject * obj1 = 0 ;
9119 char *kwnames[] = {
9120 (char *) "self",(char *) "pos", NULL
9121 };
9122
9123 arg3 = &temp3;
9124 arg4 = &temp4;
9125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9128 arg2 = (long) SWIG_AsLong(obj1);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 {
9131 PyThreadState* __tstate = wxPyBeginAllowThreads();
9132 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9133
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 Py_INCREF(Py_None); resultobj = Py_None;
9138 {
9139 PyObject *o = PyInt_FromLong((long) (*arg3));
9140 resultobj = t_output_helper(resultobj,o);
9141 }
9142 {
9143 PyObject *o = PyInt_FromLong((long) (*arg4));
9144 resultobj = t_output_helper(resultobj,o);
9145 }
9146 return resultobj;
9147 fail:
9148 return NULL;
9149 }
9150
9151
9152 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj;
9154 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9155 long arg2 ;
9156 PyObject * obj0 = 0 ;
9157 PyObject * obj1 = 0 ;
9158 char *kwnames[] = {
9159 (char *) "self",(char *) "pos", NULL
9160 };
9161
9162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9165 arg2 = (long) SWIG_AsLong(obj1);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 {
9168 PyThreadState* __tstate = wxPyBeginAllowThreads();
9169 (arg1)->ShowPosition(arg2);
9170
9171 wxPyEndAllowThreads(__tstate);
9172 if (PyErr_Occurred()) SWIG_fail;
9173 }
9174 Py_INCREF(Py_None); resultobj = Py_None;
9175 return resultobj;
9176 fail:
9177 return NULL;
9178 }
9179
9180
9181 static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
9182 PyObject *resultobj;
9183 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9184 wxPoint *arg2 = 0 ;
9185 long *arg3 = (long *) 0 ;
9186 long *arg4 = (long *) 0 ;
9187 int result;
9188 wxPoint temp2 ;
9189 long temp3 ;
9190 long temp4 ;
9191 PyObject * obj0 = 0 ;
9192 PyObject * obj1 = 0 ;
9193 char *kwnames[] = {
9194 (char *) "self",(char *) "pt", NULL
9195 };
9196
9197 arg3 = &temp3;
9198 arg4 = &temp4;
9199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9202 {
9203 arg2 = &temp2;
9204 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9205 }
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9209
9210 wxPyEndAllowThreads(__tstate);
9211 if (PyErr_Occurred()) SWIG_fail;
9212 }
9213 resultobj = SWIG_FromInt((int)result);
9214 {
9215 PyObject *o = PyInt_FromLong((long) (*arg3));
9216 resultobj = t_output_helper(resultobj,o);
9217 }
9218 {
9219 PyObject *o = PyInt_FromLong((long) (*arg4));
9220 resultobj = t_output_helper(resultobj,o);
9221 }
9222 return resultobj;
9223 fail:
9224 return NULL;
9225 }
9226
9227
9228 static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
9229 PyObject *resultobj;
9230 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9231 PyObject * obj0 = 0 ;
9232 char *kwnames[] = {
9233 (char *) "self", NULL
9234 };
9235
9236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9239 {
9240 PyThreadState* __tstate = wxPyBeginAllowThreads();
9241 (arg1)->Copy();
9242
9243 wxPyEndAllowThreads(__tstate);
9244 if (PyErr_Occurred()) SWIG_fail;
9245 }
9246 Py_INCREF(Py_None); resultobj = Py_None;
9247 return resultobj;
9248 fail:
9249 return NULL;
9250 }
9251
9252
9253 static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
9254 PyObject *resultobj;
9255 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9256 PyObject * obj0 = 0 ;
9257 char *kwnames[] = {
9258 (char *) "self", NULL
9259 };
9260
9261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9264 {
9265 PyThreadState* __tstate = wxPyBeginAllowThreads();
9266 (arg1)->Cut();
9267
9268 wxPyEndAllowThreads(__tstate);
9269 if (PyErr_Occurred()) SWIG_fail;
9270 }
9271 Py_INCREF(Py_None); resultobj = Py_None;
9272 return resultobj;
9273 fail:
9274 return NULL;
9275 }
9276
9277
9278 static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
9279 PyObject *resultobj;
9280 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9281 PyObject * obj0 = 0 ;
9282 char *kwnames[] = {
9283 (char *) "self", NULL
9284 };
9285
9286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9289 {
9290 PyThreadState* __tstate = wxPyBeginAllowThreads();
9291 (arg1)->Paste();
9292
9293 wxPyEndAllowThreads(__tstate);
9294 if (PyErr_Occurred()) SWIG_fail;
9295 }
9296 Py_INCREF(Py_None); resultobj = Py_None;
9297 return resultobj;
9298 fail:
9299 return NULL;
9300 }
9301
9302
9303 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
9304 PyObject *resultobj;
9305 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9306 bool result;
9307 PyObject * obj0 = 0 ;
9308 char *kwnames[] = {
9309 (char *) "self", NULL
9310 };
9311
9312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9318
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 {
9323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9324 }
9325 return resultobj;
9326 fail:
9327 return NULL;
9328 }
9329
9330
9331 static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
9332 PyObject *resultobj;
9333 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9334 bool result;
9335 PyObject * obj0 = 0 ;
9336 char *kwnames[] = {
9337 (char *) "self", NULL
9338 };
9339
9340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9343 {
9344 PyThreadState* __tstate = wxPyBeginAllowThreads();
9345 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9346
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 {
9351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9352 }
9353 return resultobj;
9354 fail:
9355 return NULL;
9356 }
9357
9358
9359 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
9360 PyObject *resultobj;
9361 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9362 bool result;
9363 PyObject * obj0 = 0 ;
9364 char *kwnames[] = {
9365 (char *) "self", NULL
9366 };
9367
9368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9374
9375 wxPyEndAllowThreads(__tstate);
9376 if (PyErr_Occurred()) SWIG_fail;
9377 }
9378 {
9379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9380 }
9381 return resultobj;
9382 fail:
9383 return NULL;
9384 }
9385
9386
9387 static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
9388 PyObject *resultobj;
9389 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9390 PyObject * obj0 = 0 ;
9391 char *kwnames[] = {
9392 (char *) "self", NULL
9393 };
9394
9395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9398 {
9399 PyThreadState* __tstate = wxPyBeginAllowThreads();
9400 (arg1)->Undo();
9401
9402 wxPyEndAllowThreads(__tstate);
9403 if (PyErr_Occurred()) SWIG_fail;
9404 }
9405 Py_INCREF(Py_None); resultobj = Py_None;
9406 return resultobj;
9407 fail:
9408 return NULL;
9409 }
9410
9411
9412 static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
9413 PyObject *resultobj;
9414 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9415 PyObject * obj0 = 0 ;
9416 char *kwnames[] = {
9417 (char *) "self", NULL
9418 };
9419
9420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9423 {
9424 PyThreadState* __tstate = wxPyBeginAllowThreads();
9425 (arg1)->Redo();
9426
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 Py_INCREF(Py_None); resultobj = Py_None;
9431 return resultobj;
9432 fail:
9433 return NULL;
9434 }
9435
9436
9437 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
9438 PyObject *resultobj;
9439 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9440 bool result;
9441 PyObject * obj0 = 0 ;
9442 char *kwnames[] = {
9443 (char *) "self", NULL
9444 };
9445
9446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9449 {
9450 PyThreadState* __tstate = wxPyBeginAllowThreads();
9451 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9452
9453 wxPyEndAllowThreads(__tstate);
9454 if (PyErr_Occurred()) SWIG_fail;
9455 }
9456 {
9457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9458 }
9459 return resultobj;
9460 fail:
9461 return NULL;
9462 }
9463
9464
9465 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
9466 PyObject *resultobj;
9467 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9468 bool result;
9469 PyObject * obj0 = 0 ;
9470 char *kwnames[] = {
9471 (char *) "self", NULL
9472 };
9473
9474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9477 {
9478 PyThreadState* __tstate = wxPyBeginAllowThreads();
9479 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9480
9481 wxPyEndAllowThreads(__tstate);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 }
9484 {
9485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9486 }
9487 return resultobj;
9488 fail:
9489 return NULL;
9490 }
9491
9492
9493 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9494 PyObject *resultobj;
9495 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9496 long arg2 ;
9497 PyObject * obj0 = 0 ;
9498 PyObject * obj1 = 0 ;
9499 char *kwnames[] = {
9500 (char *) "self",(char *) "pos", NULL
9501 };
9502
9503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9506 arg2 = (long) SWIG_AsLong(obj1);
9507 if (PyErr_Occurred()) SWIG_fail;
9508 {
9509 PyThreadState* __tstate = wxPyBeginAllowThreads();
9510 (arg1)->SetInsertionPoint(arg2);
9511
9512 wxPyEndAllowThreads(__tstate);
9513 if (PyErr_Occurred()) SWIG_fail;
9514 }
9515 Py_INCREF(Py_None); resultobj = Py_None;
9516 return resultobj;
9517 fail:
9518 return NULL;
9519 }
9520
9521
9522 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9523 PyObject *resultobj;
9524 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9525 PyObject * obj0 = 0 ;
9526 char *kwnames[] = {
9527 (char *) "self", NULL
9528 };
9529
9530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 (arg1)->SetInsertionPointEnd();
9536
9537 wxPyEndAllowThreads(__tstate);
9538 if (PyErr_Occurred()) SWIG_fail;
9539 }
9540 Py_INCREF(Py_None); resultobj = Py_None;
9541 return resultobj;
9542 fail:
9543 return NULL;
9544 }
9545
9546
9547 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9548 PyObject *resultobj;
9549 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9550 long result;
9551 PyObject * obj0 = 0 ;
9552 char *kwnames[] = {
9553 (char *) "self", NULL
9554 };
9555
9556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9559 {
9560 PyThreadState* __tstate = wxPyBeginAllowThreads();
9561 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9562
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 resultobj = SWIG_FromLong((long)result);
9567 return resultobj;
9568 fail:
9569 return NULL;
9570 }
9571
9572
9573 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9574 PyObject *resultobj;
9575 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9576 long result;
9577 PyObject * obj0 = 0 ;
9578 char *kwnames[] = {
9579 (char *) "self", NULL
9580 };
9581
9582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9585 {
9586 PyThreadState* __tstate = wxPyBeginAllowThreads();
9587 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9588
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 resultobj = SWIG_FromLong((long)result);
9593 return resultobj;
9594 fail:
9595 return NULL;
9596 }
9597
9598
9599 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9600 PyObject *resultobj;
9601 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9602 long arg2 ;
9603 long arg3 ;
9604 PyObject * obj0 = 0 ;
9605 PyObject * obj1 = 0 ;
9606 PyObject * obj2 = 0 ;
9607 char *kwnames[] = {
9608 (char *) "self",(char *) "from",(char *) "to", NULL
9609 };
9610
9611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9614 arg2 = (long) SWIG_AsLong(obj1);
9615 if (PyErr_Occurred()) SWIG_fail;
9616 arg3 = (long) SWIG_AsLong(obj2);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 {
9619 PyThreadState* __tstate = wxPyBeginAllowThreads();
9620 (arg1)->SetSelection(arg2,arg3);
9621
9622 wxPyEndAllowThreads(__tstate);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
9625 Py_INCREF(Py_None); resultobj = Py_None;
9626 return resultobj;
9627 fail:
9628 return NULL;
9629 }
9630
9631
9632 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9633 PyObject *resultobj;
9634 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9635 PyObject * obj0 = 0 ;
9636 char *kwnames[] = {
9637 (char *) "self", NULL
9638 };
9639
9640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9643 {
9644 PyThreadState* __tstate = wxPyBeginAllowThreads();
9645 (arg1)->SelectAll();
9646
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 Py_INCREF(Py_None); resultobj = Py_None;
9651 return resultobj;
9652 fail:
9653 return NULL;
9654 }
9655
9656
9657 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9658 PyObject *resultobj;
9659 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9660 bool arg2 ;
9661 PyObject * obj0 = 0 ;
9662 PyObject * obj1 = 0 ;
9663 char *kwnames[] = {
9664 (char *) "self",(char *) "editable", NULL
9665 };
9666
9667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9670 arg2 = (bool) SWIG_AsBool(obj1);
9671 if (PyErr_Occurred()) SWIG_fail;
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 (arg1)->SetEditable(arg2);
9675
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 Py_INCREF(Py_None); resultobj = Py_None;
9680 return resultobj;
9681 fail:
9682 return NULL;
9683 }
9684
9685
9686 static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9687 PyObject *resultobj;
9688 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9689 wxString *arg2 = 0 ;
9690 bool temp2 = False ;
9691 PyObject * obj0 = 0 ;
9692 PyObject * obj1 = 0 ;
9693 char *kwnames[] = {
9694 (char *) "self",(char *) "text", NULL
9695 };
9696
9697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9700 {
9701 arg2 = wxString_in_helper(obj1);
9702 if (arg2 == NULL) SWIG_fail;
9703 temp2 = True;
9704 }
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9708
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 Py_INCREF(Py_None); resultobj = Py_None;
9713 {
9714 if (temp2)
9715 delete arg2;
9716 }
9717 return resultobj;
9718 fail:
9719 {
9720 if (temp2)
9721 delete arg2;
9722 }
9723 return NULL;
9724 }
9725
9726
9727 static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9728 PyObject *resultobj;
9729 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9730 long arg2 ;
9731 long arg3 ;
9732 wxString result;
9733 PyObject * obj0 = 0 ;
9734 PyObject * obj1 = 0 ;
9735 PyObject * obj2 = 0 ;
9736 char *kwnames[] = {
9737 (char *) "self",(char *) "from",(char *) "to", NULL
9738 };
9739
9740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9743 arg2 = (long) SWIG_AsLong(obj1);
9744 if (PyErr_Occurred()) SWIG_fail;
9745 arg3 = (long) SWIG_AsLong(obj2);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 {
9748 PyThreadState* __tstate = wxPyBeginAllowThreads();
9749 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9750
9751 wxPyEndAllowThreads(__tstate);
9752 if (PyErr_Occurred()) SWIG_fail;
9753 }
9754 {
9755 #if wxUSE_UNICODE
9756 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9757 #else
9758 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9759 #endif
9760 }
9761 return resultobj;
9762 fail:
9763 return NULL;
9764 }
9765
9766
9767 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
9768 PyObject *resultobj;
9769 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
9770 wxVisualAttributes result;
9771 PyObject * obj0 = 0 ;
9772 char *kwnames[] = {
9773 (char *) "variant", NULL
9774 };
9775
9776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
9777 if (obj0) {
9778 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
9784
9785 wxPyEndAllowThreads(__tstate);
9786 if (PyErr_Occurred()) SWIG_fail;
9787 }
9788 {
9789 wxVisualAttributes * resultptr;
9790 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
9791 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
9792 }
9793 return resultobj;
9794 fail:
9795 return NULL;
9796 }
9797
9798
9799 static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9800 PyObject *obj;
9801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9802 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9803 Py_INCREF(obj);
9804 return Py_BuildValue((char *)"");
9805 }
9806 static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9807 PyObject *resultobj;
9808 int arg1 ;
9809 wxMouseEvent *arg2 = 0 ;
9810 long arg3 ;
9811 long arg4 ;
9812 wxTextUrlEvent *result;
9813 PyObject * obj0 = 0 ;
9814 PyObject * obj1 = 0 ;
9815 PyObject * obj2 = 0 ;
9816 PyObject * obj3 = 0 ;
9817 char *kwnames[] = {
9818 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9819 };
9820
9821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9822 arg1 = (int) SWIG_AsInt(obj0);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9825 SWIG_POINTER_EXCEPTION | 0)) == -1)
9826 SWIG_fail;
9827 if (arg2 == NULL) {
9828 PyErr_SetString(PyExc_TypeError,"null reference");
9829 SWIG_fail;
9830 }
9831 arg3 = (long) SWIG_AsLong(obj2);
9832 if (PyErr_Occurred()) SWIG_fail;
9833 arg4 = (long) SWIG_AsLong(obj3);
9834 if (PyErr_Occurred()) SWIG_fail;
9835 {
9836 PyThreadState* __tstate = wxPyBeginAllowThreads();
9837 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9838
9839 wxPyEndAllowThreads(__tstate);
9840 if (PyErr_Occurred()) SWIG_fail;
9841 }
9842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9843 return resultobj;
9844 fail:
9845 return NULL;
9846 }
9847
9848
9849 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9850 PyObject *resultobj;
9851 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9852 wxMouseEvent *result;
9853 PyObject * obj0 = 0 ;
9854 char *kwnames[] = {
9855 (char *) "self", NULL
9856 };
9857
9858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9861 {
9862 PyThreadState* __tstate = wxPyBeginAllowThreads();
9863 {
9864 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9865 result = (wxMouseEvent *) &_result_ref;
9866 }
9867
9868 wxPyEndAllowThreads(__tstate);
9869 if (PyErr_Occurred()) SWIG_fail;
9870 }
9871 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9872 return resultobj;
9873 fail:
9874 return NULL;
9875 }
9876
9877
9878 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9879 PyObject *resultobj;
9880 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9881 long result;
9882 PyObject * obj0 = 0 ;
9883 char *kwnames[] = {
9884 (char *) "self", NULL
9885 };
9886
9887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9893
9894 wxPyEndAllowThreads(__tstate);
9895 if (PyErr_Occurred()) SWIG_fail;
9896 }
9897 resultobj = SWIG_FromLong((long)result);
9898 return resultobj;
9899 fail:
9900 return NULL;
9901 }
9902
9903
9904 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9905 PyObject *resultobj;
9906 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9907 long result;
9908 PyObject * obj0 = 0 ;
9909 char *kwnames[] = {
9910 (char *) "self", NULL
9911 };
9912
9913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9916 {
9917 PyThreadState* __tstate = wxPyBeginAllowThreads();
9918 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9919
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) SWIG_fail;
9922 }
9923 resultobj = SWIG_FromLong((long)result);
9924 return resultobj;
9925 fail:
9926 return NULL;
9927 }
9928
9929
9930 static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
9931 PyObject *obj;
9932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9933 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9934 Py_INCREF(obj);
9935 return Py_BuildValue((char *)"");
9936 }
9937 static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
9938 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9939 return 1;
9940 }
9941
9942
9943 static PyObject *_wrap_ScrollBarNameStr_get() {
9944 PyObject *pyobj;
9945
9946 {
9947 #if wxUSE_UNICODE
9948 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9949 #else
9950 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9951 #endif
9952 }
9953 return pyobj;
9954 }
9955
9956
9957 static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9958 PyObject *resultobj;
9959 wxWindow *arg1 = (wxWindow *) 0 ;
9960 int arg2 = (int) -1 ;
9961 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9962 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9963 wxSize const &arg4_defvalue = wxDefaultSize ;
9964 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9965 long arg5 = (long) wxSB_HORIZONTAL ;
9966 wxValidator const &arg6_defvalue = wxDefaultValidator ;
9967 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
9968 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
9969 wxString *arg7 = (wxString *) &arg7_defvalue ;
9970 wxScrollBar *result;
9971 wxPoint temp3 ;
9972 wxSize temp4 ;
9973 bool temp7 = False ;
9974 PyObject * obj0 = 0 ;
9975 PyObject * obj1 = 0 ;
9976 PyObject * obj2 = 0 ;
9977 PyObject * obj3 = 0 ;
9978 PyObject * obj4 = 0 ;
9979 PyObject * obj5 = 0 ;
9980 PyObject * obj6 = 0 ;
9981 char *kwnames[] = {
9982 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9983 };
9984
9985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9988 if (obj1) {
9989 arg2 = (int) SWIG_AsInt(obj1);
9990 if (PyErr_Occurred()) SWIG_fail;
9991 }
9992 if (obj2) {
9993 {
9994 arg3 = &temp3;
9995 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9996 }
9997 }
9998 if (obj3) {
9999 {
10000 arg4 = &temp4;
10001 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10002 }
10003 }
10004 if (obj4) {
10005 arg5 = (long) SWIG_AsLong(obj4);
10006 if (PyErr_Occurred()) SWIG_fail;
10007 }
10008 if (obj5) {
10009 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10010 SWIG_POINTER_EXCEPTION | 0)) == -1)
10011 SWIG_fail;
10012 if (arg6 == NULL) {
10013 PyErr_SetString(PyExc_TypeError,"null reference");
10014 SWIG_fail;
10015 }
10016 }
10017 if (obj6) {
10018 {
10019 arg7 = wxString_in_helper(obj6);
10020 if (arg7 == NULL) SWIG_fail;
10021 temp7 = True;
10022 }
10023 }
10024 {
10025 PyThreadState* __tstate = wxPyBeginAllowThreads();
10026 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10027
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10032 {
10033 if (temp7)
10034 delete arg7;
10035 }
10036 return resultobj;
10037 fail:
10038 {
10039 if (temp7)
10040 delete arg7;
10041 }
10042 return NULL;
10043 }
10044
10045
10046 static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
10047 PyObject *resultobj;
10048 wxScrollBar *result;
10049 char *kwnames[] = {
10050 NULL
10051 };
10052
10053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10054 {
10055 PyThreadState* __tstate = wxPyBeginAllowThreads();
10056 result = (wxScrollBar *)new wxScrollBar();
10057
10058 wxPyEndAllowThreads(__tstate);
10059 if (PyErr_Occurred()) SWIG_fail;
10060 }
10061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10062 return resultobj;
10063 fail:
10064 return NULL;
10065 }
10066
10067
10068 static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10069 PyObject *resultobj;
10070 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10071 wxWindow *arg2 = (wxWindow *) 0 ;
10072 int arg3 = (int) -1 ;
10073 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10074 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10075 wxSize const &arg5_defvalue = wxDefaultSize ;
10076 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10077 long arg6 = (long) wxSB_HORIZONTAL ;
10078 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10079 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10080 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10081 wxString *arg8 = (wxString *) &arg8_defvalue ;
10082 bool result;
10083 wxPoint temp4 ;
10084 wxSize temp5 ;
10085 bool temp8 = False ;
10086 PyObject * obj0 = 0 ;
10087 PyObject * obj1 = 0 ;
10088 PyObject * obj2 = 0 ;
10089 PyObject * obj3 = 0 ;
10090 PyObject * obj4 = 0 ;
10091 PyObject * obj5 = 0 ;
10092 PyObject * obj6 = 0 ;
10093 PyObject * obj7 = 0 ;
10094 char *kwnames[] = {
10095 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10096 };
10097
10098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10101 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10103 if (obj2) {
10104 arg3 = (int) SWIG_AsInt(obj2);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 if (obj3) {
10108 {
10109 arg4 = &temp4;
10110 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10111 }
10112 }
10113 if (obj4) {
10114 {
10115 arg5 = &temp5;
10116 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10117 }
10118 }
10119 if (obj5) {
10120 arg6 = (long) SWIG_AsLong(obj5);
10121 if (PyErr_Occurred()) SWIG_fail;
10122 }
10123 if (obj6) {
10124 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10125 SWIG_POINTER_EXCEPTION | 0)) == -1)
10126 SWIG_fail;
10127 if (arg7 == NULL) {
10128 PyErr_SetString(PyExc_TypeError,"null reference");
10129 SWIG_fail;
10130 }
10131 }
10132 if (obj7) {
10133 {
10134 arg8 = wxString_in_helper(obj7);
10135 if (arg8 == NULL) SWIG_fail;
10136 temp8 = True;
10137 }
10138 }
10139 {
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10142
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 {
10147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10148 }
10149 {
10150 if (temp8)
10151 delete arg8;
10152 }
10153 return resultobj;
10154 fail:
10155 {
10156 if (temp8)
10157 delete arg8;
10158 }
10159 return NULL;
10160 }
10161
10162
10163 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10164 PyObject *resultobj;
10165 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10166 int result;
10167 PyObject * obj0 = 0 ;
10168 char *kwnames[] = {
10169 (char *) "self", NULL
10170 };
10171
10172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10175 {
10176 PyThreadState* __tstate = wxPyBeginAllowThreads();
10177 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10178
10179 wxPyEndAllowThreads(__tstate);
10180 if (PyErr_Occurred()) SWIG_fail;
10181 }
10182 resultobj = SWIG_FromInt((int)result);
10183 return resultobj;
10184 fail:
10185 return NULL;
10186 }
10187
10188
10189 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10190 PyObject *resultobj;
10191 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10192 int result;
10193 PyObject * obj0 = 0 ;
10194 char *kwnames[] = {
10195 (char *) "self", NULL
10196 };
10197
10198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10201 {
10202 PyThreadState* __tstate = wxPyBeginAllowThreads();
10203 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10204
10205 wxPyEndAllowThreads(__tstate);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 resultobj = SWIG_FromInt((int)result);
10209 return resultobj;
10210 fail:
10211 return NULL;
10212 }
10213
10214
10215 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10216 PyObject *resultobj;
10217 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10218 int result;
10219 PyObject * obj0 = 0 ;
10220 char *kwnames[] = {
10221 (char *) "self", NULL
10222 };
10223
10224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10227 {
10228 PyThreadState* __tstate = wxPyBeginAllowThreads();
10229 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10230
10231 wxPyEndAllowThreads(__tstate);
10232 if (PyErr_Occurred()) SWIG_fail;
10233 }
10234 resultobj = SWIG_FromInt((int)result);
10235 return resultobj;
10236 fail:
10237 return NULL;
10238 }
10239
10240
10241 static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10242 PyObject *resultobj;
10243 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10244 int result;
10245 PyObject * obj0 = 0 ;
10246 char *kwnames[] = {
10247 (char *) "self", NULL
10248 };
10249
10250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (int)((wxScrollBar const *)arg1)->GetRange();
10256
10257 wxPyEndAllowThreads(__tstate);
10258 if (PyErr_Occurred()) SWIG_fail;
10259 }
10260 resultobj = SWIG_FromInt((int)result);
10261 return resultobj;
10262 fail:
10263 return NULL;
10264 }
10265
10266
10267 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10268 PyObject *resultobj;
10269 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10270 bool result;
10271 PyObject * obj0 = 0 ;
10272 char *kwnames[] = {
10273 (char *) "self", NULL
10274 };
10275
10276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10279 {
10280 PyThreadState* __tstate = wxPyBeginAllowThreads();
10281 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10282
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 {
10287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10288 }
10289 return resultobj;
10290 fail:
10291 return NULL;
10292 }
10293
10294
10295 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj;
10297 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10298 int arg2 ;
10299 PyObject * obj0 = 0 ;
10300 PyObject * obj1 = 0 ;
10301 char *kwnames[] = {
10302 (char *) "self",(char *) "viewStart", NULL
10303 };
10304
10305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10308 arg2 = (int) SWIG_AsInt(obj1);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 {
10311 PyThreadState* __tstate = wxPyBeginAllowThreads();
10312 (arg1)->SetThumbPosition(arg2);
10313
10314 wxPyEndAllowThreads(__tstate);
10315 if (PyErr_Occurred()) SWIG_fail;
10316 }
10317 Py_INCREF(Py_None); resultobj = Py_None;
10318 return resultobj;
10319 fail:
10320 return NULL;
10321 }
10322
10323
10324 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
10325 PyObject *resultobj;
10326 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10327 int arg2 ;
10328 int arg3 ;
10329 int arg4 ;
10330 int arg5 ;
10331 bool arg6 = (bool) True ;
10332 PyObject * obj0 = 0 ;
10333 PyObject * obj1 = 0 ;
10334 PyObject * obj2 = 0 ;
10335 PyObject * obj3 = 0 ;
10336 PyObject * obj4 = 0 ;
10337 PyObject * obj5 = 0 ;
10338 char *kwnames[] = {
10339 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10340 };
10341
10342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10345 arg2 = (int) SWIG_AsInt(obj1);
10346 if (PyErr_Occurred()) SWIG_fail;
10347 arg3 = (int) SWIG_AsInt(obj2);
10348 if (PyErr_Occurred()) SWIG_fail;
10349 arg4 = (int) SWIG_AsInt(obj3);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 arg5 = (int) SWIG_AsInt(obj4);
10352 if (PyErr_Occurred()) SWIG_fail;
10353 if (obj5) {
10354 arg6 = (bool) SWIG_AsBool(obj5);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 }
10357 {
10358 PyThreadState* __tstate = wxPyBeginAllowThreads();
10359 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10360
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
10364 Py_INCREF(Py_None); resultobj = Py_None;
10365 return resultobj;
10366 fail:
10367 return NULL;
10368 }
10369
10370
10371 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10372 PyObject *resultobj;
10373 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10374 wxVisualAttributes result;
10375 PyObject * obj0 = 0 ;
10376 char *kwnames[] = {
10377 (char *) "variant", NULL
10378 };
10379
10380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10381 if (obj0) {
10382 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 {
10386 PyThreadState* __tstate = wxPyBeginAllowThreads();
10387 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10388
10389 wxPyEndAllowThreads(__tstate);
10390 if (PyErr_Occurred()) SWIG_fail;
10391 }
10392 {
10393 wxVisualAttributes * resultptr;
10394 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10395 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10396 }
10397 return resultobj;
10398 fail:
10399 return NULL;
10400 }
10401
10402
10403 static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
10404 PyObject *obj;
10405 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10406 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10407 Py_INCREF(obj);
10408 return Py_BuildValue((char *)"");
10409 }
10410 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
10411 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10412 return 1;
10413 }
10414
10415
10416 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10417 PyObject *pyobj;
10418
10419 {
10420 #if wxUSE_UNICODE
10421 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10422 #else
10423 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10424 #endif
10425 }
10426 return pyobj;
10427 }
10428
10429
10430 static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
10431 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10432 return 1;
10433 }
10434
10435
10436 static PyObject *_wrap_SpinCtrlNameStr_get() {
10437 PyObject *pyobj;
10438
10439 {
10440 #if wxUSE_UNICODE
10441 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10442 #else
10443 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10444 #endif
10445 }
10446 return pyobj;
10447 }
10448
10449
10450 static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10451 PyObject *resultobj;
10452 wxWindow *arg1 = (wxWindow *) 0 ;
10453 int arg2 = (int) -1 ;
10454 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10455 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10456 wxSize const &arg4_defvalue = wxDefaultSize ;
10457 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10458 long arg5 = (long) wxSP_HORIZONTAL ;
10459 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10460 wxString *arg6 = (wxString *) &arg6_defvalue ;
10461 wxSpinButton *result;
10462 wxPoint temp3 ;
10463 wxSize temp4 ;
10464 bool temp6 = False ;
10465 PyObject * obj0 = 0 ;
10466 PyObject * obj1 = 0 ;
10467 PyObject * obj2 = 0 ;
10468 PyObject * obj3 = 0 ;
10469 PyObject * obj4 = 0 ;
10470 PyObject * obj5 = 0 ;
10471 char *kwnames[] = {
10472 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10473 };
10474
10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10478 if (obj1) {
10479 arg2 = (int) SWIG_AsInt(obj1);
10480 if (PyErr_Occurred()) SWIG_fail;
10481 }
10482 if (obj2) {
10483 {
10484 arg3 = &temp3;
10485 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10486 }
10487 }
10488 if (obj3) {
10489 {
10490 arg4 = &temp4;
10491 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10492 }
10493 }
10494 if (obj4) {
10495 arg5 = (long) SWIG_AsLong(obj4);
10496 if (PyErr_Occurred()) SWIG_fail;
10497 }
10498 if (obj5) {
10499 {
10500 arg6 = wxString_in_helper(obj5);
10501 if (arg6 == NULL) SWIG_fail;
10502 temp6 = True;
10503 }
10504 }
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10508
10509 wxPyEndAllowThreads(__tstate);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 }
10512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10513 {
10514 if (temp6)
10515 delete arg6;
10516 }
10517 return resultobj;
10518 fail:
10519 {
10520 if (temp6)
10521 delete arg6;
10522 }
10523 return NULL;
10524 }
10525
10526
10527 static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10528 PyObject *resultobj;
10529 wxSpinButton *result;
10530 char *kwnames[] = {
10531 NULL
10532 };
10533
10534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 result = (wxSpinButton *)new wxSpinButton();
10538
10539 wxPyEndAllowThreads(__tstate);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10543 return resultobj;
10544 fail:
10545 return NULL;
10546 }
10547
10548
10549 static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10550 PyObject *resultobj;
10551 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10552 wxWindow *arg2 = (wxWindow *) 0 ;
10553 int arg3 = (int) -1 ;
10554 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10555 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10556 wxSize const &arg5_defvalue = wxDefaultSize ;
10557 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10558 long arg6 = (long) wxSP_HORIZONTAL ;
10559 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10560 wxString *arg7 = (wxString *) &arg7_defvalue ;
10561 bool result;
10562 wxPoint temp4 ;
10563 wxSize temp5 ;
10564 bool temp7 = False ;
10565 PyObject * obj0 = 0 ;
10566 PyObject * obj1 = 0 ;
10567 PyObject * obj2 = 0 ;
10568 PyObject * obj3 = 0 ;
10569 PyObject * obj4 = 0 ;
10570 PyObject * obj5 = 0 ;
10571 PyObject * obj6 = 0 ;
10572 char *kwnames[] = {
10573 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10574 };
10575
10576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10579 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10581 if (obj2) {
10582 arg3 = (int) SWIG_AsInt(obj2);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 if (obj3) {
10586 {
10587 arg4 = &temp4;
10588 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10589 }
10590 }
10591 if (obj4) {
10592 {
10593 arg5 = &temp5;
10594 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10595 }
10596 }
10597 if (obj5) {
10598 arg6 = (long) SWIG_AsLong(obj5);
10599 if (PyErr_Occurred()) SWIG_fail;
10600 }
10601 if (obj6) {
10602 {
10603 arg7 = wxString_in_helper(obj6);
10604 if (arg7 == NULL) SWIG_fail;
10605 temp7 = True;
10606 }
10607 }
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10611
10612 wxPyEndAllowThreads(__tstate);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 }
10615 {
10616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10617 }
10618 {
10619 if (temp7)
10620 delete arg7;
10621 }
10622 return resultobj;
10623 fail:
10624 {
10625 if (temp7)
10626 delete arg7;
10627 }
10628 return NULL;
10629 }
10630
10631
10632 static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10633 PyObject *resultobj;
10634 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10635 int result;
10636 PyObject * obj0 = 0 ;
10637 char *kwnames[] = {
10638 (char *) "self", NULL
10639 };
10640
10641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10644 {
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 result = (int)((wxSpinButton const *)arg1)->GetValue();
10647
10648 wxPyEndAllowThreads(__tstate);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 resultobj = SWIG_FromInt((int)result);
10652 return resultobj;
10653 fail:
10654 return NULL;
10655 }
10656
10657
10658 static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10659 PyObject *resultobj;
10660 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10661 int result;
10662 PyObject * obj0 = 0 ;
10663 char *kwnames[] = {
10664 (char *) "self", NULL
10665 };
10666
10667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10670 {
10671 PyThreadState* __tstate = wxPyBeginAllowThreads();
10672 result = (int)((wxSpinButton const *)arg1)->GetMin();
10673
10674 wxPyEndAllowThreads(__tstate);
10675 if (PyErr_Occurred()) SWIG_fail;
10676 }
10677 resultobj = SWIG_FromInt((int)result);
10678 return resultobj;
10679 fail:
10680 return NULL;
10681 }
10682
10683
10684 static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10685 PyObject *resultobj;
10686 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10687 int result;
10688 PyObject * obj0 = 0 ;
10689 char *kwnames[] = {
10690 (char *) "self", NULL
10691 };
10692
10693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10696 {
10697 PyThreadState* __tstate = wxPyBeginAllowThreads();
10698 result = (int)((wxSpinButton const *)arg1)->GetMax();
10699
10700 wxPyEndAllowThreads(__tstate);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 }
10703 resultobj = SWIG_FromInt((int)result);
10704 return resultobj;
10705 fail:
10706 return NULL;
10707 }
10708
10709
10710 static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10711 PyObject *resultobj;
10712 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10713 int arg2 ;
10714 PyObject * obj0 = 0 ;
10715 PyObject * obj1 = 0 ;
10716 char *kwnames[] = {
10717 (char *) "self",(char *) "val", NULL
10718 };
10719
10720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10723 arg2 = (int) SWIG_AsInt(obj1);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 {
10726 PyThreadState* __tstate = wxPyBeginAllowThreads();
10727 (arg1)->SetValue(arg2);
10728
10729 wxPyEndAllowThreads(__tstate);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 }
10732 Py_INCREF(Py_None); resultobj = Py_None;
10733 return resultobj;
10734 fail:
10735 return NULL;
10736 }
10737
10738
10739 static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10740 PyObject *resultobj;
10741 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10742 int arg2 ;
10743 PyObject * obj0 = 0 ;
10744 PyObject * obj1 = 0 ;
10745 char *kwnames[] = {
10746 (char *) "self",(char *) "minVal", NULL
10747 };
10748
10749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10752 arg2 = (int) SWIG_AsInt(obj1);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 (arg1)->SetMin(arg2);
10757
10758 wxPyEndAllowThreads(__tstate);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 }
10761 Py_INCREF(Py_None); resultobj = Py_None;
10762 return resultobj;
10763 fail:
10764 return NULL;
10765 }
10766
10767
10768 static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10769 PyObject *resultobj;
10770 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10771 int arg2 ;
10772 PyObject * obj0 = 0 ;
10773 PyObject * obj1 = 0 ;
10774 char *kwnames[] = {
10775 (char *) "self",(char *) "maxVal", NULL
10776 };
10777
10778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10781 arg2 = (int) SWIG_AsInt(obj1);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 {
10784 PyThreadState* __tstate = wxPyBeginAllowThreads();
10785 (arg1)->SetMax(arg2);
10786
10787 wxPyEndAllowThreads(__tstate);
10788 if (PyErr_Occurred()) SWIG_fail;
10789 }
10790 Py_INCREF(Py_None); resultobj = Py_None;
10791 return resultobj;
10792 fail:
10793 return NULL;
10794 }
10795
10796
10797 static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10798 PyObject *resultobj;
10799 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10800 int arg2 ;
10801 int arg3 ;
10802 PyObject * obj0 = 0 ;
10803 PyObject * obj1 = 0 ;
10804 PyObject * obj2 = 0 ;
10805 char *kwnames[] = {
10806 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10807 };
10808
10809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10812 arg2 = (int) SWIG_AsInt(obj1);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 arg3 = (int) SWIG_AsInt(obj2);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 {
10817 PyThreadState* __tstate = wxPyBeginAllowThreads();
10818 (arg1)->SetRange(arg2,arg3);
10819
10820 wxPyEndAllowThreads(__tstate);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 }
10823 Py_INCREF(Py_None); resultobj = Py_None;
10824 return resultobj;
10825 fail:
10826 return NULL;
10827 }
10828
10829
10830 static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10831 PyObject *resultobj;
10832 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10833 bool result;
10834 PyObject * obj0 = 0 ;
10835 char *kwnames[] = {
10836 (char *) "self", NULL
10837 };
10838
10839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10842 {
10843 PyThreadState* __tstate = wxPyBeginAllowThreads();
10844 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10845
10846 wxPyEndAllowThreads(__tstate);
10847 if (PyErr_Occurred()) SWIG_fail;
10848 }
10849 {
10850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10851 }
10852 return resultobj;
10853 fail:
10854 return NULL;
10855 }
10856
10857
10858 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10859 PyObject *resultobj;
10860 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10861 wxVisualAttributes result;
10862 PyObject * obj0 = 0 ;
10863 char *kwnames[] = {
10864 (char *) "variant", NULL
10865 };
10866
10867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10868 if (obj0) {
10869 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 {
10873 PyThreadState* __tstate = wxPyBeginAllowThreads();
10874 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
10875
10876 wxPyEndAllowThreads(__tstate);
10877 if (PyErr_Occurred()) SWIG_fail;
10878 }
10879 {
10880 wxVisualAttributes * resultptr;
10881 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10882 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10883 }
10884 return resultobj;
10885 fail:
10886 return NULL;
10887 }
10888
10889
10890 static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10891 PyObject *obj;
10892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10893 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10894 Py_INCREF(obj);
10895 return Py_BuildValue((char *)"");
10896 }
10897 static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10898 PyObject *resultobj;
10899 wxWindow *arg1 = (wxWindow *) 0 ;
10900 int arg2 = (int) -1 ;
10901 wxString const &arg3_defvalue = wxPyEmptyString ;
10902 wxString *arg3 = (wxString *) &arg3_defvalue ;
10903 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10904 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10905 wxSize const &arg5_defvalue = wxDefaultSize ;
10906 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10907 long arg6 = (long) wxSP_ARROW_KEYS ;
10908 int arg7 = (int) 0 ;
10909 int arg8 = (int) 100 ;
10910 int arg9 = (int) 0 ;
10911 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10912 wxString *arg10 = (wxString *) &arg10_defvalue ;
10913 wxSpinCtrl *result;
10914 bool temp3 = False ;
10915 wxPoint temp4 ;
10916 wxSize temp5 ;
10917 bool temp10 = False ;
10918 PyObject * obj0 = 0 ;
10919 PyObject * obj1 = 0 ;
10920 PyObject * obj2 = 0 ;
10921 PyObject * obj3 = 0 ;
10922 PyObject * obj4 = 0 ;
10923 PyObject * obj5 = 0 ;
10924 PyObject * obj6 = 0 ;
10925 PyObject * obj7 = 0 ;
10926 PyObject * obj8 = 0 ;
10927 PyObject * obj9 = 0 ;
10928 char *kwnames[] = {
10929 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10930 };
10931
10932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10935 if (obj1) {
10936 arg2 = (int) SWIG_AsInt(obj1);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 if (obj2) {
10940 {
10941 arg3 = wxString_in_helper(obj2);
10942 if (arg3 == NULL) SWIG_fail;
10943 temp3 = True;
10944 }
10945 }
10946 if (obj3) {
10947 {
10948 arg4 = &temp4;
10949 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10950 }
10951 }
10952 if (obj4) {
10953 {
10954 arg5 = &temp5;
10955 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10956 }
10957 }
10958 if (obj5) {
10959 arg6 = (long) SWIG_AsLong(obj5);
10960 if (PyErr_Occurred()) SWIG_fail;
10961 }
10962 if (obj6) {
10963 arg7 = (int) SWIG_AsInt(obj6);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 if (obj7) {
10967 arg8 = (int) SWIG_AsInt(obj7);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 }
10970 if (obj8) {
10971 arg9 = (int) SWIG_AsInt(obj8);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 if (obj9) {
10975 {
10976 arg10 = wxString_in_helper(obj9);
10977 if (arg10 == NULL) SWIG_fail;
10978 temp10 = True;
10979 }
10980 }
10981 {
10982 PyThreadState* __tstate = wxPyBeginAllowThreads();
10983 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
10984
10985 wxPyEndAllowThreads(__tstate);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10989 {
10990 if (temp3)
10991 delete arg3;
10992 }
10993 {
10994 if (temp10)
10995 delete arg10;
10996 }
10997 return resultobj;
10998 fail:
10999 {
11000 if (temp3)
11001 delete arg3;
11002 }
11003 {
11004 if (temp10)
11005 delete arg10;
11006 }
11007 return NULL;
11008 }
11009
11010
11011 static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
11012 PyObject *resultobj;
11013 wxSpinCtrl *result;
11014 char *kwnames[] = {
11015 NULL
11016 };
11017
11018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11019 {
11020 PyThreadState* __tstate = wxPyBeginAllowThreads();
11021 result = (wxSpinCtrl *)new wxSpinCtrl();
11022
11023 wxPyEndAllowThreads(__tstate);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 }
11026 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11027 return resultobj;
11028 fail:
11029 return NULL;
11030 }
11031
11032
11033 static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11034 PyObject *resultobj;
11035 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11036 wxWindow *arg2 = (wxWindow *) 0 ;
11037 int arg3 = (int) -1 ;
11038 wxString const &arg4_defvalue = wxPyEmptyString ;
11039 wxString *arg4 = (wxString *) &arg4_defvalue ;
11040 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11041 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11042 wxSize const &arg6_defvalue = wxDefaultSize ;
11043 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11044 long arg7 = (long) wxSP_ARROW_KEYS ;
11045 int arg8 = (int) 0 ;
11046 int arg9 = (int) 100 ;
11047 int arg10 = (int) 0 ;
11048 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11049 wxString *arg11 = (wxString *) &arg11_defvalue ;
11050 bool result;
11051 bool temp4 = False ;
11052 wxPoint temp5 ;
11053 wxSize temp6 ;
11054 bool temp11 = False ;
11055 PyObject * obj0 = 0 ;
11056 PyObject * obj1 = 0 ;
11057 PyObject * obj2 = 0 ;
11058 PyObject * obj3 = 0 ;
11059 PyObject * obj4 = 0 ;
11060 PyObject * obj5 = 0 ;
11061 PyObject * obj6 = 0 ;
11062 PyObject * obj7 = 0 ;
11063 PyObject * obj8 = 0 ;
11064 PyObject * obj9 = 0 ;
11065 PyObject * obj10 = 0 ;
11066 char *kwnames[] = {
11067 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11068 };
11069
11070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11073 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11075 if (obj2) {
11076 arg3 = (int) SWIG_AsInt(obj2);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 }
11079 if (obj3) {
11080 {
11081 arg4 = wxString_in_helper(obj3);
11082 if (arg4 == NULL) SWIG_fail;
11083 temp4 = True;
11084 }
11085 }
11086 if (obj4) {
11087 {
11088 arg5 = &temp5;
11089 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11090 }
11091 }
11092 if (obj5) {
11093 {
11094 arg6 = &temp6;
11095 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11096 }
11097 }
11098 if (obj6) {
11099 arg7 = (long) SWIG_AsLong(obj6);
11100 if (PyErr_Occurred()) SWIG_fail;
11101 }
11102 if (obj7) {
11103 arg8 = (int) SWIG_AsInt(obj7);
11104 if (PyErr_Occurred()) SWIG_fail;
11105 }
11106 if (obj8) {
11107 arg9 = (int) SWIG_AsInt(obj8);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 }
11110 if (obj9) {
11111 arg10 = (int) SWIG_AsInt(obj9);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 }
11114 if (obj10) {
11115 {
11116 arg11 = wxString_in_helper(obj10);
11117 if (arg11 == NULL) SWIG_fail;
11118 temp11 = True;
11119 }
11120 }
11121 {
11122 PyThreadState* __tstate = wxPyBeginAllowThreads();
11123 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11124
11125 wxPyEndAllowThreads(__tstate);
11126 if (PyErr_Occurred()) SWIG_fail;
11127 }
11128 {
11129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11130 }
11131 {
11132 if (temp4)
11133 delete arg4;
11134 }
11135 {
11136 if (temp11)
11137 delete arg11;
11138 }
11139 return resultobj;
11140 fail:
11141 {
11142 if (temp4)
11143 delete arg4;
11144 }
11145 {
11146 if (temp11)
11147 delete arg11;
11148 }
11149 return NULL;
11150 }
11151
11152
11153 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11154 PyObject *resultobj;
11155 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11156 int result;
11157 PyObject * obj0 = 0 ;
11158 char *kwnames[] = {
11159 (char *) "self", NULL
11160 };
11161
11162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11165 {
11166 PyThreadState* __tstate = wxPyBeginAllowThreads();
11167 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11168
11169 wxPyEndAllowThreads(__tstate);
11170 if (PyErr_Occurred()) SWIG_fail;
11171 }
11172 resultobj = SWIG_FromInt((int)result);
11173 return resultobj;
11174 fail:
11175 return NULL;
11176 }
11177
11178
11179 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11180 PyObject *resultobj;
11181 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11182 int arg2 ;
11183 PyObject * obj0 = 0 ;
11184 PyObject * obj1 = 0 ;
11185 char *kwnames[] = {
11186 (char *) "self",(char *) "value", NULL
11187 };
11188
11189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11192 arg2 = (int) SWIG_AsInt(obj1);
11193 if (PyErr_Occurred()) SWIG_fail;
11194 {
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 (arg1)->SetValue(arg2);
11197
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 Py_INCREF(Py_None); resultobj = Py_None;
11202 return resultobj;
11203 fail:
11204 return NULL;
11205 }
11206
11207
11208 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
11209 PyObject *resultobj;
11210 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11211 wxString *arg2 = 0 ;
11212 bool temp2 = False ;
11213 PyObject * obj0 = 0 ;
11214 PyObject * obj1 = 0 ;
11215 char *kwnames[] = {
11216 (char *) "self",(char *) "text", NULL
11217 };
11218
11219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11222 {
11223 arg2 = wxString_in_helper(obj1);
11224 if (arg2 == NULL) SWIG_fail;
11225 temp2 = True;
11226 }
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 (arg1)->SetValue((wxString const &)*arg2);
11230
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 Py_INCREF(Py_None); resultobj = Py_None;
11235 {
11236 if (temp2)
11237 delete arg2;
11238 }
11239 return resultobj;
11240 fail:
11241 {
11242 if (temp2)
11243 delete arg2;
11244 }
11245 return NULL;
11246 }
11247
11248
11249 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
11250 PyObject *resultobj;
11251 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11252 int arg2 ;
11253 int arg3 ;
11254 PyObject * obj0 = 0 ;
11255 PyObject * obj1 = 0 ;
11256 PyObject * obj2 = 0 ;
11257 char *kwnames[] = {
11258 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11259 };
11260
11261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11264 arg2 = (int) SWIG_AsInt(obj1);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 arg3 = (int) SWIG_AsInt(obj2);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 {
11269 PyThreadState* __tstate = wxPyBeginAllowThreads();
11270 (arg1)->SetRange(arg2,arg3);
11271
11272 wxPyEndAllowThreads(__tstate);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 Py_INCREF(Py_None); resultobj = Py_None;
11276 return resultobj;
11277 fail:
11278 return NULL;
11279 }
11280
11281
11282 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
11283 PyObject *resultobj;
11284 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11285 int result;
11286 PyObject * obj0 = 0 ;
11287 char *kwnames[] = {
11288 (char *) "self", NULL
11289 };
11290
11291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11294 {
11295 PyThreadState* __tstate = wxPyBeginAllowThreads();
11296 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11297
11298 wxPyEndAllowThreads(__tstate);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 }
11301 resultobj = SWIG_FromInt((int)result);
11302 return resultobj;
11303 fail:
11304 return NULL;
11305 }
11306
11307
11308 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
11309 PyObject *resultobj;
11310 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11311 int result;
11312 PyObject * obj0 = 0 ;
11313 char *kwnames[] = {
11314 (char *) "self", NULL
11315 };
11316
11317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11320 {
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11323
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 resultobj = SWIG_FromInt((int)result);
11328 return resultobj;
11329 fail:
11330 return NULL;
11331 }
11332
11333
11334 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11335 PyObject *resultobj;
11336 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11337 long arg2 ;
11338 long arg3 ;
11339 PyObject * obj0 = 0 ;
11340 PyObject * obj1 = 0 ;
11341 PyObject * obj2 = 0 ;
11342 char *kwnames[] = {
11343 (char *) "self",(char *) "from",(char *) "to", NULL
11344 };
11345
11346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11349 arg2 = (long) SWIG_AsLong(obj1);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 arg3 = (long) SWIG_AsLong(obj2);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 {
11354 PyThreadState* __tstate = wxPyBeginAllowThreads();
11355 (arg1)->SetSelection(arg2,arg3);
11356
11357 wxPyEndAllowThreads(__tstate);
11358 if (PyErr_Occurred()) SWIG_fail;
11359 }
11360 Py_INCREF(Py_None); resultobj = Py_None;
11361 return resultobj;
11362 fail:
11363 return NULL;
11364 }
11365
11366
11367 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
11368 PyObject *resultobj;
11369 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11370 wxVisualAttributes result;
11371 PyObject * obj0 = 0 ;
11372 char *kwnames[] = {
11373 (char *) "variant", NULL
11374 };
11375
11376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11377 if (obj0) {
11378 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
11379 if (PyErr_Occurred()) SWIG_fail;
11380 }
11381 {
11382 PyThreadState* __tstate = wxPyBeginAllowThreads();
11383 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11384
11385 wxPyEndAllowThreads(__tstate);
11386 if (PyErr_Occurred()) SWIG_fail;
11387 }
11388 {
11389 wxVisualAttributes * resultptr;
11390 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11391 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11392 }
11393 return resultobj;
11394 fail:
11395 return NULL;
11396 }
11397
11398
11399 static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
11400 PyObject *obj;
11401 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11402 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11403 Py_INCREF(obj);
11404 return Py_BuildValue((char *)"");
11405 }
11406 static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11407 PyObject *resultobj;
11408 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11409 int arg2 = (int) 0 ;
11410 wxSpinEvent *result;
11411 PyObject * obj0 = 0 ;
11412 PyObject * obj1 = 0 ;
11413 char *kwnames[] = {
11414 (char *) "commandType",(char *) "winid", NULL
11415 };
11416
11417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11418 if (obj0) {
11419 arg1 = (wxEventType) SWIG_AsInt(obj0);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 if (obj1) {
11423 arg2 = (int) SWIG_AsInt(obj1);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 {
11427 PyThreadState* __tstate = wxPyBeginAllowThreads();
11428 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11429
11430 wxPyEndAllowThreads(__tstate);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 }
11433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11434 return resultobj;
11435 fail:
11436 return NULL;
11437 }
11438
11439
11440 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11441 PyObject *resultobj;
11442 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11443 int result;
11444 PyObject * obj0 = 0 ;
11445 char *kwnames[] = {
11446 (char *) "self", NULL
11447 };
11448
11449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11452 {
11453 PyThreadState* __tstate = wxPyBeginAllowThreads();
11454 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11455
11456 wxPyEndAllowThreads(__tstate);
11457 if (PyErr_Occurred()) SWIG_fail;
11458 }
11459 resultobj = SWIG_FromInt((int)result);
11460 return resultobj;
11461 fail:
11462 return NULL;
11463 }
11464
11465
11466 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11467 PyObject *resultobj;
11468 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11469 int arg2 ;
11470 PyObject * obj0 = 0 ;
11471 PyObject * obj1 = 0 ;
11472 char *kwnames[] = {
11473 (char *) "self",(char *) "pos", NULL
11474 };
11475
11476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11479 arg2 = (int) SWIG_AsInt(obj1);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 {
11482 PyThreadState* __tstate = wxPyBeginAllowThreads();
11483 (arg1)->SetPosition(arg2);
11484
11485 wxPyEndAllowThreads(__tstate);
11486 if (PyErr_Occurred()) SWIG_fail;
11487 }
11488 Py_INCREF(Py_None); resultobj = Py_None;
11489 return resultobj;
11490 fail:
11491 return NULL;
11492 }
11493
11494
11495 static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
11496 PyObject *obj;
11497 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11498 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11499 Py_INCREF(obj);
11500 return Py_BuildValue((char *)"");
11501 }
11502 static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
11503 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11504 return 1;
11505 }
11506
11507
11508 static PyObject *_wrap_RadioBoxNameStr_get() {
11509 PyObject *pyobj;
11510
11511 {
11512 #if wxUSE_UNICODE
11513 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11514 #else
11515 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11516 #endif
11517 }
11518 return pyobj;
11519 }
11520
11521
11522 static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
11523 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11524 return 1;
11525 }
11526
11527
11528 static PyObject *_wrap_RadioButtonNameStr_get() {
11529 PyObject *pyobj;
11530
11531 {
11532 #if wxUSE_UNICODE
11533 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11534 #else
11535 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11536 #endif
11537 }
11538 return pyobj;
11539 }
11540
11541
11542 static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj;
11544 wxWindow *arg1 = (wxWindow *) 0 ;
11545 int arg2 ;
11546 wxString *arg3 = 0 ;
11547 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11548 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11549 wxSize const &arg5_defvalue = wxDefaultSize ;
11550 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11551 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11552 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11553 int arg7 = (int) 0 ;
11554 long arg8 = (long) wxRA_HORIZONTAL ;
11555 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11556 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11557 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11558 wxString *arg10 = (wxString *) &arg10_defvalue ;
11559 wxRadioBox *result;
11560 bool temp3 = False ;
11561 wxPoint temp4 ;
11562 wxSize temp5 ;
11563 bool temp6 = False ;
11564 bool temp10 = False ;
11565 PyObject * obj0 = 0 ;
11566 PyObject * obj1 = 0 ;
11567 PyObject * obj2 = 0 ;
11568 PyObject * obj3 = 0 ;
11569 PyObject * obj4 = 0 ;
11570 PyObject * obj5 = 0 ;
11571 PyObject * obj6 = 0 ;
11572 PyObject * obj7 = 0 ;
11573 PyObject * obj8 = 0 ;
11574 PyObject * obj9 = 0 ;
11575 char *kwnames[] = {
11576 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11577 };
11578
11579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11582 arg2 = (int) SWIG_AsInt(obj1);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 {
11585 arg3 = wxString_in_helper(obj2);
11586 if (arg3 == NULL) SWIG_fail;
11587 temp3 = True;
11588 }
11589 if (obj3) {
11590 {
11591 arg4 = &temp4;
11592 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11593 }
11594 }
11595 if (obj4) {
11596 {
11597 arg5 = &temp5;
11598 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11599 }
11600 }
11601 if (obj5) {
11602 {
11603 if (! PySequence_Check(obj5)) {
11604 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11605 SWIG_fail;
11606 }
11607 arg6 = new wxArrayString;
11608 temp6 = True;
11609 int i, len=PySequence_Length(obj5);
11610 for (i=0; i<len; i++) {
11611 PyObject* item = PySequence_GetItem(obj5, i);
11612 #if wxUSE_UNICODE
11613 PyObject* str = PyObject_Unicode(item);
11614 #else
11615 PyObject* str = PyObject_Str(item);
11616 #endif
11617 if (PyErr_Occurred()) SWIG_fail;
11618 arg6->Add(Py2wxString(str));
11619 Py_DECREF(item);
11620 Py_DECREF(str);
11621 }
11622 }
11623 }
11624 if (obj6) {
11625 arg7 = (int) SWIG_AsInt(obj6);
11626 if (PyErr_Occurred()) SWIG_fail;
11627 }
11628 if (obj7) {
11629 arg8 = (long) SWIG_AsLong(obj7);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 if (obj8) {
11633 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11634 SWIG_POINTER_EXCEPTION | 0)) == -1)
11635 SWIG_fail;
11636 if (arg9 == NULL) {
11637 PyErr_SetString(PyExc_TypeError,"null reference");
11638 SWIG_fail;
11639 }
11640 }
11641 if (obj9) {
11642 {
11643 arg10 = wxString_in_helper(obj9);
11644 if (arg10 == NULL) SWIG_fail;
11645 temp10 = True;
11646 }
11647 }
11648 {
11649 PyThreadState* __tstate = wxPyBeginAllowThreads();
11650 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);
11651
11652 wxPyEndAllowThreads(__tstate);
11653 if (PyErr_Occurred()) SWIG_fail;
11654 }
11655 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11656 {
11657 if (temp3)
11658 delete arg3;
11659 }
11660 {
11661 if (temp6) delete arg6;
11662 }
11663 {
11664 if (temp10)
11665 delete arg10;
11666 }
11667 return resultobj;
11668 fail:
11669 {
11670 if (temp3)
11671 delete arg3;
11672 }
11673 {
11674 if (temp6) delete arg6;
11675 }
11676 {
11677 if (temp10)
11678 delete arg10;
11679 }
11680 return NULL;
11681 }
11682
11683
11684 static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11685 PyObject *resultobj;
11686 wxRadioBox *result;
11687 char *kwnames[] = {
11688 NULL
11689 };
11690
11691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11692 {
11693 PyThreadState* __tstate = wxPyBeginAllowThreads();
11694 result = (wxRadioBox *)new wxRadioBox();
11695
11696 wxPyEndAllowThreads(__tstate);
11697 if (PyErr_Occurred()) SWIG_fail;
11698 }
11699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11700 return resultobj;
11701 fail:
11702 return NULL;
11703 }
11704
11705
11706 static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11707 PyObject *resultobj;
11708 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11709 wxWindow *arg2 = (wxWindow *) 0 ;
11710 int arg3 ;
11711 wxString *arg4 = 0 ;
11712 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11713 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11714 wxSize const &arg6_defvalue = wxDefaultSize ;
11715 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11716 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11717 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11718 int arg8 = (int) 0 ;
11719 long arg9 = (long) wxRA_HORIZONTAL ;
11720 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11721 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11722 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11723 wxString *arg11 = (wxString *) &arg11_defvalue ;
11724 bool result;
11725 bool temp4 = False ;
11726 wxPoint temp5 ;
11727 wxSize temp6 ;
11728 bool temp7 = False ;
11729 bool temp11 = False ;
11730 PyObject * obj0 = 0 ;
11731 PyObject * obj1 = 0 ;
11732 PyObject * obj2 = 0 ;
11733 PyObject * obj3 = 0 ;
11734 PyObject * obj4 = 0 ;
11735 PyObject * obj5 = 0 ;
11736 PyObject * obj6 = 0 ;
11737 PyObject * obj7 = 0 ;
11738 PyObject * obj8 = 0 ;
11739 PyObject * obj9 = 0 ;
11740 PyObject * obj10 = 0 ;
11741 char *kwnames[] = {
11742 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11743 };
11744
11745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11748 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11750 arg3 = (int) SWIG_AsInt(obj2);
11751 if (PyErr_Occurred()) SWIG_fail;
11752 {
11753 arg4 = wxString_in_helper(obj3);
11754 if (arg4 == NULL) SWIG_fail;
11755 temp4 = True;
11756 }
11757 if (obj4) {
11758 {
11759 arg5 = &temp5;
11760 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11761 }
11762 }
11763 if (obj5) {
11764 {
11765 arg6 = &temp6;
11766 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11767 }
11768 }
11769 if (obj6) {
11770 {
11771 if (! PySequence_Check(obj6)) {
11772 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11773 SWIG_fail;
11774 }
11775 arg7 = new wxArrayString;
11776 temp7 = True;
11777 int i, len=PySequence_Length(obj6);
11778 for (i=0; i<len; i++) {
11779 PyObject* item = PySequence_GetItem(obj6, i);
11780 #if wxUSE_UNICODE
11781 PyObject* str = PyObject_Unicode(item);
11782 #else
11783 PyObject* str = PyObject_Str(item);
11784 #endif
11785 if (PyErr_Occurred()) SWIG_fail;
11786 arg7->Add(Py2wxString(str));
11787 Py_DECREF(item);
11788 Py_DECREF(str);
11789 }
11790 }
11791 }
11792 if (obj7) {
11793 arg8 = (int) SWIG_AsInt(obj7);
11794 if (PyErr_Occurred()) SWIG_fail;
11795 }
11796 if (obj8) {
11797 arg9 = (long) SWIG_AsLong(obj8);
11798 if (PyErr_Occurred()) SWIG_fail;
11799 }
11800 if (obj9) {
11801 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11802 SWIG_POINTER_EXCEPTION | 0)) == -1)
11803 SWIG_fail;
11804 if (arg10 == NULL) {
11805 PyErr_SetString(PyExc_TypeError,"null reference");
11806 SWIG_fail;
11807 }
11808 }
11809 if (obj10) {
11810 {
11811 arg11 = wxString_in_helper(obj10);
11812 if (arg11 == NULL) SWIG_fail;
11813 temp11 = True;
11814 }
11815 }
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 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);
11819
11820 wxPyEndAllowThreads(__tstate);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 {
11824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11825 }
11826 {
11827 if (temp4)
11828 delete arg4;
11829 }
11830 {
11831 if (temp7) delete arg7;
11832 }
11833 {
11834 if (temp11)
11835 delete arg11;
11836 }
11837 return resultobj;
11838 fail:
11839 {
11840 if (temp4)
11841 delete arg4;
11842 }
11843 {
11844 if (temp7) delete arg7;
11845 }
11846 {
11847 if (temp11)
11848 delete arg11;
11849 }
11850 return NULL;
11851 }
11852
11853
11854 static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11855 PyObject *resultobj;
11856 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11857 int arg2 ;
11858 PyObject * obj0 = 0 ;
11859 PyObject * obj1 = 0 ;
11860 char *kwnames[] = {
11861 (char *) "self",(char *) "n", NULL
11862 };
11863
11864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11867 arg2 = (int) SWIG_AsInt(obj1);
11868 if (PyErr_Occurred()) SWIG_fail;
11869 {
11870 PyThreadState* __tstate = wxPyBeginAllowThreads();
11871 (arg1)->SetSelection(arg2);
11872
11873 wxPyEndAllowThreads(__tstate);
11874 if (PyErr_Occurred()) SWIG_fail;
11875 }
11876 Py_INCREF(Py_None); resultobj = Py_None;
11877 return resultobj;
11878 fail:
11879 return NULL;
11880 }
11881
11882
11883 static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11884 PyObject *resultobj;
11885 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11886 int result;
11887 PyObject * obj0 = 0 ;
11888 char *kwnames[] = {
11889 (char *) "self", NULL
11890 };
11891
11892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11895 {
11896 PyThreadState* __tstate = wxPyBeginAllowThreads();
11897 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11898
11899 wxPyEndAllowThreads(__tstate);
11900 if (PyErr_Occurred()) SWIG_fail;
11901 }
11902 resultobj = SWIG_FromInt((int)result);
11903 return resultobj;
11904 fail:
11905 return NULL;
11906 }
11907
11908
11909 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11910 PyObject *resultobj;
11911 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11912 wxString result;
11913 PyObject * obj0 = 0 ;
11914 char *kwnames[] = {
11915 (char *) "self", NULL
11916 };
11917
11918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11921 {
11922 PyThreadState* __tstate = wxPyBeginAllowThreads();
11923 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11924
11925 wxPyEndAllowThreads(__tstate);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 {
11929 #if wxUSE_UNICODE
11930 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11931 #else
11932 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11933 #endif
11934 }
11935 return resultobj;
11936 fail:
11937 return NULL;
11938 }
11939
11940
11941 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11942 PyObject *resultobj;
11943 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11944 wxString *arg2 = 0 ;
11945 bool result;
11946 bool temp2 = False ;
11947 PyObject * obj0 = 0 ;
11948 PyObject * obj1 = 0 ;
11949 char *kwnames[] = {
11950 (char *) "self",(char *) "s", NULL
11951 };
11952
11953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
11954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11956 {
11957 arg2 = wxString_in_helper(obj1);
11958 if (arg2 == NULL) SWIG_fail;
11959 temp2 = True;
11960 }
11961 {
11962 PyThreadState* __tstate = wxPyBeginAllowThreads();
11963 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
11964
11965 wxPyEndAllowThreads(__tstate);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 {
11969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11970 }
11971 {
11972 if (temp2)
11973 delete arg2;
11974 }
11975 return resultobj;
11976 fail:
11977 {
11978 if (temp2)
11979 delete arg2;
11980 }
11981 return NULL;
11982 }
11983
11984
11985 static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11986 PyObject *resultobj;
11987 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11988 int result;
11989 PyObject * obj0 = 0 ;
11990 char *kwnames[] = {
11991 (char *) "self", NULL
11992 };
11993
11994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
11995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11997 {
11998 PyThreadState* __tstate = wxPyBeginAllowThreads();
11999 result = (int)((wxRadioBox const *)arg1)->GetCount();
12000
12001 wxPyEndAllowThreads(__tstate);
12002 if (PyErr_Occurred()) SWIG_fail;
12003 }
12004 resultobj = SWIG_FromInt((int)result);
12005 return resultobj;
12006 fail:
12007 return NULL;
12008 }
12009
12010
12011 static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
12012 PyObject *resultobj;
12013 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12014 wxString *arg2 = 0 ;
12015 int result;
12016 bool temp2 = False ;
12017 PyObject * obj0 = 0 ;
12018 PyObject * obj1 = 0 ;
12019 char *kwnames[] = {
12020 (char *) "self",(char *) "s", NULL
12021 };
12022
12023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12026 {
12027 arg2 = wxString_in_helper(obj1);
12028 if (arg2 == NULL) SWIG_fail;
12029 temp2 = True;
12030 }
12031 {
12032 PyThreadState* __tstate = wxPyBeginAllowThreads();
12033 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12034
12035 wxPyEndAllowThreads(__tstate);
12036 if (PyErr_Occurred()) SWIG_fail;
12037 }
12038 resultobj = SWIG_FromInt((int)result);
12039 {
12040 if (temp2)
12041 delete arg2;
12042 }
12043 return resultobj;
12044 fail:
12045 {
12046 if (temp2)
12047 delete arg2;
12048 }
12049 return NULL;
12050 }
12051
12052
12053 static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12054 PyObject *resultobj;
12055 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12056 int arg2 ;
12057 wxString result;
12058 PyObject * obj0 = 0 ;
12059 PyObject * obj1 = 0 ;
12060 char *kwnames[] = {
12061 (char *) "self",(char *) "n", NULL
12062 };
12063
12064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12067 arg2 = (int) SWIG_AsInt(obj1);
12068 if (PyErr_Occurred()) SWIG_fail;
12069 {
12070 PyThreadState* __tstate = wxPyBeginAllowThreads();
12071 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12072
12073 wxPyEndAllowThreads(__tstate);
12074 if (PyErr_Occurred()) SWIG_fail;
12075 }
12076 {
12077 #if wxUSE_UNICODE
12078 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12079 #else
12080 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12081 #endif
12082 }
12083 return resultobj;
12084 fail:
12085 return NULL;
12086 }
12087
12088
12089 static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12090 PyObject *resultobj;
12091 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12092 int arg2 ;
12093 wxString *arg3 = 0 ;
12094 bool temp3 = False ;
12095 PyObject * obj0 = 0 ;
12096 PyObject * obj1 = 0 ;
12097 PyObject * obj2 = 0 ;
12098 char *kwnames[] = {
12099 (char *) "self",(char *) "n",(char *) "label", NULL
12100 };
12101
12102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12105 arg2 = (int) SWIG_AsInt(obj1);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 {
12108 arg3 = wxString_in_helper(obj2);
12109 if (arg3 == NULL) SWIG_fail;
12110 temp3 = True;
12111 }
12112 {
12113 PyThreadState* __tstate = wxPyBeginAllowThreads();
12114 (arg1)->SetString(arg2,(wxString const &)*arg3);
12115
12116 wxPyEndAllowThreads(__tstate);
12117 if (PyErr_Occurred()) SWIG_fail;
12118 }
12119 Py_INCREF(Py_None); resultobj = Py_None;
12120 {
12121 if (temp3)
12122 delete arg3;
12123 }
12124 return resultobj;
12125 fail:
12126 {
12127 if (temp3)
12128 delete arg3;
12129 }
12130 return NULL;
12131 }
12132
12133
12134 static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12135 PyObject *resultobj;
12136 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12137 int arg2 ;
12138 bool arg3 = (bool) True ;
12139 PyObject * obj0 = 0 ;
12140 PyObject * obj1 = 0 ;
12141 PyObject * obj2 = 0 ;
12142 char *kwnames[] = {
12143 (char *) "self",(char *) "n",(char *) "enable", NULL
12144 };
12145
12146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12149 arg2 = (int) SWIG_AsInt(obj1);
12150 if (PyErr_Occurred()) SWIG_fail;
12151 if (obj2) {
12152 arg3 = (bool) SWIG_AsBool(obj2);
12153 if (PyErr_Occurred()) SWIG_fail;
12154 }
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 (arg1)->Enable(arg2,arg3);
12158
12159 wxPyEndAllowThreads(__tstate);
12160 if (PyErr_Occurred()) SWIG_fail;
12161 }
12162 Py_INCREF(Py_None); resultobj = Py_None;
12163 return resultobj;
12164 fail:
12165 return NULL;
12166 }
12167
12168
12169 static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12170 PyObject *resultobj;
12171 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12172 int arg2 ;
12173 bool arg3 = (bool) True ;
12174 PyObject * obj0 = 0 ;
12175 PyObject * obj1 = 0 ;
12176 PyObject * obj2 = 0 ;
12177 char *kwnames[] = {
12178 (char *) "self",(char *) "n",(char *) "show", NULL
12179 };
12180
12181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12184 arg2 = (int) SWIG_AsInt(obj1);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 if (obj2) {
12187 arg3 = (bool) SWIG_AsBool(obj2);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 {
12191 PyThreadState* __tstate = wxPyBeginAllowThreads();
12192 (arg1)->Show(arg2,arg3);
12193
12194 wxPyEndAllowThreads(__tstate);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 Py_INCREF(Py_None); resultobj = Py_None;
12198 return resultobj;
12199 fail:
12200 return NULL;
12201 }
12202
12203
12204 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12205 PyObject *resultobj;
12206 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12207 int result;
12208 PyObject * obj0 = 0 ;
12209 char *kwnames[] = {
12210 (char *) "self", NULL
12211 };
12212
12213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12219
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 resultobj = SWIG_FromInt((int)result);
12224 return resultobj;
12225 fail:
12226 return NULL;
12227 }
12228
12229
12230 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj;
12232 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12233 int result;
12234 PyObject * obj0 = 0 ;
12235 char *kwnames[] = {
12236 (char *) "self", NULL
12237 };
12238
12239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12242 {
12243 PyThreadState* __tstate = wxPyBeginAllowThreads();
12244 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12245
12246 wxPyEndAllowThreads(__tstate);
12247 if (PyErr_Occurred()) SWIG_fail;
12248 }
12249 resultobj = SWIG_FromInt((int)result);
12250 return resultobj;
12251 fail:
12252 return NULL;
12253 }
12254
12255
12256 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12257 PyObject *resultobj;
12258 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12259 int arg2 ;
12260 int arg3 ;
12261 long arg4 ;
12262 int result;
12263 PyObject * obj0 = 0 ;
12264 PyObject * obj1 = 0 ;
12265 PyObject * obj2 = 0 ;
12266 PyObject * obj3 = 0 ;
12267 char *kwnames[] = {
12268 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12269 };
12270
12271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12274 arg2 = (int) SWIG_AsInt(obj1);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 arg3 = (wxDirection) SWIG_AsInt(obj2);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 arg4 = (long) SWIG_AsLong(obj3);
12279 if (PyErr_Occurred()) SWIG_fail;
12280 {
12281 PyThreadState* __tstate = wxPyBeginAllowThreads();
12282 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12283
12284 wxPyEndAllowThreads(__tstate);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 resultobj = SWIG_FromInt((int)result);
12288 return resultobj;
12289 fail:
12290 return NULL;
12291 }
12292
12293
12294 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12295 PyObject *resultobj;
12296 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12297 wxVisualAttributes result;
12298 PyObject * obj0 = 0 ;
12299 char *kwnames[] = {
12300 (char *) "variant", NULL
12301 };
12302
12303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12304 if (obj0) {
12305 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12306 if (PyErr_Occurred()) SWIG_fail;
12307 }
12308 {
12309 PyThreadState* __tstate = wxPyBeginAllowThreads();
12310 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12311
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) SWIG_fail;
12314 }
12315 {
12316 wxVisualAttributes * resultptr;
12317 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12318 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12319 }
12320 return resultobj;
12321 fail:
12322 return NULL;
12323 }
12324
12325
12326 static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
12327 PyObject *obj;
12328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12329 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12330 Py_INCREF(obj);
12331 return Py_BuildValue((char *)"");
12332 }
12333 static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12334 PyObject *resultobj;
12335 wxWindow *arg1 = (wxWindow *) 0 ;
12336 int arg2 ;
12337 wxString *arg3 = 0 ;
12338 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12339 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12340 wxSize const &arg5_defvalue = wxDefaultSize ;
12341 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12342 long arg6 = (long) 0 ;
12343 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12344 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12345 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12346 wxString *arg8 = (wxString *) &arg8_defvalue ;
12347 wxRadioButton *result;
12348 bool temp3 = False ;
12349 wxPoint temp4 ;
12350 wxSize temp5 ;
12351 bool temp8 = False ;
12352 PyObject * obj0 = 0 ;
12353 PyObject * obj1 = 0 ;
12354 PyObject * obj2 = 0 ;
12355 PyObject * obj3 = 0 ;
12356 PyObject * obj4 = 0 ;
12357 PyObject * obj5 = 0 ;
12358 PyObject * obj6 = 0 ;
12359 PyObject * obj7 = 0 ;
12360 char *kwnames[] = {
12361 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12362 };
12363
12364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12367 arg2 = (int) SWIG_AsInt(obj1);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 {
12370 arg3 = wxString_in_helper(obj2);
12371 if (arg3 == NULL) SWIG_fail;
12372 temp3 = True;
12373 }
12374 if (obj3) {
12375 {
12376 arg4 = &temp4;
12377 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12378 }
12379 }
12380 if (obj4) {
12381 {
12382 arg5 = &temp5;
12383 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12384 }
12385 }
12386 if (obj5) {
12387 arg6 = (long) SWIG_AsLong(obj5);
12388 if (PyErr_Occurred()) SWIG_fail;
12389 }
12390 if (obj6) {
12391 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12392 SWIG_POINTER_EXCEPTION | 0)) == -1)
12393 SWIG_fail;
12394 if (arg7 == NULL) {
12395 PyErr_SetString(PyExc_TypeError,"null reference");
12396 SWIG_fail;
12397 }
12398 }
12399 if (obj7) {
12400 {
12401 arg8 = wxString_in_helper(obj7);
12402 if (arg8 == NULL) SWIG_fail;
12403 temp8 = True;
12404 }
12405 }
12406 {
12407 PyThreadState* __tstate = wxPyBeginAllowThreads();
12408 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12409
12410 wxPyEndAllowThreads(__tstate);
12411 if (PyErr_Occurred()) SWIG_fail;
12412 }
12413 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12414 {
12415 if (temp3)
12416 delete arg3;
12417 }
12418 {
12419 if (temp8)
12420 delete arg8;
12421 }
12422 return resultobj;
12423 fail:
12424 {
12425 if (temp3)
12426 delete arg3;
12427 }
12428 {
12429 if (temp8)
12430 delete arg8;
12431 }
12432 return NULL;
12433 }
12434
12435
12436 static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12437 PyObject *resultobj;
12438 wxRadioButton *result;
12439 char *kwnames[] = {
12440 NULL
12441 };
12442
12443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12444 {
12445 PyThreadState* __tstate = wxPyBeginAllowThreads();
12446 result = (wxRadioButton *)new wxRadioButton();
12447
12448 wxPyEndAllowThreads(__tstate);
12449 if (PyErr_Occurred()) SWIG_fail;
12450 }
12451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12452 return resultobj;
12453 fail:
12454 return NULL;
12455 }
12456
12457
12458 static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12459 PyObject *resultobj;
12460 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12461 wxWindow *arg2 = (wxWindow *) 0 ;
12462 int arg3 ;
12463 wxString *arg4 = 0 ;
12464 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12465 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12466 wxSize const &arg6_defvalue = wxDefaultSize ;
12467 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12468 long arg7 = (long) 0 ;
12469 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12470 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12471 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12472 wxString *arg9 = (wxString *) &arg9_defvalue ;
12473 bool result;
12474 bool temp4 = False ;
12475 wxPoint temp5 ;
12476 wxSize temp6 ;
12477 bool temp9 = False ;
12478 PyObject * obj0 = 0 ;
12479 PyObject * obj1 = 0 ;
12480 PyObject * obj2 = 0 ;
12481 PyObject * obj3 = 0 ;
12482 PyObject * obj4 = 0 ;
12483 PyObject * obj5 = 0 ;
12484 PyObject * obj6 = 0 ;
12485 PyObject * obj7 = 0 ;
12486 PyObject * obj8 = 0 ;
12487 char *kwnames[] = {
12488 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12489 };
12490
12491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12496 arg3 = (int) SWIG_AsInt(obj2);
12497 if (PyErr_Occurred()) SWIG_fail;
12498 {
12499 arg4 = wxString_in_helper(obj3);
12500 if (arg4 == NULL) SWIG_fail;
12501 temp4 = True;
12502 }
12503 if (obj4) {
12504 {
12505 arg5 = &temp5;
12506 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12507 }
12508 }
12509 if (obj5) {
12510 {
12511 arg6 = &temp6;
12512 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12513 }
12514 }
12515 if (obj6) {
12516 arg7 = (long) SWIG_AsLong(obj6);
12517 if (PyErr_Occurred()) SWIG_fail;
12518 }
12519 if (obj7) {
12520 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12521 SWIG_POINTER_EXCEPTION | 0)) == -1)
12522 SWIG_fail;
12523 if (arg8 == NULL) {
12524 PyErr_SetString(PyExc_TypeError,"null reference");
12525 SWIG_fail;
12526 }
12527 }
12528 if (obj8) {
12529 {
12530 arg9 = wxString_in_helper(obj8);
12531 if (arg9 == NULL) SWIG_fail;
12532 temp9 = True;
12533 }
12534 }
12535 {
12536 PyThreadState* __tstate = wxPyBeginAllowThreads();
12537 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12538
12539 wxPyEndAllowThreads(__tstate);
12540 if (PyErr_Occurred()) SWIG_fail;
12541 }
12542 {
12543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12544 }
12545 {
12546 if (temp4)
12547 delete arg4;
12548 }
12549 {
12550 if (temp9)
12551 delete arg9;
12552 }
12553 return resultobj;
12554 fail:
12555 {
12556 if (temp4)
12557 delete arg4;
12558 }
12559 {
12560 if (temp9)
12561 delete arg9;
12562 }
12563 return NULL;
12564 }
12565
12566
12567 static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12568 PyObject *resultobj;
12569 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12570 bool result;
12571 PyObject * obj0 = 0 ;
12572 char *kwnames[] = {
12573 (char *) "self", NULL
12574 };
12575
12576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12579 {
12580 PyThreadState* __tstate = wxPyBeginAllowThreads();
12581 result = (bool)(arg1)->GetValue();
12582
12583 wxPyEndAllowThreads(__tstate);
12584 if (PyErr_Occurred()) SWIG_fail;
12585 }
12586 {
12587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12588 }
12589 return resultobj;
12590 fail:
12591 return NULL;
12592 }
12593
12594
12595 static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12596 PyObject *resultobj;
12597 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12598 bool arg2 ;
12599 PyObject * obj0 = 0 ;
12600 PyObject * obj1 = 0 ;
12601 char *kwnames[] = {
12602 (char *) "self",(char *) "value", NULL
12603 };
12604
12605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12608 arg2 = (bool) SWIG_AsBool(obj1);
12609 if (PyErr_Occurred()) SWIG_fail;
12610 {
12611 PyThreadState* __tstate = wxPyBeginAllowThreads();
12612 (arg1)->SetValue(arg2);
12613
12614 wxPyEndAllowThreads(__tstate);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 }
12617 Py_INCREF(Py_None); resultobj = Py_None;
12618 return resultobj;
12619 fail:
12620 return NULL;
12621 }
12622
12623
12624 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12625 PyObject *resultobj;
12626 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12627 wxVisualAttributes result;
12628 PyObject * obj0 = 0 ;
12629 char *kwnames[] = {
12630 (char *) "variant", NULL
12631 };
12632
12633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12634 if (obj0) {
12635 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 {
12639 PyThreadState* __tstate = wxPyBeginAllowThreads();
12640 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12641
12642 wxPyEndAllowThreads(__tstate);
12643 if (PyErr_Occurred()) SWIG_fail;
12644 }
12645 {
12646 wxVisualAttributes * resultptr;
12647 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12648 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12649 }
12650 return resultobj;
12651 fail:
12652 return NULL;
12653 }
12654
12655
12656 static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
12657 PyObject *obj;
12658 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12659 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12660 Py_INCREF(obj);
12661 return Py_BuildValue((char *)"");
12662 }
12663 static int _wrap_SliderNameStr_set(PyObject *_val) {
12664 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12665 return 1;
12666 }
12667
12668
12669 static PyObject *_wrap_SliderNameStr_get() {
12670 PyObject *pyobj;
12671
12672 {
12673 #if wxUSE_UNICODE
12674 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12675 #else
12676 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12677 #endif
12678 }
12679 return pyobj;
12680 }
12681
12682
12683 static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
12684 PyObject *resultobj;
12685 wxWindow *arg1 = (wxWindow *) 0 ;
12686 int arg2 ;
12687 int arg3 ;
12688 int arg4 ;
12689 int arg5 ;
12690 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12691 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12692 wxSize const &arg7_defvalue = wxDefaultSize ;
12693 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12694 long arg8 = (long) wxSL_HORIZONTAL ;
12695 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12696 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12697 wxString const &arg10_defvalue = wxPySliderNameStr ;
12698 wxString *arg10 = (wxString *) &arg10_defvalue ;
12699 wxSlider *result;
12700 wxPoint temp6 ;
12701 wxSize temp7 ;
12702 bool temp10 = False ;
12703 PyObject * obj0 = 0 ;
12704 PyObject * obj1 = 0 ;
12705 PyObject * obj2 = 0 ;
12706 PyObject * obj3 = 0 ;
12707 PyObject * obj4 = 0 ;
12708 PyObject * obj5 = 0 ;
12709 PyObject * obj6 = 0 ;
12710 PyObject * obj7 = 0 ;
12711 PyObject * obj8 = 0 ;
12712 PyObject * obj9 = 0 ;
12713 char *kwnames[] = {
12714 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12715 };
12716
12717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12720 arg2 = (int) SWIG_AsInt(obj1);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 arg3 = (int) SWIG_AsInt(obj2);
12723 if (PyErr_Occurred()) SWIG_fail;
12724 arg4 = (int) SWIG_AsInt(obj3);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 arg5 = (int) SWIG_AsInt(obj4);
12727 if (PyErr_Occurred()) SWIG_fail;
12728 if (obj5) {
12729 {
12730 arg6 = &temp6;
12731 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12732 }
12733 }
12734 if (obj6) {
12735 {
12736 arg7 = &temp7;
12737 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12738 }
12739 }
12740 if (obj7) {
12741 arg8 = (long) SWIG_AsLong(obj7);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 if (obj8) {
12745 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12746 SWIG_POINTER_EXCEPTION | 0)) == -1)
12747 SWIG_fail;
12748 if (arg9 == NULL) {
12749 PyErr_SetString(PyExc_TypeError,"null reference");
12750 SWIG_fail;
12751 }
12752 }
12753 if (obj9) {
12754 {
12755 arg10 = wxString_in_helper(obj9);
12756 if (arg10 == NULL) SWIG_fail;
12757 temp10 = True;
12758 }
12759 }
12760 {
12761 PyThreadState* __tstate = wxPyBeginAllowThreads();
12762 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12763
12764 wxPyEndAllowThreads(__tstate);
12765 if (PyErr_Occurred()) SWIG_fail;
12766 }
12767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12768 {
12769 if (temp10)
12770 delete arg10;
12771 }
12772 return resultobj;
12773 fail:
12774 {
12775 if (temp10)
12776 delete arg10;
12777 }
12778 return NULL;
12779 }
12780
12781
12782 static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
12783 PyObject *resultobj;
12784 wxSlider *result;
12785 char *kwnames[] = {
12786 NULL
12787 };
12788
12789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12790 {
12791 PyThreadState* __tstate = wxPyBeginAllowThreads();
12792 result = (wxSlider *)new wxSlider();
12793
12794 wxPyEndAllowThreads(__tstate);
12795 if (PyErr_Occurred()) SWIG_fail;
12796 }
12797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12798 return resultobj;
12799 fail:
12800 return NULL;
12801 }
12802
12803
12804 static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12805 PyObject *resultobj;
12806 wxSlider *arg1 = (wxSlider *) 0 ;
12807 wxWindow *arg2 = (wxWindow *) 0 ;
12808 int arg3 ;
12809 int arg4 ;
12810 int arg5 ;
12811 int arg6 ;
12812 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12813 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12814 wxSize const &arg8_defvalue = wxDefaultSize ;
12815 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12816 long arg9 = (long) wxSL_HORIZONTAL ;
12817 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12818 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12819 wxString const &arg11_defvalue = wxPySliderNameStr ;
12820 wxString *arg11 = (wxString *) &arg11_defvalue ;
12821 bool result;
12822 wxPoint temp7 ;
12823 wxSize temp8 ;
12824 bool temp11 = False ;
12825 PyObject * obj0 = 0 ;
12826 PyObject * obj1 = 0 ;
12827 PyObject * obj2 = 0 ;
12828 PyObject * obj3 = 0 ;
12829 PyObject * obj4 = 0 ;
12830 PyObject * obj5 = 0 ;
12831 PyObject * obj6 = 0 ;
12832 PyObject * obj7 = 0 ;
12833 PyObject * obj8 = 0 ;
12834 PyObject * obj9 = 0 ;
12835 PyObject * obj10 = 0 ;
12836 char *kwnames[] = {
12837 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12838 };
12839
12840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12845 arg3 = (int) SWIG_AsInt(obj2);
12846 if (PyErr_Occurred()) SWIG_fail;
12847 arg4 = (int) SWIG_AsInt(obj3);
12848 if (PyErr_Occurred()) SWIG_fail;
12849 arg5 = (int) SWIG_AsInt(obj4);
12850 if (PyErr_Occurred()) SWIG_fail;
12851 arg6 = (int) SWIG_AsInt(obj5);
12852 if (PyErr_Occurred()) SWIG_fail;
12853 if (obj6) {
12854 {
12855 arg7 = &temp7;
12856 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12857 }
12858 }
12859 if (obj7) {
12860 {
12861 arg8 = &temp8;
12862 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12863 }
12864 }
12865 if (obj8) {
12866 arg9 = (long) SWIG_AsLong(obj8);
12867 if (PyErr_Occurred()) SWIG_fail;
12868 }
12869 if (obj9) {
12870 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12871 SWIG_POINTER_EXCEPTION | 0)) == -1)
12872 SWIG_fail;
12873 if (arg10 == NULL) {
12874 PyErr_SetString(PyExc_TypeError,"null reference");
12875 SWIG_fail;
12876 }
12877 }
12878 if (obj10) {
12879 {
12880 arg11 = wxString_in_helper(obj10);
12881 if (arg11 == NULL) SWIG_fail;
12882 temp11 = True;
12883 }
12884 }
12885 {
12886 PyThreadState* __tstate = wxPyBeginAllowThreads();
12887 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12888
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 {
12893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12894 }
12895 {
12896 if (temp11)
12897 delete arg11;
12898 }
12899 return resultobj;
12900 fail:
12901 {
12902 if (temp11)
12903 delete arg11;
12904 }
12905 return NULL;
12906 }
12907
12908
12909 static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12910 PyObject *resultobj;
12911 wxSlider *arg1 = (wxSlider *) 0 ;
12912 int result;
12913 PyObject * obj0 = 0 ;
12914 char *kwnames[] = {
12915 (char *) "self", NULL
12916 };
12917
12918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 result = (int)((wxSlider const *)arg1)->GetValue();
12924
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 resultobj = SWIG_FromInt((int)result);
12929 return resultobj;
12930 fail:
12931 return NULL;
12932 }
12933
12934
12935 static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12936 PyObject *resultobj;
12937 wxSlider *arg1 = (wxSlider *) 0 ;
12938 int arg2 ;
12939 PyObject * obj0 = 0 ;
12940 PyObject * obj1 = 0 ;
12941 char *kwnames[] = {
12942 (char *) "self",(char *) "value", NULL
12943 };
12944
12945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12948 arg2 = (int) SWIG_AsInt(obj1);
12949 if (PyErr_Occurred()) SWIG_fail;
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 (arg1)->SetValue(arg2);
12953
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 Py_INCREF(Py_None); resultobj = Py_None;
12958 return resultobj;
12959 fail:
12960 return NULL;
12961 }
12962
12963
12964 static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj;
12966 wxSlider *arg1 = (wxSlider *) 0 ;
12967 int arg2 ;
12968 int arg3 ;
12969 PyObject * obj0 = 0 ;
12970 PyObject * obj1 = 0 ;
12971 PyObject * obj2 = 0 ;
12972 char *kwnames[] = {
12973 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
12974 };
12975
12976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
12977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12979 arg2 = (int) SWIG_AsInt(obj1);
12980 if (PyErr_Occurred()) SWIG_fail;
12981 arg3 = (int) SWIG_AsInt(obj2);
12982 if (PyErr_Occurred()) SWIG_fail;
12983 {
12984 PyThreadState* __tstate = wxPyBeginAllowThreads();
12985 (arg1)->SetRange(arg2,arg3);
12986
12987 wxPyEndAllowThreads(__tstate);
12988 if (PyErr_Occurred()) SWIG_fail;
12989 }
12990 Py_INCREF(Py_None); resultobj = Py_None;
12991 return resultobj;
12992 fail:
12993 return NULL;
12994 }
12995
12996
12997 static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12998 PyObject *resultobj;
12999 wxSlider *arg1 = (wxSlider *) 0 ;
13000 int result;
13001 PyObject * obj0 = 0 ;
13002 char *kwnames[] = {
13003 (char *) "self", NULL
13004 };
13005
13006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13009 {
13010 PyThreadState* __tstate = wxPyBeginAllowThreads();
13011 result = (int)((wxSlider const *)arg1)->GetMin();
13012
13013 wxPyEndAllowThreads(__tstate);
13014 if (PyErr_Occurred()) SWIG_fail;
13015 }
13016 resultobj = SWIG_FromInt((int)result);
13017 return resultobj;
13018 fail:
13019 return NULL;
13020 }
13021
13022
13023 static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13024 PyObject *resultobj;
13025 wxSlider *arg1 = (wxSlider *) 0 ;
13026 int result;
13027 PyObject * obj0 = 0 ;
13028 char *kwnames[] = {
13029 (char *) "self", NULL
13030 };
13031
13032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13035 {
13036 PyThreadState* __tstate = wxPyBeginAllowThreads();
13037 result = (int)((wxSlider const *)arg1)->GetMax();
13038
13039 wxPyEndAllowThreads(__tstate);
13040 if (PyErr_Occurred()) SWIG_fail;
13041 }
13042 resultobj = SWIG_FromInt((int)result);
13043 return resultobj;
13044 fail:
13045 return NULL;
13046 }
13047
13048
13049 static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
13050 PyObject *resultobj;
13051 wxSlider *arg1 = (wxSlider *) 0 ;
13052 int arg2 ;
13053 PyObject * obj0 = 0 ;
13054 PyObject * obj1 = 0 ;
13055 char *kwnames[] = {
13056 (char *) "self",(char *) "minValue", NULL
13057 };
13058
13059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13062 arg2 = (int) SWIG_AsInt(obj1);
13063 if (PyErr_Occurred()) SWIG_fail;
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 (arg1)->SetMin(arg2);
13067
13068 wxPyEndAllowThreads(__tstate);
13069 if (PyErr_Occurred()) SWIG_fail;
13070 }
13071 Py_INCREF(Py_None); resultobj = Py_None;
13072 return resultobj;
13073 fail:
13074 return NULL;
13075 }
13076
13077
13078 static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13079 PyObject *resultobj;
13080 wxSlider *arg1 = (wxSlider *) 0 ;
13081 int arg2 ;
13082 PyObject * obj0 = 0 ;
13083 PyObject * obj1 = 0 ;
13084 char *kwnames[] = {
13085 (char *) "self",(char *) "maxValue", NULL
13086 };
13087
13088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13091 arg2 = (int) SWIG_AsInt(obj1);
13092 if (PyErr_Occurred()) SWIG_fail;
13093 {
13094 PyThreadState* __tstate = wxPyBeginAllowThreads();
13095 (arg1)->SetMax(arg2);
13096
13097 wxPyEndAllowThreads(__tstate);
13098 if (PyErr_Occurred()) SWIG_fail;
13099 }
13100 Py_INCREF(Py_None); resultobj = Py_None;
13101 return resultobj;
13102 fail:
13103 return NULL;
13104 }
13105
13106
13107 static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13108 PyObject *resultobj;
13109 wxSlider *arg1 = (wxSlider *) 0 ;
13110 int arg2 ;
13111 PyObject * obj0 = 0 ;
13112 PyObject * obj1 = 0 ;
13113 char *kwnames[] = {
13114 (char *) "self",(char *) "lineSize", NULL
13115 };
13116
13117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13120 arg2 = (int) SWIG_AsInt(obj1);
13121 if (PyErr_Occurred()) SWIG_fail;
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 (arg1)->SetLineSize(arg2);
13125
13126 wxPyEndAllowThreads(__tstate);
13127 if (PyErr_Occurred()) SWIG_fail;
13128 }
13129 Py_INCREF(Py_None); resultobj = Py_None;
13130 return resultobj;
13131 fail:
13132 return NULL;
13133 }
13134
13135
13136 static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13137 PyObject *resultobj;
13138 wxSlider *arg1 = (wxSlider *) 0 ;
13139 int arg2 ;
13140 PyObject * obj0 = 0 ;
13141 PyObject * obj1 = 0 ;
13142 char *kwnames[] = {
13143 (char *) "self",(char *) "pageSize", NULL
13144 };
13145
13146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13149 arg2 = (int) SWIG_AsInt(obj1);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 {
13152 PyThreadState* __tstate = wxPyBeginAllowThreads();
13153 (arg1)->SetPageSize(arg2);
13154
13155 wxPyEndAllowThreads(__tstate);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 Py_INCREF(Py_None); resultobj = Py_None;
13159 return resultobj;
13160 fail:
13161 return NULL;
13162 }
13163
13164
13165 static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13166 PyObject *resultobj;
13167 wxSlider *arg1 = (wxSlider *) 0 ;
13168 int result;
13169 PyObject * obj0 = 0 ;
13170 char *kwnames[] = {
13171 (char *) "self", NULL
13172 };
13173
13174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13177 {
13178 PyThreadState* __tstate = wxPyBeginAllowThreads();
13179 result = (int)((wxSlider const *)arg1)->GetLineSize();
13180
13181 wxPyEndAllowThreads(__tstate);
13182 if (PyErr_Occurred()) SWIG_fail;
13183 }
13184 resultobj = SWIG_FromInt((int)result);
13185 return resultobj;
13186 fail:
13187 return NULL;
13188 }
13189
13190
13191 static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13192 PyObject *resultobj;
13193 wxSlider *arg1 = (wxSlider *) 0 ;
13194 int result;
13195 PyObject * obj0 = 0 ;
13196 char *kwnames[] = {
13197 (char *) "self", NULL
13198 };
13199
13200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13203 {
13204 PyThreadState* __tstate = wxPyBeginAllowThreads();
13205 result = (int)((wxSlider const *)arg1)->GetPageSize();
13206
13207 wxPyEndAllowThreads(__tstate);
13208 if (PyErr_Occurred()) SWIG_fail;
13209 }
13210 resultobj = SWIG_FromInt((int)result);
13211 return resultobj;
13212 fail:
13213 return NULL;
13214 }
13215
13216
13217 static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13218 PyObject *resultobj;
13219 wxSlider *arg1 = (wxSlider *) 0 ;
13220 int arg2 ;
13221 PyObject * obj0 = 0 ;
13222 PyObject * obj1 = 0 ;
13223 char *kwnames[] = {
13224 (char *) "self",(char *) "lenPixels", NULL
13225 };
13226
13227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13230 arg2 = (int) SWIG_AsInt(obj1);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 {
13233 PyThreadState* __tstate = wxPyBeginAllowThreads();
13234 (arg1)->SetThumbLength(arg2);
13235
13236 wxPyEndAllowThreads(__tstate);
13237 if (PyErr_Occurred()) SWIG_fail;
13238 }
13239 Py_INCREF(Py_None); resultobj = Py_None;
13240 return resultobj;
13241 fail:
13242 return NULL;
13243 }
13244
13245
13246 static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13247 PyObject *resultobj;
13248 wxSlider *arg1 = (wxSlider *) 0 ;
13249 int result;
13250 PyObject * obj0 = 0 ;
13251 char *kwnames[] = {
13252 (char *) "self", NULL
13253 };
13254
13255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13258 {
13259 PyThreadState* __tstate = wxPyBeginAllowThreads();
13260 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13261
13262 wxPyEndAllowThreads(__tstate);
13263 if (PyErr_Occurred()) SWIG_fail;
13264 }
13265 resultobj = SWIG_FromInt((int)result);
13266 return resultobj;
13267 fail:
13268 return NULL;
13269 }
13270
13271
13272 static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13273 PyObject *resultobj;
13274 wxSlider *arg1 = (wxSlider *) 0 ;
13275 int arg2 ;
13276 int arg3 = (int) 1 ;
13277 PyObject * obj0 = 0 ;
13278 PyObject * obj1 = 0 ;
13279 PyObject * obj2 = 0 ;
13280 char *kwnames[] = {
13281 (char *) "self",(char *) "n",(char *) "pos", NULL
13282 };
13283
13284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13287 arg2 = (int) SWIG_AsInt(obj1);
13288 if (PyErr_Occurred()) SWIG_fail;
13289 if (obj2) {
13290 arg3 = (int) SWIG_AsInt(obj2);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 (arg1)->SetTickFreq(arg2,arg3);
13296
13297 wxPyEndAllowThreads(__tstate);
13298 if (PyErr_Occurred()) SWIG_fail;
13299 }
13300 Py_INCREF(Py_None); resultobj = Py_None;
13301 return resultobj;
13302 fail:
13303 return NULL;
13304 }
13305
13306
13307 static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13308 PyObject *resultobj;
13309 wxSlider *arg1 = (wxSlider *) 0 ;
13310 int result;
13311 PyObject * obj0 = 0 ;
13312 char *kwnames[] = {
13313 (char *) "self", NULL
13314 };
13315
13316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13322
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 resultobj = SWIG_FromInt((int)result);
13327 return resultobj;
13328 fail:
13329 return NULL;
13330 }
13331
13332
13333 static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
13334 PyObject *resultobj;
13335 wxSlider *arg1 = (wxSlider *) 0 ;
13336 PyObject * obj0 = 0 ;
13337 char *kwnames[] = {
13338 (char *) "self", NULL
13339 };
13340
13341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13344 {
13345 PyThreadState* __tstate = wxPyBeginAllowThreads();
13346 (arg1)->ClearTicks();
13347
13348 wxPyEndAllowThreads(__tstate);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 }
13351 Py_INCREF(Py_None); resultobj = Py_None;
13352 return resultobj;
13353 fail:
13354 return NULL;
13355 }
13356
13357
13358 static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
13359 PyObject *resultobj;
13360 wxSlider *arg1 = (wxSlider *) 0 ;
13361 int arg2 ;
13362 PyObject * obj0 = 0 ;
13363 PyObject * obj1 = 0 ;
13364 char *kwnames[] = {
13365 (char *) "self",(char *) "tickPos", NULL
13366 };
13367
13368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13371 arg2 = (int) SWIG_AsInt(obj1);
13372 if (PyErr_Occurred()) SWIG_fail;
13373 {
13374 PyThreadState* __tstate = wxPyBeginAllowThreads();
13375 (arg1)->SetTick(arg2);
13376
13377 wxPyEndAllowThreads(__tstate);
13378 if (PyErr_Occurred()) SWIG_fail;
13379 }
13380 Py_INCREF(Py_None); resultobj = Py_None;
13381 return resultobj;
13382 fail:
13383 return NULL;
13384 }
13385
13386
13387 static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
13388 PyObject *resultobj;
13389 wxSlider *arg1 = (wxSlider *) 0 ;
13390 PyObject * obj0 = 0 ;
13391 char *kwnames[] = {
13392 (char *) "self", NULL
13393 };
13394
13395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13398 {
13399 PyThreadState* __tstate = wxPyBeginAllowThreads();
13400 (arg1)->ClearSel();
13401
13402 wxPyEndAllowThreads(__tstate);
13403 if (PyErr_Occurred()) SWIG_fail;
13404 }
13405 Py_INCREF(Py_None); resultobj = Py_None;
13406 return resultobj;
13407 fail:
13408 return NULL;
13409 }
13410
13411
13412 static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
13413 PyObject *resultobj;
13414 wxSlider *arg1 = (wxSlider *) 0 ;
13415 int result;
13416 PyObject * obj0 = 0 ;
13417 char *kwnames[] = {
13418 (char *) "self", NULL
13419 };
13420
13421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13427
13428 wxPyEndAllowThreads(__tstate);
13429 if (PyErr_Occurred()) SWIG_fail;
13430 }
13431 resultobj = SWIG_FromInt((int)result);
13432 return resultobj;
13433 fail:
13434 return NULL;
13435 }
13436
13437
13438 static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
13439 PyObject *resultobj;
13440 wxSlider *arg1 = (wxSlider *) 0 ;
13441 int result;
13442 PyObject * obj0 = 0 ;
13443 char *kwnames[] = {
13444 (char *) "self", NULL
13445 };
13446
13447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 result = (int)((wxSlider const *)arg1)->GetSelStart();
13453
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 resultobj = SWIG_FromInt((int)result);
13458 return resultobj;
13459 fail:
13460 return NULL;
13461 }
13462
13463
13464 static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13465 PyObject *resultobj;
13466 wxSlider *arg1 = (wxSlider *) 0 ;
13467 int arg2 ;
13468 int arg3 ;
13469 PyObject * obj0 = 0 ;
13470 PyObject * obj1 = 0 ;
13471 PyObject * obj2 = 0 ;
13472 char *kwnames[] = {
13473 (char *) "self",(char *) "min",(char *) "max", NULL
13474 };
13475
13476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13479 arg2 = (int) SWIG_AsInt(obj1);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 arg3 = (int) SWIG_AsInt(obj2);
13482 if (PyErr_Occurred()) SWIG_fail;
13483 {
13484 PyThreadState* __tstate = wxPyBeginAllowThreads();
13485 (arg1)->SetSelection(arg2,arg3);
13486
13487 wxPyEndAllowThreads(__tstate);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 }
13490 Py_INCREF(Py_None); resultobj = Py_None;
13491 return resultobj;
13492 fail:
13493 return NULL;
13494 }
13495
13496
13497 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13498 PyObject *resultobj;
13499 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13500 wxVisualAttributes result;
13501 PyObject * obj0 = 0 ;
13502 char *kwnames[] = {
13503 (char *) "variant", NULL
13504 };
13505
13506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13507 if (obj0) {
13508 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13509 if (PyErr_Occurred()) SWIG_fail;
13510 }
13511 {
13512 PyThreadState* __tstate = wxPyBeginAllowThreads();
13513 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13514
13515 wxPyEndAllowThreads(__tstate);
13516 if (PyErr_Occurred()) SWIG_fail;
13517 }
13518 {
13519 wxVisualAttributes * resultptr;
13520 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13521 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13522 }
13523 return resultobj;
13524 fail:
13525 return NULL;
13526 }
13527
13528
13529 static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
13530 PyObject *obj;
13531 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13532 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13533 Py_INCREF(obj);
13534 return Py_BuildValue((char *)"");
13535 }
13536 static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
13537 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13538 return 1;
13539 }
13540
13541
13542 static PyObject *_wrap_ToggleButtonNameStr_get() {
13543 PyObject *pyobj;
13544
13545 {
13546 #if wxUSE_UNICODE
13547 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13548 #else
13549 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13550 #endif
13551 }
13552 return pyobj;
13553 }
13554
13555
13556 static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13557 PyObject *resultobj;
13558 wxWindow *arg1 = (wxWindow *) 0 ;
13559 int arg2 ;
13560 wxString *arg3 = 0 ;
13561 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13562 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13563 wxSize const &arg5_defvalue = wxDefaultSize ;
13564 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13565 long arg6 = (long) 0 ;
13566 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13567 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13568 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13569 wxString *arg8 = (wxString *) &arg8_defvalue ;
13570 wxToggleButton *result;
13571 bool temp3 = False ;
13572 wxPoint temp4 ;
13573 wxSize temp5 ;
13574 bool temp8 = False ;
13575 PyObject * obj0 = 0 ;
13576 PyObject * obj1 = 0 ;
13577 PyObject * obj2 = 0 ;
13578 PyObject * obj3 = 0 ;
13579 PyObject * obj4 = 0 ;
13580 PyObject * obj5 = 0 ;
13581 PyObject * obj6 = 0 ;
13582 PyObject * obj7 = 0 ;
13583 char *kwnames[] = {
13584 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13585 };
13586
13587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13590 arg2 = (int) SWIG_AsInt(obj1);
13591 if (PyErr_Occurred()) SWIG_fail;
13592 {
13593 arg3 = wxString_in_helper(obj2);
13594 if (arg3 == NULL) SWIG_fail;
13595 temp3 = True;
13596 }
13597 if (obj3) {
13598 {
13599 arg4 = &temp4;
13600 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13601 }
13602 }
13603 if (obj4) {
13604 {
13605 arg5 = &temp5;
13606 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13607 }
13608 }
13609 if (obj5) {
13610 arg6 = (long) SWIG_AsLong(obj5);
13611 if (PyErr_Occurred()) SWIG_fail;
13612 }
13613 if (obj6) {
13614 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13615 SWIG_POINTER_EXCEPTION | 0)) == -1)
13616 SWIG_fail;
13617 if (arg7 == NULL) {
13618 PyErr_SetString(PyExc_TypeError,"null reference");
13619 SWIG_fail;
13620 }
13621 }
13622 if (obj7) {
13623 {
13624 arg8 = wxString_in_helper(obj7);
13625 if (arg8 == NULL) SWIG_fail;
13626 temp8 = True;
13627 }
13628 }
13629 {
13630 PyThreadState* __tstate = wxPyBeginAllowThreads();
13631 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13632
13633 wxPyEndAllowThreads(__tstate);
13634 if (PyErr_Occurred()) SWIG_fail;
13635 }
13636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13637 {
13638 if (temp3)
13639 delete arg3;
13640 }
13641 {
13642 if (temp8)
13643 delete arg8;
13644 }
13645 return resultobj;
13646 fail:
13647 {
13648 if (temp3)
13649 delete arg3;
13650 }
13651 {
13652 if (temp8)
13653 delete arg8;
13654 }
13655 return NULL;
13656 }
13657
13658
13659 static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13660 PyObject *resultobj;
13661 wxToggleButton *result;
13662 char *kwnames[] = {
13663 NULL
13664 };
13665
13666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
13667 {
13668 PyThreadState* __tstate = wxPyBeginAllowThreads();
13669 result = (wxToggleButton *)new wxToggleButton();
13670
13671 wxPyEndAllowThreads(__tstate);
13672 if (PyErr_Occurred()) SWIG_fail;
13673 }
13674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13675 return resultobj;
13676 fail:
13677 return NULL;
13678 }
13679
13680
13681 static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13682 PyObject *resultobj;
13683 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13684 wxWindow *arg2 = (wxWindow *) 0 ;
13685 int arg3 ;
13686 wxString *arg4 = 0 ;
13687 wxPoint const &arg5_defvalue = wxDefaultPosition ;
13688 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
13689 wxSize const &arg6_defvalue = wxDefaultSize ;
13690 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
13691 long arg7 = (long) 0 ;
13692 wxValidator const &arg8_defvalue = wxDefaultValidator ;
13693 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
13694 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
13695 wxString *arg9 = (wxString *) &arg9_defvalue ;
13696 bool result;
13697 bool temp4 = False ;
13698 wxPoint temp5 ;
13699 wxSize temp6 ;
13700 bool temp9 = False ;
13701 PyObject * obj0 = 0 ;
13702 PyObject * obj1 = 0 ;
13703 PyObject * obj2 = 0 ;
13704 PyObject * obj3 = 0 ;
13705 PyObject * obj4 = 0 ;
13706 PyObject * obj5 = 0 ;
13707 PyObject * obj6 = 0 ;
13708 PyObject * obj7 = 0 ;
13709 PyObject * obj8 = 0 ;
13710 char *kwnames[] = {
13711 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13712 };
13713
13714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
13715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13717 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13719 arg3 = (int) SWIG_AsInt(obj2);
13720 if (PyErr_Occurred()) SWIG_fail;
13721 {
13722 arg4 = wxString_in_helper(obj3);
13723 if (arg4 == NULL) SWIG_fail;
13724 temp4 = True;
13725 }
13726 if (obj4) {
13727 {
13728 arg5 = &temp5;
13729 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13730 }
13731 }
13732 if (obj5) {
13733 {
13734 arg6 = &temp6;
13735 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13736 }
13737 }
13738 if (obj6) {
13739 arg7 = (long) SWIG_AsLong(obj6);
13740 if (PyErr_Occurred()) SWIG_fail;
13741 }
13742 if (obj7) {
13743 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13744 SWIG_POINTER_EXCEPTION | 0)) == -1)
13745 SWIG_fail;
13746 if (arg8 == NULL) {
13747 PyErr_SetString(PyExc_TypeError,"null reference");
13748 SWIG_fail;
13749 }
13750 }
13751 if (obj8) {
13752 {
13753 arg9 = wxString_in_helper(obj8);
13754 if (arg9 == NULL) SWIG_fail;
13755 temp9 = True;
13756 }
13757 }
13758 {
13759 PyThreadState* __tstate = wxPyBeginAllowThreads();
13760 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13761
13762 wxPyEndAllowThreads(__tstate);
13763 if (PyErr_Occurred()) SWIG_fail;
13764 }
13765 {
13766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13767 }
13768 {
13769 if (temp4)
13770 delete arg4;
13771 }
13772 {
13773 if (temp9)
13774 delete arg9;
13775 }
13776 return resultobj;
13777 fail:
13778 {
13779 if (temp4)
13780 delete arg4;
13781 }
13782 {
13783 if (temp9)
13784 delete arg9;
13785 }
13786 return NULL;
13787 }
13788
13789
13790 static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13791 PyObject *resultobj;
13792 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13793 bool arg2 ;
13794 PyObject * obj0 = 0 ;
13795 PyObject * obj1 = 0 ;
13796 char *kwnames[] = {
13797 (char *) "self",(char *) "value", NULL
13798 };
13799
13800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13803 arg2 = (bool) SWIG_AsBool(obj1);
13804 if (PyErr_Occurred()) SWIG_fail;
13805 {
13806 PyThreadState* __tstate = wxPyBeginAllowThreads();
13807 (arg1)->SetValue(arg2);
13808
13809 wxPyEndAllowThreads(__tstate);
13810 if (PyErr_Occurred()) SWIG_fail;
13811 }
13812 Py_INCREF(Py_None); resultobj = Py_None;
13813 return resultobj;
13814 fail:
13815 return NULL;
13816 }
13817
13818
13819 static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13820 PyObject *resultobj;
13821 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13822 bool result;
13823 PyObject * obj0 = 0 ;
13824 char *kwnames[] = {
13825 (char *) "self", NULL
13826 };
13827
13828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
13829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13831 {
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
13833 result = (bool)((wxToggleButton const *)arg1)->GetValue();
13834
13835 wxPyEndAllowThreads(__tstate);
13836 if (PyErr_Occurred()) SWIG_fail;
13837 }
13838 {
13839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13840 }
13841 return resultobj;
13842 fail:
13843 return NULL;
13844 }
13845
13846
13847 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
13848 PyObject *resultobj;
13849 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13850 wxString *arg2 = 0 ;
13851 bool temp2 = False ;
13852 PyObject * obj0 = 0 ;
13853 PyObject * obj1 = 0 ;
13854 char *kwnames[] = {
13855 (char *) "self",(char *) "label", NULL
13856 };
13857
13858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
13859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13861 {
13862 arg2 = wxString_in_helper(obj1);
13863 if (arg2 == NULL) SWIG_fail;
13864 temp2 = True;
13865 }
13866 {
13867 PyThreadState* __tstate = wxPyBeginAllowThreads();
13868 (arg1)->SetLabel((wxString const &)*arg2);
13869
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 Py_INCREF(Py_None); resultobj = Py_None;
13874 {
13875 if (temp2)
13876 delete arg2;
13877 }
13878 return resultobj;
13879 fail:
13880 {
13881 if (temp2)
13882 delete arg2;
13883 }
13884 return NULL;
13885 }
13886
13887
13888 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13889 PyObject *resultobj;
13890 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13891 wxVisualAttributes result;
13892 PyObject * obj0 = 0 ;
13893 char *kwnames[] = {
13894 (char *) "variant", NULL
13895 };
13896
13897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13898 if (obj0) {
13899 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 {
13903 PyThreadState* __tstate = wxPyBeginAllowThreads();
13904 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
13905
13906 wxPyEndAllowThreads(__tstate);
13907 if (PyErr_Occurred()) SWIG_fail;
13908 }
13909 {
13910 wxVisualAttributes * resultptr;
13911 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13912 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13913 }
13914 return resultobj;
13915 fail:
13916 return NULL;
13917 }
13918
13919
13920 static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
13921 PyObject *obj;
13922 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13923 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
13924 Py_INCREF(obj);
13925 return Py_BuildValue((char *)"");
13926 }
13927 static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
13928 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
13929 return 1;
13930 }
13931
13932
13933 static PyObject *_wrap_NOTEBOOK_NAME_get() {
13934 PyObject *pyobj;
13935
13936 {
13937 #if wxUSE_UNICODE
13938 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13939 #else
13940 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13941 #endif
13942 }
13943 return pyobj;
13944 }
13945
13946
13947 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj;
13949 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13950 size_t result;
13951 PyObject * obj0 = 0 ;
13952 char *kwnames[] = {
13953 (char *) "self", NULL
13954 };
13955
13956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
13957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13959 {
13960 PyThreadState* __tstate = wxPyBeginAllowThreads();
13961 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
13962
13963 wxPyEndAllowThreads(__tstate);
13964 if (PyErr_Occurred()) SWIG_fail;
13965 }
13966 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
13967 return resultobj;
13968 fail:
13969 return NULL;
13970 }
13971
13972
13973 static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13974 PyObject *resultobj;
13975 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13976 size_t arg2 ;
13977 wxWindow *result;
13978 PyObject * obj0 = 0 ;
13979 PyObject * obj1 = 0 ;
13980 char *kwnames[] = {
13981 (char *) "self",(char *) "n", NULL
13982 };
13983
13984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
13985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13987 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13988 if (PyErr_Occurred()) SWIG_fail;
13989 {
13990 PyThreadState* __tstate = wxPyBeginAllowThreads();
13991 result = (wxWindow *)(arg1)->GetPage(arg2);
13992
13993 wxPyEndAllowThreads(__tstate);
13994 if (PyErr_Occurred()) SWIG_fail;
13995 }
13996 {
13997 resultobj = wxPyMake_wxObject(result);
13998 }
13999 return resultobj;
14000 fail:
14001 return NULL;
14002 }
14003
14004
14005 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14006 PyObject *resultobj;
14007 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14008 int result;
14009 PyObject * obj0 = 0 ;
14010 char *kwnames[] = {
14011 (char *) "self", NULL
14012 };
14013
14014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14017 {
14018 PyThreadState* __tstate = wxPyBeginAllowThreads();
14019 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14020
14021 wxPyEndAllowThreads(__tstate);
14022 if (PyErr_Occurred()) SWIG_fail;
14023 }
14024 resultobj = SWIG_FromInt((int)result);
14025 return resultobj;
14026 fail:
14027 return NULL;
14028 }
14029
14030
14031 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14032 PyObject *resultobj;
14033 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14034 size_t arg2 ;
14035 wxString *arg3 = 0 ;
14036 bool result;
14037 bool temp3 = False ;
14038 PyObject * obj0 = 0 ;
14039 PyObject * obj1 = 0 ;
14040 PyObject * obj2 = 0 ;
14041 char *kwnames[] = {
14042 (char *) "self",(char *) "n",(char *) "strText", NULL
14043 };
14044
14045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14048 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14049 if (PyErr_Occurred()) SWIG_fail;
14050 {
14051 arg3 = wxString_in_helper(obj2);
14052 if (arg3 == NULL) SWIG_fail;
14053 temp3 = True;
14054 }
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
14057 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14058
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
14062 {
14063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14064 }
14065 {
14066 if (temp3)
14067 delete arg3;
14068 }
14069 return resultobj;
14070 fail:
14071 {
14072 if (temp3)
14073 delete arg3;
14074 }
14075 return NULL;
14076 }
14077
14078
14079 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14080 PyObject *resultobj;
14081 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14082 size_t arg2 ;
14083 wxString result;
14084 PyObject * obj0 = 0 ;
14085 PyObject * obj1 = 0 ;
14086 char *kwnames[] = {
14087 (char *) "self",(char *) "n", NULL
14088 };
14089
14090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14093 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14094 if (PyErr_Occurred()) SWIG_fail;
14095 {
14096 PyThreadState* __tstate = wxPyBeginAllowThreads();
14097 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14098
14099 wxPyEndAllowThreads(__tstate);
14100 if (PyErr_Occurred()) SWIG_fail;
14101 }
14102 {
14103 #if wxUSE_UNICODE
14104 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14105 #else
14106 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14107 #endif
14108 }
14109 return resultobj;
14110 fail:
14111 return NULL;
14112 }
14113
14114
14115 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14116 PyObject *resultobj;
14117 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14118 wxImageList *arg2 = (wxImageList *) 0 ;
14119 PyObject * obj0 = 0 ;
14120 PyObject * obj1 = 0 ;
14121 char *kwnames[] = {
14122 (char *) "self",(char *) "imageList", NULL
14123 };
14124
14125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14128 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14130 {
14131 PyThreadState* __tstate = wxPyBeginAllowThreads();
14132 (arg1)->SetImageList(arg2);
14133
14134 wxPyEndAllowThreads(__tstate);
14135 if (PyErr_Occurred()) SWIG_fail;
14136 }
14137 Py_INCREF(Py_None); resultobj = Py_None;
14138 return resultobj;
14139 fail:
14140 return NULL;
14141 }
14142
14143
14144 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14145 PyObject *resultobj;
14146 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14147 wxImageList *arg2 = (wxImageList *) 0 ;
14148 PyObject * obj0 = 0 ;
14149 PyObject * obj1 = 0 ;
14150 char *kwnames[] = {
14151 (char *) "self",(char *) "imageList", NULL
14152 };
14153
14154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14157 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14158 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14159 {
14160 PyThreadState* __tstate = wxPyBeginAllowThreads();
14161 (arg1)->AssignImageList(arg2);
14162
14163 wxPyEndAllowThreads(__tstate);
14164 if (PyErr_Occurred()) SWIG_fail;
14165 }
14166 Py_INCREF(Py_None); resultobj = Py_None;
14167 return resultobj;
14168 fail:
14169 return NULL;
14170 }
14171
14172
14173 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14174 PyObject *resultobj;
14175 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14176 wxImageList *result;
14177 PyObject * obj0 = 0 ;
14178 char *kwnames[] = {
14179 (char *) "self", NULL
14180 };
14181
14182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14185 {
14186 PyThreadState* __tstate = wxPyBeginAllowThreads();
14187 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14188
14189 wxPyEndAllowThreads(__tstate);
14190 if (PyErr_Occurred()) SWIG_fail;
14191 }
14192 {
14193 resultobj = wxPyMake_wxObject(result);
14194 }
14195 return resultobj;
14196 fail:
14197 return NULL;
14198 }
14199
14200
14201 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14202 PyObject *resultobj;
14203 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14204 size_t arg2 ;
14205 int result;
14206 PyObject * obj0 = 0 ;
14207 PyObject * obj1 = 0 ;
14208 char *kwnames[] = {
14209 (char *) "self",(char *) "n", NULL
14210 };
14211
14212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14215 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 {
14218 PyThreadState* __tstate = wxPyBeginAllowThreads();
14219 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14220
14221 wxPyEndAllowThreads(__tstate);
14222 if (PyErr_Occurred()) SWIG_fail;
14223 }
14224 resultobj = SWIG_FromInt((int)result);
14225 return resultobj;
14226 fail:
14227 return NULL;
14228 }
14229
14230
14231 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14232 PyObject *resultobj;
14233 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14234 size_t arg2 ;
14235 int arg3 ;
14236 bool result;
14237 PyObject * obj0 = 0 ;
14238 PyObject * obj1 = 0 ;
14239 PyObject * obj2 = 0 ;
14240 char *kwnames[] = {
14241 (char *) "self",(char *) "n",(char *) "imageId", NULL
14242 };
14243
14244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14247 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14248 if (PyErr_Occurred()) SWIG_fail;
14249 arg3 = (int) SWIG_AsInt(obj2);
14250 if (PyErr_Occurred()) SWIG_fail;
14251 {
14252 PyThreadState* __tstate = wxPyBeginAllowThreads();
14253 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14254
14255 wxPyEndAllowThreads(__tstate);
14256 if (PyErr_Occurred()) SWIG_fail;
14257 }
14258 {
14259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14260 }
14261 return resultobj;
14262 fail:
14263 return NULL;
14264 }
14265
14266
14267 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14268 PyObject *resultobj;
14269 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14270 wxSize *arg2 = 0 ;
14271 wxSize temp2 ;
14272 PyObject * obj0 = 0 ;
14273 PyObject * obj1 = 0 ;
14274 char *kwnames[] = {
14275 (char *) "self",(char *) "size", NULL
14276 };
14277
14278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14281 {
14282 arg2 = &temp2;
14283 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14284 }
14285 {
14286 PyThreadState* __tstate = wxPyBeginAllowThreads();
14287 (arg1)->SetPageSize((wxSize const &)*arg2);
14288
14289 wxPyEndAllowThreads(__tstate);
14290 if (PyErr_Occurred()) SWIG_fail;
14291 }
14292 Py_INCREF(Py_None); resultobj = Py_None;
14293 return resultobj;
14294 fail:
14295 return NULL;
14296 }
14297
14298
14299 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14300 PyObject *resultobj;
14301 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14302 wxSize *arg2 = 0 ;
14303 wxSize result;
14304 wxSize temp2 ;
14305 PyObject * obj0 = 0 ;
14306 PyObject * obj1 = 0 ;
14307 char *kwnames[] = {
14308 (char *) "self",(char *) "sizePage", NULL
14309 };
14310
14311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14314 {
14315 arg2 = &temp2;
14316 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14317 }
14318 {
14319 PyThreadState* __tstate = wxPyBeginAllowThreads();
14320 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14321
14322 wxPyEndAllowThreads(__tstate);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 {
14326 wxSize * resultptr;
14327 resultptr = new wxSize((wxSize &) result);
14328 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14329 }
14330 return resultobj;
14331 fail:
14332 return NULL;
14333 }
14334
14335
14336 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14337 PyObject *resultobj;
14338 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14339 size_t arg2 ;
14340 bool result;
14341 PyObject * obj0 = 0 ;
14342 PyObject * obj1 = 0 ;
14343 char *kwnames[] = {
14344 (char *) "self",(char *) "n", NULL
14345 };
14346
14347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14350 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14351 if (PyErr_Occurred()) SWIG_fail;
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 result = (bool)(arg1)->DeletePage(arg2);
14355
14356 wxPyEndAllowThreads(__tstate);
14357 if (PyErr_Occurred()) SWIG_fail;
14358 }
14359 {
14360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14361 }
14362 return resultobj;
14363 fail:
14364 return NULL;
14365 }
14366
14367
14368 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14369 PyObject *resultobj;
14370 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14371 size_t arg2 ;
14372 bool result;
14373 PyObject * obj0 = 0 ;
14374 PyObject * obj1 = 0 ;
14375 char *kwnames[] = {
14376 (char *) "self",(char *) "n", NULL
14377 };
14378
14379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14382 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14383 if (PyErr_Occurred()) SWIG_fail;
14384 {
14385 PyThreadState* __tstate = wxPyBeginAllowThreads();
14386 result = (bool)(arg1)->RemovePage(arg2);
14387
14388 wxPyEndAllowThreads(__tstate);
14389 if (PyErr_Occurred()) SWIG_fail;
14390 }
14391 {
14392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14393 }
14394 return resultobj;
14395 fail:
14396 return NULL;
14397 }
14398
14399
14400 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
14401 PyObject *resultobj;
14402 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14403 bool result;
14404 PyObject * obj0 = 0 ;
14405 char *kwnames[] = {
14406 (char *) "self", NULL
14407 };
14408
14409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14412 {
14413 PyThreadState* __tstate = wxPyBeginAllowThreads();
14414 result = (bool)(arg1)->DeleteAllPages();
14415
14416 wxPyEndAllowThreads(__tstate);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 }
14419 {
14420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14421 }
14422 return resultobj;
14423 fail:
14424 return NULL;
14425 }
14426
14427
14428 static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14429 PyObject *resultobj;
14430 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14431 wxWindow *arg2 = (wxWindow *) 0 ;
14432 wxString *arg3 = 0 ;
14433 bool arg4 = (bool) False ;
14434 int arg5 = (int) -1 ;
14435 bool result;
14436 bool temp3 = False ;
14437 PyObject * obj0 = 0 ;
14438 PyObject * obj1 = 0 ;
14439 PyObject * obj2 = 0 ;
14440 PyObject * obj3 = 0 ;
14441 PyObject * obj4 = 0 ;
14442 char *kwnames[] = {
14443 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14444 };
14445
14446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14449 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14451 {
14452 arg3 = wxString_in_helper(obj2);
14453 if (arg3 == NULL) SWIG_fail;
14454 temp3 = True;
14455 }
14456 if (obj3) {
14457 arg4 = (bool) SWIG_AsBool(obj3);
14458 if (PyErr_Occurred()) SWIG_fail;
14459 }
14460 if (obj4) {
14461 arg5 = (int) SWIG_AsInt(obj4);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 {
14465 PyThreadState* __tstate = wxPyBeginAllowThreads();
14466 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14467
14468 wxPyEndAllowThreads(__tstate);
14469 if (PyErr_Occurred()) SWIG_fail;
14470 }
14471 {
14472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14473 }
14474 {
14475 if (temp3)
14476 delete arg3;
14477 }
14478 return resultobj;
14479 fail:
14480 {
14481 if (temp3)
14482 delete arg3;
14483 }
14484 return NULL;
14485 }
14486
14487
14488 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14489 PyObject *resultobj;
14490 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14491 size_t arg2 ;
14492 wxWindow *arg3 = (wxWindow *) 0 ;
14493 wxString *arg4 = 0 ;
14494 bool arg5 = (bool) False ;
14495 int arg6 = (int) -1 ;
14496 bool result;
14497 bool temp4 = False ;
14498 PyObject * obj0 = 0 ;
14499 PyObject * obj1 = 0 ;
14500 PyObject * obj2 = 0 ;
14501 PyObject * obj3 = 0 ;
14502 PyObject * obj4 = 0 ;
14503 PyObject * obj5 = 0 ;
14504 char *kwnames[] = {
14505 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14506 };
14507
14508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14511 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14515 {
14516 arg4 = wxString_in_helper(obj3);
14517 if (arg4 == NULL) SWIG_fail;
14518 temp4 = True;
14519 }
14520 if (obj4) {
14521 arg5 = (bool) SWIG_AsBool(obj4);
14522 if (PyErr_Occurred()) SWIG_fail;
14523 }
14524 if (obj5) {
14525 arg6 = (int) SWIG_AsInt(obj5);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 }
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14531
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 {
14536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14537 }
14538 {
14539 if (temp4)
14540 delete arg4;
14541 }
14542 return resultobj;
14543 fail:
14544 {
14545 if (temp4)
14546 delete arg4;
14547 }
14548 return NULL;
14549 }
14550
14551
14552 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14553 PyObject *resultobj;
14554 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14555 size_t arg2 ;
14556 int result;
14557 PyObject * obj0 = 0 ;
14558 PyObject * obj1 = 0 ;
14559 char *kwnames[] = {
14560 (char *) "self",(char *) "n", NULL
14561 };
14562
14563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14566 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 {
14569 PyThreadState* __tstate = wxPyBeginAllowThreads();
14570 result = (int)(arg1)->SetSelection(arg2);
14571
14572 wxPyEndAllowThreads(__tstate);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
14575 resultobj = SWIG_FromInt((int)result);
14576 return resultobj;
14577 fail:
14578 return NULL;
14579 }
14580
14581
14582 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14583 PyObject *resultobj;
14584 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14585 bool arg2 = (bool) True ;
14586 PyObject * obj0 = 0 ;
14587 PyObject * obj1 = 0 ;
14588 char *kwnames[] = {
14589 (char *) "self",(char *) "forward", NULL
14590 };
14591
14592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14595 if (obj1) {
14596 arg2 = (bool) SWIG_AsBool(obj1);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
14599 {
14600 PyThreadState* __tstate = wxPyBeginAllowThreads();
14601 (arg1)->AdvanceSelection(arg2);
14602
14603 wxPyEndAllowThreads(__tstate);
14604 if (PyErr_Occurred()) SWIG_fail;
14605 }
14606 Py_INCREF(Py_None); resultobj = Py_None;
14607 return resultobj;
14608 fail:
14609 return NULL;
14610 }
14611
14612
14613 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
14614 PyObject *resultobj;
14615 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14616 wxVisualAttributes result;
14617 PyObject * obj0 = 0 ;
14618 char *kwnames[] = {
14619 (char *) "variant", NULL
14620 };
14621
14622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14623 if (obj0) {
14624 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 }
14627 {
14628 PyThreadState* __tstate = wxPyBeginAllowThreads();
14629 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14630
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 {
14635 wxVisualAttributes * resultptr;
14636 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14637 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14638 }
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
14646 PyObject *obj;
14647 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14648 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
14649 Py_INCREF(obj);
14650 return Py_BuildValue((char *)"");
14651 }
14652 static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14653 PyObject *resultobj;
14654 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14655 int arg2 = (int) 0 ;
14656 int arg3 = (int) -1 ;
14657 int arg4 = (int) -1 ;
14658 wxBookCtrlEvent *result;
14659 PyObject * obj0 = 0 ;
14660 PyObject * obj1 = 0 ;
14661 PyObject * obj2 = 0 ;
14662 PyObject * obj3 = 0 ;
14663 char *kwnames[] = {
14664 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14665 };
14666
14667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14668 if (obj0) {
14669 arg1 = (wxEventType) SWIG_AsInt(obj0);
14670 if (PyErr_Occurred()) SWIG_fail;
14671 }
14672 if (obj1) {
14673 arg2 = (int) SWIG_AsInt(obj1);
14674 if (PyErr_Occurred()) SWIG_fail;
14675 }
14676 if (obj2) {
14677 arg3 = (int) SWIG_AsInt(obj2);
14678 if (PyErr_Occurred()) SWIG_fail;
14679 }
14680 if (obj3) {
14681 arg4 = (int) SWIG_AsInt(obj3);
14682 if (PyErr_Occurred()) SWIG_fail;
14683 }
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
14687
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
14692 return resultobj;
14693 fail:
14694 return NULL;
14695 }
14696
14697
14698 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14699 PyObject *resultobj;
14700 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14701 int result;
14702 PyObject * obj0 = 0 ;
14703 char *kwnames[] = {
14704 (char *) "self", NULL
14705 };
14706
14707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
14708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14710 {
14711 PyThreadState* __tstate = wxPyBeginAllowThreads();
14712 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
14713
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = SWIG_FromInt((int)result);
14718 return resultobj;
14719 fail:
14720 return NULL;
14721 }
14722
14723
14724 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14725 PyObject *resultobj;
14726 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14727 int arg2 ;
14728 PyObject * obj0 = 0 ;
14729 PyObject * obj1 = 0 ;
14730 char *kwnames[] = {
14731 (char *) "self",(char *) "nSel", NULL
14732 };
14733
14734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14737 arg2 = (int) SWIG_AsInt(obj1);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 {
14740 PyThreadState* __tstate = wxPyBeginAllowThreads();
14741 (arg1)->SetSelection(arg2);
14742
14743 wxPyEndAllowThreads(__tstate);
14744 if (PyErr_Occurred()) SWIG_fail;
14745 }
14746 Py_INCREF(Py_None); resultobj = Py_None;
14747 return resultobj;
14748 fail:
14749 return NULL;
14750 }
14751
14752
14753 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14754 PyObject *resultobj;
14755 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14756 int result;
14757 PyObject * obj0 = 0 ;
14758 char *kwnames[] = {
14759 (char *) "self", NULL
14760 };
14761
14762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
14763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14765 {
14766 PyThreadState* __tstate = wxPyBeginAllowThreads();
14767 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
14768
14769 wxPyEndAllowThreads(__tstate);
14770 if (PyErr_Occurred()) SWIG_fail;
14771 }
14772 resultobj = SWIG_FromInt((int)result);
14773 return resultobj;
14774 fail:
14775 return NULL;
14776 }
14777
14778
14779 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14780 PyObject *resultobj;
14781 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14782 int arg2 ;
14783 PyObject * obj0 = 0 ;
14784 PyObject * obj1 = 0 ;
14785 char *kwnames[] = {
14786 (char *) "self",(char *) "nOldSel", NULL
14787 };
14788
14789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
14790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14792 arg2 = (int) SWIG_AsInt(obj1);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 {
14795 PyThreadState* __tstate = wxPyBeginAllowThreads();
14796 (arg1)->SetOldSelection(arg2);
14797
14798 wxPyEndAllowThreads(__tstate);
14799 if (PyErr_Occurred()) SWIG_fail;
14800 }
14801 Py_INCREF(Py_None); resultobj = Py_None;
14802 return resultobj;
14803 fail:
14804 return NULL;
14805 }
14806
14807
14808 static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
14809 PyObject *obj;
14810 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14811 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
14812 Py_INCREF(obj);
14813 return Py_BuildValue((char *)"");
14814 }
14815 static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14816 PyObject *resultobj;
14817 wxWindow *arg1 = (wxWindow *) 0 ;
14818 int arg2 = (int) -1 ;
14819 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14820 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14821 wxSize const &arg4_defvalue = wxDefaultSize ;
14822 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14823 long arg5 = (long) 0 ;
14824 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
14825 wxString *arg6 = (wxString *) &arg6_defvalue ;
14826 wxNotebook *result;
14827 wxPoint temp3 ;
14828 wxSize temp4 ;
14829 bool temp6 = False ;
14830 PyObject * obj0 = 0 ;
14831 PyObject * obj1 = 0 ;
14832 PyObject * obj2 = 0 ;
14833 PyObject * obj3 = 0 ;
14834 PyObject * obj4 = 0 ;
14835 PyObject * obj5 = 0 ;
14836 char *kwnames[] = {
14837 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14838 };
14839
14840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14843 if (obj1) {
14844 arg2 = (int) SWIG_AsInt(obj1);
14845 if (PyErr_Occurred()) SWIG_fail;
14846 }
14847 if (obj2) {
14848 {
14849 arg3 = &temp3;
14850 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14851 }
14852 }
14853 if (obj3) {
14854 {
14855 arg4 = &temp4;
14856 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14857 }
14858 }
14859 if (obj4) {
14860 arg5 = (long) SWIG_AsLong(obj4);
14861 if (PyErr_Occurred()) SWIG_fail;
14862 }
14863 if (obj5) {
14864 {
14865 arg6 = wxString_in_helper(obj5);
14866 if (arg6 == NULL) SWIG_fail;
14867 temp6 = True;
14868 }
14869 }
14870 {
14871 PyThreadState* __tstate = wxPyBeginAllowThreads();
14872 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14873
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 {
14878 resultobj = wxPyMake_wxObject(result);
14879 }
14880 {
14881 if (temp6)
14882 delete arg6;
14883 }
14884 return resultobj;
14885 fail:
14886 {
14887 if (temp6)
14888 delete arg6;
14889 }
14890 return NULL;
14891 }
14892
14893
14894 static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14895 PyObject *resultobj;
14896 wxNotebook *result;
14897 char *kwnames[] = {
14898 NULL
14899 };
14900
14901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
14902 {
14903 PyThreadState* __tstate = wxPyBeginAllowThreads();
14904 result = (wxNotebook *)new wxNotebook();
14905
14906 wxPyEndAllowThreads(__tstate);
14907 if (PyErr_Occurred()) SWIG_fail;
14908 }
14909 {
14910 resultobj = wxPyMake_wxObject(result);
14911 }
14912 return resultobj;
14913 fail:
14914 return NULL;
14915 }
14916
14917
14918 static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14919 PyObject *resultobj;
14920 wxNotebook *arg1 = (wxNotebook *) 0 ;
14921 wxWindow *arg2 = (wxWindow *) 0 ;
14922 int arg3 ;
14923 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14924 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14925 wxSize const &arg5_defvalue = wxDefaultSize ;
14926 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14927 long arg6 = (long) 0 ;
14928 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
14929 wxString *arg7 = (wxString *) &arg7_defvalue ;
14930 bool result;
14931 wxPoint temp4 ;
14932 wxSize temp5 ;
14933 bool temp7 = False ;
14934 PyObject * obj0 = 0 ;
14935 PyObject * obj1 = 0 ;
14936 PyObject * obj2 = 0 ;
14937 PyObject * obj3 = 0 ;
14938 PyObject * obj4 = 0 ;
14939 PyObject * obj5 = 0 ;
14940 PyObject * obj6 = 0 ;
14941 char *kwnames[] = {
14942 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14943 };
14944
14945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14948 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14950 arg3 = (int) SWIG_AsInt(obj2);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 if (obj3) {
14953 {
14954 arg4 = &temp4;
14955 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14956 }
14957 }
14958 if (obj4) {
14959 {
14960 arg5 = &temp5;
14961 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14962 }
14963 }
14964 if (obj5) {
14965 arg6 = (long) SWIG_AsLong(obj5);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 if (obj6) {
14969 {
14970 arg7 = wxString_in_helper(obj6);
14971 if (arg7 == NULL) SWIG_fail;
14972 temp7 = True;
14973 }
14974 }
14975 {
14976 PyThreadState* __tstate = wxPyBeginAllowThreads();
14977 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14978
14979 wxPyEndAllowThreads(__tstate);
14980 if (PyErr_Occurred()) SWIG_fail;
14981 }
14982 {
14983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14984 }
14985 {
14986 if (temp7)
14987 delete arg7;
14988 }
14989 return resultobj;
14990 fail:
14991 {
14992 if (temp7)
14993 delete arg7;
14994 }
14995 return NULL;
14996 }
14997
14998
14999 static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15000 PyObject *resultobj;
15001 wxNotebook *arg1 = (wxNotebook *) 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:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15011 {
15012 PyThreadState* __tstate = wxPyBeginAllowThreads();
15013 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15014
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 resultobj = SWIG_FromInt((int)result);
15019 return resultobj;
15020 fail:
15021 return NULL;
15022 }
15023
15024
15025 static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
15026 PyObject *resultobj;
15027 wxNotebook *arg1 = (wxNotebook *) 0 ;
15028 wxSize *arg2 = 0 ;
15029 wxSize temp2 ;
15030 PyObject * obj0 = 0 ;
15031 PyObject * obj1 = 0 ;
15032 char *kwnames[] = {
15033 (char *) "self",(char *) "padding", NULL
15034 };
15035
15036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15039 {
15040 arg2 = &temp2;
15041 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15042 }
15043 {
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 (arg1)->SetPadding((wxSize const &)*arg2);
15046
15047 wxPyEndAllowThreads(__tstate);
15048 if (PyErr_Occurred()) SWIG_fail;
15049 }
15050 Py_INCREF(Py_None); resultobj = Py_None;
15051 return resultobj;
15052 fail:
15053 return NULL;
15054 }
15055
15056
15057 static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15058 PyObject *resultobj;
15059 wxNotebook *arg1 = (wxNotebook *) 0 ;
15060 wxSize *arg2 = 0 ;
15061 wxSize temp2 ;
15062 PyObject * obj0 = 0 ;
15063 PyObject * obj1 = 0 ;
15064 char *kwnames[] = {
15065 (char *) "self",(char *) "sz", NULL
15066 };
15067
15068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15071 {
15072 arg2 = &temp2;
15073 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15074 }
15075 {
15076 PyThreadState* __tstate = wxPyBeginAllowThreads();
15077 (arg1)->SetTabSize((wxSize const &)*arg2);
15078
15079 wxPyEndAllowThreads(__tstate);
15080 if (PyErr_Occurred()) SWIG_fail;
15081 }
15082 Py_INCREF(Py_None); resultobj = Py_None;
15083 return resultobj;
15084 fail:
15085 return NULL;
15086 }
15087
15088
15089 static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
15090 PyObject *resultobj;
15091 wxNotebook *arg1 = (wxNotebook *) 0 ;
15092 wxPoint *arg2 = 0 ;
15093 long *arg3 = (long *) 0 ;
15094 int result;
15095 wxPoint temp2 ;
15096 long temp3 ;
15097 PyObject * obj0 = 0 ;
15098 PyObject * obj1 = 0 ;
15099 char *kwnames[] = {
15100 (char *) "self",(char *) "pt", NULL
15101 };
15102
15103 arg3 = &temp3;
15104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15107 {
15108 arg2 = &temp2;
15109 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15110 }
15111 {
15112 PyThreadState* __tstate = wxPyBeginAllowThreads();
15113 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15114
15115 wxPyEndAllowThreads(__tstate);
15116 if (PyErr_Occurred()) SWIG_fail;
15117 }
15118 resultobj = SWIG_FromInt((int)result);
15119 {
15120 PyObject *o = PyInt_FromLong((long) (*arg3));
15121 resultobj = t_output_helper(resultobj,o);
15122 }
15123 return resultobj;
15124 fail:
15125 return NULL;
15126 }
15127
15128
15129 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
15130 PyObject *resultobj;
15131 wxNotebook *arg1 = (wxNotebook *) 0 ;
15132 wxSize *arg2 = 0 ;
15133 wxSize result;
15134 wxSize temp2 ;
15135 PyObject * obj0 = 0 ;
15136 PyObject * obj1 = 0 ;
15137 char *kwnames[] = {
15138 (char *) "self",(char *) "sizePage", NULL
15139 };
15140
15141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15144 {
15145 arg2 = &temp2;
15146 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15147 }
15148 {
15149 PyThreadState* __tstate = wxPyBeginAllowThreads();
15150 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15151
15152 wxPyEndAllowThreads(__tstate);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 }
15155 {
15156 wxSize * resultptr;
15157 resultptr = new wxSize((wxSize &) result);
15158 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15159 }
15160 return resultobj;
15161 fail:
15162 return NULL;
15163 }
15164
15165
15166 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
15167 PyObject *resultobj;
15168 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15169 wxVisualAttributes result;
15170 PyObject * obj0 = 0 ;
15171 char *kwnames[] = {
15172 (char *) "variant", NULL
15173 };
15174
15175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15176 if (obj0) {
15177 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
15178 if (PyErr_Occurred()) SWIG_fail;
15179 }
15180 {
15181 PyThreadState* __tstate = wxPyBeginAllowThreads();
15182 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15183
15184 wxPyEndAllowThreads(__tstate);
15185 if (PyErr_Occurred()) SWIG_fail;
15186 }
15187 {
15188 wxVisualAttributes * resultptr;
15189 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15190 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15191 }
15192 return resultobj;
15193 fail:
15194 return NULL;
15195 }
15196
15197
15198 static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
15199 PyObject *obj;
15200 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15201 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15202 Py_INCREF(obj);
15203 return Py_BuildValue((char *)"");
15204 }
15205 static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15206 PyObject *resultobj;
15207 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15208 int arg2 = (int) 0 ;
15209 int arg3 = (int) -1 ;
15210 int arg4 = (int) -1 ;
15211 wxNotebookEvent *result;
15212 PyObject * obj0 = 0 ;
15213 PyObject * obj1 = 0 ;
15214 PyObject * obj2 = 0 ;
15215 PyObject * obj3 = 0 ;
15216 char *kwnames[] = {
15217 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15218 };
15219
15220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15221 if (obj0) {
15222 arg1 = (wxEventType) SWIG_AsInt(obj0);
15223 if (PyErr_Occurred()) SWIG_fail;
15224 }
15225 if (obj1) {
15226 arg2 = (int) SWIG_AsInt(obj1);
15227 if (PyErr_Occurred()) SWIG_fail;
15228 }
15229 if (obj2) {
15230 arg3 = (int) SWIG_AsInt(obj2);
15231 if (PyErr_Occurred()) SWIG_fail;
15232 }
15233 if (obj3) {
15234 arg4 = (int) SWIG_AsInt(obj3);
15235 if (PyErr_Occurred()) SWIG_fail;
15236 }
15237 {
15238 PyThreadState* __tstate = wxPyBeginAllowThreads();
15239 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15240
15241 wxPyEndAllowThreads(__tstate);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15245 return resultobj;
15246 fail:
15247 return NULL;
15248 }
15249
15250
15251 static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
15252 PyObject *obj;
15253 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15254 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15255 Py_INCREF(obj);
15256 return Py_BuildValue((char *)"");
15257 }
15258 static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15259 PyObject *resultobj;
15260 wxWindow *arg1 = (wxWindow *) 0 ;
15261 int arg2 = (int) -1 ;
15262 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15263 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15264 wxSize const &arg4_defvalue = wxDefaultSize ;
15265 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15266 long arg5 = (long) 0 ;
15267 wxString const &arg6_defvalue = wxPyEmptyString ;
15268 wxString *arg6 = (wxString *) &arg6_defvalue ;
15269 wxListbook *result;
15270 wxPoint temp3 ;
15271 wxSize temp4 ;
15272 bool temp6 = False ;
15273 PyObject * obj0 = 0 ;
15274 PyObject * obj1 = 0 ;
15275 PyObject * obj2 = 0 ;
15276 PyObject * obj3 = 0 ;
15277 PyObject * obj4 = 0 ;
15278 PyObject * obj5 = 0 ;
15279 char *kwnames[] = {
15280 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15281 };
15282
15283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15286 if (obj1) {
15287 arg2 = (int) SWIG_AsInt(obj1);
15288 if (PyErr_Occurred()) SWIG_fail;
15289 }
15290 if (obj2) {
15291 {
15292 arg3 = &temp3;
15293 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15294 }
15295 }
15296 if (obj3) {
15297 {
15298 arg4 = &temp4;
15299 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15300 }
15301 }
15302 if (obj4) {
15303 arg5 = (long) SWIG_AsLong(obj4);
15304 if (PyErr_Occurred()) SWIG_fail;
15305 }
15306 if (obj5) {
15307 {
15308 arg6 = wxString_in_helper(obj5);
15309 if (arg6 == NULL) SWIG_fail;
15310 temp6 = True;
15311 }
15312 }
15313 {
15314 PyThreadState* __tstate = wxPyBeginAllowThreads();
15315 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15316
15317 wxPyEndAllowThreads(__tstate);
15318 if (PyErr_Occurred()) SWIG_fail;
15319 }
15320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15321 {
15322 if (temp6)
15323 delete arg6;
15324 }
15325 return resultobj;
15326 fail:
15327 {
15328 if (temp6)
15329 delete arg6;
15330 }
15331 return NULL;
15332 }
15333
15334
15335 static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj;
15337 wxListbook *result;
15338 char *kwnames[] = {
15339 NULL
15340 };
15341
15342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15343 {
15344 PyThreadState* __tstate = wxPyBeginAllowThreads();
15345 result = (wxListbook *)new wxListbook();
15346
15347 wxPyEndAllowThreads(__tstate);
15348 if (PyErr_Occurred()) SWIG_fail;
15349 }
15350 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15351 return resultobj;
15352 fail:
15353 return NULL;
15354 }
15355
15356
15357 static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
15358 PyObject *resultobj;
15359 wxListbook *arg1 = (wxListbook *) 0 ;
15360 wxWindow *arg2 = (wxWindow *) 0 ;
15361 int arg3 ;
15362 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15363 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15364 wxSize const &arg5_defvalue = wxDefaultSize ;
15365 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15366 long arg6 = (long) 0 ;
15367 wxString const &arg7_defvalue = wxPyEmptyString ;
15368 wxString *arg7 = (wxString *) &arg7_defvalue ;
15369 bool result;
15370 wxPoint temp4 ;
15371 wxSize temp5 ;
15372 bool temp7 = False ;
15373 PyObject * obj0 = 0 ;
15374 PyObject * obj1 = 0 ;
15375 PyObject * obj2 = 0 ;
15376 PyObject * obj3 = 0 ;
15377 PyObject * obj4 = 0 ;
15378 PyObject * obj5 = 0 ;
15379 PyObject * obj6 = 0 ;
15380 char *kwnames[] = {
15381 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15382 };
15383
15384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15387 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15389 arg3 = (int) SWIG_AsInt(obj2);
15390 if (PyErr_Occurred()) SWIG_fail;
15391 if (obj3) {
15392 {
15393 arg4 = &temp4;
15394 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15395 }
15396 }
15397 if (obj4) {
15398 {
15399 arg5 = &temp5;
15400 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15401 }
15402 }
15403 if (obj5) {
15404 arg6 = (long) SWIG_AsLong(obj5);
15405 if (PyErr_Occurred()) SWIG_fail;
15406 }
15407 if (obj6) {
15408 {
15409 arg7 = wxString_in_helper(obj6);
15410 if (arg7 == NULL) SWIG_fail;
15411 temp7 = True;
15412 }
15413 }
15414 {
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
15416 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15417
15418 wxPyEndAllowThreads(__tstate);
15419 if (PyErr_Occurred()) SWIG_fail;
15420 }
15421 {
15422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15423 }
15424 {
15425 if (temp7)
15426 delete arg7;
15427 }
15428 return resultobj;
15429 fail:
15430 {
15431 if (temp7)
15432 delete arg7;
15433 }
15434 return NULL;
15435 }
15436
15437
15438 static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
15439 PyObject *resultobj;
15440 wxListbook *arg1 = (wxListbook *) 0 ;
15441 bool result;
15442 PyObject * obj0 = 0 ;
15443 char *kwnames[] = {
15444 (char *) "self", NULL
15445 };
15446
15447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15450 {
15451 PyThreadState* __tstate = wxPyBeginAllowThreads();
15452 result = (bool)((wxListbook const *)arg1)->IsVertical();
15453
15454 wxPyEndAllowThreads(__tstate);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 {
15458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15459 }
15460 return resultobj;
15461 fail:
15462 return NULL;
15463 }
15464
15465
15466 static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
15467 PyObject *obj;
15468 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15469 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15470 Py_INCREF(obj);
15471 return Py_BuildValue((char *)"");
15472 }
15473 static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15474 PyObject *resultobj;
15475 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15476 int arg2 = (int) 0 ;
15477 int arg3 = (int) -1 ;
15478 int arg4 = (int) -1 ;
15479 wxListbookEvent *result;
15480 PyObject * obj0 = 0 ;
15481 PyObject * obj1 = 0 ;
15482 PyObject * obj2 = 0 ;
15483 PyObject * obj3 = 0 ;
15484 char *kwnames[] = {
15485 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15486 };
15487
15488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15489 if (obj0) {
15490 arg1 = (wxEventType) SWIG_AsInt(obj0);
15491 if (PyErr_Occurred()) SWIG_fail;
15492 }
15493 if (obj1) {
15494 arg2 = (int) SWIG_AsInt(obj1);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 if (obj2) {
15498 arg3 = (int) SWIG_AsInt(obj2);
15499 if (PyErr_Occurred()) SWIG_fail;
15500 }
15501 if (obj3) {
15502 arg4 = (int) SWIG_AsInt(obj3);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 {
15506 PyThreadState* __tstate = wxPyBeginAllowThreads();
15507 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15508
15509 wxPyEndAllowThreads(__tstate);
15510 if (PyErr_Occurred()) SWIG_fail;
15511 }
15512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15513 return resultobj;
15514 fail:
15515 return NULL;
15516 }
15517
15518
15519 static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
15520 PyObject *obj;
15521 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15522 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15523 Py_INCREF(obj);
15524 return Py_BuildValue((char *)"");
15525 }
15526 static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15527 PyObject *resultobj;
15528 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15529 wxBookCtrlSizer *result;
15530 PyObject * obj0 = 0 ;
15531 char *kwnames[] = {
15532 (char *) "nb", NULL
15533 };
15534
15535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15538 {
15539 PyThreadState* __tstate = wxPyBeginAllowThreads();
15540 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15541
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15546 return resultobj;
15547 fail:
15548 return NULL;
15549 }
15550
15551
15552 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15553 PyObject *resultobj;
15554 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15555 PyObject * obj0 = 0 ;
15556 char *kwnames[] = {
15557 (char *) "self", NULL
15558 };
15559
15560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 (arg1)->RecalcSizes();
15566
15567 wxPyEndAllowThreads(__tstate);
15568 if (PyErr_Occurred()) SWIG_fail;
15569 }
15570 Py_INCREF(Py_None); resultobj = Py_None;
15571 return resultobj;
15572 fail:
15573 return NULL;
15574 }
15575
15576
15577 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15578 PyObject *resultobj;
15579 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15580 wxSize result;
15581 PyObject * obj0 = 0 ;
15582 char *kwnames[] = {
15583 (char *) "self", NULL
15584 };
15585
15586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
15587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15589 {
15590 PyThreadState* __tstate = wxPyBeginAllowThreads();
15591 result = (arg1)->CalcMin();
15592
15593 wxPyEndAllowThreads(__tstate);
15594 if (PyErr_Occurred()) SWIG_fail;
15595 }
15596 {
15597 wxSize * resultptr;
15598 resultptr = new wxSize((wxSize &) result);
15599 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15600 }
15601 return resultobj;
15602 fail:
15603 return NULL;
15604 }
15605
15606
15607 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15608 PyObject *resultobj;
15609 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15610 wxBookCtrl *result;
15611 PyObject * obj0 = 0 ;
15612 char *kwnames[] = {
15613 (char *) "self", NULL
15614 };
15615
15616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
15617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15619 {
15620 PyThreadState* __tstate = wxPyBeginAllowThreads();
15621 result = (wxBookCtrl *)(arg1)->GetControl();
15622
15623 wxPyEndAllowThreads(__tstate);
15624 if (PyErr_Occurred()) SWIG_fail;
15625 }
15626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
15627 return resultobj;
15628 fail:
15629 return NULL;
15630 }
15631
15632
15633 static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
15634 PyObject *obj;
15635 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15636 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
15637 Py_INCREF(obj);
15638 return Py_BuildValue((char *)"");
15639 }
15640 static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15641 PyObject *resultobj;
15642 wxNotebook *arg1 = (wxNotebook *) 0 ;
15643 wxNotebookSizer *result;
15644 PyObject * obj0 = 0 ;
15645 char *kwnames[] = {
15646 (char *) "nb", NULL
15647 };
15648
15649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
15650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15652 {
15653 PyThreadState* __tstate = wxPyBeginAllowThreads();
15654 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
15655
15656 wxPyEndAllowThreads(__tstate);
15657 if (PyErr_Occurred()) SWIG_fail;
15658 }
15659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
15660 return resultobj;
15661 fail:
15662 return NULL;
15663 }
15664
15665
15666 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15667 PyObject *resultobj;
15668 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15669 PyObject * obj0 = 0 ;
15670 char *kwnames[] = {
15671 (char *) "self", NULL
15672 };
15673
15674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15677 {
15678 PyThreadState* __tstate = wxPyBeginAllowThreads();
15679 (arg1)->RecalcSizes();
15680
15681 wxPyEndAllowThreads(__tstate);
15682 if (PyErr_Occurred()) SWIG_fail;
15683 }
15684 Py_INCREF(Py_None); resultobj = Py_None;
15685 return resultobj;
15686 fail:
15687 return NULL;
15688 }
15689
15690
15691 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15692 PyObject *resultobj;
15693 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15694 wxSize result;
15695 PyObject * obj0 = 0 ;
15696 char *kwnames[] = {
15697 (char *) "self", NULL
15698 };
15699
15700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
15701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15703 {
15704 PyThreadState* __tstate = wxPyBeginAllowThreads();
15705 result = (arg1)->CalcMin();
15706
15707 wxPyEndAllowThreads(__tstate);
15708 if (PyErr_Occurred()) SWIG_fail;
15709 }
15710 {
15711 wxSize * resultptr;
15712 resultptr = new wxSize((wxSize &) result);
15713 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15714 }
15715 return resultobj;
15716 fail:
15717 return NULL;
15718 }
15719
15720
15721 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
15722 PyObject *resultobj;
15723 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15724 wxNotebook *result;
15725 PyObject * obj0 = 0 ;
15726 char *kwnames[] = {
15727 (char *) "self", NULL
15728 };
15729
15730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
15731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15733 {
15734 PyThreadState* __tstate = wxPyBeginAllowThreads();
15735 result = (wxNotebook *)(arg1)->GetNotebook();
15736
15737 wxPyEndAllowThreads(__tstate);
15738 if (PyErr_Occurred()) SWIG_fail;
15739 }
15740 {
15741 resultobj = wxPyMake_wxObject(result);
15742 }
15743 return resultobj;
15744 fail:
15745 return NULL;
15746 }
15747
15748
15749 static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
15750 PyObject *obj;
15751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15752 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
15753 Py_INCREF(obj);
15754 return Py_BuildValue((char *)"");
15755 }
15756 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
15757 PyObject *resultobj;
15758 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15759 int result;
15760 PyObject * obj0 = 0 ;
15761 char *kwnames[] = {
15762 (char *) "self", NULL
15763 };
15764
15765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
15766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15768 {
15769 PyThreadState* __tstate = wxPyBeginAllowThreads();
15770 result = (int)(arg1)->GetId();
15771
15772 wxPyEndAllowThreads(__tstate);
15773 if (PyErr_Occurred()) SWIG_fail;
15774 }
15775 resultobj = SWIG_FromInt((int)result);
15776 return resultobj;
15777 fail:
15778 return NULL;
15779 }
15780
15781
15782 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15783 PyObject *resultobj;
15784 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15785 wxControl *result;
15786 PyObject * obj0 = 0 ;
15787 char *kwnames[] = {
15788 (char *) "self", NULL
15789 };
15790
15791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
15792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15794 {
15795 PyThreadState* __tstate = wxPyBeginAllowThreads();
15796 result = (wxControl *)(arg1)->GetControl();
15797
15798 wxPyEndAllowThreads(__tstate);
15799 if (PyErr_Occurred()) SWIG_fail;
15800 }
15801 {
15802 resultobj = wxPyMake_wxObject(result);
15803 }
15804 return resultobj;
15805 fail:
15806 return NULL;
15807 }
15808
15809
15810 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
15811 PyObject *resultobj;
15812 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15813 wxToolBarBase *result;
15814 PyObject * obj0 = 0 ;
15815 char *kwnames[] = {
15816 (char *) "self", NULL
15817 };
15818
15819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
15820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15822 {
15823 PyThreadState* __tstate = wxPyBeginAllowThreads();
15824 result = (wxToolBarBase *)(arg1)->GetToolBar();
15825
15826 wxPyEndAllowThreads(__tstate);
15827 if (PyErr_Occurred()) SWIG_fail;
15828 }
15829 {
15830 resultobj = wxPyMake_wxObject(result);
15831 }
15832 return resultobj;
15833 fail:
15834 return NULL;
15835 }
15836
15837
15838 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
15839 PyObject *resultobj;
15840 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15841 int result;
15842 PyObject * obj0 = 0 ;
15843 char *kwnames[] = {
15844 (char *) "self", NULL
15845 };
15846
15847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
15848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15850 {
15851 PyThreadState* __tstate = wxPyBeginAllowThreads();
15852 result = (int)(arg1)->IsButton();
15853
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 resultobj = SWIG_FromInt((int)result);
15858 return resultobj;
15859 fail:
15860 return NULL;
15861 }
15862
15863
15864 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15865 PyObject *resultobj;
15866 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15867 int result;
15868 PyObject * obj0 = 0 ;
15869 char *kwnames[] = {
15870 (char *) "self", NULL
15871 };
15872
15873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
15874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15876 {
15877 PyThreadState* __tstate = wxPyBeginAllowThreads();
15878 result = (int)(arg1)->IsControl();
15879
15880 wxPyEndAllowThreads(__tstate);
15881 if (PyErr_Occurred()) SWIG_fail;
15882 }
15883 resultobj = SWIG_FromInt((int)result);
15884 return resultobj;
15885 fail:
15886 return NULL;
15887 }
15888
15889
15890 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
15891 PyObject *resultobj;
15892 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15893 int result;
15894 PyObject * obj0 = 0 ;
15895 char *kwnames[] = {
15896 (char *) "self", NULL
15897 };
15898
15899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
15900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15902 {
15903 PyThreadState* __tstate = wxPyBeginAllowThreads();
15904 result = (int)(arg1)->IsSeparator();
15905
15906 wxPyEndAllowThreads(__tstate);
15907 if (PyErr_Occurred()) SWIG_fail;
15908 }
15909 resultobj = SWIG_FromInt((int)result);
15910 return resultobj;
15911 fail:
15912 return NULL;
15913 }
15914
15915
15916 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15917 PyObject *resultobj;
15918 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15919 int result;
15920 PyObject * obj0 = 0 ;
15921 char *kwnames[] = {
15922 (char *) "self", NULL
15923 };
15924
15925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
15926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15928 {
15929 PyThreadState* __tstate = wxPyBeginAllowThreads();
15930 result = (int)(arg1)->GetStyle();
15931
15932 wxPyEndAllowThreads(__tstate);
15933 if (PyErr_Occurred()) SWIG_fail;
15934 }
15935 resultobj = SWIG_FromInt((int)result);
15936 return resultobj;
15937 fail:
15938 return NULL;
15939 }
15940
15941
15942 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
15943 PyObject *resultobj;
15944 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15945 int result;
15946 PyObject * obj0 = 0 ;
15947 char *kwnames[] = {
15948 (char *) "self", NULL
15949 };
15950
15951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
15952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15954 {
15955 PyThreadState* __tstate = wxPyBeginAllowThreads();
15956 result = (int)(arg1)->GetKind();
15957
15958 wxPyEndAllowThreads(__tstate);
15959 if (PyErr_Occurred()) SWIG_fail;
15960 }
15961 resultobj = SWIG_FromInt((int)result);
15962 return resultobj;
15963 fail:
15964 return NULL;
15965 }
15966
15967
15968 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
15969 PyObject *resultobj;
15970 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15971 bool result;
15972 PyObject * obj0 = 0 ;
15973 char *kwnames[] = {
15974 (char *) "self", NULL
15975 };
15976
15977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
15978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15980 {
15981 PyThreadState* __tstate = wxPyBeginAllowThreads();
15982 result = (bool)(arg1)->IsEnabled();
15983
15984 wxPyEndAllowThreads(__tstate);
15985 if (PyErr_Occurred()) SWIG_fail;
15986 }
15987 {
15988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15989 }
15990 return resultobj;
15991 fail:
15992 return NULL;
15993 }
15994
15995
15996 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15997 PyObject *resultobj;
15998 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15999 bool result;
16000 PyObject * obj0 = 0 ;
16001 char *kwnames[] = {
16002 (char *) "self", NULL
16003 };
16004
16005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16008 {
16009 PyThreadState* __tstate = wxPyBeginAllowThreads();
16010 result = (bool)(arg1)->IsToggled();
16011
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 {
16016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16017 }
16018 return resultobj;
16019 fail:
16020 return NULL;
16021 }
16022
16023
16024 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
16025 PyObject *resultobj;
16026 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16027 bool result;
16028 PyObject * obj0 = 0 ;
16029 char *kwnames[] = {
16030 (char *) "self", NULL
16031 };
16032
16033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16036 {
16037 PyThreadState* __tstate = wxPyBeginAllowThreads();
16038 result = (bool)(arg1)->CanBeToggled();
16039
16040 wxPyEndAllowThreads(__tstate);
16041 if (PyErr_Occurred()) SWIG_fail;
16042 }
16043 {
16044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16045 }
16046 return resultobj;
16047 fail:
16048 return NULL;
16049 }
16050
16051
16052 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16053 PyObject *resultobj;
16054 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16055 wxBitmap *result;
16056 PyObject * obj0 = 0 ;
16057 char *kwnames[] = {
16058 (char *) "self", NULL
16059 };
16060
16061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16064 {
16065 PyThreadState* __tstate = wxPyBeginAllowThreads();
16066 {
16067 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16068 result = (wxBitmap *) &_result_ref;
16069 }
16070
16071 wxPyEndAllowThreads(__tstate);
16072 if (PyErr_Occurred()) SWIG_fail;
16073 }
16074 {
16075 wxBitmap* resultptr = new wxBitmap(*result);
16076 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16077 }
16078 return resultobj;
16079 fail:
16080 return NULL;
16081 }
16082
16083
16084 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16085 PyObject *resultobj;
16086 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16087 wxBitmap *result;
16088 PyObject * obj0 = 0 ;
16089 char *kwnames[] = {
16090 (char *) "self", NULL
16091 };
16092
16093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16096 {
16097 PyThreadState* __tstate = wxPyBeginAllowThreads();
16098 {
16099 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16100 result = (wxBitmap *) &_result_ref;
16101 }
16102
16103 wxPyEndAllowThreads(__tstate);
16104 if (PyErr_Occurred()) SWIG_fail;
16105 }
16106 {
16107 wxBitmap* resultptr = new wxBitmap(*result);
16108 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16109 }
16110 return resultobj;
16111 fail:
16112 return NULL;
16113 }
16114
16115
16116 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16117 PyObject *resultobj;
16118 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16119 wxBitmap result;
16120 PyObject * obj0 = 0 ;
16121 char *kwnames[] = {
16122 (char *) "self", NULL
16123 };
16124
16125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16128 {
16129 PyThreadState* __tstate = wxPyBeginAllowThreads();
16130 result = (arg1)->GetBitmap();
16131
16132 wxPyEndAllowThreads(__tstate);
16133 if (PyErr_Occurred()) SWIG_fail;
16134 }
16135 {
16136 wxBitmap * resultptr;
16137 resultptr = new wxBitmap((wxBitmap &) result);
16138 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16139 }
16140 return resultobj;
16141 fail:
16142 return NULL;
16143 }
16144
16145
16146 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16147 PyObject *resultobj;
16148 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16149 wxString result;
16150 PyObject * obj0 = 0 ;
16151 char *kwnames[] = {
16152 (char *) "self", NULL
16153 };
16154
16155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16158 {
16159 PyThreadState* __tstate = wxPyBeginAllowThreads();
16160 result = (arg1)->GetLabel();
16161
16162 wxPyEndAllowThreads(__tstate);
16163 if (PyErr_Occurred()) SWIG_fail;
16164 }
16165 {
16166 #if wxUSE_UNICODE
16167 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16168 #else
16169 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16170 #endif
16171 }
16172 return resultobj;
16173 fail:
16174 return NULL;
16175 }
16176
16177
16178 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16179 PyObject *resultobj;
16180 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16181 wxString result;
16182 PyObject * obj0 = 0 ;
16183 char *kwnames[] = {
16184 (char *) "self", NULL
16185 };
16186
16187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16190 {
16191 PyThreadState* __tstate = wxPyBeginAllowThreads();
16192 result = (arg1)->GetShortHelp();
16193
16194 wxPyEndAllowThreads(__tstate);
16195 if (PyErr_Occurred()) SWIG_fail;
16196 }
16197 {
16198 #if wxUSE_UNICODE
16199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16200 #else
16201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16202 #endif
16203 }
16204 return resultobj;
16205 fail:
16206 return NULL;
16207 }
16208
16209
16210 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16211 PyObject *resultobj;
16212 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16213 wxString result;
16214 PyObject * obj0 = 0 ;
16215 char *kwnames[] = {
16216 (char *) "self", NULL
16217 };
16218
16219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16222 {
16223 PyThreadState* __tstate = wxPyBeginAllowThreads();
16224 result = (arg1)->GetLongHelp();
16225
16226 wxPyEndAllowThreads(__tstate);
16227 if (PyErr_Occurred()) SWIG_fail;
16228 }
16229 {
16230 #if wxUSE_UNICODE
16231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16232 #else
16233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16234 #endif
16235 }
16236 return resultobj;
16237 fail:
16238 return NULL;
16239 }
16240
16241
16242 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
16243 PyObject *resultobj;
16244 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16245 bool arg2 ;
16246 bool result;
16247 PyObject * obj0 = 0 ;
16248 PyObject * obj1 = 0 ;
16249 char *kwnames[] = {
16250 (char *) "self",(char *) "enable", NULL
16251 };
16252
16253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16256 arg2 = (bool) SWIG_AsBool(obj1);
16257 if (PyErr_Occurred()) SWIG_fail;
16258 {
16259 PyThreadState* __tstate = wxPyBeginAllowThreads();
16260 result = (bool)(arg1)->Enable(arg2);
16261
16262 wxPyEndAllowThreads(__tstate);
16263 if (PyErr_Occurred()) SWIG_fail;
16264 }
16265 {
16266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16267 }
16268 return resultobj;
16269 fail:
16270 return NULL;
16271 }
16272
16273
16274 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16275 PyObject *resultobj;
16276 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16277 PyObject * obj0 = 0 ;
16278 char *kwnames[] = {
16279 (char *) "self", NULL
16280 };
16281
16282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",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 (arg1)->Toggle();
16288
16289 wxPyEndAllowThreads(__tstate);
16290 if (PyErr_Occurred()) SWIG_fail;
16291 }
16292 Py_INCREF(Py_None); resultobj = Py_None;
16293 return resultobj;
16294 fail:
16295 return NULL;
16296 }
16297
16298
16299 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16300 PyObject *resultobj;
16301 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16302 bool arg2 ;
16303 bool result;
16304 PyObject * obj0 = 0 ;
16305 PyObject * obj1 = 0 ;
16306 char *kwnames[] = {
16307 (char *) "self",(char *) "toggle", NULL
16308 };
16309
16310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16313 arg2 = (bool) SWIG_AsBool(obj1);
16314 if (PyErr_Occurred()) SWIG_fail;
16315 {
16316 PyThreadState* __tstate = wxPyBeginAllowThreads();
16317 result = (bool)(arg1)->SetToggle(arg2);
16318
16319 wxPyEndAllowThreads(__tstate);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 }
16322 {
16323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16324 }
16325 return resultobj;
16326 fail:
16327 return NULL;
16328 }
16329
16330
16331 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16332 PyObject *resultobj;
16333 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16334 wxString *arg2 = 0 ;
16335 bool result;
16336 bool temp2 = False ;
16337 PyObject * obj0 = 0 ;
16338 PyObject * obj1 = 0 ;
16339 char *kwnames[] = {
16340 (char *) "self",(char *) "help", NULL
16341 };
16342
16343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16346 {
16347 arg2 = wxString_in_helper(obj1);
16348 if (arg2 == NULL) SWIG_fail;
16349 temp2 = True;
16350 }
16351 {
16352 PyThreadState* __tstate = wxPyBeginAllowThreads();
16353 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
16354
16355 wxPyEndAllowThreads(__tstate);
16356 if (PyErr_Occurred()) SWIG_fail;
16357 }
16358 {
16359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16360 }
16361 {
16362 if (temp2)
16363 delete arg2;
16364 }
16365 return resultobj;
16366 fail:
16367 {
16368 if (temp2)
16369 delete arg2;
16370 }
16371 return NULL;
16372 }
16373
16374
16375 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16376 PyObject *resultobj;
16377 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16378 wxString *arg2 = 0 ;
16379 bool result;
16380 bool temp2 = False ;
16381 PyObject * obj0 = 0 ;
16382 PyObject * obj1 = 0 ;
16383 char *kwnames[] = {
16384 (char *) "self",(char *) "help", NULL
16385 };
16386
16387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16390 {
16391 arg2 = wxString_in_helper(obj1);
16392 if (arg2 == NULL) SWIG_fail;
16393 temp2 = True;
16394 }
16395 {
16396 PyThreadState* __tstate = wxPyBeginAllowThreads();
16397 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16398
16399 wxPyEndAllowThreads(__tstate);
16400 if (PyErr_Occurred()) SWIG_fail;
16401 }
16402 {
16403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16404 }
16405 {
16406 if (temp2)
16407 delete arg2;
16408 }
16409 return resultobj;
16410 fail:
16411 {
16412 if (temp2)
16413 delete arg2;
16414 }
16415 return NULL;
16416 }
16417
16418
16419 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16420 PyObject *resultobj;
16421 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16422 wxBitmap *arg2 = 0 ;
16423 PyObject * obj0 = 0 ;
16424 PyObject * obj1 = 0 ;
16425 char *kwnames[] = {
16426 (char *) "self",(char *) "bmp", NULL
16427 };
16428
16429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16432 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16433 SWIG_POINTER_EXCEPTION | 0)) == -1)
16434 SWIG_fail;
16435 if (arg2 == NULL) {
16436 PyErr_SetString(PyExc_TypeError,"null reference");
16437 SWIG_fail;
16438 }
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16442
16443 wxPyEndAllowThreads(__tstate);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
16446 Py_INCREF(Py_None); resultobj = Py_None;
16447 return resultobj;
16448 fail:
16449 return NULL;
16450 }
16451
16452
16453 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16454 PyObject *resultobj;
16455 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16456 wxBitmap *arg2 = 0 ;
16457 PyObject * obj0 = 0 ;
16458 PyObject * obj1 = 0 ;
16459 char *kwnames[] = {
16460 (char *) "self",(char *) "bmp", NULL
16461 };
16462
16463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16467 SWIG_POINTER_EXCEPTION | 0)) == -1)
16468 SWIG_fail;
16469 if (arg2 == NULL) {
16470 PyErr_SetString(PyExc_TypeError,"null reference");
16471 SWIG_fail;
16472 }
16473 {
16474 PyThreadState* __tstate = wxPyBeginAllowThreads();
16475 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16476
16477 wxPyEndAllowThreads(__tstate);
16478 if (PyErr_Occurred()) SWIG_fail;
16479 }
16480 Py_INCREF(Py_None); resultobj = Py_None;
16481 return resultobj;
16482 fail:
16483 return NULL;
16484 }
16485
16486
16487 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16488 PyObject *resultobj;
16489 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16490 wxString *arg2 = 0 ;
16491 bool temp2 = False ;
16492 PyObject * obj0 = 0 ;
16493 PyObject * obj1 = 0 ;
16494 char *kwnames[] = {
16495 (char *) "self",(char *) "label", NULL
16496 };
16497
16498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16501 {
16502 arg2 = wxString_in_helper(obj1);
16503 if (arg2 == NULL) SWIG_fail;
16504 temp2 = True;
16505 }
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 (arg1)->SetLabel((wxString const &)*arg2);
16509
16510 wxPyEndAllowThreads(__tstate);
16511 if (PyErr_Occurred()) SWIG_fail;
16512 }
16513 Py_INCREF(Py_None); resultobj = Py_None;
16514 {
16515 if (temp2)
16516 delete arg2;
16517 }
16518 return resultobj;
16519 fail:
16520 {
16521 if (temp2)
16522 delete arg2;
16523 }
16524 return NULL;
16525 }
16526
16527
16528 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
16529 PyObject *resultobj;
16530 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16531 PyObject * obj0 = 0 ;
16532 char *kwnames[] = {
16533 (char *) "self", NULL
16534 };
16535
16536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 (arg1)->Detach();
16542
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 Py_INCREF(Py_None); resultobj = Py_None;
16547 return resultobj;
16548 fail:
16549 return NULL;
16550 }
16551
16552
16553 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
16554 PyObject *resultobj;
16555 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16556 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16557 PyObject * obj0 = 0 ;
16558 PyObject * obj1 = 0 ;
16559 char *kwnames[] = {
16560 (char *) "self",(char *) "tbar", NULL
16561 };
16562
16563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16568 {
16569 PyThreadState* __tstate = wxPyBeginAllowThreads();
16570 (arg1)->Attach(arg2);
16571
16572 wxPyEndAllowThreads(__tstate);
16573 if (PyErr_Occurred()) SWIG_fail;
16574 }
16575 Py_INCREF(Py_None); resultobj = Py_None;
16576 return resultobj;
16577 fail:
16578 return NULL;
16579 }
16580
16581
16582 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16583 PyObject *resultobj;
16584 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16585 PyObject *result;
16586 PyObject * obj0 = 0 ;
16587 char *kwnames[] = {
16588 (char *) "self", NULL
16589 };
16590
16591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
16592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16594 {
16595 PyThreadState* __tstate = wxPyBeginAllowThreads();
16596 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
16597
16598 wxPyEndAllowThreads(__tstate);
16599 if (PyErr_Occurred()) SWIG_fail;
16600 }
16601 resultobj = result;
16602 return resultobj;
16603 fail:
16604 return NULL;
16605 }
16606
16607
16608 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16609 PyObject *resultobj;
16610 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16611 PyObject *arg2 = (PyObject *) 0 ;
16612 PyObject * obj0 = 0 ;
16613 PyObject * obj1 = 0 ;
16614 char *kwnames[] = {
16615 (char *) "self",(char *) "clientData", NULL
16616 };
16617
16618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
16619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16621 arg2 = obj1;
16622 {
16623 PyThreadState* __tstate = wxPyBeginAllowThreads();
16624 wxToolBarToolBase_SetClientData(arg1,arg2);
16625
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
16629 Py_INCREF(Py_None); resultobj = Py_None;
16630 return resultobj;
16631 fail:
16632 return NULL;
16633 }
16634
16635
16636 static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
16637 PyObject *obj;
16638 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16639 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
16640 Py_INCREF(obj);
16641 return Py_BuildValue((char *)"");
16642 }
16643 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16644 PyObject *resultobj;
16645 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16646 int arg2 ;
16647 wxString *arg3 = 0 ;
16648 wxBitmap *arg4 = 0 ;
16649 wxBitmap const &arg5_defvalue = wxNullBitmap ;
16650 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
16651 int arg6 = (int) wxITEM_NORMAL ;
16652 wxString const &arg7_defvalue = wxPyEmptyString ;
16653 wxString *arg7 = (wxString *) &arg7_defvalue ;
16654 wxString const &arg8_defvalue = wxPyEmptyString ;
16655 wxString *arg8 = (wxString *) &arg8_defvalue ;
16656 PyObject *arg9 = (PyObject *) NULL ;
16657 wxToolBarToolBase *result;
16658 bool temp3 = False ;
16659 bool temp7 = False ;
16660 bool temp8 = False ;
16661 PyObject * obj0 = 0 ;
16662 PyObject * obj1 = 0 ;
16663 PyObject * obj2 = 0 ;
16664 PyObject * obj3 = 0 ;
16665 PyObject * obj4 = 0 ;
16666 PyObject * obj5 = 0 ;
16667 PyObject * obj6 = 0 ;
16668 PyObject * obj7 = 0 ;
16669 PyObject * obj8 = 0 ;
16670 char *kwnames[] = {
16671 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16672 };
16673
16674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
16675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16677 arg2 = (int) SWIG_AsInt(obj1);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 {
16680 arg3 = wxString_in_helper(obj2);
16681 if (arg3 == NULL) SWIG_fail;
16682 temp3 = True;
16683 }
16684 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16685 SWIG_POINTER_EXCEPTION | 0)) == -1)
16686 SWIG_fail;
16687 if (arg4 == NULL) {
16688 PyErr_SetString(PyExc_TypeError,"null reference");
16689 SWIG_fail;
16690 }
16691 if (obj4) {
16692 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16693 SWIG_POINTER_EXCEPTION | 0)) == -1)
16694 SWIG_fail;
16695 if (arg5 == NULL) {
16696 PyErr_SetString(PyExc_TypeError,"null reference");
16697 SWIG_fail;
16698 }
16699 }
16700 if (obj5) {
16701 arg6 = (wxItemKind) SWIG_AsInt(obj5);
16702 if (PyErr_Occurred()) SWIG_fail;
16703 }
16704 if (obj6) {
16705 {
16706 arg7 = wxString_in_helper(obj6);
16707 if (arg7 == NULL) SWIG_fail;
16708 temp7 = True;
16709 }
16710 }
16711 if (obj7) {
16712 {
16713 arg8 = wxString_in_helper(obj7);
16714 if (arg8 == NULL) SWIG_fail;
16715 temp8 = True;
16716 }
16717 }
16718 if (obj8) {
16719 arg9 = obj8;
16720 }
16721 {
16722 PyThreadState* __tstate = wxPyBeginAllowThreads();
16723 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
16724
16725 wxPyEndAllowThreads(__tstate);
16726 if (PyErr_Occurred()) SWIG_fail;
16727 }
16728 {
16729 resultobj = wxPyMake_wxObject(result);
16730 }
16731 {
16732 if (temp3)
16733 delete arg3;
16734 }
16735 {
16736 if (temp7)
16737 delete arg7;
16738 }
16739 {
16740 if (temp8)
16741 delete arg8;
16742 }
16743 return resultobj;
16744 fail:
16745 {
16746 if (temp3)
16747 delete arg3;
16748 }
16749 {
16750 if (temp7)
16751 delete arg7;
16752 }
16753 {
16754 if (temp8)
16755 delete arg8;
16756 }
16757 return NULL;
16758 }
16759
16760
16761 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16762 PyObject *resultobj;
16763 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16764 size_t arg2 ;
16765 int arg3 ;
16766 wxString *arg4 = 0 ;
16767 wxBitmap *arg5 = 0 ;
16768 wxBitmap const &arg6_defvalue = wxNullBitmap ;
16769 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
16770 int arg7 = (int) wxITEM_NORMAL ;
16771 wxString const &arg8_defvalue = wxPyEmptyString ;
16772 wxString *arg8 = (wxString *) &arg8_defvalue ;
16773 wxString const &arg9_defvalue = wxPyEmptyString ;
16774 wxString *arg9 = (wxString *) &arg9_defvalue ;
16775 PyObject *arg10 = (PyObject *) NULL ;
16776 wxToolBarToolBase *result;
16777 bool temp4 = False ;
16778 bool temp8 = False ;
16779 bool temp9 = False ;
16780 PyObject * obj0 = 0 ;
16781 PyObject * obj1 = 0 ;
16782 PyObject * obj2 = 0 ;
16783 PyObject * obj3 = 0 ;
16784 PyObject * obj4 = 0 ;
16785 PyObject * obj5 = 0 ;
16786 PyObject * obj6 = 0 ;
16787 PyObject * obj7 = 0 ;
16788 PyObject * obj8 = 0 ;
16789 PyObject * obj9 = 0 ;
16790 char *kwnames[] = {
16791 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16792 };
16793
16794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
16795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16797 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16798 if (PyErr_Occurred()) SWIG_fail;
16799 arg3 = (int) SWIG_AsInt(obj2);
16800 if (PyErr_Occurred()) SWIG_fail;
16801 {
16802 arg4 = wxString_in_helper(obj3);
16803 if (arg4 == NULL) SWIG_fail;
16804 temp4 = True;
16805 }
16806 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16807 SWIG_POINTER_EXCEPTION | 0)) == -1)
16808 SWIG_fail;
16809 if (arg5 == NULL) {
16810 PyErr_SetString(PyExc_TypeError,"null reference");
16811 SWIG_fail;
16812 }
16813 if (obj5) {
16814 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
16815 SWIG_POINTER_EXCEPTION | 0)) == -1)
16816 SWIG_fail;
16817 if (arg6 == NULL) {
16818 PyErr_SetString(PyExc_TypeError,"null reference");
16819 SWIG_fail;
16820 }
16821 }
16822 if (obj6) {
16823 arg7 = (wxItemKind) SWIG_AsInt(obj6);
16824 if (PyErr_Occurred()) SWIG_fail;
16825 }
16826 if (obj7) {
16827 {
16828 arg8 = wxString_in_helper(obj7);
16829 if (arg8 == NULL) SWIG_fail;
16830 temp8 = True;
16831 }
16832 }
16833 if (obj8) {
16834 {
16835 arg9 = wxString_in_helper(obj8);
16836 if (arg9 == NULL) SWIG_fail;
16837 temp9 = True;
16838 }
16839 }
16840 if (obj9) {
16841 arg10 = obj9;
16842 }
16843 {
16844 PyThreadState* __tstate = wxPyBeginAllowThreads();
16845 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);
16846
16847 wxPyEndAllowThreads(__tstate);
16848 if (PyErr_Occurred()) SWIG_fail;
16849 }
16850 {
16851 resultobj = wxPyMake_wxObject(result);
16852 }
16853 {
16854 if (temp4)
16855 delete arg4;
16856 }
16857 {
16858 if (temp8)
16859 delete arg8;
16860 }
16861 {
16862 if (temp9)
16863 delete arg9;
16864 }
16865 return resultobj;
16866 fail:
16867 {
16868 if (temp4)
16869 delete arg4;
16870 }
16871 {
16872 if (temp8)
16873 delete arg8;
16874 }
16875 {
16876 if (temp9)
16877 delete arg9;
16878 }
16879 return NULL;
16880 }
16881
16882
16883 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16884 PyObject *resultobj;
16885 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16886 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
16887 wxToolBarToolBase *result;
16888 PyObject * obj0 = 0 ;
16889 PyObject * obj1 = 0 ;
16890 char *kwnames[] = {
16891 (char *) "self",(char *) "tool", NULL
16892 };
16893
16894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
16895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16897 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
16898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
16902
16903 wxPyEndAllowThreads(__tstate);
16904 if (PyErr_Occurred()) SWIG_fail;
16905 }
16906 {
16907 resultobj = wxPyMake_wxObject(result);
16908 }
16909 return resultobj;
16910 fail:
16911 return NULL;
16912 }
16913
16914
16915 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16916 PyObject *resultobj;
16917 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16918 size_t arg2 ;
16919 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
16920 wxToolBarToolBase *result;
16921 PyObject * obj0 = 0 ;
16922 PyObject * obj1 = 0 ;
16923 PyObject * obj2 = 0 ;
16924 char *kwnames[] = {
16925 (char *) "self",(char *) "pos",(char *) "tool", NULL
16926 };
16927
16928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
16929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16931 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16932 if (PyErr_Occurred()) SWIG_fail;
16933 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
16934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16935 {
16936 PyThreadState* __tstate = wxPyBeginAllowThreads();
16937 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
16938
16939 wxPyEndAllowThreads(__tstate);
16940 if (PyErr_Occurred()) SWIG_fail;
16941 }
16942 {
16943 resultobj = wxPyMake_wxObject(result);
16944 }
16945 return resultobj;
16946 fail:
16947 return NULL;
16948 }
16949
16950
16951 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16952 PyObject *resultobj;
16953 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16954 wxControl *arg2 = (wxControl *) 0 ;
16955 wxToolBarToolBase *result;
16956 PyObject * obj0 = 0 ;
16957 PyObject * obj1 = 0 ;
16958 char *kwnames[] = {
16959 (char *) "self",(char *) "control", NULL
16960 };
16961
16962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
16963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16965 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
16966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16967 {
16968 PyThreadState* __tstate = wxPyBeginAllowThreads();
16969 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
16970
16971 wxPyEndAllowThreads(__tstate);
16972 if (PyErr_Occurred()) SWIG_fail;
16973 }
16974 {
16975 resultobj = wxPyMake_wxObject(result);
16976 }
16977 return resultobj;
16978 fail:
16979 return NULL;
16980 }
16981
16982
16983 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16984 PyObject *resultobj;
16985 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16986 size_t arg2 ;
16987 wxControl *arg3 = (wxControl *) 0 ;
16988 wxToolBarToolBase *result;
16989 PyObject * obj0 = 0 ;
16990 PyObject * obj1 = 0 ;
16991 PyObject * obj2 = 0 ;
16992 char *kwnames[] = {
16993 (char *) "self",(char *) "pos",(char *) "control", NULL
16994 };
16995
16996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
16997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16999 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17000 if (PyErr_Occurred()) SWIG_fail;
17001 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17003 {
17004 PyThreadState* __tstate = wxPyBeginAllowThreads();
17005 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17006
17007 wxPyEndAllowThreads(__tstate);
17008 if (PyErr_Occurred()) SWIG_fail;
17009 }
17010 {
17011 resultobj = wxPyMake_wxObject(result);
17012 }
17013 return resultobj;
17014 fail:
17015 return NULL;
17016 }
17017
17018
17019 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17020 PyObject *resultobj;
17021 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17022 int arg2 ;
17023 wxControl *result;
17024 PyObject * obj0 = 0 ;
17025 PyObject * obj1 = 0 ;
17026 char *kwnames[] = {
17027 (char *) "self",(char *) "id", NULL
17028 };
17029
17030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17033 arg2 = (int) SWIG_AsInt(obj1);
17034 if (PyErr_Occurred()) SWIG_fail;
17035 {
17036 PyThreadState* __tstate = wxPyBeginAllowThreads();
17037 result = (wxControl *)(arg1)->FindControl(arg2);
17038
17039 wxPyEndAllowThreads(__tstate);
17040 if (PyErr_Occurred()) SWIG_fail;
17041 }
17042 {
17043 resultobj = wxPyMake_wxObject(result);
17044 }
17045 return resultobj;
17046 fail:
17047 return NULL;
17048 }
17049
17050
17051 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17052 PyObject *resultobj;
17053 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17054 wxToolBarToolBase *result;
17055 PyObject * obj0 = 0 ;
17056 char *kwnames[] = {
17057 (char *) "self", NULL
17058 };
17059
17060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17063 {
17064 PyThreadState* __tstate = wxPyBeginAllowThreads();
17065 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17066
17067 wxPyEndAllowThreads(__tstate);
17068 if (PyErr_Occurred()) SWIG_fail;
17069 }
17070 {
17071 resultobj = wxPyMake_wxObject(result);
17072 }
17073 return resultobj;
17074 fail:
17075 return NULL;
17076 }
17077
17078
17079 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17080 PyObject *resultobj;
17081 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17082 size_t arg2 ;
17083 wxToolBarToolBase *result;
17084 PyObject * obj0 = 0 ;
17085 PyObject * obj1 = 0 ;
17086 char *kwnames[] = {
17087 (char *) "self",(char *) "pos", NULL
17088 };
17089
17090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17093 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 {
17096 PyThreadState* __tstate = wxPyBeginAllowThreads();
17097 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17098
17099 wxPyEndAllowThreads(__tstate);
17100 if (PyErr_Occurred()) SWIG_fail;
17101 }
17102 {
17103 resultobj = wxPyMake_wxObject(result);
17104 }
17105 return resultobj;
17106 fail:
17107 return NULL;
17108 }
17109
17110
17111 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17112 PyObject *resultobj;
17113 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17114 int arg2 ;
17115 wxToolBarToolBase *result;
17116 PyObject * obj0 = 0 ;
17117 PyObject * obj1 = 0 ;
17118 char *kwnames[] = {
17119 (char *) "self",(char *) "id", NULL
17120 };
17121
17122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17125 arg2 = (int) SWIG_AsInt(obj1);
17126 if (PyErr_Occurred()) SWIG_fail;
17127 {
17128 PyThreadState* __tstate = wxPyBeginAllowThreads();
17129 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17130
17131 wxPyEndAllowThreads(__tstate);
17132 if (PyErr_Occurred()) SWIG_fail;
17133 }
17134 {
17135 resultobj = wxPyMake_wxObject(result);
17136 }
17137 return resultobj;
17138 fail:
17139 return NULL;
17140 }
17141
17142
17143 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17144 PyObject *resultobj;
17145 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17146 size_t arg2 ;
17147 bool result;
17148 PyObject * obj0 = 0 ;
17149 PyObject * obj1 = 0 ;
17150 char *kwnames[] = {
17151 (char *) "self",(char *) "pos", NULL
17152 };
17153
17154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17157 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17158 if (PyErr_Occurred()) SWIG_fail;
17159 {
17160 PyThreadState* __tstate = wxPyBeginAllowThreads();
17161 result = (bool)(arg1)->DeleteToolByPos(arg2);
17162
17163 wxPyEndAllowThreads(__tstate);
17164 if (PyErr_Occurred()) SWIG_fail;
17165 }
17166 {
17167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17168 }
17169 return resultobj;
17170 fail:
17171 return NULL;
17172 }
17173
17174
17175 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17176 PyObject *resultobj;
17177 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17178 int arg2 ;
17179 bool result;
17180 PyObject * obj0 = 0 ;
17181 PyObject * obj1 = 0 ;
17182 char *kwnames[] = {
17183 (char *) "self",(char *) "id", NULL
17184 };
17185
17186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17189 arg2 = (int) SWIG_AsInt(obj1);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 {
17192 PyThreadState* __tstate = wxPyBeginAllowThreads();
17193 result = (bool)(arg1)->DeleteTool(arg2);
17194
17195 wxPyEndAllowThreads(__tstate);
17196 if (PyErr_Occurred()) SWIG_fail;
17197 }
17198 {
17199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17200 }
17201 return resultobj;
17202 fail:
17203 return NULL;
17204 }
17205
17206
17207 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
17208 PyObject *resultobj;
17209 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17210 PyObject * obj0 = 0 ;
17211 char *kwnames[] = {
17212 (char *) "self", NULL
17213 };
17214
17215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17218 {
17219 PyThreadState* __tstate = wxPyBeginAllowThreads();
17220 (arg1)->ClearTools();
17221
17222 wxPyEndAllowThreads(__tstate);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 Py_INCREF(Py_None); resultobj = Py_None;
17226 return resultobj;
17227 fail:
17228 return NULL;
17229 }
17230
17231
17232 static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
17233 PyObject *resultobj;
17234 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17235 bool result;
17236 PyObject * obj0 = 0 ;
17237 char *kwnames[] = {
17238 (char *) "self", NULL
17239 };
17240
17241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17244 {
17245 PyThreadState* __tstate = wxPyBeginAllowThreads();
17246 result = (bool)(arg1)->Realize();
17247
17248 wxPyEndAllowThreads(__tstate);
17249 if (PyErr_Occurred()) SWIG_fail;
17250 }
17251 {
17252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17253 }
17254 return resultobj;
17255 fail:
17256 return NULL;
17257 }
17258
17259
17260 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj;
17262 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17263 int arg2 ;
17264 bool arg3 ;
17265 PyObject * obj0 = 0 ;
17266 PyObject * obj1 = 0 ;
17267 PyObject * obj2 = 0 ;
17268 char *kwnames[] = {
17269 (char *) "self",(char *) "id",(char *) "enable", NULL
17270 };
17271
17272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17275 arg2 = (int) SWIG_AsInt(obj1);
17276 if (PyErr_Occurred()) SWIG_fail;
17277 arg3 = (bool) SWIG_AsBool(obj2);
17278 if (PyErr_Occurred()) SWIG_fail;
17279 {
17280 PyThreadState* __tstate = wxPyBeginAllowThreads();
17281 (arg1)->EnableTool(arg2,arg3);
17282
17283 wxPyEndAllowThreads(__tstate);
17284 if (PyErr_Occurred()) SWIG_fail;
17285 }
17286 Py_INCREF(Py_None); resultobj = Py_None;
17287 return resultobj;
17288 fail:
17289 return NULL;
17290 }
17291
17292
17293 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17294 PyObject *resultobj;
17295 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17296 int arg2 ;
17297 bool arg3 ;
17298 PyObject * obj0 = 0 ;
17299 PyObject * obj1 = 0 ;
17300 PyObject * obj2 = 0 ;
17301 char *kwnames[] = {
17302 (char *) "self",(char *) "id",(char *) "toggle", NULL
17303 };
17304
17305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17308 arg2 = (int) SWIG_AsInt(obj1);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 arg3 = (bool) SWIG_AsBool(obj2);
17311 if (PyErr_Occurred()) SWIG_fail;
17312 {
17313 PyThreadState* __tstate = wxPyBeginAllowThreads();
17314 (arg1)->ToggleTool(arg2,arg3);
17315
17316 wxPyEndAllowThreads(__tstate);
17317 if (PyErr_Occurred()) SWIG_fail;
17318 }
17319 Py_INCREF(Py_None); resultobj = Py_None;
17320 return resultobj;
17321 fail:
17322 return NULL;
17323 }
17324
17325
17326 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
17327 PyObject *resultobj;
17328 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17329 int arg2 ;
17330 bool arg3 ;
17331 PyObject * obj0 = 0 ;
17332 PyObject * obj1 = 0 ;
17333 PyObject * obj2 = 0 ;
17334 char *kwnames[] = {
17335 (char *) "self",(char *) "id",(char *) "toggle", NULL
17336 };
17337
17338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17341 arg2 = (int) SWIG_AsInt(obj1);
17342 if (PyErr_Occurred()) SWIG_fail;
17343 arg3 = (bool) SWIG_AsBool(obj2);
17344 if (PyErr_Occurred()) SWIG_fail;
17345 {
17346 PyThreadState* __tstate = wxPyBeginAllowThreads();
17347 (arg1)->SetToggle(arg2,arg3);
17348
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 Py_INCREF(Py_None); resultobj = Py_None;
17353 return resultobj;
17354 fail:
17355 return NULL;
17356 }
17357
17358
17359 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17360 PyObject *resultobj;
17361 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17362 int arg2 ;
17363 PyObject *result;
17364 PyObject * obj0 = 0 ;
17365 PyObject * obj1 = 0 ;
17366 char *kwnames[] = {
17367 (char *) "self",(char *) "id", NULL
17368 };
17369
17370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17373 arg2 = (int) SWIG_AsInt(obj1);
17374 if (PyErr_Occurred()) SWIG_fail;
17375 {
17376 PyThreadState* __tstate = wxPyBeginAllowThreads();
17377 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17378
17379 wxPyEndAllowThreads(__tstate);
17380 if (PyErr_Occurred()) SWIG_fail;
17381 }
17382 resultobj = result;
17383 return resultobj;
17384 fail:
17385 return NULL;
17386 }
17387
17388
17389 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17390 PyObject *resultobj;
17391 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17392 int arg2 ;
17393 PyObject *arg3 = (PyObject *) 0 ;
17394 PyObject * obj0 = 0 ;
17395 PyObject * obj1 = 0 ;
17396 PyObject * obj2 = 0 ;
17397 char *kwnames[] = {
17398 (char *) "self",(char *) "id",(char *) "clientData", NULL
17399 };
17400
17401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17404 arg2 = (int) SWIG_AsInt(obj1);
17405 if (PyErr_Occurred()) SWIG_fail;
17406 arg3 = obj2;
17407 {
17408 PyThreadState* __tstate = wxPyBeginAllowThreads();
17409 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17410
17411 wxPyEndAllowThreads(__tstate);
17412 if (PyErr_Occurred()) SWIG_fail;
17413 }
17414 Py_INCREF(Py_None); resultobj = Py_None;
17415 return resultobj;
17416 fail:
17417 return NULL;
17418 }
17419
17420
17421 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17422 PyObject *resultobj;
17423 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17424 int arg2 ;
17425 int result;
17426 PyObject * obj0 = 0 ;
17427 PyObject * obj1 = 0 ;
17428 char *kwnames[] = {
17429 (char *) "self",(char *) "id", NULL
17430 };
17431
17432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17435 arg2 = (int) SWIG_AsInt(obj1);
17436 if (PyErr_Occurred()) SWIG_fail;
17437 {
17438 PyThreadState* __tstate = wxPyBeginAllowThreads();
17439 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17440
17441 wxPyEndAllowThreads(__tstate);
17442 if (PyErr_Occurred()) SWIG_fail;
17443 }
17444 resultobj = SWIG_FromInt((int)result);
17445 return resultobj;
17446 fail:
17447 return NULL;
17448 }
17449
17450
17451 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
17452 PyObject *resultobj;
17453 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17454 int arg2 ;
17455 bool result;
17456 PyObject * obj0 = 0 ;
17457 PyObject * obj1 = 0 ;
17458 char *kwnames[] = {
17459 (char *) "self",(char *) "id", NULL
17460 };
17461
17462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17465 arg2 = (int) SWIG_AsInt(obj1);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 {
17468 PyThreadState* __tstate = wxPyBeginAllowThreads();
17469 result = (bool)(arg1)->GetToolState(arg2);
17470
17471 wxPyEndAllowThreads(__tstate);
17472 if (PyErr_Occurred()) SWIG_fail;
17473 }
17474 {
17475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17476 }
17477 return resultobj;
17478 fail:
17479 return NULL;
17480 }
17481
17482
17483 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17484 PyObject *resultobj;
17485 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17486 int arg2 ;
17487 bool result;
17488 PyObject * obj0 = 0 ;
17489 PyObject * obj1 = 0 ;
17490 char *kwnames[] = {
17491 (char *) "self",(char *) "id", NULL
17492 };
17493
17494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17497 arg2 = (int) SWIG_AsInt(obj1);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 result = (bool)(arg1)->GetToolEnabled(arg2);
17502
17503 wxPyEndAllowThreads(__tstate);
17504 if (PyErr_Occurred()) SWIG_fail;
17505 }
17506 {
17507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17508 }
17509 return resultobj;
17510 fail:
17511 return NULL;
17512 }
17513
17514
17515 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17516 PyObject *resultobj;
17517 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17518 int arg2 ;
17519 wxString *arg3 = 0 ;
17520 bool temp3 = False ;
17521 PyObject * obj0 = 0 ;
17522 PyObject * obj1 = 0 ;
17523 PyObject * obj2 = 0 ;
17524 char *kwnames[] = {
17525 (char *) "self",(char *) "id",(char *) "helpString", NULL
17526 };
17527
17528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17531 arg2 = (int) SWIG_AsInt(obj1);
17532 if (PyErr_Occurred()) SWIG_fail;
17533 {
17534 arg3 = wxString_in_helper(obj2);
17535 if (arg3 == NULL) SWIG_fail;
17536 temp3 = True;
17537 }
17538 {
17539 PyThreadState* __tstate = wxPyBeginAllowThreads();
17540 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17541
17542 wxPyEndAllowThreads(__tstate);
17543 if (PyErr_Occurred()) SWIG_fail;
17544 }
17545 Py_INCREF(Py_None); resultobj = Py_None;
17546 {
17547 if (temp3)
17548 delete arg3;
17549 }
17550 return resultobj;
17551 fail:
17552 {
17553 if (temp3)
17554 delete arg3;
17555 }
17556 return NULL;
17557 }
17558
17559
17560 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17561 PyObject *resultobj;
17562 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17563 int arg2 ;
17564 wxString result;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 char *kwnames[] = {
17568 (char *) "self",(char *) "id", NULL
17569 };
17570
17571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17574 arg2 = (int) SWIG_AsInt(obj1);
17575 if (PyErr_Occurred()) SWIG_fail;
17576 {
17577 PyThreadState* __tstate = wxPyBeginAllowThreads();
17578 result = (arg1)->GetToolShortHelp(arg2);
17579
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 {
17584 #if wxUSE_UNICODE
17585 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17586 #else
17587 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17588 #endif
17589 }
17590 return resultobj;
17591 fail:
17592 return NULL;
17593 }
17594
17595
17596 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17597 PyObject *resultobj;
17598 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17599 int arg2 ;
17600 wxString *arg3 = 0 ;
17601 bool temp3 = False ;
17602 PyObject * obj0 = 0 ;
17603 PyObject * obj1 = 0 ;
17604 PyObject * obj2 = 0 ;
17605 char *kwnames[] = {
17606 (char *) "self",(char *) "id",(char *) "helpString", NULL
17607 };
17608
17609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17612 arg2 = (int) SWIG_AsInt(obj1);
17613 if (PyErr_Occurred()) SWIG_fail;
17614 {
17615 arg3 = wxString_in_helper(obj2);
17616 if (arg3 == NULL) SWIG_fail;
17617 temp3 = True;
17618 }
17619 {
17620 PyThreadState* __tstate = wxPyBeginAllowThreads();
17621 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
17622
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 Py_INCREF(Py_None); resultobj = Py_None;
17627 {
17628 if (temp3)
17629 delete arg3;
17630 }
17631 return resultobj;
17632 fail:
17633 {
17634 if (temp3)
17635 delete arg3;
17636 }
17637 return NULL;
17638 }
17639
17640
17641 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17642 PyObject *resultobj;
17643 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17644 int arg2 ;
17645 wxString result;
17646 PyObject * obj0 = 0 ;
17647 PyObject * obj1 = 0 ;
17648 char *kwnames[] = {
17649 (char *) "self",(char *) "id", NULL
17650 };
17651
17652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
17653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17655 arg2 = (int) SWIG_AsInt(obj1);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 {
17658 PyThreadState* __tstate = wxPyBeginAllowThreads();
17659 result = (arg1)->GetToolLongHelp(arg2);
17660
17661 wxPyEndAllowThreads(__tstate);
17662 if (PyErr_Occurred()) SWIG_fail;
17663 }
17664 {
17665 #if wxUSE_UNICODE
17666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17667 #else
17668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17669 #endif
17670 }
17671 return resultobj;
17672 fail:
17673 return NULL;
17674 }
17675
17676
17677 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
17678 PyObject *resultobj;
17679 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17680 int arg2 ;
17681 int arg3 ;
17682 PyObject * obj0 = 0 ;
17683 PyObject * obj1 = 0 ;
17684 PyObject * obj2 = 0 ;
17685 char *kwnames[] = {
17686 (char *) "self",(char *) "x",(char *) "y", NULL
17687 };
17688
17689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
17690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17692 arg2 = (int) SWIG_AsInt(obj1);
17693 if (PyErr_Occurred()) SWIG_fail;
17694 arg3 = (int) SWIG_AsInt(obj2);
17695 if (PyErr_Occurred()) SWIG_fail;
17696 {
17697 PyThreadState* __tstate = wxPyBeginAllowThreads();
17698 (arg1)->SetMargins(arg2,arg3);
17699
17700 wxPyEndAllowThreads(__tstate);
17701 if (PyErr_Occurred()) SWIG_fail;
17702 }
17703 Py_INCREF(Py_None); resultobj = Py_None;
17704 return resultobj;
17705 fail:
17706 return NULL;
17707 }
17708
17709
17710 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17711 PyObject *resultobj;
17712 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17713 wxSize *arg2 = 0 ;
17714 wxSize temp2 ;
17715 PyObject * obj0 = 0 ;
17716 PyObject * obj1 = 0 ;
17717 char *kwnames[] = {
17718 (char *) "self",(char *) "size", NULL
17719 };
17720
17721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
17722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17724 {
17725 arg2 = &temp2;
17726 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17727 }
17728 {
17729 PyThreadState* __tstate = wxPyBeginAllowThreads();
17730 (arg1)->SetMargins((wxSize const &)*arg2);
17731
17732 wxPyEndAllowThreads(__tstate);
17733 if (PyErr_Occurred()) SWIG_fail;
17734 }
17735 Py_INCREF(Py_None); resultobj = Py_None;
17736 return resultobj;
17737 fail:
17738 return NULL;
17739 }
17740
17741
17742 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17743 PyObject *resultobj;
17744 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17745 int arg2 ;
17746 PyObject * obj0 = 0 ;
17747 PyObject * obj1 = 0 ;
17748 char *kwnames[] = {
17749 (char *) "self",(char *) "packing", NULL
17750 };
17751
17752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
17753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17755 arg2 = (int) SWIG_AsInt(obj1);
17756 if (PyErr_Occurred()) SWIG_fail;
17757 {
17758 PyThreadState* __tstate = wxPyBeginAllowThreads();
17759 (arg1)->SetToolPacking(arg2);
17760
17761 wxPyEndAllowThreads(__tstate);
17762 if (PyErr_Occurred()) SWIG_fail;
17763 }
17764 Py_INCREF(Py_None); resultobj = Py_None;
17765 return resultobj;
17766 fail:
17767 return NULL;
17768 }
17769
17770
17771 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17772 PyObject *resultobj;
17773 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17774 int arg2 ;
17775 PyObject * obj0 = 0 ;
17776 PyObject * obj1 = 0 ;
17777 char *kwnames[] = {
17778 (char *) "self",(char *) "separation", NULL
17779 };
17780
17781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
17782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17784 arg2 = (int) SWIG_AsInt(obj1);
17785 if (PyErr_Occurred()) SWIG_fail;
17786 {
17787 PyThreadState* __tstate = wxPyBeginAllowThreads();
17788 (arg1)->SetToolSeparation(arg2);
17789
17790 wxPyEndAllowThreads(__tstate);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 }
17793 Py_INCREF(Py_None); resultobj = Py_None;
17794 return resultobj;
17795 fail:
17796 return NULL;
17797 }
17798
17799
17800 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17801 PyObject *resultobj;
17802 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17803 wxSize result;
17804 PyObject * obj0 = 0 ;
17805 char *kwnames[] = {
17806 (char *) "self", NULL
17807 };
17808
17809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
17810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17812 {
17813 PyThreadState* __tstate = wxPyBeginAllowThreads();
17814 result = (arg1)->GetToolMargins();
17815
17816 wxPyEndAllowThreads(__tstate);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 }
17819 {
17820 wxSize * resultptr;
17821 resultptr = new wxSize((wxSize &) result);
17822 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17823 }
17824 return resultobj;
17825 fail:
17826 return NULL;
17827 }
17828
17829
17830 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17831 PyObject *resultobj;
17832 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17833 wxSize result;
17834 PyObject * obj0 = 0 ;
17835 char *kwnames[] = {
17836 (char *) "self", NULL
17837 };
17838
17839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
17840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17842 {
17843 PyThreadState* __tstate = wxPyBeginAllowThreads();
17844 result = (arg1)->GetMargins();
17845
17846 wxPyEndAllowThreads(__tstate);
17847 if (PyErr_Occurred()) SWIG_fail;
17848 }
17849 {
17850 wxSize * resultptr;
17851 resultptr = new wxSize((wxSize &) result);
17852 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17853 }
17854 return resultobj;
17855 fail:
17856 return NULL;
17857 }
17858
17859
17860 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17861 PyObject *resultobj;
17862 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17863 int result;
17864 PyObject * obj0 = 0 ;
17865 char *kwnames[] = {
17866 (char *) "self", NULL
17867 };
17868
17869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
17870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17872 {
17873 PyThreadState* __tstate = wxPyBeginAllowThreads();
17874 result = (int)(arg1)->GetToolPacking();
17875
17876 wxPyEndAllowThreads(__tstate);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 }
17879 resultobj = SWIG_FromInt((int)result);
17880 return resultobj;
17881 fail:
17882 return NULL;
17883 }
17884
17885
17886 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17887 PyObject *resultobj;
17888 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17889 int result;
17890 PyObject * obj0 = 0 ;
17891 char *kwnames[] = {
17892 (char *) "self", NULL
17893 };
17894
17895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
17896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17898 {
17899 PyThreadState* __tstate = wxPyBeginAllowThreads();
17900 result = (int)(arg1)->GetToolSeparation();
17901
17902 wxPyEndAllowThreads(__tstate);
17903 if (PyErr_Occurred()) SWIG_fail;
17904 }
17905 resultobj = SWIG_FromInt((int)result);
17906 return resultobj;
17907 fail:
17908 return NULL;
17909 }
17910
17911
17912 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17913 PyObject *resultobj;
17914 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17915 int arg2 ;
17916 PyObject * obj0 = 0 ;
17917 PyObject * obj1 = 0 ;
17918 char *kwnames[] = {
17919 (char *) "self",(char *) "nRows", NULL
17920 };
17921
17922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
17923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17925 arg2 = (int) SWIG_AsInt(obj1);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 (arg1)->SetRows(arg2);
17930
17931 wxPyEndAllowThreads(__tstate);
17932 if (PyErr_Occurred()) SWIG_fail;
17933 }
17934 Py_INCREF(Py_None); resultobj = Py_None;
17935 return resultobj;
17936 fail:
17937 return NULL;
17938 }
17939
17940
17941 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17942 PyObject *resultobj;
17943 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17944 int arg2 ;
17945 int arg3 ;
17946 PyObject * obj0 = 0 ;
17947 PyObject * obj1 = 0 ;
17948 PyObject * obj2 = 0 ;
17949 char *kwnames[] = {
17950 (char *) "self",(char *) "rows",(char *) "cols", NULL
17951 };
17952
17953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
17954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17956 arg2 = (int) SWIG_AsInt(obj1);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 arg3 = (int) SWIG_AsInt(obj2);
17959 if (PyErr_Occurred()) SWIG_fail;
17960 {
17961 PyThreadState* __tstate = wxPyBeginAllowThreads();
17962 (arg1)->SetMaxRowsCols(arg2,arg3);
17963
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 Py_INCREF(Py_None); resultobj = Py_None;
17968 return resultobj;
17969 fail:
17970 return NULL;
17971 }
17972
17973
17974 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17975 PyObject *resultobj;
17976 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17977 int result;
17978 PyObject * obj0 = 0 ;
17979 char *kwnames[] = {
17980 (char *) "self", NULL
17981 };
17982
17983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
17984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17986 {
17987 PyThreadState* __tstate = wxPyBeginAllowThreads();
17988 result = (int)(arg1)->GetMaxRows();
17989
17990 wxPyEndAllowThreads(__tstate);
17991 if (PyErr_Occurred()) SWIG_fail;
17992 }
17993 resultobj = SWIG_FromInt((int)result);
17994 return resultobj;
17995 fail:
17996 return NULL;
17997 }
17998
17999
18000 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
18001 PyObject *resultobj;
18002 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18003 int result;
18004 PyObject * obj0 = 0 ;
18005 char *kwnames[] = {
18006 (char *) "self", NULL
18007 };
18008
18009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18012 {
18013 PyThreadState* __tstate = wxPyBeginAllowThreads();
18014 result = (int)(arg1)->GetMaxCols();
18015
18016 wxPyEndAllowThreads(__tstate);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
18019 resultobj = SWIG_FromInt((int)result);
18020 return resultobj;
18021 fail:
18022 return NULL;
18023 }
18024
18025
18026 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18027 PyObject *resultobj;
18028 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18029 wxSize *arg2 = 0 ;
18030 wxSize temp2 ;
18031 PyObject * obj0 = 0 ;
18032 PyObject * obj1 = 0 ;
18033 char *kwnames[] = {
18034 (char *) "self",(char *) "size", NULL
18035 };
18036
18037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18040 {
18041 arg2 = &temp2;
18042 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18043 }
18044 {
18045 PyThreadState* __tstate = wxPyBeginAllowThreads();
18046 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18047
18048 wxPyEndAllowThreads(__tstate);
18049 if (PyErr_Occurred()) SWIG_fail;
18050 }
18051 Py_INCREF(Py_None); resultobj = Py_None;
18052 return resultobj;
18053 fail:
18054 return NULL;
18055 }
18056
18057
18058 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18059 PyObject *resultobj;
18060 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18061 wxSize result;
18062 PyObject * obj0 = 0 ;
18063 char *kwnames[] = {
18064 (char *) "self", NULL
18065 };
18066
18067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18070 {
18071 PyThreadState* __tstate = wxPyBeginAllowThreads();
18072 result = (arg1)->GetToolBitmapSize();
18073
18074 wxPyEndAllowThreads(__tstate);
18075 if (PyErr_Occurred()) SWIG_fail;
18076 }
18077 {
18078 wxSize * resultptr;
18079 resultptr = new wxSize((wxSize &) result);
18080 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18081 }
18082 return resultobj;
18083 fail:
18084 return NULL;
18085 }
18086
18087
18088 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18089 PyObject *resultobj;
18090 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18091 wxSize result;
18092 PyObject * obj0 = 0 ;
18093 char *kwnames[] = {
18094 (char *) "self", NULL
18095 };
18096
18097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 result = (arg1)->GetToolSize();
18103
18104 wxPyEndAllowThreads(__tstate);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 {
18108 wxSize * resultptr;
18109 resultptr = new wxSize((wxSize &) result);
18110 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18111 }
18112 return resultobj;
18113 fail:
18114 return NULL;
18115 }
18116
18117
18118 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18119 PyObject *resultobj;
18120 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18121 int arg2 ;
18122 int arg3 ;
18123 wxToolBarToolBase *result;
18124 PyObject * obj0 = 0 ;
18125 PyObject * obj1 = 0 ;
18126 PyObject * obj2 = 0 ;
18127 char *kwnames[] = {
18128 (char *) "self",(char *) "x",(char *) "y", NULL
18129 };
18130
18131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18134 arg2 = (int) SWIG_AsInt(obj1);
18135 if (PyErr_Occurred()) SWIG_fail;
18136 arg3 = (int) SWIG_AsInt(obj2);
18137 if (PyErr_Occurred()) SWIG_fail;
18138 {
18139 PyThreadState* __tstate = wxPyBeginAllowThreads();
18140 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18141
18142 wxPyEndAllowThreads(__tstate);
18143 if (PyErr_Occurred()) SWIG_fail;
18144 }
18145 {
18146 resultobj = wxPyMake_wxObject(result);
18147 }
18148 return resultobj;
18149 fail:
18150 return NULL;
18151 }
18152
18153
18154 static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
18155 PyObject *resultobj;
18156 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18157 int arg2 ;
18158 wxToolBarToolBase *result;
18159 PyObject * obj0 = 0 ;
18160 PyObject * obj1 = 0 ;
18161 char *kwnames[] = {
18162 (char *) "self",(char *) "toolid", NULL
18163 };
18164
18165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18168 arg2 = (int) SWIG_AsInt(obj1);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 {
18171 PyThreadState* __tstate = wxPyBeginAllowThreads();
18172 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18173
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 {
18178 resultobj = wxPyMake_wxObject(result);
18179 }
18180 return resultobj;
18181 fail:
18182 return NULL;
18183 }
18184
18185
18186 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
18187 PyObject *resultobj;
18188 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18189 bool result;
18190 PyObject * obj0 = 0 ;
18191 char *kwnames[] = {
18192 (char *) "self", NULL
18193 };
18194
18195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18198 {
18199 PyThreadState* __tstate = wxPyBeginAllowThreads();
18200 result = (bool)(arg1)->IsVertical();
18201
18202 wxPyEndAllowThreads(__tstate);
18203 if (PyErr_Occurred()) SWIG_fail;
18204 }
18205 {
18206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18207 }
18208 return resultobj;
18209 fail:
18210 return NULL;
18211 }
18212
18213
18214 static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
18215 PyObject *obj;
18216 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18217 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18218 Py_INCREF(obj);
18219 return Py_BuildValue((char *)"");
18220 }
18221 static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18222 PyObject *resultobj;
18223 wxWindow *arg1 = (wxWindow *) 0 ;
18224 int arg2 ;
18225 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18226 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18227 wxSize const &arg4_defvalue = wxDefaultSize ;
18228 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18229 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18230 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18231 wxString *arg6 = (wxString *) &arg6_defvalue ;
18232 wxToolBar *result;
18233 wxPoint temp3 ;
18234 wxSize temp4 ;
18235 bool temp6 = False ;
18236 PyObject * obj0 = 0 ;
18237 PyObject * obj1 = 0 ;
18238 PyObject * obj2 = 0 ;
18239 PyObject * obj3 = 0 ;
18240 PyObject * obj4 = 0 ;
18241 PyObject * obj5 = 0 ;
18242 char *kwnames[] = {
18243 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18244 };
18245
18246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18249 arg2 = (int) SWIG_AsInt(obj1);
18250 if (PyErr_Occurred()) SWIG_fail;
18251 if (obj2) {
18252 {
18253 arg3 = &temp3;
18254 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18255 }
18256 }
18257 if (obj3) {
18258 {
18259 arg4 = &temp4;
18260 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18261 }
18262 }
18263 if (obj4) {
18264 arg5 = (long) SWIG_AsLong(obj4);
18265 if (PyErr_Occurred()) SWIG_fail;
18266 }
18267 if (obj5) {
18268 {
18269 arg6 = wxString_in_helper(obj5);
18270 if (arg6 == NULL) SWIG_fail;
18271 temp6 = True;
18272 }
18273 }
18274 {
18275 PyThreadState* __tstate = wxPyBeginAllowThreads();
18276 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18277
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 {
18282 resultobj = wxPyMake_wxObject(result);
18283 }
18284 {
18285 if (temp6)
18286 delete arg6;
18287 }
18288 return resultobj;
18289 fail:
18290 {
18291 if (temp6)
18292 delete arg6;
18293 }
18294 return NULL;
18295 }
18296
18297
18298 static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18299 PyObject *resultobj;
18300 wxToolBar *result;
18301 char *kwnames[] = {
18302 NULL
18303 };
18304
18305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18306 {
18307 PyThreadState* __tstate = wxPyBeginAllowThreads();
18308 result = (wxToolBar *)new wxToolBar();
18309
18310 wxPyEndAllowThreads(__tstate);
18311 if (PyErr_Occurred()) SWIG_fail;
18312 }
18313 {
18314 resultobj = wxPyMake_wxObject(result);
18315 }
18316 return resultobj;
18317 fail:
18318 return NULL;
18319 }
18320
18321
18322 static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
18323 PyObject *resultobj;
18324 wxToolBar *arg1 = (wxToolBar *) 0 ;
18325 wxWindow *arg2 = (wxWindow *) 0 ;
18326 int arg3 ;
18327 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18328 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18329 wxSize const &arg5_defvalue = wxDefaultSize ;
18330 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18331 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18332 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18333 wxString *arg7 = (wxString *) &arg7_defvalue ;
18334 bool result;
18335 wxPoint temp4 ;
18336 wxSize temp5 ;
18337 bool temp7 = False ;
18338 PyObject * obj0 = 0 ;
18339 PyObject * obj1 = 0 ;
18340 PyObject * obj2 = 0 ;
18341 PyObject * obj3 = 0 ;
18342 PyObject * obj4 = 0 ;
18343 PyObject * obj5 = 0 ;
18344 PyObject * obj6 = 0 ;
18345 char *kwnames[] = {
18346 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18347 };
18348
18349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18354 arg3 = (int) SWIG_AsInt(obj2);
18355 if (PyErr_Occurred()) SWIG_fail;
18356 if (obj3) {
18357 {
18358 arg4 = &temp4;
18359 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18360 }
18361 }
18362 if (obj4) {
18363 {
18364 arg5 = &temp5;
18365 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18366 }
18367 }
18368 if (obj5) {
18369 arg6 = (long) SWIG_AsLong(obj5);
18370 if (PyErr_Occurred()) SWIG_fail;
18371 }
18372 if (obj6) {
18373 {
18374 arg7 = wxString_in_helper(obj6);
18375 if (arg7 == NULL) SWIG_fail;
18376 temp7 = True;
18377 }
18378 }
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18382
18383 wxPyEndAllowThreads(__tstate);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 }
18386 {
18387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18388 }
18389 {
18390 if (temp7)
18391 delete arg7;
18392 }
18393 return resultobj;
18394 fail:
18395 {
18396 if (temp7)
18397 delete arg7;
18398 }
18399 return NULL;
18400 }
18401
18402
18403 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18404 PyObject *resultobj;
18405 wxToolBar *arg1 = (wxToolBar *) 0 ;
18406 int arg2 ;
18407 int arg3 ;
18408 wxToolBarToolBase *result;
18409 PyObject * obj0 = 0 ;
18410 PyObject * obj1 = 0 ;
18411 PyObject * obj2 = 0 ;
18412 char *kwnames[] = {
18413 (char *) "self",(char *) "x",(char *) "y", NULL
18414 };
18415
18416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18419 arg2 = (int) SWIG_AsInt(obj1);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 arg3 = (int) SWIG_AsInt(obj2);
18422 if (PyErr_Occurred()) SWIG_fail;
18423 {
18424 PyThreadState* __tstate = wxPyBeginAllowThreads();
18425 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18426
18427 wxPyEndAllowThreads(__tstate);
18428 if (PyErr_Occurred()) SWIG_fail;
18429 }
18430 {
18431 resultobj = wxPyMake_wxObject(result);
18432 }
18433 return resultobj;
18434 fail:
18435 return NULL;
18436 }
18437
18438
18439 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18440 PyObject *resultobj;
18441 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18442 wxVisualAttributes result;
18443 PyObject * obj0 = 0 ;
18444 char *kwnames[] = {
18445 (char *) "variant", NULL
18446 };
18447
18448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18449 if (obj0) {
18450 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
18451 if (PyErr_Occurred()) SWIG_fail;
18452 }
18453 {
18454 PyThreadState* __tstate = wxPyBeginAllowThreads();
18455 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18456
18457 wxPyEndAllowThreads(__tstate);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 {
18461 wxVisualAttributes * resultptr;
18462 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18463 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18464 }
18465 return resultobj;
18466 fail:
18467 return NULL;
18468 }
18469
18470
18471 static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
18472 PyObject *obj;
18473 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18474 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18475 Py_INCREF(obj);
18476 return Py_BuildValue((char *)"");
18477 }
18478 static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
18479 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18480 return 1;
18481 }
18482
18483
18484 static PyObject *_wrap_ListCtrlNameStr_get() {
18485 PyObject *pyobj;
18486
18487 {
18488 #if wxUSE_UNICODE
18489 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18490 #else
18491 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18492 #endif
18493 }
18494 return pyobj;
18495 }
18496
18497
18498 static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
18499 PyObject *resultobj;
18500 wxColour const &arg1_defvalue = wxNullColour ;
18501 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18502 wxColour const &arg2_defvalue = wxNullColour ;
18503 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18504 wxFont const &arg3_defvalue = wxNullFont ;
18505 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18506 wxListItemAttr *result;
18507 wxColour temp1 ;
18508 wxColour temp2 ;
18509 PyObject * obj0 = 0 ;
18510 PyObject * obj1 = 0 ;
18511 PyObject * obj2 = 0 ;
18512 char *kwnames[] = {
18513 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18514 };
18515
18516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18517 if (obj0) {
18518 {
18519 arg1 = &temp1;
18520 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18521 }
18522 }
18523 if (obj1) {
18524 {
18525 arg2 = &temp2;
18526 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18527 }
18528 }
18529 if (obj2) {
18530 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18531 SWIG_POINTER_EXCEPTION | 0)) == -1)
18532 SWIG_fail;
18533 if (arg3 == NULL) {
18534 PyErr_SetString(PyExc_TypeError,"null reference");
18535 SWIG_fail;
18536 }
18537 }
18538 {
18539 PyThreadState* __tstate = wxPyBeginAllowThreads();
18540 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18541
18542 wxPyEndAllowThreads(__tstate);
18543 if (PyErr_Occurred()) SWIG_fail;
18544 }
18545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18546 return resultobj;
18547 fail:
18548 return NULL;
18549 }
18550
18551
18552 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18553 PyObject *resultobj;
18554 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18555 wxColour *arg2 = 0 ;
18556 wxColour temp2 ;
18557 PyObject * obj0 = 0 ;
18558 PyObject * obj1 = 0 ;
18559 char *kwnames[] = {
18560 (char *) "self",(char *) "colText", NULL
18561 };
18562
18563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18566 {
18567 arg2 = &temp2;
18568 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18569 }
18570 {
18571 PyThreadState* __tstate = wxPyBeginAllowThreads();
18572 (arg1)->SetTextColour((wxColour const &)*arg2);
18573
18574 wxPyEndAllowThreads(__tstate);
18575 if (PyErr_Occurred()) SWIG_fail;
18576 }
18577 Py_INCREF(Py_None); resultobj = Py_None;
18578 return resultobj;
18579 fail:
18580 return NULL;
18581 }
18582
18583
18584 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18585 PyObject *resultobj;
18586 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18587 wxColour *arg2 = 0 ;
18588 wxColour temp2 ;
18589 PyObject * obj0 = 0 ;
18590 PyObject * obj1 = 0 ;
18591 char *kwnames[] = {
18592 (char *) "self",(char *) "colBack", NULL
18593 };
18594
18595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18598 {
18599 arg2 = &temp2;
18600 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18601 }
18602 {
18603 PyThreadState* __tstate = wxPyBeginAllowThreads();
18604 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18605
18606 wxPyEndAllowThreads(__tstate);
18607 if (PyErr_Occurred()) SWIG_fail;
18608 }
18609 Py_INCREF(Py_None); resultobj = Py_None;
18610 return resultobj;
18611 fail:
18612 return NULL;
18613 }
18614
18615
18616 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18617 PyObject *resultobj;
18618 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18619 wxFont *arg2 = 0 ;
18620 PyObject * obj0 = 0 ;
18621 PyObject * obj1 = 0 ;
18622 char *kwnames[] = {
18623 (char *) "self",(char *) "font", NULL
18624 };
18625
18626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
18627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18630 SWIG_POINTER_EXCEPTION | 0)) == -1)
18631 SWIG_fail;
18632 if (arg2 == NULL) {
18633 PyErr_SetString(PyExc_TypeError,"null reference");
18634 SWIG_fail;
18635 }
18636 {
18637 PyThreadState* __tstate = wxPyBeginAllowThreads();
18638 (arg1)->SetFont((wxFont const &)*arg2);
18639
18640 wxPyEndAllowThreads(__tstate);
18641 if (PyErr_Occurred()) SWIG_fail;
18642 }
18643 Py_INCREF(Py_None); resultobj = Py_None;
18644 return resultobj;
18645 fail:
18646 return NULL;
18647 }
18648
18649
18650 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18651 PyObject *resultobj;
18652 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18653 bool result;
18654 PyObject * obj0 = 0 ;
18655 char *kwnames[] = {
18656 (char *) "self", NULL
18657 };
18658
18659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
18660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18662 {
18663 PyThreadState* __tstate = wxPyBeginAllowThreads();
18664 result = (bool)(arg1)->HasTextColour();
18665
18666 wxPyEndAllowThreads(__tstate);
18667 if (PyErr_Occurred()) SWIG_fail;
18668 }
18669 {
18670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18671 }
18672 return resultobj;
18673 fail:
18674 return NULL;
18675 }
18676
18677
18678 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18679 PyObject *resultobj;
18680 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18681 bool result;
18682 PyObject * obj0 = 0 ;
18683 char *kwnames[] = {
18684 (char *) "self", NULL
18685 };
18686
18687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
18688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18690 {
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
18692 result = (bool)(arg1)->HasBackgroundColour();
18693
18694 wxPyEndAllowThreads(__tstate);
18695 if (PyErr_Occurred()) SWIG_fail;
18696 }
18697 {
18698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18699 }
18700 return resultobj;
18701 fail:
18702 return NULL;
18703 }
18704
18705
18706 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18707 PyObject *resultobj;
18708 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18709 bool result;
18710 PyObject * obj0 = 0 ;
18711 char *kwnames[] = {
18712 (char *) "self", NULL
18713 };
18714
18715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
18716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18718 {
18719 PyThreadState* __tstate = wxPyBeginAllowThreads();
18720 result = (bool)(arg1)->HasFont();
18721
18722 wxPyEndAllowThreads(__tstate);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
18725 {
18726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18727 }
18728 return resultobj;
18729 fail:
18730 return NULL;
18731 }
18732
18733
18734 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18735 PyObject *resultobj;
18736 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18737 wxColour result;
18738 PyObject * obj0 = 0 ;
18739 char *kwnames[] = {
18740 (char *) "self", NULL
18741 };
18742
18743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
18744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18746 {
18747 PyThreadState* __tstate = wxPyBeginAllowThreads();
18748 result = (arg1)->GetTextColour();
18749
18750 wxPyEndAllowThreads(__tstate);
18751 if (PyErr_Occurred()) SWIG_fail;
18752 }
18753 {
18754 wxColour * resultptr;
18755 resultptr = new wxColour((wxColour &) result);
18756 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18757 }
18758 return resultobj;
18759 fail:
18760 return NULL;
18761 }
18762
18763
18764 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18765 PyObject *resultobj;
18766 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18767 wxColour result;
18768 PyObject * obj0 = 0 ;
18769 char *kwnames[] = {
18770 (char *) "self", NULL
18771 };
18772
18773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
18774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18776 {
18777 PyThreadState* __tstate = wxPyBeginAllowThreads();
18778 result = (arg1)->GetBackgroundColour();
18779
18780 wxPyEndAllowThreads(__tstate);
18781 if (PyErr_Occurred()) SWIG_fail;
18782 }
18783 {
18784 wxColour * resultptr;
18785 resultptr = new wxColour((wxColour &) result);
18786 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18787 }
18788 return resultobj;
18789 fail:
18790 return NULL;
18791 }
18792
18793
18794 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18795 PyObject *resultobj;
18796 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18797 wxFont result;
18798 PyObject * obj0 = 0 ;
18799 char *kwnames[] = {
18800 (char *) "self", NULL
18801 };
18802
18803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
18804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18806 {
18807 PyThreadState* __tstate = wxPyBeginAllowThreads();
18808 result = (arg1)->GetFont();
18809
18810 wxPyEndAllowThreads(__tstate);
18811 if (PyErr_Occurred()) SWIG_fail;
18812 }
18813 {
18814 wxFont * resultptr;
18815 resultptr = new wxFont((wxFont &) result);
18816 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18817 }
18818 return resultobj;
18819 fail:
18820 return NULL;
18821 }
18822
18823
18824 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
18825 PyObject *resultobj;
18826 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18827 PyObject * obj0 = 0 ;
18828 char *kwnames[] = {
18829 (char *) "self", NULL
18830 };
18831
18832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
18833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18835 {
18836 PyThreadState* __tstate = wxPyBeginAllowThreads();
18837 wxListItemAttr_Destroy(arg1);
18838
18839 wxPyEndAllowThreads(__tstate);
18840 if (PyErr_Occurred()) SWIG_fail;
18841 }
18842 Py_INCREF(Py_None); resultobj = Py_None;
18843 return resultobj;
18844 fail:
18845 return NULL;
18846 }
18847
18848
18849 static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
18850 PyObject *obj;
18851 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18852 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
18853 Py_INCREF(obj);
18854 return Py_BuildValue((char *)"");
18855 }
18856 static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18857 PyObject *resultobj;
18858 wxListItem *result;
18859 char *kwnames[] = {
18860 NULL
18861 };
18862
18863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
18864 {
18865 PyThreadState* __tstate = wxPyBeginAllowThreads();
18866 result = (wxListItem *)new wxListItem();
18867
18868 wxPyEndAllowThreads(__tstate);
18869 if (PyErr_Occurred()) SWIG_fail;
18870 }
18871 {
18872 resultobj = wxPyMake_wxObject(result);
18873 }
18874 return resultobj;
18875 fail:
18876 return NULL;
18877 }
18878
18879
18880 static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18881 PyObject *resultobj;
18882 wxListItem *arg1 = (wxListItem *) 0 ;
18883 PyObject * obj0 = 0 ;
18884 char *kwnames[] = {
18885 (char *) "self", NULL
18886 };
18887
18888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
18889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18891 {
18892 PyThreadState* __tstate = wxPyBeginAllowThreads();
18893 delete arg1;
18894
18895 wxPyEndAllowThreads(__tstate);
18896 if (PyErr_Occurred()) SWIG_fail;
18897 }
18898 Py_INCREF(Py_None); resultobj = Py_None;
18899 return resultobj;
18900 fail:
18901 return NULL;
18902 }
18903
18904
18905 static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
18906 PyObject *resultobj;
18907 wxListItem *arg1 = (wxListItem *) 0 ;
18908 PyObject * obj0 = 0 ;
18909 char *kwnames[] = {
18910 (char *) "self", NULL
18911 };
18912
18913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
18914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18916 {
18917 PyThreadState* __tstate = wxPyBeginAllowThreads();
18918 (arg1)->Clear();
18919
18920 wxPyEndAllowThreads(__tstate);
18921 if (PyErr_Occurred()) SWIG_fail;
18922 }
18923 Py_INCREF(Py_None); resultobj = Py_None;
18924 return resultobj;
18925 fail:
18926 return NULL;
18927 }
18928
18929
18930 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18931 PyObject *resultobj;
18932 wxListItem *arg1 = (wxListItem *) 0 ;
18933 PyObject * obj0 = 0 ;
18934 char *kwnames[] = {
18935 (char *) "self", NULL
18936 };
18937
18938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
18939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18941 {
18942 PyThreadState* __tstate = wxPyBeginAllowThreads();
18943 (arg1)->ClearAttributes();
18944
18945 wxPyEndAllowThreads(__tstate);
18946 if (PyErr_Occurred()) SWIG_fail;
18947 }
18948 Py_INCREF(Py_None); resultobj = Py_None;
18949 return resultobj;
18950 fail:
18951 return NULL;
18952 }
18953
18954
18955 static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18956 PyObject *resultobj;
18957 wxListItem *arg1 = (wxListItem *) 0 ;
18958 long arg2 ;
18959 PyObject * obj0 = 0 ;
18960 PyObject * obj1 = 0 ;
18961 char *kwnames[] = {
18962 (char *) "self",(char *) "mask", NULL
18963 };
18964
18965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
18966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18968 arg2 = (long) SWIG_AsLong(obj1);
18969 if (PyErr_Occurred()) SWIG_fail;
18970 {
18971 PyThreadState* __tstate = wxPyBeginAllowThreads();
18972 (arg1)->SetMask(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_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18985 PyObject *resultobj;
18986 wxListItem *arg1 = (wxListItem *) 0 ;
18987 long arg2 ;
18988 PyObject * obj0 = 0 ;
18989 PyObject * obj1 = 0 ;
18990 char *kwnames[] = {
18991 (char *) "self",(char *) "id", NULL
18992 };
18993
18994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
18995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18997 arg2 = (long) SWIG_AsLong(obj1);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
19001 (arg1)->SetId(arg2);
19002
19003 wxPyEndAllowThreads(__tstate);
19004 if (PyErr_Occurred()) SWIG_fail;
19005 }
19006 Py_INCREF(Py_None); resultobj = Py_None;
19007 return resultobj;
19008 fail:
19009 return NULL;
19010 }
19011
19012
19013 static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19014 PyObject *resultobj;
19015 wxListItem *arg1 = (wxListItem *) 0 ;
19016 int arg2 ;
19017 PyObject * obj0 = 0 ;
19018 PyObject * obj1 = 0 ;
19019 char *kwnames[] = {
19020 (char *) "self",(char *) "col", NULL
19021 };
19022
19023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19026 arg2 = (int) SWIG_AsInt(obj1);
19027 if (PyErr_Occurred()) SWIG_fail;
19028 {
19029 PyThreadState* __tstate = wxPyBeginAllowThreads();
19030 (arg1)->SetColumn(arg2);
19031
19032 wxPyEndAllowThreads(__tstate);
19033 if (PyErr_Occurred()) SWIG_fail;
19034 }
19035 Py_INCREF(Py_None); resultobj = Py_None;
19036 return resultobj;
19037 fail:
19038 return NULL;
19039 }
19040
19041
19042 static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19043 PyObject *resultobj;
19044 wxListItem *arg1 = (wxListItem *) 0 ;
19045 long arg2 ;
19046 PyObject * obj0 = 0 ;
19047 PyObject * obj1 = 0 ;
19048 char *kwnames[] = {
19049 (char *) "self",(char *) "state", NULL
19050 };
19051
19052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19055 arg2 = (long) SWIG_AsLong(obj1);
19056 if (PyErr_Occurred()) SWIG_fail;
19057 {
19058 PyThreadState* __tstate = wxPyBeginAllowThreads();
19059 (arg1)->SetState(arg2);
19060
19061 wxPyEndAllowThreads(__tstate);
19062 if (PyErr_Occurred()) SWIG_fail;
19063 }
19064 Py_INCREF(Py_None); resultobj = Py_None;
19065 return resultobj;
19066 fail:
19067 return NULL;
19068 }
19069
19070
19071 static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19072 PyObject *resultobj;
19073 wxListItem *arg1 = (wxListItem *) 0 ;
19074 long arg2 ;
19075 PyObject * obj0 = 0 ;
19076 PyObject * obj1 = 0 ;
19077 char *kwnames[] = {
19078 (char *) "self",(char *) "stateMask", NULL
19079 };
19080
19081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19084 arg2 = (long) SWIG_AsLong(obj1);
19085 if (PyErr_Occurred()) SWIG_fail;
19086 {
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 (arg1)->SetStateMask(arg2);
19089
19090 wxPyEndAllowThreads(__tstate);
19091 if (PyErr_Occurred()) SWIG_fail;
19092 }
19093 Py_INCREF(Py_None); resultobj = Py_None;
19094 return resultobj;
19095 fail:
19096 return NULL;
19097 }
19098
19099
19100 static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19101 PyObject *resultobj;
19102 wxListItem *arg1 = (wxListItem *) 0 ;
19103 wxString *arg2 = 0 ;
19104 bool temp2 = False ;
19105 PyObject * obj0 = 0 ;
19106 PyObject * obj1 = 0 ;
19107 char *kwnames[] = {
19108 (char *) "self",(char *) "text", NULL
19109 };
19110
19111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19114 {
19115 arg2 = wxString_in_helper(obj1);
19116 if (arg2 == NULL) SWIG_fail;
19117 temp2 = True;
19118 }
19119 {
19120 PyThreadState* __tstate = wxPyBeginAllowThreads();
19121 (arg1)->SetText((wxString const &)*arg2);
19122
19123 wxPyEndAllowThreads(__tstate);
19124 if (PyErr_Occurred()) SWIG_fail;
19125 }
19126 Py_INCREF(Py_None); resultobj = Py_None;
19127 {
19128 if (temp2)
19129 delete arg2;
19130 }
19131 return resultobj;
19132 fail:
19133 {
19134 if (temp2)
19135 delete arg2;
19136 }
19137 return NULL;
19138 }
19139
19140
19141 static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19142 PyObject *resultobj;
19143 wxListItem *arg1 = (wxListItem *) 0 ;
19144 int arg2 ;
19145 PyObject * obj0 = 0 ;
19146 PyObject * obj1 = 0 ;
19147 char *kwnames[] = {
19148 (char *) "self",(char *) "image", NULL
19149 };
19150
19151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19154 arg2 = (int) SWIG_AsInt(obj1);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 {
19157 PyThreadState* __tstate = wxPyBeginAllowThreads();
19158 (arg1)->SetImage(arg2);
19159
19160 wxPyEndAllowThreads(__tstate);
19161 if (PyErr_Occurred()) SWIG_fail;
19162 }
19163 Py_INCREF(Py_None); resultobj = Py_None;
19164 return resultobj;
19165 fail:
19166 return NULL;
19167 }
19168
19169
19170 static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19171 PyObject *resultobj;
19172 wxListItem *arg1 = (wxListItem *) 0 ;
19173 long arg2 ;
19174 PyObject * obj0 = 0 ;
19175 PyObject * obj1 = 0 ;
19176 char *kwnames[] = {
19177 (char *) "self",(char *) "data", NULL
19178 };
19179
19180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19183 arg2 = (long) SWIG_AsLong(obj1);
19184 if (PyErr_Occurred()) SWIG_fail;
19185 {
19186 PyThreadState* __tstate = wxPyBeginAllowThreads();
19187 (arg1)->SetData(arg2);
19188
19189 wxPyEndAllowThreads(__tstate);
19190 if (PyErr_Occurred()) SWIG_fail;
19191 }
19192 Py_INCREF(Py_None); resultobj = Py_None;
19193 return resultobj;
19194 fail:
19195 return NULL;
19196 }
19197
19198
19199 static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19200 PyObject *resultobj;
19201 wxListItem *arg1 = (wxListItem *) 0 ;
19202 int arg2 ;
19203 PyObject * obj0 = 0 ;
19204 PyObject * obj1 = 0 ;
19205 char *kwnames[] = {
19206 (char *) "self",(char *) "width", NULL
19207 };
19208
19209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19212 arg2 = (int) SWIG_AsInt(obj1);
19213 if (PyErr_Occurred()) SWIG_fail;
19214 {
19215 PyThreadState* __tstate = wxPyBeginAllowThreads();
19216 (arg1)->SetWidth(arg2);
19217
19218 wxPyEndAllowThreads(__tstate);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 Py_INCREF(Py_None); resultobj = Py_None;
19222 return resultobj;
19223 fail:
19224 return NULL;
19225 }
19226
19227
19228 static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19229 PyObject *resultobj;
19230 wxListItem *arg1 = (wxListItem *) 0 ;
19231 int arg2 ;
19232 PyObject * obj0 = 0 ;
19233 PyObject * obj1 = 0 ;
19234 char *kwnames[] = {
19235 (char *) "self",(char *) "align", NULL
19236 };
19237
19238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19241 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 {
19244 PyThreadState* __tstate = wxPyBeginAllowThreads();
19245 (arg1)->SetAlign((wxListColumnFormat )arg2);
19246
19247 wxPyEndAllowThreads(__tstate);
19248 if (PyErr_Occurred()) SWIG_fail;
19249 }
19250 Py_INCREF(Py_None); resultobj = Py_None;
19251 return resultobj;
19252 fail:
19253 return NULL;
19254 }
19255
19256
19257 static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19258 PyObject *resultobj;
19259 wxListItem *arg1 = (wxListItem *) 0 ;
19260 wxColour *arg2 = 0 ;
19261 wxColour temp2 ;
19262 PyObject * obj0 = 0 ;
19263 PyObject * obj1 = 0 ;
19264 char *kwnames[] = {
19265 (char *) "self",(char *) "colText", NULL
19266 };
19267
19268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19271 {
19272 arg2 = &temp2;
19273 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19274 }
19275 {
19276 PyThreadState* __tstate = wxPyBeginAllowThreads();
19277 (arg1)->SetTextColour((wxColour const &)*arg2);
19278
19279 wxPyEndAllowThreads(__tstate);
19280 if (PyErr_Occurred()) SWIG_fail;
19281 }
19282 Py_INCREF(Py_None); resultobj = Py_None;
19283 return resultobj;
19284 fail:
19285 return NULL;
19286 }
19287
19288
19289 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19290 PyObject *resultobj;
19291 wxListItem *arg1 = (wxListItem *) 0 ;
19292 wxColour *arg2 = 0 ;
19293 wxColour temp2 ;
19294 PyObject * obj0 = 0 ;
19295 PyObject * obj1 = 0 ;
19296 char *kwnames[] = {
19297 (char *) "self",(char *) "colBack", NULL
19298 };
19299
19300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19303 {
19304 arg2 = &temp2;
19305 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19306 }
19307 {
19308 PyThreadState* __tstate = wxPyBeginAllowThreads();
19309 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19310
19311 wxPyEndAllowThreads(__tstate);
19312 if (PyErr_Occurred()) SWIG_fail;
19313 }
19314 Py_INCREF(Py_None); resultobj = Py_None;
19315 return resultobj;
19316 fail:
19317 return NULL;
19318 }
19319
19320
19321 static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19322 PyObject *resultobj;
19323 wxListItem *arg1 = (wxListItem *) 0 ;
19324 wxFont *arg2 = 0 ;
19325 PyObject * obj0 = 0 ;
19326 PyObject * obj1 = 0 ;
19327 char *kwnames[] = {
19328 (char *) "self",(char *) "font", NULL
19329 };
19330
19331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19335 SWIG_POINTER_EXCEPTION | 0)) == -1)
19336 SWIG_fail;
19337 if (arg2 == NULL) {
19338 PyErr_SetString(PyExc_TypeError,"null reference");
19339 SWIG_fail;
19340 }
19341 {
19342 PyThreadState* __tstate = wxPyBeginAllowThreads();
19343 (arg1)->SetFont((wxFont const &)*arg2);
19344
19345 wxPyEndAllowThreads(__tstate);
19346 if (PyErr_Occurred()) SWIG_fail;
19347 }
19348 Py_INCREF(Py_None); resultobj = Py_None;
19349 return resultobj;
19350 fail:
19351 return NULL;
19352 }
19353
19354
19355 static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19356 PyObject *resultobj;
19357 wxListItem *arg1 = (wxListItem *) 0 ;
19358 long result;
19359 PyObject * obj0 = 0 ;
19360 char *kwnames[] = {
19361 (char *) "self", NULL
19362 };
19363
19364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19367 {
19368 PyThreadState* __tstate = wxPyBeginAllowThreads();
19369 result = (long)(arg1)->GetMask();
19370
19371 wxPyEndAllowThreads(__tstate);
19372 if (PyErr_Occurred()) SWIG_fail;
19373 }
19374 resultobj = SWIG_FromLong((long)result);
19375 return resultobj;
19376 fail:
19377 return NULL;
19378 }
19379
19380
19381 static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
19382 PyObject *resultobj;
19383 wxListItem *arg1 = (wxListItem *) 0 ;
19384 long result;
19385 PyObject * obj0 = 0 ;
19386 char *kwnames[] = {
19387 (char *) "self", NULL
19388 };
19389
19390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19393 {
19394 PyThreadState* __tstate = wxPyBeginAllowThreads();
19395 result = (long)(arg1)->GetId();
19396
19397 wxPyEndAllowThreads(__tstate);
19398 if (PyErr_Occurred()) SWIG_fail;
19399 }
19400 resultobj = SWIG_FromLong((long)result);
19401 return resultobj;
19402 fail:
19403 return NULL;
19404 }
19405
19406
19407 static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19408 PyObject *resultobj;
19409 wxListItem *arg1 = (wxListItem *) 0 ;
19410 int result;
19411 PyObject * obj0 = 0 ;
19412 char *kwnames[] = {
19413 (char *) "self", NULL
19414 };
19415
19416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19419 {
19420 PyThreadState* __tstate = wxPyBeginAllowThreads();
19421 result = (int)(arg1)->GetColumn();
19422
19423 wxPyEndAllowThreads(__tstate);
19424 if (PyErr_Occurred()) SWIG_fail;
19425 }
19426 resultobj = SWIG_FromInt((int)result);
19427 return resultobj;
19428 fail:
19429 return NULL;
19430 }
19431
19432
19433 static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19434 PyObject *resultobj;
19435 wxListItem *arg1 = (wxListItem *) 0 ;
19436 long result;
19437 PyObject * obj0 = 0 ;
19438 char *kwnames[] = {
19439 (char *) "self", NULL
19440 };
19441
19442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19445 {
19446 PyThreadState* __tstate = wxPyBeginAllowThreads();
19447 result = (long)(arg1)->GetState();
19448
19449 wxPyEndAllowThreads(__tstate);
19450 if (PyErr_Occurred()) SWIG_fail;
19451 }
19452 resultobj = SWIG_FromLong((long)result);
19453 return resultobj;
19454 fail:
19455 return NULL;
19456 }
19457
19458
19459 static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19460 PyObject *resultobj;
19461 wxListItem *arg1 = (wxListItem *) 0 ;
19462 wxString *result;
19463 PyObject * obj0 = 0 ;
19464 char *kwnames[] = {
19465 (char *) "self", NULL
19466 };
19467
19468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19471 {
19472 PyThreadState* __tstate = wxPyBeginAllowThreads();
19473 {
19474 wxString const &_result_ref = (arg1)->GetText();
19475 result = (wxString *) &_result_ref;
19476 }
19477
19478 wxPyEndAllowThreads(__tstate);
19479 if (PyErr_Occurred()) SWIG_fail;
19480 }
19481 {
19482 #if wxUSE_UNICODE
19483 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19484 #else
19485 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19486 #endif
19487 }
19488 return resultobj;
19489 fail:
19490 return NULL;
19491 }
19492
19493
19494 static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19495 PyObject *resultobj;
19496 wxListItem *arg1 = (wxListItem *) 0 ;
19497 int result;
19498 PyObject * obj0 = 0 ;
19499 char *kwnames[] = {
19500 (char *) "self", NULL
19501 };
19502
19503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19506 {
19507 PyThreadState* __tstate = wxPyBeginAllowThreads();
19508 result = (int)(arg1)->GetImage();
19509
19510 wxPyEndAllowThreads(__tstate);
19511 if (PyErr_Occurred()) SWIG_fail;
19512 }
19513 resultobj = SWIG_FromInt((int)result);
19514 return resultobj;
19515 fail:
19516 return NULL;
19517 }
19518
19519
19520 static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19521 PyObject *resultobj;
19522 wxListItem *arg1 = (wxListItem *) 0 ;
19523 long result;
19524 PyObject * obj0 = 0 ;
19525 char *kwnames[] = {
19526 (char *) "self", NULL
19527 };
19528
19529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19532 {
19533 PyThreadState* __tstate = wxPyBeginAllowThreads();
19534 result = (long)(arg1)->GetData();
19535
19536 wxPyEndAllowThreads(__tstate);
19537 if (PyErr_Occurred()) SWIG_fail;
19538 }
19539 resultobj = SWIG_FromLong((long)result);
19540 return resultobj;
19541 fail:
19542 return NULL;
19543 }
19544
19545
19546 static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19547 PyObject *resultobj;
19548 wxListItem *arg1 = (wxListItem *) 0 ;
19549 int result;
19550 PyObject * obj0 = 0 ;
19551 char *kwnames[] = {
19552 (char *) "self", NULL
19553 };
19554
19555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19558 {
19559 PyThreadState* __tstate = wxPyBeginAllowThreads();
19560 result = (int)(arg1)->GetWidth();
19561
19562 wxPyEndAllowThreads(__tstate);
19563 if (PyErr_Occurred()) SWIG_fail;
19564 }
19565 resultobj = SWIG_FromInt((int)result);
19566 return resultobj;
19567 fail:
19568 return NULL;
19569 }
19570
19571
19572 static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19573 PyObject *resultobj;
19574 wxListItem *arg1 = (wxListItem *) 0 ;
19575 int result;
19576 PyObject * obj0 = 0 ;
19577 char *kwnames[] = {
19578 (char *) "self", NULL
19579 };
19580
19581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
19582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19584 {
19585 PyThreadState* __tstate = wxPyBeginAllowThreads();
19586 result = (int)(arg1)->GetAlign();
19587
19588 wxPyEndAllowThreads(__tstate);
19589 if (PyErr_Occurred()) SWIG_fail;
19590 }
19591 resultobj = SWIG_FromInt((int)result);
19592 return resultobj;
19593 fail:
19594 return NULL;
19595 }
19596
19597
19598 static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19599 PyObject *resultobj;
19600 wxListItem *arg1 = (wxListItem *) 0 ;
19601 wxListItemAttr *result;
19602 PyObject * obj0 = 0 ;
19603 char *kwnames[] = {
19604 (char *) "self", NULL
19605 };
19606
19607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
19608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19610 {
19611 PyThreadState* __tstate = wxPyBeginAllowThreads();
19612 result = (wxListItemAttr *)(arg1)->GetAttributes();
19613
19614 wxPyEndAllowThreads(__tstate);
19615 if (PyErr_Occurred()) SWIG_fail;
19616 }
19617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
19618 return resultobj;
19619 fail:
19620 return NULL;
19621 }
19622
19623
19624 static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19625 PyObject *resultobj;
19626 wxListItem *arg1 = (wxListItem *) 0 ;
19627 bool result;
19628 PyObject * obj0 = 0 ;
19629 char *kwnames[] = {
19630 (char *) "self", NULL
19631 };
19632
19633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
19634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19636 {
19637 PyThreadState* __tstate = wxPyBeginAllowThreads();
19638 result = (bool)(arg1)->HasAttributes();
19639
19640 wxPyEndAllowThreads(__tstate);
19641 if (PyErr_Occurred()) SWIG_fail;
19642 }
19643 {
19644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19645 }
19646 return resultobj;
19647 fail:
19648 return NULL;
19649 }
19650
19651
19652 static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19653 PyObject *resultobj;
19654 wxListItem *arg1 = (wxListItem *) 0 ;
19655 wxColour result;
19656 PyObject * obj0 = 0 ;
19657 char *kwnames[] = {
19658 (char *) "self", NULL
19659 };
19660
19661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
19662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19664 {
19665 PyThreadState* __tstate = wxPyBeginAllowThreads();
19666 result = ((wxListItem const *)arg1)->GetTextColour();
19667
19668 wxPyEndAllowThreads(__tstate);
19669 if (PyErr_Occurred()) SWIG_fail;
19670 }
19671 {
19672 wxColour * resultptr;
19673 resultptr = new wxColour((wxColour &) result);
19674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19675 }
19676 return resultobj;
19677 fail:
19678 return NULL;
19679 }
19680
19681
19682 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19683 PyObject *resultobj;
19684 wxListItem *arg1 = (wxListItem *) 0 ;
19685 wxColour result;
19686 PyObject * obj0 = 0 ;
19687 char *kwnames[] = {
19688 (char *) "self", NULL
19689 };
19690
19691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
19692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19694 {
19695 PyThreadState* __tstate = wxPyBeginAllowThreads();
19696 result = ((wxListItem const *)arg1)->GetBackgroundColour();
19697
19698 wxPyEndAllowThreads(__tstate);
19699 if (PyErr_Occurred()) SWIG_fail;
19700 }
19701 {
19702 wxColour * resultptr;
19703 resultptr = new wxColour((wxColour &) result);
19704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19705 }
19706 return resultobj;
19707 fail:
19708 return NULL;
19709 }
19710
19711
19712 static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19713 PyObject *resultobj;
19714 wxListItem *arg1 = (wxListItem *) 0 ;
19715 wxFont result;
19716 PyObject * obj0 = 0 ;
19717 char *kwnames[] = {
19718 (char *) "self", NULL
19719 };
19720
19721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
19722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19724 {
19725 PyThreadState* __tstate = wxPyBeginAllowThreads();
19726 result = ((wxListItem const *)arg1)->GetFont();
19727
19728 wxPyEndAllowThreads(__tstate);
19729 if (PyErr_Occurred()) SWIG_fail;
19730 }
19731 {
19732 wxFont * resultptr;
19733 resultptr = new wxFont((wxFont &) result);
19734 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19735 }
19736 return resultobj;
19737 fail:
19738 return NULL;
19739 }
19740
19741
19742 static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19743 PyObject *resultobj;
19744 wxListItem *arg1 = (wxListItem *) 0 ;
19745 long arg2 ;
19746 PyObject * obj0 = 0 ;
19747 PyObject * obj1 = 0 ;
19748 char *kwnames[] = {
19749 (char *) "self",(char *) "m_mask", NULL
19750 };
19751
19752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
19753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19755 arg2 = (long) SWIG_AsLong(obj1);
19756 if (PyErr_Occurred()) SWIG_fail;
19757 if (arg1) (arg1)->m_mask = arg2;
19758
19759 Py_INCREF(Py_None); resultobj = Py_None;
19760 return resultobj;
19761 fail:
19762 return NULL;
19763 }
19764
19765
19766 static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19767 PyObject *resultobj;
19768 wxListItem *arg1 = (wxListItem *) 0 ;
19769 long result;
19770 PyObject * obj0 = 0 ;
19771 char *kwnames[] = {
19772 (char *) "self", NULL
19773 };
19774
19775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
19776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19778 result = (long) ((arg1)->m_mask);
19779
19780 resultobj = SWIG_FromLong((long)result);
19781 return resultobj;
19782 fail:
19783 return NULL;
19784 }
19785
19786
19787 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19788 PyObject *resultobj;
19789 wxListItem *arg1 = (wxListItem *) 0 ;
19790 long arg2 ;
19791 PyObject * obj0 = 0 ;
19792 PyObject * obj1 = 0 ;
19793 char *kwnames[] = {
19794 (char *) "self",(char *) "m_itemId", NULL
19795 };
19796
19797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
19798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19800 arg2 = (long) SWIG_AsLong(obj1);
19801 if (PyErr_Occurred()) SWIG_fail;
19802 if (arg1) (arg1)->m_itemId = arg2;
19803
19804 Py_INCREF(Py_None); resultobj = Py_None;
19805 return resultobj;
19806 fail:
19807 return NULL;
19808 }
19809
19810
19811 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19812 PyObject *resultobj;
19813 wxListItem *arg1 = (wxListItem *) 0 ;
19814 long result;
19815 PyObject * obj0 = 0 ;
19816 char *kwnames[] = {
19817 (char *) "self", NULL
19818 };
19819
19820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
19821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19823 result = (long) ((arg1)->m_itemId);
19824
19825 resultobj = SWIG_FromLong((long)result);
19826 return resultobj;
19827 fail:
19828 return NULL;
19829 }
19830
19831
19832 static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19833 PyObject *resultobj;
19834 wxListItem *arg1 = (wxListItem *) 0 ;
19835 int arg2 ;
19836 PyObject * obj0 = 0 ;
19837 PyObject * obj1 = 0 ;
19838 char *kwnames[] = {
19839 (char *) "self",(char *) "m_col", NULL
19840 };
19841
19842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19845 arg2 = (int) SWIG_AsInt(obj1);
19846 if (PyErr_Occurred()) SWIG_fail;
19847 if (arg1) (arg1)->m_col = arg2;
19848
19849 Py_INCREF(Py_None); resultobj = Py_None;
19850 return resultobj;
19851 fail:
19852 return NULL;
19853 }
19854
19855
19856 static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19857 PyObject *resultobj;
19858 wxListItem *arg1 = (wxListItem *) 0 ;
19859 int result;
19860 PyObject * obj0 = 0 ;
19861 char *kwnames[] = {
19862 (char *) "self", NULL
19863 };
19864
19865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
19866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19868 result = (int) ((arg1)->m_col);
19869
19870 resultobj = SWIG_FromInt((int)result);
19871 return resultobj;
19872 fail:
19873 return NULL;
19874 }
19875
19876
19877 static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19878 PyObject *resultobj;
19879 wxListItem *arg1 = (wxListItem *) 0 ;
19880 long arg2 ;
19881 PyObject * obj0 = 0 ;
19882 PyObject * obj1 = 0 ;
19883 char *kwnames[] = {
19884 (char *) "self",(char *) "m_state", NULL
19885 };
19886
19887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
19888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19890 arg2 = (long) SWIG_AsLong(obj1);
19891 if (PyErr_Occurred()) SWIG_fail;
19892 if (arg1) (arg1)->m_state = arg2;
19893
19894 Py_INCREF(Py_None); resultobj = Py_None;
19895 return resultobj;
19896 fail:
19897 return NULL;
19898 }
19899
19900
19901 static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19902 PyObject *resultobj;
19903 wxListItem *arg1 = (wxListItem *) 0 ;
19904 long result;
19905 PyObject * obj0 = 0 ;
19906 char *kwnames[] = {
19907 (char *) "self", NULL
19908 };
19909
19910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
19911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19913 result = (long) ((arg1)->m_state);
19914
19915 resultobj = SWIG_FromLong((long)result);
19916 return resultobj;
19917 fail:
19918 return NULL;
19919 }
19920
19921
19922 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19923 PyObject *resultobj;
19924 wxListItem *arg1 = (wxListItem *) 0 ;
19925 long arg2 ;
19926 PyObject * obj0 = 0 ;
19927 PyObject * obj1 = 0 ;
19928 char *kwnames[] = {
19929 (char *) "self",(char *) "m_stateMask", NULL
19930 };
19931
19932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
19933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19935 arg2 = (long) SWIG_AsLong(obj1);
19936 if (PyErr_Occurred()) SWIG_fail;
19937 if (arg1) (arg1)->m_stateMask = arg2;
19938
19939 Py_INCREF(Py_None); resultobj = Py_None;
19940 return resultobj;
19941 fail:
19942 return NULL;
19943 }
19944
19945
19946 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19947 PyObject *resultobj;
19948 wxListItem *arg1 = (wxListItem *) 0 ;
19949 long result;
19950 PyObject * obj0 = 0 ;
19951 char *kwnames[] = {
19952 (char *) "self", NULL
19953 };
19954
19955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
19956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19958 result = (long) ((arg1)->m_stateMask);
19959
19960 resultobj = SWIG_FromLong((long)result);
19961 return resultobj;
19962 fail:
19963 return NULL;
19964 }
19965
19966
19967 static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19968 PyObject *resultobj;
19969 wxListItem *arg1 = (wxListItem *) 0 ;
19970 wxString *arg2 = (wxString *) 0 ;
19971 bool temp2 = False ;
19972 PyObject * obj0 = 0 ;
19973 PyObject * obj1 = 0 ;
19974 char *kwnames[] = {
19975 (char *) "self",(char *) "m_text", NULL
19976 };
19977
19978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
19979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19981 {
19982 arg2 = wxString_in_helper(obj1);
19983 if (arg2 == NULL) SWIG_fail;
19984 temp2 = True;
19985 }
19986 if (arg1) (arg1)->m_text = *arg2;
19987
19988 Py_INCREF(Py_None); resultobj = Py_None;
19989 {
19990 if (temp2)
19991 delete arg2;
19992 }
19993 return resultobj;
19994 fail:
19995 {
19996 if (temp2)
19997 delete arg2;
19998 }
19999 return NULL;
20000 }
20001
20002
20003 static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20004 PyObject *resultobj;
20005 wxListItem *arg1 = (wxListItem *) 0 ;
20006 wxString *result;
20007 PyObject * obj0 = 0 ;
20008 char *kwnames[] = {
20009 (char *) "self", NULL
20010 };
20011
20012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20015 result = (wxString *)& ((arg1)->m_text);
20016
20017 {
20018 #if wxUSE_UNICODE
20019 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20020 #else
20021 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20022 #endif
20023 }
20024 return resultobj;
20025 fail:
20026 return NULL;
20027 }
20028
20029
20030 static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20031 PyObject *resultobj;
20032 wxListItem *arg1 = (wxListItem *) 0 ;
20033 int arg2 ;
20034 PyObject * obj0 = 0 ;
20035 PyObject * obj1 = 0 ;
20036 char *kwnames[] = {
20037 (char *) "self",(char *) "m_image", NULL
20038 };
20039
20040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20043 arg2 = (int) SWIG_AsInt(obj1);
20044 if (PyErr_Occurred()) SWIG_fail;
20045 if (arg1) (arg1)->m_image = arg2;
20046
20047 Py_INCREF(Py_None); resultobj = Py_None;
20048 return resultobj;
20049 fail:
20050 return NULL;
20051 }
20052
20053
20054 static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20055 PyObject *resultobj;
20056 wxListItem *arg1 = (wxListItem *) 0 ;
20057 int result;
20058 PyObject * obj0 = 0 ;
20059 char *kwnames[] = {
20060 (char *) "self", NULL
20061 };
20062
20063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20066 result = (int) ((arg1)->m_image);
20067
20068 resultobj = SWIG_FromInt((int)result);
20069 return resultobj;
20070 fail:
20071 return NULL;
20072 }
20073
20074
20075 static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20076 PyObject *resultobj;
20077 wxListItem *arg1 = (wxListItem *) 0 ;
20078 long arg2 ;
20079 PyObject * obj0 = 0 ;
20080 PyObject * obj1 = 0 ;
20081 char *kwnames[] = {
20082 (char *) "self",(char *) "m_data", NULL
20083 };
20084
20085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20088 arg2 = (long) SWIG_AsLong(obj1);
20089 if (PyErr_Occurred()) SWIG_fail;
20090 if (arg1) (arg1)->m_data = arg2;
20091
20092 Py_INCREF(Py_None); resultobj = Py_None;
20093 return resultobj;
20094 fail:
20095 return NULL;
20096 }
20097
20098
20099 static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20100 PyObject *resultobj;
20101 wxListItem *arg1 = (wxListItem *) 0 ;
20102 long result;
20103 PyObject * obj0 = 0 ;
20104 char *kwnames[] = {
20105 (char *) "self", NULL
20106 };
20107
20108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20111 result = (long) ((arg1)->m_data);
20112
20113 resultobj = SWIG_FromLong((long)result);
20114 return resultobj;
20115 fail:
20116 return NULL;
20117 }
20118
20119
20120 static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20121 PyObject *resultobj;
20122 wxListItem *arg1 = (wxListItem *) 0 ;
20123 int arg2 ;
20124 PyObject * obj0 = 0 ;
20125 PyObject * obj1 = 0 ;
20126 char *kwnames[] = {
20127 (char *) "self",(char *) "m_format", NULL
20128 };
20129
20130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20133 arg2 = (int) SWIG_AsInt(obj1);
20134 if (PyErr_Occurred()) SWIG_fail;
20135 if (arg1) (arg1)->m_format = arg2;
20136
20137 Py_INCREF(Py_None); resultobj = Py_None;
20138 return resultobj;
20139 fail:
20140 return NULL;
20141 }
20142
20143
20144 static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20145 PyObject *resultobj;
20146 wxListItem *arg1 = (wxListItem *) 0 ;
20147 int result;
20148 PyObject * obj0 = 0 ;
20149 char *kwnames[] = {
20150 (char *) "self", NULL
20151 };
20152
20153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20156 result = (int) ((arg1)->m_format);
20157
20158 resultobj = SWIG_FromInt((int)result);
20159 return resultobj;
20160 fail:
20161 return NULL;
20162 }
20163
20164
20165 static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20166 PyObject *resultobj;
20167 wxListItem *arg1 = (wxListItem *) 0 ;
20168 int arg2 ;
20169 PyObject * obj0 = 0 ;
20170 PyObject * obj1 = 0 ;
20171 char *kwnames[] = {
20172 (char *) "self",(char *) "m_width", NULL
20173 };
20174
20175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20178 arg2 = (int) SWIG_AsInt(obj1);
20179 if (PyErr_Occurred()) SWIG_fail;
20180 if (arg1) (arg1)->m_width = arg2;
20181
20182 Py_INCREF(Py_None); resultobj = Py_None;
20183 return resultobj;
20184 fail:
20185 return NULL;
20186 }
20187
20188
20189 static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20190 PyObject *resultobj;
20191 wxListItem *arg1 = (wxListItem *) 0 ;
20192 int result;
20193 PyObject * obj0 = 0 ;
20194 char *kwnames[] = {
20195 (char *) "self", NULL
20196 };
20197
20198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20201 result = (int) ((arg1)->m_width);
20202
20203 resultobj = SWIG_FromInt((int)result);
20204 return resultobj;
20205 fail:
20206 return NULL;
20207 }
20208
20209
20210 static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
20211 PyObject *obj;
20212 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20213 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20214 Py_INCREF(obj);
20215 return Py_BuildValue((char *)"");
20216 }
20217 static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20218 PyObject *resultobj;
20219 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20220 int arg2 = (int) 0 ;
20221 wxListEvent *result;
20222 PyObject * obj0 = 0 ;
20223 PyObject * obj1 = 0 ;
20224 char *kwnames[] = {
20225 (char *) "commandType",(char *) "id", NULL
20226 };
20227
20228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20229 if (obj0) {
20230 arg1 = (wxEventType) SWIG_AsInt(obj0);
20231 if (PyErr_Occurred()) SWIG_fail;
20232 }
20233 if (obj1) {
20234 arg2 = (int) SWIG_AsInt(obj1);
20235 if (PyErr_Occurred()) SWIG_fail;
20236 }
20237 {
20238 PyThreadState* __tstate = wxPyBeginAllowThreads();
20239 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20240
20241 wxPyEndAllowThreads(__tstate);
20242 if (PyErr_Occurred()) SWIG_fail;
20243 }
20244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20245 return resultobj;
20246 fail:
20247 return NULL;
20248 }
20249
20250
20251 static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20252 PyObject *resultobj;
20253 wxListEvent *arg1 = (wxListEvent *) 0 ;
20254 int arg2 ;
20255 PyObject * obj0 = 0 ;
20256 PyObject * obj1 = 0 ;
20257 char *kwnames[] = {
20258 (char *) "self",(char *) "m_code", NULL
20259 };
20260
20261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20264 arg2 = (int) SWIG_AsInt(obj1);
20265 if (PyErr_Occurred()) SWIG_fail;
20266 if (arg1) (arg1)->m_code = arg2;
20267
20268 Py_INCREF(Py_None); resultobj = Py_None;
20269 return resultobj;
20270 fail:
20271 return NULL;
20272 }
20273
20274
20275 static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20276 PyObject *resultobj;
20277 wxListEvent *arg1 = (wxListEvent *) 0 ;
20278 int result;
20279 PyObject * obj0 = 0 ;
20280 char *kwnames[] = {
20281 (char *) "self", NULL
20282 };
20283
20284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20287 result = (int) ((arg1)->m_code);
20288
20289 resultobj = SWIG_FromInt((int)result);
20290 return resultobj;
20291 fail:
20292 return NULL;
20293 }
20294
20295
20296 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20297 PyObject *resultobj;
20298 wxListEvent *arg1 = (wxListEvent *) 0 ;
20299 long arg2 ;
20300 PyObject * obj0 = 0 ;
20301 PyObject * obj1 = 0 ;
20302 char *kwnames[] = {
20303 (char *) "self",(char *) "m_oldItemIndex", NULL
20304 };
20305
20306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20309 arg2 = (long) SWIG_AsLong(obj1);
20310 if (PyErr_Occurred()) SWIG_fail;
20311 if (arg1) (arg1)->m_oldItemIndex = arg2;
20312
20313 Py_INCREF(Py_None); resultobj = Py_None;
20314 return resultobj;
20315 fail:
20316 return NULL;
20317 }
20318
20319
20320 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20321 PyObject *resultobj;
20322 wxListEvent *arg1 = (wxListEvent *) 0 ;
20323 long result;
20324 PyObject * obj0 = 0 ;
20325 char *kwnames[] = {
20326 (char *) "self", NULL
20327 };
20328
20329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20332 result = (long) ((arg1)->m_oldItemIndex);
20333
20334 resultobj = SWIG_FromLong((long)result);
20335 return resultobj;
20336 fail:
20337 return NULL;
20338 }
20339
20340
20341 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20342 PyObject *resultobj;
20343 wxListEvent *arg1 = (wxListEvent *) 0 ;
20344 long arg2 ;
20345 PyObject * obj0 = 0 ;
20346 PyObject * obj1 = 0 ;
20347 char *kwnames[] = {
20348 (char *) "self",(char *) "m_itemIndex", NULL
20349 };
20350
20351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20354 arg2 = (long) SWIG_AsLong(obj1);
20355 if (PyErr_Occurred()) SWIG_fail;
20356 if (arg1) (arg1)->m_itemIndex = arg2;
20357
20358 Py_INCREF(Py_None); resultobj = Py_None;
20359 return resultobj;
20360 fail:
20361 return NULL;
20362 }
20363
20364
20365 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20366 PyObject *resultobj;
20367 wxListEvent *arg1 = (wxListEvent *) 0 ;
20368 long result;
20369 PyObject * obj0 = 0 ;
20370 char *kwnames[] = {
20371 (char *) "self", NULL
20372 };
20373
20374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20377 result = (long) ((arg1)->m_itemIndex);
20378
20379 resultobj = SWIG_FromLong((long)result);
20380 return resultobj;
20381 fail:
20382 return NULL;
20383 }
20384
20385
20386 static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20387 PyObject *resultobj;
20388 wxListEvent *arg1 = (wxListEvent *) 0 ;
20389 int arg2 ;
20390 PyObject * obj0 = 0 ;
20391 PyObject * obj1 = 0 ;
20392 char *kwnames[] = {
20393 (char *) "self",(char *) "m_col", NULL
20394 };
20395
20396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20399 arg2 = (int) SWIG_AsInt(obj1);
20400 if (PyErr_Occurred()) SWIG_fail;
20401 if (arg1) (arg1)->m_col = arg2;
20402
20403 Py_INCREF(Py_None); resultobj = Py_None;
20404 return resultobj;
20405 fail:
20406 return NULL;
20407 }
20408
20409
20410 static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20411 PyObject *resultobj;
20412 wxListEvent *arg1 = (wxListEvent *) 0 ;
20413 int result;
20414 PyObject * obj0 = 0 ;
20415 char *kwnames[] = {
20416 (char *) "self", NULL
20417 };
20418
20419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20422 result = (int) ((arg1)->m_col);
20423
20424 resultobj = SWIG_FromInt((int)result);
20425 return resultobj;
20426 fail:
20427 return NULL;
20428 }
20429
20430
20431 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20432 PyObject *resultobj;
20433 wxListEvent *arg1 = (wxListEvent *) 0 ;
20434 wxPoint *arg2 = (wxPoint *) 0 ;
20435 PyObject * obj0 = 0 ;
20436 PyObject * obj1 = 0 ;
20437 char *kwnames[] = {
20438 (char *) "self",(char *) "m_pointDrag", NULL
20439 };
20440
20441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20446 if (arg1) (arg1)->m_pointDrag = *arg2;
20447
20448 Py_INCREF(Py_None); resultobj = Py_None;
20449 return resultobj;
20450 fail:
20451 return NULL;
20452 }
20453
20454
20455 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20456 PyObject *resultobj;
20457 wxListEvent *arg1 = (wxListEvent *) 0 ;
20458 wxPoint *result;
20459 PyObject * obj0 = 0 ;
20460 char *kwnames[] = {
20461 (char *) "self", NULL
20462 };
20463
20464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20467 result = (wxPoint *)& ((arg1)->m_pointDrag);
20468
20469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20470 return resultobj;
20471 fail:
20472 return NULL;
20473 }
20474
20475
20476 static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20477 PyObject *resultobj;
20478 wxListEvent *arg1 = (wxListEvent *) 0 ;
20479 wxListItem *result;
20480 PyObject * obj0 = 0 ;
20481 char *kwnames[] = {
20482 (char *) "self", NULL
20483 };
20484
20485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20488 result = (wxListItem *)& ((arg1)->m_item);
20489
20490 {
20491 resultobj = wxPyMake_wxObject(result);
20492 }
20493 return resultobj;
20494 fail:
20495 return NULL;
20496 }
20497
20498
20499 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20500 PyObject *resultobj;
20501 wxListEvent *arg1 = (wxListEvent *) 0 ;
20502 int result;
20503 PyObject * obj0 = 0 ;
20504 char *kwnames[] = {
20505 (char *) "self", NULL
20506 };
20507
20508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20511 {
20512 PyThreadState* __tstate = wxPyBeginAllowThreads();
20513 result = (int)(arg1)->GetKeyCode();
20514
20515 wxPyEndAllowThreads(__tstate);
20516 if (PyErr_Occurred()) SWIG_fail;
20517 }
20518 resultobj = SWIG_FromInt((int)result);
20519 return resultobj;
20520 fail:
20521 return NULL;
20522 }
20523
20524
20525 static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
20526 PyObject *resultobj;
20527 wxListEvent *arg1 = (wxListEvent *) 0 ;
20528 long result;
20529 PyObject * obj0 = 0 ;
20530 char *kwnames[] = {
20531 (char *) "self", NULL
20532 };
20533
20534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20537 {
20538 PyThreadState* __tstate = wxPyBeginAllowThreads();
20539 result = (long)(arg1)->GetIndex();
20540
20541 wxPyEndAllowThreads(__tstate);
20542 if (PyErr_Occurred()) SWIG_fail;
20543 }
20544 resultobj = SWIG_FromLong((long)result);
20545 return resultobj;
20546 fail:
20547 return NULL;
20548 }
20549
20550
20551 static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20552 PyObject *resultobj;
20553 wxListEvent *arg1 = (wxListEvent *) 0 ;
20554 int result;
20555 PyObject * obj0 = 0 ;
20556 char *kwnames[] = {
20557 (char *) "self", NULL
20558 };
20559
20560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20563 {
20564 PyThreadState* __tstate = wxPyBeginAllowThreads();
20565 result = (int)(arg1)->GetColumn();
20566
20567 wxPyEndAllowThreads(__tstate);
20568 if (PyErr_Occurred()) SWIG_fail;
20569 }
20570 resultobj = SWIG_FromInt((int)result);
20571 return resultobj;
20572 fail:
20573 return NULL;
20574 }
20575
20576
20577 static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
20578 PyObject *resultobj;
20579 wxListEvent *arg1 = (wxListEvent *) 0 ;
20580 wxPoint result;
20581 PyObject * obj0 = 0 ;
20582 char *kwnames[] = {
20583 (char *) "self", NULL
20584 };
20585
20586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
20587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20589 {
20590 PyThreadState* __tstate = wxPyBeginAllowThreads();
20591 result = (arg1)->GetPoint();
20592
20593 wxPyEndAllowThreads(__tstate);
20594 if (PyErr_Occurred()) SWIG_fail;
20595 }
20596 {
20597 wxPoint * resultptr;
20598 resultptr = new wxPoint((wxPoint &) result);
20599 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20600 }
20601 return resultobj;
20602 fail:
20603 return NULL;
20604 }
20605
20606
20607 static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20608 PyObject *resultobj;
20609 wxListEvent *arg1 = (wxListEvent *) 0 ;
20610 wxString *result;
20611 PyObject * obj0 = 0 ;
20612 char *kwnames[] = {
20613 (char *) "self", NULL
20614 };
20615
20616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
20617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20619 {
20620 PyThreadState* __tstate = wxPyBeginAllowThreads();
20621 {
20622 wxString const &_result_ref = (arg1)->GetLabel();
20623 result = (wxString *) &_result_ref;
20624 }
20625
20626 wxPyEndAllowThreads(__tstate);
20627 if (PyErr_Occurred()) SWIG_fail;
20628 }
20629 {
20630 #if wxUSE_UNICODE
20631 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20632 #else
20633 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20634 #endif
20635 }
20636 return resultobj;
20637 fail:
20638 return NULL;
20639 }
20640
20641
20642 static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
20643 PyObject *resultobj;
20644 wxListEvent *arg1 = (wxListEvent *) 0 ;
20645 wxString *result;
20646 PyObject * obj0 = 0 ;
20647 char *kwnames[] = {
20648 (char *) "self", NULL
20649 };
20650
20651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
20652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20654 {
20655 PyThreadState* __tstate = wxPyBeginAllowThreads();
20656 {
20657 wxString const &_result_ref = (arg1)->GetText();
20658 result = (wxString *) &_result_ref;
20659 }
20660
20661 wxPyEndAllowThreads(__tstate);
20662 if (PyErr_Occurred()) SWIG_fail;
20663 }
20664 {
20665 #if wxUSE_UNICODE
20666 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20667 #else
20668 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20669 #endif
20670 }
20671 return resultobj;
20672 fail:
20673 return NULL;
20674 }
20675
20676
20677 static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20678 PyObject *resultobj;
20679 wxListEvent *arg1 = (wxListEvent *) 0 ;
20680 int result;
20681 PyObject * obj0 = 0 ;
20682 char *kwnames[] = {
20683 (char *) "self", NULL
20684 };
20685
20686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
20687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20689 {
20690 PyThreadState* __tstate = wxPyBeginAllowThreads();
20691 result = (int)(arg1)->GetImage();
20692
20693 wxPyEndAllowThreads(__tstate);
20694 if (PyErr_Occurred()) SWIG_fail;
20695 }
20696 resultobj = SWIG_FromInt((int)result);
20697 return resultobj;
20698 fail:
20699 return NULL;
20700 }
20701
20702
20703 static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
20704 PyObject *resultobj;
20705 wxListEvent *arg1 = (wxListEvent *) 0 ;
20706 long result;
20707 PyObject * obj0 = 0 ;
20708 char *kwnames[] = {
20709 (char *) "self", NULL
20710 };
20711
20712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
20713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20715 {
20716 PyThreadState* __tstate = wxPyBeginAllowThreads();
20717 result = (long)(arg1)->GetData();
20718
20719 wxPyEndAllowThreads(__tstate);
20720 if (PyErr_Occurred()) SWIG_fail;
20721 }
20722 resultobj = SWIG_FromLong((long)result);
20723 return resultobj;
20724 fail:
20725 return NULL;
20726 }
20727
20728
20729 static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
20730 PyObject *resultobj;
20731 wxListEvent *arg1 = (wxListEvent *) 0 ;
20732 long result;
20733 PyObject * obj0 = 0 ;
20734 char *kwnames[] = {
20735 (char *) "self", NULL
20736 };
20737
20738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
20739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20741 {
20742 PyThreadState* __tstate = wxPyBeginAllowThreads();
20743 result = (long)(arg1)->GetMask();
20744
20745 wxPyEndAllowThreads(__tstate);
20746 if (PyErr_Occurred()) SWIG_fail;
20747 }
20748 resultobj = SWIG_FromLong((long)result);
20749 return resultobj;
20750 fail:
20751 return NULL;
20752 }
20753
20754
20755 static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20756 PyObject *resultobj;
20757 wxListEvent *arg1 = (wxListEvent *) 0 ;
20758 wxListItem *result;
20759 PyObject * obj0 = 0 ;
20760 char *kwnames[] = {
20761 (char *) "self", NULL
20762 };
20763
20764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
20765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20767 {
20768 PyThreadState* __tstate = wxPyBeginAllowThreads();
20769 {
20770 wxListItem const &_result_ref = (arg1)->GetItem();
20771 result = (wxListItem *) &_result_ref;
20772 }
20773
20774 wxPyEndAllowThreads(__tstate);
20775 if (PyErr_Occurred()) SWIG_fail;
20776 }
20777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
20778 return resultobj;
20779 fail:
20780 return NULL;
20781 }
20782
20783
20784 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
20785 PyObject *resultobj;
20786 wxListEvent *arg1 = (wxListEvent *) 0 ;
20787 long result;
20788 PyObject * obj0 = 0 ;
20789 char *kwnames[] = {
20790 (char *) "self", NULL
20791 };
20792
20793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
20794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20796 {
20797 PyThreadState* __tstate = wxPyBeginAllowThreads();
20798 result = (long)(arg1)->GetCacheFrom();
20799
20800 wxPyEndAllowThreads(__tstate);
20801 if (PyErr_Occurred()) SWIG_fail;
20802 }
20803 resultobj = SWIG_FromLong((long)result);
20804 return resultobj;
20805 fail:
20806 return NULL;
20807 }
20808
20809
20810 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20811 PyObject *resultobj;
20812 wxListEvent *arg1 = (wxListEvent *) 0 ;
20813 long result;
20814 PyObject * obj0 = 0 ;
20815 char *kwnames[] = {
20816 (char *) "self", NULL
20817 };
20818
20819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
20820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20822 {
20823 PyThreadState* __tstate = wxPyBeginAllowThreads();
20824 result = (long)(arg1)->GetCacheTo();
20825
20826 wxPyEndAllowThreads(__tstate);
20827 if (PyErr_Occurred()) SWIG_fail;
20828 }
20829 resultobj = SWIG_FromLong((long)result);
20830 return resultobj;
20831 fail:
20832 return NULL;
20833 }
20834
20835
20836 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
20837 PyObject *resultobj;
20838 wxListEvent *arg1 = (wxListEvent *) 0 ;
20839 bool result;
20840 PyObject * obj0 = 0 ;
20841 char *kwnames[] = {
20842 (char *) "self", NULL
20843 };
20844
20845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
20846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20848 {
20849 PyThreadState* __tstate = wxPyBeginAllowThreads();
20850 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
20851
20852 wxPyEndAllowThreads(__tstate);
20853 if (PyErr_Occurred()) SWIG_fail;
20854 }
20855 {
20856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20857 }
20858 return resultobj;
20859 fail:
20860 return NULL;
20861 }
20862
20863
20864 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
20865 PyObject *resultobj;
20866 wxListEvent *arg1 = (wxListEvent *) 0 ;
20867 bool arg2 ;
20868 PyObject * obj0 = 0 ;
20869 PyObject * obj1 = 0 ;
20870 char *kwnames[] = {
20871 (char *) "self",(char *) "editCancelled", NULL
20872 };
20873
20874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
20875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20877 arg2 = (bool) SWIG_AsBool(obj1);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 {
20880 PyThreadState* __tstate = wxPyBeginAllowThreads();
20881 (arg1)->SetEditCanceled(arg2);
20882
20883 wxPyEndAllowThreads(__tstate);
20884 if (PyErr_Occurred()) SWIG_fail;
20885 }
20886 Py_INCREF(Py_None); resultobj = Py_None;
20887 return resultobj;
20888 fail:
20889 return NULL;
20890 }
20891
20892
20893 static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
20894 PyObject *obj;
20895 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20896 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
20897 Py_INCREF(obj);
20898 return Py_BuildValue((char *)"");
20899 }
20900 static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20901 PyObject *resultobj;
20902 wxWindow *arg1 = (wxWindow *) 0 ;
20903 int arg2 = (int) -1 ;
20904 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20905 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20906 wxSize const &arg4_defvalue = wxDefaultSize ;
20907 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20908 long arg5 = (long) wxLC_ICON ;
20909 wxValidator const &arg6_defvalue = wxDefaultValidator ;
20910 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
20911 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
20912 wxString *arg7 = (wxString *) &arg7_defvalue ;
20913 wxPyListCtrl *result;
20914 wxPoint temp3 ;
20915 wxSize temp4 ;
20916 bool temp7 = False ;
20917 PyObject * obj0 = 0 ;
20918 PyObject * obj1 = 0 ;
20919 PyObject * obj2 = 0 ;
20920 PyObject * obj3 = 0 ;
20921 PyObject * obj4 = 0 ;
20922 PyObject * obj5 = 0 ;
20923 PyObject * obj6 = 0 ;
20924 char *kwnames[] = {
20925 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
20926 };
20927
20928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
20929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20931 if (obj1) {
20932 arg2 = (int) SWIG_AsInt(obj1);
20933 if (PyErr_Occurred()) SWIG_fail;
20934 }
20935 if (obj2) {
20936 {
20937 arg3 = &temp3;
20938 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20939 }
20940 }
20941 if (obj3) {
20942 {
20943 arg4 = &temp4;
20944 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20945 }
20946 }
20947 if (obj4) {
20948 arg5 = (long) SWIG_AsLong(obj4);
20949 if (PyErr_Occurred()) SWIG_fail;
20950 }
20951 if (obj5) {
20952 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
20953 SWIG_POINTER_EXCEPTION | 0)) == -1)
20954 SWIG_fail;
20955 if (arg6 == NULL) {
20956 PyErr_SetString(PyExc_TypeError,"null reference");
20957 SWIG_fail;
20958 }
20959 }
20960 if (obj6) {
20961 {
20962 arg7 = wxString_in_helper(obj6);
20963 if (arg7 == NULL) SWIG_fail;
20964 temp7 = True;
20965 }
20966 }
20967 {
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
20970
20971 wxPyEndAllowThreads(__tstate);
20972 if (PyErr_Occurred()) SWIG_fail;
20973 }
20974 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20975 {
20976 if (temp7)
20977 delete arg7;
20978 }
20979 return resultobj;
20980 fail:
20981 {
20982 if (temp7)
20983 delete arg7;
20984 }
20985 return NULL;
20986 }
20987
20988
20989 static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20990 PyObject *resultobj;
20991 wxPyListCtrl *result;
20992 char *kwnames[] = {
20993 NULL
20994 };
20995
20996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
20997 {
20998 PyThreadState* __tstate = wxPyBeginAllowThreads();
20999 result = (wxPyListCtrl *)new wxPyListCtrl();
21000
21001 wxPyEndAllowThreads(__tstate);
21002 if (PyErr_Occurred()) SWIG_fail;
21003 }
21004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21005 return resultobj;
21006 fail:
21007 return NULL;
21008 }
21009
21010
21011 static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
21012 PyObject *resultobj;
21013 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21014 wxWindow *arg2 = (wxWindow *) 0 ;
21015 int arg3 = (int) -1 ;
21016 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21017 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21018 wxSize const &arg5_defvalue = wxDefaultSize ;
21019 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21020 long arg6 = (long) wxLC_ICON ;
21021 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21022 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21023 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21024 wxString *arg8 = (wxString *) &arg8_defvalue ;
21025 bool result;
21026 wxPoint temp4 ;
21027 wxSize temp5 ;
21028 bool temp8 = False ;
21029 PyObject * obj0 = 0 ;
21030 PyObject * obj1 = 0 ;
21031 PyObject * obj2 = 0 ;
21032 PyObject * obj3 = 0 ;
21033 PyObject * obj4 = 0 ;
21034 PyObject * obj5 = 0 ;
21035 PyObject * obj6 = 0 ;
21036 PyObject * obj7 = 0 ;
21037 char *kwnames[] = {
21038 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21039 };
21040
21041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21044 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21046 if (obj2) {
21047 arg3 = (int) SWIG_AsInt(obj2);
21048 if (PyErr_Occurred()) SWIG_fail;
21049 }
21050 if (obj3) {
21051 {
21052 arg4 = &temp4;
21053 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21054 }
21055 }
21056 if (obj4) {
21057 {
21058 arg5 = &temp5;
21059 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21060 }
21061 }
21062 if (obj5) {
21063 arg6 = (long) SWIG_AsLong(obj5);
21064 if (PyErr_Occurred()) SWIG_fail;
21065 }
21066 if (obj6) {
21067 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21068 SWIG_POINTER_EXCEPTION | 0)) == -1)
21069 SWIG_fail;
21070 if (arg7 == NULL) {
21071 PyErr_SetString(PyExc_TypeError,"null reference");
21072 SWIG_fail;
21073 }
21074 }
21075 if (obj7) {
21076 {
21077 arg8 = wxString_in_helper(obj7);
21078 if (arg8 == NULL) SWIG_fail;
21079 temp8 = True;
21080 }
21081 }
21082 {
21083 PyThreadState* __tstate = wxPyBeginAllowThreads();
21084 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21085
21086 wxPyEndAllowThreads(__tstate);
21087 if (PyErr_Occurred()) SWIG_fail;
21088 }
21089 {
21090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21091 }
21092 {
21093 if (temp8)
21094 delete arg8;
21095 }
21096 return resultobj;
21097 fail:
21098 {
21099 if (temp8)
21100 delete arg8;
21101 }
21102 return NULL;
21103 }
21104
21105
21106 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
21107 PyObject *resultobj;
21108 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21109 PyObject *arg2 = (PyObject *) 0 ;
21110 PyObject *arg3 = (PyObject *) 0 ;
21111 PyObject * obj0 = 0 ;
21112 PyObject * obj1 = 0 ;
21113 PyObject * obj2 = 0 ;
21114 char *kwnames[] = {
21115 (char *) "self",(char *) "self",(char *) "_class", NULL
21116 };
21117
21118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21121 arg2 = obj1;
21122 arg3 = obj2;
21123 {
21124 PyThreadState* __tstate = wxPyBeginAllowThreads();
21125 (arg1)->_setCallbackInfo(arg2,arg3);
21126
21127 wxPyEndAllowThreads(__tstate);
21128 if (PyErr_Occurred()) SWIG_fail;
21129 }
21130 Py_INCREF(Py_None); resultobj = Py_None;
21131 return resultobj;
21132 fail:
21133 return NULL;
21134 }
21135
21136
21137 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21138 PyObject *resultobj;
21139 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21140 wxColour *arg2 = 0 ;
21141 bool result;
21142 wxColour temp2 ;
21143 PyObject * obj0 = 0 ;
21144 PyObject * obj1 = 0 ;
21145 char *kwnames[] = {
21146 (char *) "self",(char *) "col", NULL
21147 };
21148
21149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21152 {
21153 arg2 = &temp2;
21154 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21155 }
21156 {
21157 PyThreadState* __tstate = wxPyBeginAllowThreads();
21158 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21159
21160 wxPyEndAllowThreads(__tstate);
21161 if (PyErr_Occurred()) SWIG_fail;
21162 }
21163 {
21164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21165 }
21166 return resultobj;
21167 fail:
21168 return NULL;
21169 }
21170
21171
21172 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21173 PyObject *resultobj;
21174 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21175 wxColour *arg2 = 0 ;
21176 bool result;
21177 wxColour temp2 ;
21178 PyObject * obj0 = 0 ;
21179 PyObject * obj1 = 0 ;
21180 char *kwnames[] = {
21181 (char *) "self",(char *) "col", NULL
21182 };
21183
21184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21187 {
21188 arg2 = &temp2;
21189 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21190 }
21191 {
21192 PyThreadState* __tstate = wxPyBeginAllowThreads();
21193 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21194
21195 wxPyEndAllowThreads(__tstate);
21196 if (PyErr_Occurred()) SWIG_fail;
21197 }
21198 {
21199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21200 }
21201 return resultobj;
21202 fail:
21203 return NULL;
21204 }
21205
21206
21207 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21208 PyObject *resultobj;
21209 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21210 int arg2 ;
21211 wxListItem *result;
21212 PyObject * obj0 = 0 ;
21213 PyObject * obj1 = 0 ;
21214 char *kwnames[] = {
21215 (char *) "self",(char *) "col", NULL
21216 };
21217
21218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21221 arg2 = (int) SWIG_AsInt(obj1);
21222 if (PyErr_Occurred()) SWIG_fail;
21223 {
21224 PyThreadState* __tstate = wxPyBeginAllowThreads();
21225 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21226
21227 wxPyEndAllowThreads(__tstate);
21228 if (PyErr_Occurred()) SWIG_fail;
21229 }
21230 {
21231 resultobj = wxPyMake_wxObject(result);
21232 }
21233 return resultobj;
21234 fail:
21235 return NULL;
21236 }
21237
21238
21239 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21240 PyObject *resultobj;
21241 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21242 int arg2 ;
21243 wxListItem *arg3 = 0 ;
21244 bool result;
21245 PyObject * obj0 = 0 ;
21246 PyObject * obj1 = 0 ;
21247 PyObject * obj2 = 0 ;
21248 char *kwnames[] = {
21249 (char *) "self",(char *) "col",(char *) "item", NULL
21250 };
21251
21252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21255 arg2 = (int) SWIG_AsInt(obj1);
21256 if (PyErr_Occurred()) SWIG_fail;
21257 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21258 SWIG_POINTER_EXCEPTION | 0)) == -1)
21259 SWIG_fail;
21260 if (arg3 == NULL) {
21261 PyErr_SetString(PyExc_TypeError,"null reference");
21262 SWIG_fail;
21263 }
21264 {
21265 PyThreadState* __tstate = wxPyBeginAllowThreads();
21266 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21267
21268 wxPyEndAllowThreads(__tstate);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 }
21271 {
21272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21273 }
21274 return resultobj;
21275 fail:
21276 return NULL;
21277 }
21278
21279
21280 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21281 PyObject *resultobj;
21282 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21283 int arg2 ;
21284 int result;
21285 PyObject * obj0 = 0 ;
21286 PyObject * obj1 = 0 ;
21287 char *kwnames[] = {
21288 (char *) "self",(char *) "col", NULL
21289 };
21290
21291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21294 arg2 = (int) SWIG_AsInt(obj1);
21295 if (PyErr_Occurred()) SWIG_fail;
21296 {
21297 PyThreadState* __tstate = wxPyBeginAllowThreads();
21298 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21299
21300 wxPyEndAllowThreads(__tstate);
21301 if (PyErr_Occurred()) SWIG_fail;
21302 }
21303 resultobj = SWIG_FromInt((int)result);
21304 return resultobj;
21305 fail:
21306 return NULL;
21307 }
21308
21309
21310 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21311 PyObject *resultobj;
21312 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21313 int arg2 ;
21314 int arg3 ;
21315 bool result;
21316 PyObject * obj0 = 0 ;
21317 PyObject * obj1 = 0 ;
21318 PyObject * obj2 = 0 ;
21319 char *kwnames[] = {
21320 (char *) "self",(char *) "col",(char *) "width", NULL
21321 };
21322
21323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21326 arg2 = (int) SWIG_AsInt(obj1);
21327 if (PyErr_Occurred()) SWIG_fail;
21328 arg3 = (int) SWIG_AsInt(obj2);
21329 if (PyErr_Occurred()) SWIG_fail;
21330 {
21331 PyThreadState* __tstate = wxPyBeginAllowThreads();
21332 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21333
21334 wxPyEndAllowThreads(__tstate);
21335 if (PyErr_Occurred()) SWIG_fail;
21336 }
21337 {
21338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21339 }
21340 return resultobj;
21341 fail:
21342 return NULL;
21343 }
21344
21345
21346 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
21347 PyObject *resultobj;
21348 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21349 int result;
21350 PyObject * obj0 = 0 ;
21351 char *kwnames[] = {
21352 (char *) "self", NULL
21353 };
21354
21355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21358 {
21359 PyThreadState* __tstate = wxPyBeginAllowThreads();
21360 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21361
21362 wxPyEndAllowThreads(__tstate);
21363 if (PyErr_Occurred()) SWIG_fail;
21364 }
21365 resultobj = SWIG_FromInt((int)result);
21366 return resultobj;
21367 fail:
21368 return NULL;
21369 }
21370
21371
21372 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21373 PyObject *resultobj;
21374 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21375 wxRect result;
21376 PyObject * obj0 = 0 ;
21377 char *kwnames[] = {
21378 (char *) "self", NULL
21379 };
21380
21381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21384 {
21385 PyThreadState* __tstate = wxPyBeginAllowThreads();
21386 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21387
21388 wxPyEndAllowThreads(__tstate);
21389 if (PyErr_Occurred()) SWIG_fail;
21390 }
21391 {
21392 wxRect * resultptr;
21393 resultptr = new wxRect((wxRect &) result);
21394 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21395 }
21396 return resultobj;
21397 fail:
21398 return NULL;
21399 }
21400
21401
21402 static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21403 PyObject *resultobj;
21404 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21405 long arg2 ;
21406 int arg3 = (int) 0 ;
21407 wxListItem *result;
21408 PyObject * obj0 = 0 ;
21409 PyObject * obj1 = 0 ;
21410 PyObject * obj2 = 0 ;
21411 char *kwnames[] = {
21412 (char *) "self",(char *) "itemId",(char *) "col", NULL
21413 };
21414
21415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21418 arg2 = (long) SWIG_AsLong(obj1);
21419 if (PyErr_Occurred()) SWIG_fail;
21420 if (obj2) {
21421 arg3 = (int) SWIG_AsInt(obj2);
21422 if (PyErr_Occurred()) SWIG_fail;
21423 }
21424 {
21425 PyThreadState* __tstate = wxPyBeginAllowThreads();
21426 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21427
21428 wxPyEndAllowThreads(__tstate);
21429 if (PyErr_Occurred()) SWIG_fail;
21430 }
21431 {
21432 resultobj = wxPyMake_wxObject(result);
21433 }
21434 return resultobj;
21435 fail:
21436 return NULL;
21437 }
21438
21439
21440 static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21441 PyObject *resultobj;
21442 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21443 wxListItem *arg2 = 0 ;
21444 bool result;
21445 PyObject * obj0 = 0 ;
21446 PyObject * obj1 = 0 ;
21447 char *kwnames[] = {
21448 (char *) "self",(char *) "info", NULL
21449 };
21450
21451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21455 SWIG_POINTER_EXCEPTION | 0)) == -1)
21456 SWIG_fail;
21457 if (arg2 == NULL) {
21458 PyErr_SetString(PyExc_TypeError,"null reference");
21459 SWIG_fail;
21460 }
21461 {
21462 PyThreadState* __tstate = wxPyBeginAllowThreads();
21463 result = (bool)(arg1)->SetItem(*arg2);
21464
21465 wxPyEndAllowThreads(__tstate);
21466 if (PyErr_Occurred()) SWIG_fail;
21467 }
21468 {
21469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21470 }
21471 return resultobj;
21472 fail:
21473 return NULL;
21474 }
21475
21476
21477 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21478 PyObject *resultobj;
21479 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21480 long arg2 ;
21481 int arg3 ;
21482 wxString *arg4 = 0 ;
21483 int arg5 = (int) -1 ;
21484 long result;
21485 bool temp4 = False ;
21486 PyObject * obj0 = 0 ;
21487 PyObject * obj1 = 0 ;
21488 PyObject * obj2 = 0 ;
21489 PyObject * obj3 = 0 ;
21490 PyObject * obj4 = 0 ;
21491 char *kwnames[] = {
21492 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21493 };
21494
21495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21498 arg2 = (long) SWIG_AsLong(obj1);
21499 if (PyErr_Occurred()) SWIG_fail;
21500 arg3 = (int) SWIG_AsInt(obj2);
21501 if (PyErr_Occurred()) SWIG_fail;
21502 {
21503 arg4 = wxString_in_helper(obj3);
21504 if (arg4 == NULL) SWIG_fail;
21505 temp4 = True;
21506 }
21507 if (obj4) {
21508 arg5 = (int) SWIG_AsInt(obj4);
21509 if (PyErr_Occurred()) SWIG_fail;
21510 }
21511 {
21512 PyThreadState* __tstate = wxPyBeginAllowThreads();
21513 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21514
21515 wxPyEndAllowThreads(__tstate);
21516 if (PyErr_Occurred()) SWIG_fail;
21517 }
21518 resultobj = SWIG_FromLong((long)result);
21519 {
21520 if (temp4)
21521 delete arg4;
21522 }
21523 return resultobj;
21524 fail:
21525 {
21526 if (temp4)
21527 delete arg4;
21528 }
21529 return NULL;
21530 }
21531
21532
21533 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21534 PyObject *resultobj;
21535 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21536 long arg2 ;
21537 long arg3 ;
21538 int result;
21539 PyObject * obj0 = 0 ;
21540 PyObject * obj1 = 0 ;
21541 PyObject * obj2 = 0 ;
21542 char *kwnames[] = {
21543 (char *) "self",(char *) "item",(char *) "stateMask", NULL
21544 };
21545
21546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
21547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21549 arg2 = (long) SWIG_AsLong(obj1);
21550 if (PyErr_Occurred()) SWIG_fail;
21551 arg3 = (long) SWIG_AsLong(obj2);
21552 if (PyErr_Occurred()) SWIG_fail;
21553 {
21554 PyThreadState* __tstate = wxPyBeginAllowThreads();
21555 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
21556
21557 wxPyEndAllowThreads(__tstate);
21558 if (PyErr_Occurred()) SWIG_fail;
21559 }
21560 resultobj = SWIG_FromInt((int)result);
21561 return resultobj;
21562 fail:
21563 return NULL;
21564 }
21565
21566
21567 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21568 PyObject *resultobj;
21569 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21570 long arg2 ;
21571 long arg3 ;
21572 long arg4 ;
21573 bool result;
21574 PyObject * obj0 = 0 ;
21575 PyObject * obj1 = 0 ;
21576 PyObject * obj2 = 0 ;
21577 PyObject * obj3 = 0 ;
21578 char *kwnames[] = {
21579 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
21580 };
21581
21582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21585 arg2 = (long) SWIG_AsLong(obj1);
21586 if (PyErr_Occurred()) SWIG_fail;
21587 arg3 = (long) SWIG_AsLong(obj2);
21588 if (PyErr_Occurred()) SWIG_fail;
21589 arg4 = (long) SWIG_AsLong(obj3);
21590 if (PyErr_Occurred()) SWIG_fail;
21591 {
21592 PyThreadState* __tstate = wxPyBeginAllowThreads();
21593 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
21594
21595 wxPyEndAllowThreads(__tstate);
21596 if (PyErr_Occurred()) SWIG_fail;
21597 }
21598 {
21599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21600 }
21601 return resultobj;
21602 fail:
21603 return NULL;
21604 }
21605
21606
21607 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
21608 PyObject *resultobj;
21609 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21610 long arg2 ;
21611 int arg3 ;
21612 int arg4 ;
21613 bool result;
21614 PyObject * obj0 = 0 ;
21615 PyObject * obj1 = 0 ;
21616 PyObject * obj2 = 0 ;
21617 PyObject * obj3 = 0 ;
21618 char *kwnames[] = {
21619 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
21620 };
21621
21622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21625 arg2 = (long) SWIG_AsLong(obj1);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 arg3 = (int) SWIG_AsInt(obj2);
21628 if (PyErr_Occurred()) SWIG_fail;
21629 arg4 = (int) SWIG_AsInt(obj3);
21630 if (PyErr_Occurred()) SWIG_fail;
21631 {
21632 PyThreadState* __tstate = wxPyBeginAllowThreads();
21633 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
21634
21635 wxPyEndAllowThreads(__tstate);
21636 if (PyErr_Occurred()) SWIG_fail;
21637 }
21638 {
21639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21640 }
21641 return resultobj;
21642 fail:
21643 return NULL;
21644 }
21645
21646
21647 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21648 PyObject *resultobj;
21649 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21650 long arg2 ;
21651 wxString result;
21652 PyObject * obj0 = 0 ;
21653 PyObject * obj1 = 0 ;
21654 char *kwnames[] = {
21655 (char *) "self",(char *) "item", NULL
21656 };
21657
21658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
21659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21661 arg2 = (long) SWIG_AsLong(obj1);
21662 if (PyErr_Occurred()) SWIG_fail;
21663 {
21664 PyThreadState* __tstate = wxPyBeginAllowThreads();
21665 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
21666
21667 wxPyEndAllowThreads(__tstate);
21668 if (PyErr_Occurred()) SWIG_fail;
21669 }
21670 {
21671 #if wxUSE_UNICODE
21672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21673 #else
21674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21675 #endif
21676 }
21677 return resultobj;
21678 fail:
21679 return NULL;
21680 }
21681
21682
21683 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21684 PyObject *resultobj;
21685 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21686 long arg2 ;
21687 wxString *arg3 = 0 ;
21688 bool temp3 = False ;
21689 PyObject * obj0 = 0 ;
21690 PyObject * obj1 = 0 ;
21691 PyObject * obj2 = 0 ;
21692 char *kwnames[] = {
21693 (char *) "self",(char *) "item",(char *) "str", NULL
21694 };
21695
21696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
21697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21699 arg2 = (long) SWIG_AsLong(obj1);
21700 if (PyErr_Occurred()) SWIG_fail;
21701 {
21702 arg3 = wxString_in_helper(obj2);
21703 if (arg3 == NULL) SWIG_fail;
21704 temp3 = True;
21705 }
21706 {
21707 PyThreadState* __tstate = wxPyBeginAllowThreads();
21708 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
21709
21710 wxPyEndAllowThreads(__tstate);
21711 if (PyErr_Occurred()) SWIG_fail;
21712 }
21713 Py_INCREF(Py_None); resultobj = Py_None;
21714 {
21715 if (temp3)
21716 delete arg3;
21717 }
21718 return resultobj;
21719 fail:
21720 {
21721 if (temp3)
21722 delete arg3;
21723 }
21724 return NULL;
21725 }
21726
21727
21728 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21729 PyObject *resultobj;
21730 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21731 long arg2 ;
21732 long result;
21733 PyObject * obj0 = 0 ;
21734 PyObject * obj1 = 0 ;
21735 char *kwnames[] = {
21736 (char *) "self",(char *) "item", NULL
21737 };
21738
21739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
21740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21742 arg2 = (long) SWIG_AsLong(obj1);
21743 if (PyErr_Occurred()) SWIG_fail;
21744 {
21745 PyThreadState* __tstate = wxPyBeginAllowThreads();
21746 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
21747
21748 wxPyEndAllowThreads(__tstate);
21749 if (PyErr_Occurred()) SWIG_fail;
21750 }
21751 resultobj = SWIG_FromLong((long)result);
21752 return resultobj;
21753 fail:
21754 return NULL;
21755 }
21756
21757
21758 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21759 PyObject *resultobj;
21760 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21761 long arg2 ;
21762 long arg3 ;
21763 bool result;
21764 PyObject * obj0 = 0 ;
21765 PyObject * obj1 = 0 ;
21766 PyObject * obj2 = 0 ;
21767 char *kwnames[] = {
21768 (char *) "self",(char *) "item",(char *) "data", NULL
21769 };
21770
21771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21774 arg2 = (long) SWIG_AsLong(obj1);
21775 if (PyErr_Occurred()) SWIG_fail;
21776 arg3 = (long) SWIG_AsLong(obj2);
21777 if (PyErr_Occurred()) SWIG_fail;
21778 {
21779 PyThreadState* __tstate = wxPyBeginAllowThreads();
21780 result = (bool)(arg1)->SetItemData(arg2,arg3);
21781
21782 wxPyEndAllowThreads(__tstate);
21783 if (PyErr_Occurred()) SWIG_fail;
21784 }
21785 {
21786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21787 }
21788 return resultobj;
21789 fail:
21790 return NULL;
21791 }
21792
21793
21794 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21795 PyObject *resultobj;
21796 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21797 long arg2 ;
21798 wxPoint result;
21799 PyObject * obj0 = 0 ;
21800 PyObject * obj1 = 0 ;
21801 char *kwnames[] = {
21802 (char *) "self",(char *) "item", NULL
21803 };
21804
21805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
21806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21808 arg2 = (long) SWIG_AsLong(obj1);
21809 if (PyErr_Occurred()) SWIG_fail;
21810 {
21811 PyThreadState* __tstate = wxPyBeginAllowThreads();
21812 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
21813
21814 wxPyEndAllowThreads(__tstate);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 }
21817 {
21818 wxPoint * resultptr;
21819 resultptr = new wxPoint((wxPoint &) result);
21820 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21821 }
21822 return resultobj;
21823 fail:
21824 return NULL;
21825 }
21826
21827
21828 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21829 PyObject *resultobj;
21830 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21831 long arg2 ;
21832 int arg3 = (int) wxLIST_RECT_BOUNDS ;
21833 wxRect result;
21834 PyObject * obj0 = 0 ;
21835 PyObject * obj1 = 0 ;
21836 PyObject * obj2 = 0 ;
21837 char *kwnames[] = {
21838 (char *) "self",(char *) "item",(char *) "code", NULL
21839 };
21840
21841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
21842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21844 arg2 = (long) SWIG_AsLong(obj1);
21845 if (PyErr_Occurred()) SWIG_fail;
21846 if (obj2) {
21847 arg3 = (int) SWIG_AsInt(obj2);
21848 if (PyErr_Occurred()) SWIG_fail;
21849 }
21850 {
21851 PyThreadState* __tstate = wxPyBeginAllowThreads();
21852 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
21853
21854 wxPyEndAllowThreads(__tstate);
21855 if (PyErr_Occurred()) SWIG_fail;
21856 }
21857 {
21858 wxRect * resultptr;
21859 resultptr = new wxRect((wxRect &) result);
21860 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21861 }
21862 return resultobj;
21863 fail:
21864 return NULL;
21865 }
21866
21867
21868 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21869 PyObject *resultobj;
21870 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21871 long arg2 ;
21872 wxPoint *arg3 = 0 ;
21873 bool result;
21874 wxPoint temp3 ;
21875 PyObject * obj0 = 0 ;
21876 PyObject * obj1 = 0 ;
21877 PyObject * obj2 = 0 ;
21878 char *kwnames[] = {
21879 (char *) "self",(char *) "item",(char *) "pos", NULL
21880 };
21881
21882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",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_AsLong(obj1);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 {
21888 arg3 = &temp3;
21889 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21890 }
21891 {
21892 PyThreadState* __tstate = wxPyBeginAllowThreads();
21893 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
21894
21895 wxPyEndAllowThreads(__tstate);
21896 if (PyErr_Occurred()) SWIG_fail;
21897 }
21898 {
21899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21900 }
21901 return resultobj;
21902 fail:
21903 return NULL;
21904 }
21905
21906
21907 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21908 PyObject *resultobj;
21909 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21910 int result;
21911 PyObject * obj0 = 0 ;
21912 char *kwnames[] = {
21913 (char *) "self", NULL
21914 };
21915
21916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
21917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21919 {
21920 PyThreadState* __tstate = wxPyBeginAllowThreads();
21921 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
21922
21923 wxPyEndAllowThreads(__tstate);
21924 if (PyErr_Occurred()) SWIG_fail;
21925 }
21926 resultobj = SWIG_FromInt((int)result);
21927 return resultobj;
21928 fail:
21929 return NULL;
21930 }
21931
21932
21933 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21934 PyObject *resultobj;
21935 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21936 int result;
21937 PyObject * obj0 = 0 ;
21938 char *kwnames[] = {
21939 (char *) "self", NULL
21940 };
21941
21942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
21943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21945 {
21946 PyThreadState* __tstate = wxPyBeginAllowThreads();
21947 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
21948
21949 wxPyEndAllowThreads(__tstate);
21950 if (PyErr_Occurred()) SWIG_fail;
21951 }
21952 resultobj = SWIG_FromInt((int)result);
21953 return resultobj;
21954 fail:
21955 return NULL;
21956 }
21957
21958
21959 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
21960 PyObject *resultobj;
21961 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21962 wxSize result;
21963 PyObject * obj0 = 0 ;
21964 char *kwnames[] = {
21965 (char *) "self", NULL
21966 };
21967
21968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
21969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21971 {
21972 PyThreadState* __tstate = wxPyBeginAllowThreads();
21973 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
21974
21975 wxPyEndAllowThreads(__tstate);
21976 if (PyErr_Occurred()) SWIG_fail;
21977 }
21978 {
21979 wxSize * resultptr;
21980 resultptr = new wxSize((wxSize &) result);
21981 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
21982 }
21983 return resultobj;
21984 fail:
21985 return NULL;
21986 }
21987
21988
21989 static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
21990 PyObject *resultobj;
21991 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21992 int arg2 ;
21993 bool arg3 = (bool) False ;
21994 PyObject * obj0 = 0 ;
21995 PyObject * obj1 = 0 ;
21996 PyObject * obj2 = 0 ;
21997 char *kwnames[] = {
21998 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
21999 };
22000
22001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
22002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22004 arg2 = (int) SWIG_AsInt(obj1);
22005 if (PyErr_Occurred()) SWIG_fail;
22006 if (obj2) {
22007 arg3 = (bool) SWIG_AsBool(obj2);
22008 if (PyErr_Occurred()) SWIG_fail;
22009 }
22010 {
22011 PyThreadState* __tstate = wxPyBeginAllowThreads();
22012 (arg1)->SetItemSpacing(arg2,arg3);
22013
22014 wxPyEndAllowThreads(__tstate);
22015 if (PyErr_Occurred()) SWIG_fail;
22016 }
22017 Py_INCREF(Py_None); resultobj = Py_None;
22018 return resultobj;
22019 fail:
22020 return NULL;
22021 }
22022
22023
22024 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22025 PyObject *resultobj;
22026 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22027 int result;
22028 PyObject * obj0 = 0 ;
22029 char *kwnames[] = {
22030 (char *) "self", NULL
22031 };
22032
22033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22036 {
22037 PyThreadState* __tstate = wxPyBeginAllowThreads();
22038 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22039
22040 wxPyEndAllowThreads(__tstate);
22041 if (PyErr_Occurred()) SWIG_fail;
22042 }
22043 resultobj = SWIG_FromInt((int)result);
22044 return resultobj;
22045 fail:
22046 return NULL;
22047 }
22048
22049
22050 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22051 PyObject *resultobj;
22052 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22053 wxColour result;
22054 PyObject * obj0 = 0 ;
22055 char *kwnames[] = {
22056 (char *) "self", NULL
22057 };
22058
22059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22062 {
22063 PyThreadState* __tstate = wxPyBeginAllowThreads();
22064 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22065
22066 wxPyEndAllowThreads(__tstate);
22067 if (PyErr_Occurred()) SWIG_fail;
22068 }
22069 {
22070 wxColour * resultptr;
22071 resultptr = new wxColour((wxColour &) result);
22072 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22073 }
22074 return resultobj;
22075 fail:
22076 return NULL;
22077 }
22078
22079
22080 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22081 PyObject *resultobj;
22082 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22083 wxColour *arg2 = 0 ;
22084 wxColour temp2 ;
22085 PyObject * obj0 = 0 ;
22086 PyObject * obj1 = 0 ;
22087 char *kwnames[] = {
22088 (char *) "self",(char *) "col", NULL
22089 };
22090
22091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22094 {
22095 arg2 = &temp2;
22096 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22097 }
22098 {
22099 PyThreadState* __tstate = wxPyBeginAllowThreads();
22100 (arg1)->SetTextColour((wxColour const &)*arg2);
22101
22102 wxPyEndAllowThreads(__tstate);
22103 if (PyErr_Occurred()) SWIG_fail;
22104 }
22105 Py_INCREF(Py_None); resultobj = Py_None;
22106 return resultobj;
22107 fail:
22108 return NULL;
22109 }
22110
22111
22112 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22113 PyObject *resultobj;
22114 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22115 long result;
22116 PyObject * obj0 = 0 ;
22117 char *kwnames[] = {
22118 (char *) "self", NULL
22119 };
22120
22121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22124 {
22125 PyThreadState* __tstate = wxPyBeginAllowThreads();
22126 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22127
22128 wxPyEndAllowThreads(__tstate);
22129 if (PyErr_Occurred()) SWIG_fail;
22130 }
22131 resultobj = SWIG_FromLong((long)result);
22132 return resultobj;
22133 fail:
22134 return NULL;
22135 }
22136
22137
22138 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22139 PyObject *resultobj;
22140 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22141 long arg2 ;
22142 bool arg3 = (bool) True ;
22143 PyObject * obj0 = 0 ;
22144 PyObject * obj1 = 0 ;
22145 PyObject * obj2 = 0 ;
22146 char *kwnames[] = {
22147 (char *) "self",(char *) "style",(char *) "add", NULL
22148 };
22149
22150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22153 arg2 = (long) SWIG_AsLong(obj1);
22154 if (PyErr_Occurred()) SWIG_fail;
22155 if (obj2) {
22156 arg3 = (bool) SWIG_AsBool(obj2);
22157 if (PyErr_Occurred()) SWIG_fail;
22158 }
22159 {
22160 PyThreadState* __tstate = wxPyBeginAllowThreads();
22161 (arg1)->SetSingleStyle(arg2,arg3);
22162
22163 wxPyEndAllowThreads(__tstate);
22164 if (PyErr_Occurred()) SWIG_fail;
22165 }
22166 Py_INCREF(Py_None); resultobj = Py_None;
22167 return resultobj;
22168 fail:
22169 return NULL;
22170 }
22171
22172
22173 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22174 PyObject *resultobj;
22175 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22176 long arg2 ;
22177 PyObject * obj0 = 0 ;
22178 PyObject * obj1 = 0 ;
22179 char *kwnames[] = {
22180 (char *) "self",(char *) "style", NULL
22181 };
22182
22183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22186 arg2 = (long) SWIG_AsLong(obj1);
22187 if (PyErr_Occurred()) SWIG_fail;
22188 {
22189 PyThreadState* __tstate = wxPyBeginAllowThreads();
22190 (arg1)->SetWindowStyleFlag(arg2);
22191
22192 wxPyEndAllowThreads(__tstate);
22193 if (PyErr_Occurred()) SWIG_fail;
22194 }
22195 Py_INCREF(Py_None); resultobj = Py_None;
22196 return resultobj;
22197 fail:
22198 return NULL;
22199 }
22200
22201
22202 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22203 PyObject *resultobj;
22204 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22205 long arg2 ;
22206 int arg3 = (int) wxLIST_NEXT_ALL ;
22207 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22208 long result;
22209 PyObject * obj0 = 0 ;
22210 PyObject * obj1 = 0 ;
22211 PyObject * obj2 = 0 ;
22212 PyObject * obj3 = 0 ;
22213 char *kwnames[] = {
22214 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22215 };
22216
22217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22220 arg2 = (long) SWIG_AsLong(obj1);
22221 if (PyErr_Occurred()) SWIG_fail;
22222 if (obj2) {
22223 arg3 = (int) SWIG_AsInt(obj2);
22224 if (PyErr_Occurred()) SWIG_fail;
22225 }
22226 if (obj3) {
22227 arg4 = (int) SWIG_AsInt(obj3);
22228 if (PyErr_Occurred()) SWIG_fail;
22229 }
22230 {
22231 PyThreadState* __tstate = wxPyBeginAllowThreads();
22232 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22233
22234 wxPyEndAllowThreads(__tstate);
22235 if (PyErr_Occurred()) SWIG_fail;
22236 }
22237 resultobj = SWIG_FromLong((long)result);
22238 return resultobj;
22239 fail:
22240 return NULL;
22241 }
22242
22243
22244 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22245 PyObject *resultobj;
22246 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22247 int arg2 ;
22248 wxImageList *result;
22249 PyObject * obj0 = 0 ;
22250 PyObject * obj1 = 0 ;
22251 char *kwnames[] = {
22252 (char *) "self",(char *) "which", NULL
22253 };
22254
22255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22258 arg2 = (int) SWIG_AsInt(obj1);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 {
22261 PyThreadState* __tstate = wxPyBeginAllowThreads();
22262 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22263
22264 wxPyEndAllowThreads(__tstate);
22265 if (PyErr_Occurred()) SWIG_fail;
22266 }
22267 {
22268 resultobj = wxPyMake_wxObject(result);
22269 }
22270 return resultobj;
22271 fail:
22272 return NULL;
22273 }
22274
22275
22276 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22277 PyObject *resultobj;
22278 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22279 wxImageList *arg2 = (wxImageList *) 0 ;
22280 int arg3 ;
22281 PyObject * obj0 = 0 ;
22282 PyObject * obj1 = 0 ;
22283 PyObject * obj2 = 0 ;
22284 char *kwnames[] = {
22285 (char *) "self",(char *) "imageList",(char *) "which", NULL
22286 };
22287
22288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22291 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22293 arg3 = (int) SWIG_AsInt(obj2);
22294 if (PyErr_Occurred()) SWIG_fail;
22295 {
22296 PyThreadState* __tstate = wxPyBeginAllowThreads();
22297 (arg1)->SetImageList(arg2,arg3);
22298
22299 wxPyEndAllowThreads(__tstate);
22300 if (PyErr_Occurred()) SWIG_fail;
22301 }
22302 Py_INCREF(Py_None); resultobj = Py_None;
22303 return resultobj;
22304 fail:
22305 return NULL;
22306 }
22307
22308
22309 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22310 PyObject *resultobj;
22311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22312 wxImageList *arg2 = (wxImageList *) 0 ;
22313 int arg3 ;
22314 PyObject * obj0 = 0 ;
22315 PyObject * obj1 = 0 ;
22316 PyObject * obj2 = 0 ;
22317 char *kwnames[] = {
22318 (char *) "self",(char *) "imageList",(char *) "which", NULL
22319 };
22320
22321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22324 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22325 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22326 arg3 = (int) SWIG_AsInt(obj2);
22327 if (PyErr_Occurred()) SWIG_fail;
22328 {
22329 PyThreadState* __tstate = wxPyBeginAllowThreads();
22330 (arg1)->AssignImageList(arg2,arg3);
22331
22332 wxPyEndAllowThreads(__tstate);
22333 if (PyErr_Occurred()) SWIG_fail;
22334 }
22335 Py_INCREF(Py_None); resultobj = Py_None;
22336 return resultobj;
22337 fail:
22338 return NULL;
22339 }
22340
22341
22342 static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) {
22343 PyObject *resultobj;
22344 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22345 bool result;
22346 PyObject * obj0 = 0 ;
22347 char *kwnames[] = {
22348 (char *) "self", NULL
22349 };
22350
22351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22354 {
22355 PyThreadState* __tstate = wxPyBeginAllowThreads();
22356 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22357
22358 wxPyEndAllowThreads(__tstate);
22359 if (PyErr_Occurred()) SWIG_fail;
22360 }
22361 {
22362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22363 }
22364 return resultobj;
22365 fail:
22366 return NULL;
22367 }
22368
22369
22370 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
22371 PyObject *resultobj;
22372 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22373 bool result;
22374 PyObject * obj0 = 0 ;
22375 char *kwnames[] = {
22376 (char *) "self", NULL
22377 };
22378
22379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22382 {
22383 PyThreadState* __tstate = wxPyBeginAllowThreads();
22384 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22385
22386 wxPyEndAllowThreads(__tstate);
22387 if (PyErr_Occurred()) SWIG_fail;
22388 }
22389 {
22390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22391 }
22392 return resultobj;
22393 fail:
22394 return NULL;
22395 }
22396
22397
22398 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22399 PyObject *resultobj;
22400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22401 long arg2 ;
22402 PyObject * obj0 = 0 ;
22403 PyObject * obj1 = 0 ;
22404 char *kwnames[] = {
22405 (char *) "self",(char *) "item", NULL
22406 };
22407
22408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22411 arg2 = (long) SWIG_AsLong(obj1);
22412 if (PyErr_Occurred()) SWIG_fail;
22413 {
22414 PyThreadState* __tstate = wxPyBeginAllowThreads();
22415 (arg1)->RefreshItem(arg2);
22416
22417 wxPyEndAllowThreads(__tstate);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 }
22420 Py_INCREF(Py_None); resultobj = Py_None;
22421 return resultobj;
22422 fail:
22423 return NULL;
22424 }
22425
22426
22427 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22428 PyObject *resultobj;
22429 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22430 long arg2 ;
22431 long arg3 ;
22432 PyObject * obj0 = 0 ;
22433 PyObject * obj1 = 0 ;
22434 PyObject * obj2 = 0 ;
22435 char *kwnames[] = {
22436 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22437 };
22438
22439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22442 arg2 = (long) SWIG_AsLong(obj1);
22443 if (PyErr_Occurred()) SWIG_fail;
22444 arg3 = (long) SWIG_AsLong(obj2);
22445 if (PyErr_Occurred()) SWIG_fail;
22446 {
22447 PyThreadState* __tstate = wxPyBeginAllowThreads();
22448 (arg1)->RefreshItems(arg2,arg3);
22449
22450 wxPyEndAllowThreads(__tstate);
22451 if (PyErr_Occurred()) SWIG_fail;
22452 }
22453 Py_INCREF(Py_None); resultobj = Py_None;
22454 return resultobj;
22455 fail:
22456 return NULL;
22457 }
22458
22459
22460 static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
22461 PyObject *resultobj;
22462 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22463 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22464 bool result;
22465 PyObject * obj0 = 0 ;
22466 PyObject * obj1 = 0 ;
22467 char *kwnames[] = {
22468 (char *) "self",(char *) "flag", NULL
22469 };
22470
22471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22474 if (obj1) {
22475 arg2 = (int) SWIG_AsInt(obj1);
22476 if (PyErr_Occurred()) SWIG_fail;
22477 }
22478 {
22479 PyThreadState* __tstate = wxPyBeginAllowThreads();
22480 result = (bool)(arg1)->Arrange(arg2);
22481
22482 wxPyEndAllowThreads(__tstate);
22483 if (PyErr_Occurred()) SWIG_fail;
22484 }
22485 {
22486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22487 }
22488 return resultobj;
22489 fail:
22490 return NULL;
22491 }
22492
22493
22494 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22495 PyObject *resultobj;
22496 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22497 long arg2 ;
22498 bool result;
22499 PyObject * obj0 = 0 ;
22500 PyObject * obj1 = 0 ;
22501 char *kwnames[] = {
22502 (char *) "self",(char *) "item", NULL
22503 };
22504
22505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22508 arg2 = (long) SWIG_AsLong(obj1);
22509 if (PyErr_Occurred()) SWIG_fail;
22510 {
22511 PyThreadState* __tstate = wxPyBeginAllowThreads();
22512 result = (bool)(arg1)->DeleteItem(arg2);
22513
22514 wxPyEndAllowThreads(__tstate);
22515 if (PyErr_Occurred()) SWIG_fail;
22516 }
22517 {
22518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22519 }
22520 return resultobj;
22521 fail:
22522 return NULL;
22523 }
22524
22525
22526 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22527 PyObject *resultobj;
22528 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22529 bool result;
22530 PyObject * obj0 = 0 ;
22531 char *kwnames[] = {
22532 (char *) "self", NULL
22533 };
22534
22535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22538 {
22539 PyThreadState* __tstate = wxPyBeginAllowThreads();
22540 result = (bool)(arg1)->DeleteAllItems();
22541
22542 wxPyEndAllowThreads(__tstate);
22543 if (PyErr_Occurred()) SWIG_fail;
22544 }
22545 {
22546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22547 }
22548 return resultobj;
22549 fail:
22550 return NULL;
22551 }
22552
22553
22554 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22555 PyObject *resultobj;
22556 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22557 int arg2 ;
22558 bool result;
22559 PyObject * obj0 = 0 ;
22560 PyObject * obj1 = 0 ;
22561 char *kwnames[] = {
22562 (char *) "self",(char *) "col", NULL
22563 };
22564
22565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22568 arg2 = (int) SWIG_AsInt(obj1);
22569 if (PyErr_Occurred()) SWIG_fail;
22570 {
22571 PyThreadState* __tstate = wxPyBeginAllowThreads();
22572 result = (bool)(arg1)->DeleteColumn(arg2);
22573
22574 wxPyEndAllowThreads(__tstate);
22575 if (PyErr_Occurred()) SWIG_fail;
22576 }
22577 {
22578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22579 }
22580 return resultobj;
22581 fail:
22582 return NULL;
22583 }
22584
22585
22586 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
22587 PyObject *resultobj;
22588 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22589 bool result;
22590 PyObject * obj0 = 0 ;
22591 char *kwnames[] = {
22592 (char *) "self", NULL
22593 };
22594
22595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
22596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 result = (bool)(arg1)->DeleteAllColumns();
22601
22602 wxPyEndAllowThreads(__tstate);
22603 if (PyErr_Occurred()) SWIG_fail;
22604 }
22605 {
22606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22607 }
22608 return resultobj;
22609 fail:
22610 return NULL;
22611 }
22612
22613
22614 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
22615 PyObject *resultobj;
22616 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22617 PyObject * obj0 = 0 ;
22618 char *kwnames[] = {
22619 (char *) "self", NULL
22620 };
22621
22622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
22623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22625 {
22626 PyThreadState* __tstate = wxPyBeginAllowThreads();
22627 (arg1)->ClearAll();
22628
22629 wxPyEndAllowThreads(__tstate);
22630 if (PyErr_Occurred()) SWIG_fail;
22631 }
22632 Py_INCREF(Py_None); resultobj = Py_None;
22633 return resultobj;
22634 fail:
22635 return NULL;
22636 }
22637
22638
22639 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
22640 PyObject *resultobj;
22641 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22642 long arg2 ;
22643 PyObject * obj0 = 0 ;
22644 PyObject * obj1 = 0 ;
22645 char *kwnames[] = {
22646 (char *) "self",(char *) "item", NULL
22647 };
22648
22649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
22650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22652 arg2 = (long) SWIG_AsLong(obj1);
22653 if (PyErr_Occurred()) SWIG_fail;
22654 {
22655 PyThreadState* __tstate = wxPyBeginAllowThreads();
22656 (arg1)->EditLabel(arg2);
22657
22658 wxPyEndAllowThreads(__tstate);
22659 if (PyErr_Occurred()) SWIG_fail;
22660 }
22661 Py_INCREF(Py_None); resultobj = Py_None;
22662 return resultobj;
22663 fail:
22664 return NULL;
22665 }
22666
22667
22668 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
22669 PyObject *resultobj;
22670 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22671 long arg2 ;
22672 bool result;
22673 PyObject * obj0 = 0 ;
22674 PyObject * obj1 = 0 ;
22675 char *kwnames[] = {
22676 (char *) "self",(char *) "item", NULL
22677 };
22678
22679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
22680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22682 arg2 = (long) SWIG_AsLong(obj1);
22683 if (PyErr_Occurred()) SWIG_fail;
22684 {
22685 PyThreadState* __tstate = wxPyBeginAllowThreads();
22686 result = (bool)(arg1)->EnsureVisible(arg2);
22687
22688 wxPyEndAllowThreads(__tstate);
22689 if (PyErr_Occurred()) SWIG_fail;
22690 }
22691 {
22692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22693 }
22694 return resultobj;
22695 fail:
22696 return NULL;
22697 }
22698
22699
22700 static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22701 PyObject *resultobj;
22702 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22703 long arg2 ;
22704 wxString *arg3 = 0 ;
22705 bool arg4 = (bool) False ;
22706 long result;
22707 bool temp3 = False ;
22708 PyObject * obj0 = 0 ;
22709 PyObject * obj1 = 0 ;
22710 PyObject * obj2 = 0 ;
22711 PyObject * obj3 = 0 ;
22712 char *kwnames[] = {
22713 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
22714 };
22715
22716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22719 arg2 = (long) SWIG_AsLong(obj1);
22720 if (PyErr_Occurred()) SWIG_fail;
22721 {
22722 arg3 = wxString_in_helper(obj2);
22723 if (arg3 == NULL) SWIG_fail;
22724 temp3 = True;
22725 }
22726 if (obj3) {
22727 arg4 = (bool) SWIG_AsBool(obj3);
22728 if (PyErr_Occurred()) SWIG_fail;
22729 }
22730 {
22731 PyThreadState* __tstate = wxPyBeginAllowThreads();
22732 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
22733
22734 wxPyEndAllowThreads(__tstate);
22735 if (PyErr_Occurred()) SWIG_fail;
22736 }
22737 resultobj = SWIG_FromLong((long)result);
22738 {
22739 if (temp3)
22740 delete arg3;
22741 }
22742 return resultobj;
22743 fail:
22744 {
22745 if (temp3)
22746 delete arg3;
22747 }
22748 return NULL;
22749 }
22750
22751
22752 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
22753 PyObject *resultobj;
22754 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22755 long arg2 ;
22756 long arg3 ;
22757 long result;
22758 PyObject * obj0 = 0 ;
22759 PyObject * obj1 = 0 ;
22760 PyObject * obj2 = 0 ;
22761 char *kwnames[] = {
22762 (char *) "self",(char *) "start",(char *) "data", NULL
22763 };
22764
22765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22768 arg2 = (long) SWIG_AsLong(obj1);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 arg3 = (long) SWIG_AsLong(obj2);
22771 if (PyErr_Occurred()) SWIG_fail;
22772 {
22773 PyThreadState* __tstate = wxPyBeginAllowThreads();
22774 result = (long)(arg1)->FindItem(arg2,arg3);
22775
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 resultobj = SWIG_FromLong((long)result);
22780 return resultobj;
22781 fail:
22782 return NULL;
22783 }
22784
22785
22786 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
22787 PyObject *resultobj;
22788 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22789 long arg2 ;
22790 wxPoint *arg3 = 0 ;
22791 int arg4 ;
22792 long result;
22793 wxPoint temp3 ;
22794 PyObject * obj0 = 0 ;
22795 PyObject * obj1 = 0 ;
22796 PyObject * obj2 = 0 ;
22797 PyObject * obj3 = 0 ;
22798 char *kwnames[] = {
22799 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
22800 };
22801
22802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22805 arg2 = (long) SWIG_AsLong(obj1);
22806 if (PyErr_Occurred()) SWIG_fail;
22807 {
22808 arg3 = &temp3;
22809 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22810 }
22811 arg4 = (int) SWIG_AsInt(obj3);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 {
22814 PyThreadState* __tstate = wxPyBeginAllowThreads();
22815 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
22816
22817 wxPyEndAllowThreads(__tstate);
22818 if (PyErr_Occurred()) SWIG_fail;
22819 }
22820 resultobj = SWIG_FromLong((long)result);
22821 return resultobj;
22822 fail:
22823 return NULL;
22824 }
22825
22826
22827 static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
22828 PyObject *resultobj;
22829 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22830 wxPoint *arg2 = 0 ;
22831 int *arg3 = 0 ;
22832 long result;
22833 wxPoint temp2 ;
22834 int temp3 ;
22835 PyObject * obj0 = 0 ;
22836 PyObject * obj1 = 0 ;
22837 char *kwnames[] = {
22838 (char *) "self",(char *) "point", NULL
22839 };
22840
22841 arg3 = &temp3;
22842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
22843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22845 {
22846 arg2 = &temp2;
22847 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22848 }
22849 {
22850 PyThreadState* __tstate = wxPyBeginAllowThreads();
22851 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
22852
22853 wxPyEndAllowThreads(__tstate);
22854 if (PyErr_Occurred()) SWIG_fail;
22855 }
22856 resultobj = SWIG_FromLong((long)result);
22857 {
22858 PyObject *o = PyInt_FromLong((long) (*arg3));
22859 resultobj = t_output_helper(resultobj,o);
22860 }
22861 return resultobj;
22862 fail:
22863 return NULL;
22864 }
22865
22866
22867 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22868 PyObject *resultobj;
22869 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22870 wxListItem *arg2 = 0 ;
22871 long result;
22872 PyObject * obj0 = 0 ;
22873 PyObject * obj1 = 0 ;
22874 char *kwnames[] = {
22875 (char *) "self",(char *) "info", NULL
22876 };
22877
22878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
22879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22881 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
22882 SWIG_POINTER_EXCEPTION | 0)) == -1)
22883 SWIG_fail;
22884 if (arg2 == NULL) {
22885 PyErr_SetString(PyExc_TypeError,"null reference");
22886 SWIG_fail;
22887 }
22888 {
22889 PyThreadState* __tstate = wxPyBeginAllowThreads();
22890 result = (long)(arg1)->InsertItem(*arg2);
22891
22892 wxPyEndAllowThreads(__tstate);
22893 if (PyErr_Occurred()) SWIG_fail;
22894 }
22895 resultobj = SWIG_FromLong((long)result);
22896 return resultobj;
22897 fail:
22898 return NULL;
22899 }
22900
22901
22902 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22903 PyObject *resultobj;
22904 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22905 long arg2 ;
22906 wxString *arg3 = 0 ;
22907 long result;
22908 bool temp3 = False ;
22909 PyObject * obj0 = 0 ;
22910 PyObject * obj1 = 0 ;
22911 PyObject * obj2 = 0 ;
22912 char *kwnames[] = {
22913 (char *) "self",(char *) "index",(char *) "label", NULL
22914 };
22915
22916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22919 arg2 = (long) SWIG_AsLong(obj1);
22920 if (PyErr_Occurred()) SWIG_fail;
22921 {
22922 arg3 = wxString_in_helper(obj2);
22923 if (arg3 == NULL) SWIG_fail;
22924 temp3 = True;
22925 }
22926 {
22927 PyThreadState* __tstate = wxPyBeginAllowThreads();
22928 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
22929
22930 wxPyEndAllowThreads(__tstate);
22931 if (PyErr_Occurred()) SWIG_fail;
22932 }
22933 resultobj = SWIG_FromLong((long)result);
22934 {
22935 if (temp3)
22936 delete arg3;
22937 }
22938 return resultobj;
22939 fail:
22940 {
22941 if (temp3)
22942 delete arg3;
22943 }
22944 return NULL;
22945 }
22946
22947
22948 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22949 PyObject *resultobj;
22950 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22951 long arg2 ;
22952 int arg3 ;
22953 long result;
22954 PyObject * obj0 = 0 ;
22955 PyObject * obj1 = 0 ;
22956 PyObject * obj2 = 0 ;
22957 char *kwnames[] = {
22958 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
22959 };
22960
22961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22964 arg2 = (long) SWIG_AsLong(obj1);
22965 if (PyErr_Occurred()) SWIG_fail;
22966 arg3 = (int) SWIG_AsInt(obj2);
22967 if (PyErr_Occurred()) SWIG_fail;
22968 {
22969 PyThreadState* __tstate = wxPyBeginAllowThreads();
22970 result = (long)(arg1)->InsertItem(arg2,arg3);
22971
22972 wxPyEndAllowThreads(__tstate);
22973 if (PyErr_Occurred()) SWIG_fail;
22974 }
22975 resultobj = SWIG_FromLong((long)result);
22976 return resultobj;
22977 fail:
22978 return NULL;
22979 }
22980
22981
22982 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22983 PyObject *resultobj;
22984 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22985 long arg2 ;
22986 wxString *arg3 = 0 ;
22987 int arg4 ;
22988 long result;
22989 bool temp3 = False ;
22990 PyObject * obj0 = 0 ;
22991 PyObject * obj1 = 0 ;
22992 PyObject * obj2 = 0 ;
22993 PyObject * obj3 = 0 ;
22994 char *kwnames[] = {
22995 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
22996 };
22997
22998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23001 arg2 = (long) SWIG_AsLong(obj1);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 {
23004 arg3 = wxString_in_helper(obj2);
23005 if (arg3 == NULL) SWIG_fail;
23006 temp3 = True;
23007 }
23008 arg4 = (int) SWIG_AsInt(obj3);
23009 if (PyErr_Occurred()) SWIG_fail;
23010 {
23011 PyThreadState* __tstate = wxPyBeginAllowThreads();
23012 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23013
23014 wxPyEndAllowThreads(__tstate);
23015 if (PyErr_Occurred()) SWIG_fail;
23016 }
23017 resultobj = SWIG_FromLong((long)result);
23018 {
23019 if (temp3)
23020 delete arg3;
23021 }
23022 return resultobj;
23023 fail:
23024 {
23025 if (temp3)
23026 delete arg3;
23027 }
23028 return NULL;
23029 }
23030
23031
23032 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23033 PyObject *resultobj;
23034 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23035 long arg2 ;
23036 wxListItem *arg3 = 0 ;
23037 long result;
23038 PyObject * obj0 = 0 ;
23039 PyObject * obj1 = 0 ;
23040 PyObject * obj2 = 0 ;
23041 char *kwnames[] = {
23042 (char *) "self",(char *) "col",(char *) "info", NULL
23043 };
23044
23045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23048 arg2 = (long) SWIG_AsLong(obj1);
23049 if (PyErr_Occurred()) SWIG_fail;
23050 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23051 SWIG_POINTER_EXCEPTION | 0)) == -1)
23052 SWIG_fail;
23053 if (arg3 == NULL) {
23054 PyErr_SetString(PyExc_TypeError,"null reference");
23055 SWIG_fail;
23056 }
23057 {
23058 PyThreadState* __tstate = wxPyBeginAllowThreads();
23059 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23060
23061 wxPyEndAllowThreads(__tstate);
23062 if (PyErr_Occurred()) SWIG_fail;
23063 }
23064 resultobj = SWIG_FromLong((long)result);
23065 return resultobj;
23066 fail:
23067 return NULL;
23068 }
23069
23070
23071 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
23072 PyObject *resultobj;
23073 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23074 long arg2 ;
23075 wxString *arg3 = 0 ;
23076 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23077 int arg5 = (int) -1 ;
23078 long result;
23079 bool temp3 = False ;
23080 PyObject * obj0 = 0 ;
23081 PyObject * obj1 = 0 ;
23082 PyObject * obj2 = 0 ;
23083 PyObject * obj3 = 0 ;
23084 PyObject * obj4 = 0 ;
23085 char *kwnames[] = {
23086 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23087 };
23088
23089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23092 arg2 = (long) SWIG_AsLong(obj1);
23093 if (PyErr_Occurred()) SWIG_fail;
23094 {
23095 arg3 = wxString_in_helper(obj2);
23096 if (arg3 == NULL) SWIG_fail;
23097 temp3 = True;
23098 }
23099 if (obj3) {
23100 arg4 = (int) SWIG_AsInt(obj3);
23101 if (PyErr_Occurred()) SWIG_fail;
23102 }
23103 if (obj4) {
23104 arg5 = (int) SWIG_AsInt(obj4);
23105 if (PyErr_Occurred()) SWIG_fail;
23106 }
23107 {
23108 PyThreadState* __tstate = wxPyBeginAllowThreads();
23109 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23110
23111 wxPyEndAllowThreads(__tstate);
23112 if (PyErr_Occurred()) SWIG_fail;
23113 }
23114 resultobj = SWIG_FromLong((long)result);
23115 {
23116 if (temp3)
23117 delete arg3;
23118 }
23119 return resultobj;
23120 fail:
23121 {
23122 if (temp3)
23123 delete arg3;
23124 }
23125 return NULL;
23126 }
23127
23128
23129 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23130 PyObject *resultobj;
23131 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23132 long arg2 ;
23133 PyObject * obj0 = 0 ;
23134 PyObject * obj1 = 0 ;
23135 char *kwnames[] = {
23136 (char *) "self",(char *) "count", NULL
23137 };
23138
23139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23142 arg2 = (long) SWIG_AsLong(obj1);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 {
23145 PyThreadState* __tstate = wxPyBeginAllowThreads();
23146 (arg1)->SetItemCount(arg2);
23147
23148 wxPyEndAllowThreads(__tstate);
23149 if (PyErr_Occurred()) SWIG_fail;
23150 }
23151 Py_INCREF(Py_None); resultobj = Py_None;
23152 return resultobj;
23153 fail:
23154 return NULL;
23155 }
23156
23157
23158 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
23159 PyObject *resultobj;
23160 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23161 int arg2 ;
23162 int arg3 ;
23163 bool result;
23164 PyObject * obj0 = 0 ;
23165 PyObject * obj1 = 0 ;
23166 PyObject * obj2 = 0 ;
23167 char *kwnames[] = {
23168 (char *) "self",(char *) "dx",(char *) "dy", NULL
23169 };
23170
23171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23174 arg2 = (int) SWIG_AsInt(obj1);
23175 if (PyErr_Occurred()) SWIG_fail;
23176 arg3 = (int) SWIG_AsInt(obj2);
23177 if (PyErr_Occurred()) SWIG_fail;
23178 {
23179 PyThreadState* __tstate = wxPyBeginAllowThreads();
23180 result = (bool)(arg1)->ScrollList(arg2,arg3);
23181
23182 wxPyEndAllowThreads(__tstate);
23183 if (PyErr_Occurred()) SWIG_fail;
23184 }
23185 {
23186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23187 }
23188 return resultobj;
23189 fail:
23190 return NULL;
23191 }
23192
23193
23194 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23195 PyObject *resultobj;
23196 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23197 long arg2 ;
23198 wxColour *arg3 = 0 ;
23199 wxColour temp3 ;
23200 PyObject * obj0 = 0 ;
23201 PyObject * obj1 = 0 ;
23202 PyObject * obj2 = 0 ;
23203 char *kwnames[] = {
23204 (char *) "self",(char *) "item",(char *) "col", NULL
23205 };
23206
23207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23210 arg2 = (long) SWIG_AsLong(obj1);
23211 if (PyErr_Occurred()) SWIG_fail;
23212 {
23213 arg3 = &temp3;
23214 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23215 }
23216 {
23217 PyThreadState* __tstate = wxPyBeginAllowThreads();
23218 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23219
23220 wxPyEndAllowThreads(__tstate);
23221 if (PyErr_Occurred()) SWIG_fail;
23222 }
23223 Py_INCREF(Py_None); resultobj = Py_None;
23224 return resultobj;
23225 fail:
23226 return NULL;
23227 }
23228
23229
23230 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23231 PyObject *resultobj;
23232 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23233 long arg2 ;
23234 wxColour result;
23235 PyObject * obj0 = 0 ;
23236 PyObject * obj1 = 0 ;
23237 char *kwnames[] = {
23238 (char *) "self",(char *) "item", NULL
23239 };
23240
23241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23244 arg2 = (long) SWIG_AsLong(obj1);
23245 if (PyErr_Occurred()) SWIG_fail;
23246 {
23247 PyThreadState* __tstate = wxPyBeginAllowThreads();
23248 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23249
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 {
23254 wxColour * resultptr;
23255 resultptr = new wxColour((wxColour &) result);
23256 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23257 }
23258 return resultobj;
23259 fail:
23260 return NULL;
23261 }
23262
23263
23264 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23265 PyObject *resultobj;
23266 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23267 long arg2 ;
23268 wxColour *arg3 = 0 ;
23269 wxColour temp3 ;
23270 PyObject * obj0 = 0 ;
23271 PyObject * obj1 = 0 ;
23272 PyObject * obj2 = 0 ;
23273 char *kwnames[] = {
23274 (char *) "self",(char *) "item",(char *) "col", NULL
23275 };
23276
23277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23280 arg2 = (long) SWIG_AsLong(obj1);
23281 if (PyErr_Occurred()) SWIG_fail;
23282 {
23283 arg3 = &temp3;
23284 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23285 }
23286 {
23287 PyThreadState* __tstate = wxPyBeginAllowThreads();
23288 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23289
23290 wxPyEndAllowThreads(__tstate);
23291 if (PyErr_Occurred()) SWIG_fail;
23292 }
23293 Py_INCREF(Py_None); resultobj = Py_None;
23294 return resultobj;
23295 fail:
23296 return NULL;
23297 }
23298
23299
23300 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23301 PyObject *resultobj;
23302 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23303 long arg2 ;
23304 wxColour result;
23305 PyObject * obj0 = 0 ;
23306 PyObject * obj1 = 0 ;
23307 char *kwnames[] = {
23308 (char *) "self",(char *) "item", NULL
23309 };
23310
23311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23314 arg2 = (long) SWIG_AsLong(obj1);
23315 if (PyErr_Occurred()) SWIG_fail;
23316 {
23317 PyThreadState* __tstate = wxPyBeginAllowThreads();
23318 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23319
23320 wxPyEndAllowThreads(__tstate);
23321 if (PyErr_Occurred()) SWIG_fail;
23322 }
23323 {
23324 wxColour * resultptr;
23325 resultptr = new wxColour((wxColour &) result);
23326 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23327 }
23328 return resultobj;
23329 fail:
23330 return NULL;
23331 }
23332
23333
23334 static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
23335 PyObject *resultobj;
23336 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23337 PyObject *arg2 = (PyObject *) 0 ;
23338 bool result;
23339 PyObject * obj0 = 0 ;
23340 PyObject * obj1 = 0 ;
23341 char *kwnames[] = {
23342 (char *) "self",(char *) "func", NULL
23343 };
23344
23345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23348 arg2 = obj1;
23349 {
23350 PyThreadState* __tstate = wxPyBeginAllowThreads();
23351 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23352
23353 wxPyEndAllowThreads(__tstate);
23354 if (PyErr_Occurred()) SWIG_fail;
23355 }
23356 {
23357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23358 }
23359 return resultobj;
23360 fail:
23361 return NULL;
23362 }
23363
23364
23365 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
23366 PyObject *resultobj;
23367 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23368 wxWindow *result;
23369 PyObject * obj0 = 0 ;
23370 char *kwnames[] = {
23371 (char *) "self", NULL
23372 };
23373
23374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23377 {
23378 PyThreadState* __tstate = wxPyBeginAllowThreads();
23379 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23380
23381 wxPyEndAllowThreads(__tstate);
23382 if (PyErr_Occurred()) SWIG_fail;
23383 }
23384 {
23385 resultobj = wxPyMake_wxObject(result);
23386 }
23387 return resultobj;
23388 fail:
23389 return NULL;
23390 }
23391
23392
23393 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
23394 PyObject *resultobj;
23395 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23396 wxVisualAttributes result;
23397 PyObject * obj0 = 0 ;
23398 char *kwnames[] = {
23399 (char *) "variant", NULL
23400 };
23401
23402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23403 if (obj0) {
23404 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
23405 if (PyErr_Occurred()) SWIG_fail;
23406 }
23407 {
23408 PyThreadState* __tstate = wxPyBeginAllowThreads();
23409 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23410
23411 wxPyEndAllowThreads(__tstate);
23412 if (PyErr_Occurred()) SWIG_fail;
23413 }
23414 {
23415 wxVisualAttributes * resultptr;
23416 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23417 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23418 }
23419 return resultobj;
23420 fail:
23421 return NULL;
23422 }
23423
23424
23425 static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
23426 PyObject *obj;
23427 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23428 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23429 Py_INCREF(obj);
23430 return Py_BuildValue((char *)"");
23431 }
23432 static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23433 PyObject *resultobj;
23434 wxWindow *arg1 = (wxWindow *) 0 ;
23435 int arg2 = (int) -1 ;
23436 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23437 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23438 wxSize const &arg4_defvalue = wxDefaultSize ;
23439 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23440 long arg5 = (long) wxLC_REPORT ;
23441 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23442 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23443 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23444 wxString *arg7 = (wxString *) &arg7_defvalue ;
23445 wxListView *result;
23446 wxPoint temp3 ;
23447 wxSize temp4 ;
23448 bool temp7 = False ;
23449 PyObject * obj0 = 0 ;
23450 PyObject * obj1 = 0 ;
23451 PyObject * obj2 = 0 ;
23452 PyObject * obj3 = 0 ;
23453 PyObject * obj4 = 0 ;
23454 PyObject * obj5 = 0 ;
23455 PyObject * obj6 = 0 ;
23456 char *kwnames[] = {
23457 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23458 };
23459
23460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23463 if (obj1) {
23464 arg2 = (int) SWIG_AsInt(obj1);
23465 if (PyErr_Occurred()) SWIG_fail;
23466 }
23467 if (obj2) {
23468 {
23469 arg3 = &temp3;
23470 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23471 }
23472 }
23473 if (obj3) {
23474 {
23475 arg4 = &temp4;
23476 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23477 }
23478 }
23479 if (obj4) {
23480 arg5 = (long) SWIG_AsLong(obj4);
23481 if (PyErr_Occurred()) SWIG_fail;
23482 }
23483 if (obj5) {
23484 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23485 SWIG_POINTER_EXCEPTION | 0)) == -1)
23486 SWIG_fail;
23487 if (arg6 == NULL) {
23488 PyErr_SetString(PyExc_TypeError,"null reference");
23489 SWIG_fail;
23490 }
23491 }
23492 if (obj6) {
23493 {
23494 arg7 = wxString_in_helper(obj6);
23495 if (arg7 == NULL) SWIG_fail;
23496 temp7 = True;
23497 }
23498 }
23499 {
23500 PyThreadState* __tstate = wxPyBeginAllowThreads();
23501 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23502
23503 wxPyEndAllowThreads(__tstate);
23504 if (PyErr_Occurred()) SWIG_fail;
23505 }
23506 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23507 {
23508 if (temp7)
23509 delete arg7;
23510 }
23511 return resultobj;
23512 fail:
23513 {
23514 if (temp7)
23515 delete arg7;
23516 }
23517 return NULL;
23518 }
23519
23520
23521 static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23522 PyObject *resultobj;
23523 wxListView *result;
23524 char *kwnames[] = {
23525 NULL
23526 };
23527
23528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23529 {
23530 PyThreadState* __tstate = wxPyBeginAllowThreads();
23531 result = (wxListView *)new wxListView();
23532
23533 wxPyEndAllowThreads(__tstate);
23534 if (PyErr_Occurred()) SWIG_fail;
23535 }
23536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23537 return resultobj;
23538 fail:
23539 return NULL;
23540 }
23541
23542
23543 static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23544 PyObject *resultobj;
23545 wxListView *arg1 = (wxListView *) 0 ;
23546 wxWindow *arg2 = (wxWindow *) 0 ;
23547 int arg3 = (int) -1 ;
23548 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23549 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23550 wxSize const &arg5_defvalue = wxDefaultSize ;
23551 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23552 long arg6 = (long) wxLC_REPORT ;
23553 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23554 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23555 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
23556 wxString *arg8 = (wxString *) &arg8_defvalue ;
23557 bool result;
23558 wxPoint temp4 ;
23559 wxSize temp5 ;
23560 bool temp8 = False ;
23561 PyObject * obj0 = 0 ;
23562 PyObject * obj1 = 0 ;
23563 PyObject * obj2 = 0 ;
23564 PyObject * obj3 = 0 ;
23565 PyObject * obj4 = 0 ;
23566 PyObject * obj5 = 0 ;
23567 PyObject * obj6 = 0 ;
23568 PyObject * obj7 = 0 ;
23569 char *kwnames[] = {
23570 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23571 };
23572
23573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23576 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23578 if (obj2) {
23579 arg3 = (int) SWIG_AsInt(obj2);
23580 if (PyErr_Occurred()) SWIG_fail;
23581 }
23582 if (obj3) {
23583 {
23584 arg4 = &temp4;
23585 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23586 }
23587 }
23588 if (obj4) {
23589 {
23590 arg5 = &temp5;
23591 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23592 }
23593 }
23594 if (obj5) {
23595 arg6 = (long) SWIG_AsLong(obj5);
23596 if (PyErr_Occurred()) SWIG_fail;
23597 }
23598 if (obj6) {
23599 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23600 SWIG_POINTER_EXCEPTION | 0)) == -1)
23601 SWIG_fail;
23602 if (arg7 == NULL) {
23603 PyErr_SetString(PyExc_TypeError,"null reference");
23604 SWIG_fail;
23605 }
23606 }
23607 if (obj7) {
23608 {
23609 arg8 = wxString_in_helper(obj7);
23610 if (arg8 == NULL) SWIG_fail;
23611 temp8 = True;
23612 }
23613 }
23614 {
23615 PyThreadState* __tstate = wxPyBeginAllowThreads();
23616 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23617
23618 wxPyEndAllowThreads(__tstate);
23619 if (PyErr_Occurred()) SWIG_fail;
23620 }
23621 {
23622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23623 }
23624 {
23625 if (temp8)
23626 delete arg8;
23627 }
23628 return resultobj;
23629 fail:
23630 {
23631 if (temp8)
23632 delete arg8;
23633 }
23634 return NULL;
23635 }
23636
23637
23638 static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
23639 PyObject *resultobj;
23640 wxListView *arg1 = (wxListView *) 0 ;
23641 long arg2 ;
23642 bool arg3 = (bool) True ;
23643 PyObject * obj0 = 0 ;
23644 PyObject * obj1 = 0 ;
23645 PyObject * obj2 = 0 ;
23646 char *kwnames[] = {
23647 (char *) "self",(char *) "n",(char *) "on", NULL
23648 };
23649
23650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
23651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23653 arg2 = (long) SWIG_AsLong(obj1);
23654 if (PyErr_Occurred()) SWIG_fail;
23655 if (obj2) {
23656 arg3 = (bool) SWIG_AsBool(obj2);
23657 if (PyErr_Occurred()) SWIG_fail;
23658 }
23659 {
23660 PyThreadState* __tstate = wxPyBeginAllowThreads();
23661 (arg1)->Select(arg2,arg3);
23662
23663 wxPyEndAllowThreads(__tstate);
23664 if (PyErr_Occurred()) SWIG_fail;
23665 }
23666 Py_INCREF(Py_None); resultobj = Py_None;
23667 return resultobj;
23668 fail:
23669 return NULL;
23670 }
23671
23672
23673 static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
23674 PyObject *resultobj;
23675 wxListView *arg1 = (wxListView *) 0 ;
23676 long arg2 ;
23677 PyObject * obj0 = 0 ;
23678 PyObject * obj1 = 0 ;
23679 char *kwnames[] = {
23680 (char *) "self",(char *) "index", NULL
23681 };
23682
23683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
23684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23686 arg2 = (long) SWIG_AsLong(obj1);
23687 if (PyErr_Occurred()) SWIG_fail;
23688 {
23689 PyThreadState* __tstate = wxPyBeginAllowThreads();
23690 (arg1)->Focus(arg2);
23691
23692 wxPyEndAllowThreads(__tstate);
23693 if (PyErr_Occurred()) SWIG_fail;
23694 }
23695 Py_INCREF(Py_None); resultobj = Py_None;
23696 return resultobj;
23697 fail:
23698 return NULL;
23699 }
23700
23701
23702 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23703 PyObject *resultobj;
23704 wxListView *arg1 = (wxListView *) 0 ;
23705 long result;
23706 PyObject * obj0 = 0 ;
23707 char *kwnames[] = {
23708 (char *) "self", NULL
23709 };
23710
23711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
23712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23714 {
23715 PyThreadState* __tstate = wxPyBeginAllowThreads();
23716 result = (long)((wxListView const *)arg1)->GetFocusedItem();
23717
23718 wxPyEndAllowThreads(__tstate);
23719 if (PyErr_Occurred()) SWIG_fail;
23720 }
23721 resultobj = SWIG_FromLong((long)result);
23722 return resultobj;
23723 fail:
23724 return NULL;
23725 }
23726
23727
23728 static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23729 PyObject *resultobj;
23730 wxListView *arg1 = (wxListView *) 0 ;
23731 long arg2 ;
23732 long result;
23733 PyObject * obj0 = 0 ;
23734 PyObject * obj1 = 0 ;
23735 char *kwnames[] = {
23736 (char *) "self",(char *) "item", NULL
23737 };
23738
23739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
23740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23742 arg2 = (long) SWIG_AsLong(obj1);
23743 if (PyErr_Occurred()) SWIG_fail;
23744 {
23745 PyThreadState* __tstate = wxPyBeginAllowThreads();
23746 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
23747
23748 wxPyEndAllowThreads(__tstate);
23749 if (PyErr_Occurred()) SWIG_fail;
23750 }
23751 resultobj = SWIG_FromLong((long)result);
23752 return resultobj;
23753 fail:
23754 return NULL;
23755 }
23756
23757
23758 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23759 PyObject *resultobj;
23760 wxListView *arg1 = (wxListView *) 0 ;
23761 long result;
23762 PyObject * obj0 = 0 ;
23763 char *kwnames[] = {
23764 (char *) "self", NULL
23765 };
23766
23767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
23768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23770 {
23771 PyThreadState* __tstate = wxPyBeginAllowThreads();
23772 result = (long)((wxListView const *)arg1)->GetFirstSelected();
23773
23774 wxPyEndAllowThreads(__tstate);
23775 if (PyErr_Occurred()) SWIG_fail;
23776 }
23777 resultobj = SWIG_FromLong((long)result);
23778 return resultobj;
23779 fail:
23780 return NULL;
23781 }
23782
23783
23784 static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23785 PyObject *resultobj;
23786 wxListView *arg1 = (wxListView *) 0 ;
23787 long arg2 ;
23788 bool result;
23789 PyObject * obj0 = 0 ;
23790 PyObject * obj1 = 0 ;
23791 char *kwnames[] = {
23792 (char *) "self",(char *) "index", NULL
23793 };
23794
23795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
23796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23798 arg2 = (long) SWIG_AsLong(obj1);
23799 if (PyErr_Occurred()) SWIG_fail;
23800 {
23801 PyThreadState* __tstate = wxPyBeginAllowThreads();
23802 result = (bool)(arg1)->IsSelected(arg2);
23803
23804 wxPyEndAllowThreads(__tstate);
23805 if (PyErr_Occurred()) SWIG_fail;
23806 }
23807 {
23808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23809 }
23810 return resultobj;
23811 fail:
23812 return NULL;
23813 }
23814
23815
23816 static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23817 PyObject *resultobj;
23818 wxListView *arg1 = (wxListView *) 0 ;
23819 int arg2 ;
23820 int arg3 ;
23821 PyObject * obj0 = 0 ;
23822 PyObject * obj1 = 0 ;
23823 PyObject * obj2 = 0 ;
23824 char *kwnames[] = {
23825 (char *) "self",(char *) "col",(char *) "image", NULL
23826 };
23827
23828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
23829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23831 arg2 = (int) SWIG_AsInt(obj1);
23832 if (PyErr_Occurred()) SWIG_fail;
23833 arg3 = (int) SWIG_AsInt(obj2);
23834 if (PyErr_Occurred()) SWIG_fail;
23835 {
23836 PyThreadState* __tstate = wxPyBeginAllowThreads();
23837 (arg1)->SetColumnImage(arg2,arg3);
23838
23839 wxPyEndAllowThreads(__tstate);
23840 if (PyErr_Occurred()) SWIG_fail;
23841 }
23842 Py_INCREF(Py_None); resultobj = Py_None;
23843 return resultobj;
23844 fail:
23845 return NULL;
23846 }
23847
23848
23849 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23850 PyObject *resultobj;
23851 wxListView *arg1 = (wxListView *) 0 ;
23852 int arg2 ;
23853 PyObject * obj0 = 0 ;
23854 PyObject * obj1 = 0 ;
23855 char *kwnames[] = {
23856 (char *) "self",(char *) "col", NULL
23857 };
23858
23859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
23860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23862 arg2 = (int) SWIG_AsInt(obj1);
23863 if (PyErr_Occurred()) SWIG_fail;
23864 {
23865 PyThreadState* __tstate = wxPyBeginAllowThreads();
23866 (arg1)->ClearColumnImage(arg2);
23867
23868 wxPyEndAllowThreads(__tstate);
23869 if (PyErr_Occurred()) SWIG_fail;
23870 }
23871 Py_INCREF(Py_None); resultobj = Py_None;
23872 return resultobj;
23873 fail:
23874 return NULL;
23875 }
23876
23877
23878 static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
23879 PyObject *obj;
23880 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23881 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
23882 Py_INCREF(obj);
23883 return Py_BuildValue((char *)"");
23884 }
23885 static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
23886 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
23887 return 1;
23888 }
23889
23890
23891 static PyObject *_wrap_TreeCtrlNameStr_get() {
23892 PyObject *pyobj;
23893
23894 {
23895 #if wxUSE_UNICODE
23896 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
23897 #else
23898 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
23899 #endif
23900 }
23901 return pyobj;
23902 }
23903
23904
23905 static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
23906 PyObject *resultobj;
23907 wxTreeItemId *result;
23908 char *kwnames[] = {
23909 NULL
23910 };
23911
23912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
23913 {
23914 PyThreadState* __tstate = wxPyBeginAllowThreads();
23915 result = (wxTreeItemId *)new wxTreeItemId();
23916
23917 wxPyEndAllowThreads(__tstate);
23918 if (PyErr_Occurred()) SWIG_fail;
23919 }
23920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
23921 return resultobj;
23922 fail:
23923 return NULL;
23924 }
23925
23926
23927 static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
23928 PyObject *resultobj;
23929 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23930 PyObject * obj0 = 0 ;
23931 char *kwnames[] = {
23932 (char *) "self", NULL
23933 };
23934
23935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
23936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23938 {
23939 PyThreadState* __tstate = wxPyBeginAllowThreads();
23940 delete arg1;
23941
23942 wxPyEndAllowThreads(__tstate);
23943 if (PyErr_Occurred()) SWIG_fail;
23944 }
23945 Py_INCREF(Py_None); resultobj = Py_None;
23946 return resultobj;
23947 fail:
23948 return NULL;
23949 }
23950
23951
23952 static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
23953 PyObject *resultobj;
23954 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23955 bool result;
23956 PyObject * obj0 = 0 ;
23957 char *kwnames[] = {
23958 (char *) "self", NULL
23959 };
23960
23961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
23962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23964 {
23965 PyThreadState* __tstate = wxPyBeginAllowThreads();
23966 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
23967
23968 wxPyEndAllowThreads(__tstate);
23969 if (PyErr_Occurred()) SWIG_fail;
23970 }
23971 {
23972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23973 }
23974 return resultobj;
23975 fail:
23976 return NULL;
23977 }
23978
23979
23980 static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23981 PyObject *resultobj;
23982 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23983 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
23984 bool result;
23985 PyObject * obj0 = 0 ;
23986 PyObject * obj1 = 0 ;
23987 char *kwnames[] = {
23988 (char *) "self",(char *) "other", NULL
23989 };
23990
23991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
23992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23994 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23996 {
23997 PyThreadState* __tstate = wxPyBeginAllowThreads();
23998 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
23999
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 {
24004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24005 }
24006 return resultobj;
24007 fail:
24008 return NULL;
24009 }
24010
24011
24012 static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
24013 PyObject *resultobj;
24014 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24015 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24016 bool result;
24017 PyObject * obj0 = 0 ;
24018 PyObject * obj1 = 0 ;
24019 char *kwnames[] = {
24020 (char *) "self",(char *) "other", NULL
24021 };
24022
24023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24026 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24028 {
24029 PyThreadState* __tstate = wxPyBeginAllowThreads();
24030 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24031
24032 wxPyEndAllowThreads(__tstate);
24033 if (PyErr_Occurred()) SWIG_fail;
24034 }
24035 {
24036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24037 }
24038 return resultobj;
24039 fail:
24040 return NULL;
24041 }
24042
24043
24044 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
24045 PyObject *resultobj;
24046 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24047 void *arg2 = (void *) 0 ;
24048 PyObject * obj0 = 0 ;
24049 PyObject * obj1 = 0 ;
24050 char *kwnames[] = {
24051 (char *) "self",(char *) "m_pItem", NULL
24052 };
24053
24054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24057 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24058 if (arg1) (arg1)->m_pItem = arg2;
24059
24060 Py_INCREF(Py_None); resultobj = Py_None;
24061 return resultobj;
24062 fail:
24063 return NULL;
24064 }
24065
24066
24067 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
24068 PyObject *resultobj;
24069 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24070 void *result;
24071 PyObject * obj0 = 0 ;
24072 char *kwnames[] = {
24073 (char *) "self", NULL
24074 };
24075
24076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24079 result = (void *) ((arg1)->m_pItem);
24080
24081 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24082 return resultobj;
24083 fail:
24084 return NULL;
24085 }
24086
24087
24088 static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
24089 PyObject *obj;
24090 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24091 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24092 Py_INCREF(obj);
24093 return Py_BuildValue((char *)"");
24094 }
24095 static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24096 PyObject *resultobj;
24097 PyObject *arg1 = (PyObject *) NULL ;
24098 wxPyTreeItemData *result;
24099 PyObject * obj0 = 0 ;
24100 char *kwnames[] = {
24101 (char *) "obj", NULL
24102 };
24103
24104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24105 if (obj0) {
24106 arg1 = obj0;
24107 }
24108 {
24109 PyThreadState* __tstate = wxPyBeginAllowThreads();
24110 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24111
24112 wxPyEndAllowThreads(__tstate);
24113 if (PyErr_Occurred()) SWIG_fail;
24114 }
24115 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24116 return resultobj;
24117 fail:
24118 return NULL;
24119 }
24120
24121
24122 static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24123 PyObject *resultobj;
24124 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24125 PyObject *result;
24126 PyObject * obj0 = 0 ;
24127 char *kwnames[] = {
24128 (char *) "self", NULL
24129 };
24130
24131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24134 {
24135 PyThreadState* __tstate = wxPyBeginAllowThreads();
24136 result = (PyObject *)(arg1)->GetData();
24137
24138 wxPyEndAllowThreads(__tstate);
24139 if (PyErr_Occurred()) SWIG_fail;
24140 }
24141 resultobj = result;
24142 return resultobj;
24143 fail:
24144 return NULL;
24145 }
24146
24147
24148 static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24149 PyObject *resultobj;
24150 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24151 PyObject *arg2 = (PyObject *) 0 ;
24152 PyObject * obj0 = 0 ;
24153 PyObject * obj1 = 0 ;
24154 char *kwnames[] = {
24155 (char *) "self",(char *) "obj", NULL
24156 };
24157
24158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24161 arg2 = obj1;
24162 {
24163 PyThreadState* __tstate = wxPyBeginAllowThreads();
24164 (arg1)->SetData(arg2);
24165
24166 wxPyEndAllowThreads(__tstate);
24167 if (PyErr_Occurred()) SWIG_fail;
24168 }
24169 Py_INCREF(Py_None); resultobj = Py_None;
24170 return resultobj;
24171 fail:
24172 return NULL;
24173 }
24174
24175
24176 static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24177 PyObject *resultobj;
24178 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24179 wxTreeItemId *result;
24180 PyObject * obj0 = 0 ;
24181 char *kwnames[] = {
24182 (char *) "self", NULL
24183 };
24184
24185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24188 {
24189 PyThreadState* __tstate = wxPyBeginAllowThreads();
24190 {
24191 wxTreeItemId const &_result_ref = (arg1)->GetId();
24192 result = (wxTreeItemId *) &_result_ref;
24193 }
24194
24195 wxPyEndAllowThreads(__tstate);
24196 if (PyErr_Occurred()) SWIG_fail;
24197 }
24198 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24199 return resultobj;
24200 fail:
24201 return NULL;
24202 }
24203
24204
24205 static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24206 PyObject *resultobj;
24207 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24208 wxTreeItemId *arg2 = 0 ;
24209 PyObject * obj0 = 0 ;
24210 PyObject * obj1 = 0 ;
24211 char *kwnames[] = {
24212 (char *) "self",(char *) "id", NULL
24213 };
24214
24215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24218 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24219 SWIG_POINTER_EXCEPTION | 0)) == -1)
24220 SWIG_fail;
24221 if (arg2 == NULL) {
24222 PyErr_SetString(PyExc_TypeError,"null reference");
24223 SWIG_fail;
24224 }
24225 {
24226 PyThreadState* __tstate = wxPyBeginAllowThreads();
24227 (arg1)->SetId((wxTreeItemId const &)*arg2);
24228
24229 wxPyEndAllowThreads(__tstate);
24230 if (PyErr_Occurred()) SWIG_fail;
24231 }
24232 Py_INCREF(Py_None); resultobj = Py_None;
24233 return resultobj;
24234 fail:
24235 return NULL;
24236 }
24237
24238
24239 static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
24240 PyObject *resultobj;
24241 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24242 PyObject * obj0 = 0 ;
24243 char *kwnames[] = {
24244 (char *) "self", NULL
24245 };
24246
24247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24250 {
24251 PyThreadState* __tstate = wxPyBeginAllowThreads();
24252 wxPyTreeItemData_Destroy(arg1);
24253
24254 wxPyEndAllowThreads(__tstate);
24255 if (PyErr_Occurred()) SWIG_fail;
24256 }
24257 Py_INCREF(Py_None); resultobj = Py_None;
24258 return resultobj;
24259 fail:
24260 return NULL;
24261 }
24262
24263
24264 static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
24265 PyObject *obj;
24266 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24267 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24268 Py_INCREF(obj);
24269 return Py_BuildValue((char *)"");
24270 }
24271 static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24272 PyObject *resultobj;
24273 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24274 int arg2 = (int) 0 ;
24275 wxTreeEvent *result;
24276 PyObject * obj0 = 0 ;
24277 PyObject * obj1 = 0 ;
24278 char *kwnames[] = {
24279 (char *) "commandType",(char *) "id", NULL
24280 };
24281
24282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24283 if (obj0) {
24284 arg1 = (wxEventType) SWIG_AsInt(obj0);
24285 if (PyErr_Occurred()) SWIG_fail;
24286 }
24287 if (obj1) {
24288 arg2 = (int) SWIG_AsInt(obj1);
24289 if (PyErr_Occurred()) SWIG_fail;
24290 }
24291 {
24292 PyThreadState* __tstate = wxPyBeginAllowThreads();
24293 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24294
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24299 return resultobj;
24300 fail:
24301 return NULL;
24302 }
24303
24304
24305 static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24306 PyObject *resultobj;
24307 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24308 wxTreeItemId result;
24309 PyObject * obj0 = 0 ;
24310 char *kwnames[] = {
24311 (char *) "self", NULL
24312 };
24313
24314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24317 {
24318 PyThreadState* __tstate = wxPyBeginAllowThreads();
24319 result = ((wxTreeEvent const *)arg1)->GetItem();
24320
24321 wxPyEndAllowThreads(__tstate);
24322 if (PyErr_Occurred()) SWIG_fail;
24323 }
24324 {
24325 wxTreeItemId * resultptr;
24326 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24327 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24328 }
24329 return resultobj;
24330 fail:
24331 return NULL;
24332 }
24333
24334
24335 static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24336 PyObject *resultobj;
24337 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24338 wxTreeItemId *arg2 = 0 ;
24339 PyObject * obj0 = 0 ;
24340 PyObject * obj1 = 0 ;
24341 char *kwnames[] = {
24342 (char *) "self",(char *) "item", NULL
24343 };
24344
24345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24349 SWIG_POINTER_EXCEPTION | 0)) == -1)
24350 SWIG_fail;
24351 if (arg2 == NULL) {
24352 PyErr_SetString(PyExc_TypeError,"null reference");
24353 SWIG_fail;
24354 }
24355 {
24356 PyThreadState* __tstate = wxPyBeginAllowThreads();
24357 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24358
24359 wxPyEndAllowThreads(__tstate);
24360 if (PyErr_Occurred()) SWIG_fail;
24361 }
24362 Py_INCREF(Py_None); resultobj = Py_None;
24363 return resultobj;
24364 fail:
24365 return NULL;
24366 }
24367
24368
24369 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24370 PyObject *resultobj;
24371 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24372 wxTreeItemId result;
24373 PyObject * obj0 = 0 ;
24374 char *kwnames[] = {
24375 (char *) "self", NULL
24376 };
24377
24378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24381 {
24382 PyThreadState* __tstate = wxPyBeginAllowThreads();
24383 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24384
24385 wxPyEndAllowThreads(__tstate);
24386 if (PyErr_Occurred()) SWIG_fail;
24387 }
24388 {
24389 wxTreeItemId * resultptr;
24390 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24391 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24392 }
24393 return resultobj;
24394 fail:
24395 return NULL;
24396 }
24397
24398
24399 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24400 PyObject *resultobj;
24401 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24402 wxTreeItemId *arg2 = 0 ;
24403 PyObject * obj0 = 0 ;
24404 PyObject * obj1 = 0 ;
24405 char *kwnames[] = {
24406 (char *) "self",(char *) "item", NULL
24407 };
24408
24409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24412 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24413 SWIG_POINTER_EXCEPTION | 0)) == -1)
24414 SWIG_fail;
24415 if (arg2 == NULL) {
24416 PyErr_SetString(PyExc_TypeError,"null reference");
24417 SWIG_fail;
24418 }
24419 {
24420 PyThreadState* __tstate = wxPyBeginAllowThreads();
24421 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24422
24423 wxPyEndAllowThreads(__tstate);
24424 if (PyErr_Occurred()) SWIG_fail;
24425 }
24426 Py_INCREF(Py_None); resultobj = Py_None;
24427 return resultobj;
24428 fail:
24429 return NULL;
24430 }
24431
24432
24433 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24434 PyObject *resultobj;
24435 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24436 wxPoint result;
24437 PyObject * obj0 = 0 ;
24438 char *kwnames[] = {
24439 (char *) "self", NULL
24440 };
24441
24442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24445 {
24446 PyThreadState* __tstate = wxPyBeginAllowThreads();
24447 result = ((wxTreeEvent const *)arg1)->GetPoint();
24448
24449 wxPyEndAllowThreads(__tstate);
24450 if (PyErr_Occurred()) SWIG_fail;
24451 }
24452 {
24453 wxPoint * resultptr;
24454 resultptr = new wxPoint((wxPoint &) result);
24455 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24456 }
24457 return resultobj;
24458 fail:
24459 return NULL;
24460 }
24461
24462
24463 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24464 PyObject *resultobj;
24465 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24466 wxPoint *arg2 = 0 ;
24467 wxPoint temp2 ;
24468 PyObject * obj0 = 0 ;
24469 PyObject * obj1 = 0 ;
24470 char *kwnames[] = {
24471 (char *) "self",(char *) "pt", NULL
24472 };
24473
24474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24477 {
24478 arg2 = &temp2;
24479 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24480 }
24481 {
24482 PyThreadState* __tstate = wxPyBeginAllowThreads();
24483 (arg1)->SetPoint((wxPoint const &)*arg2);
24484
24485 wxPyEndAllowThreads(__tstate);
24486 if (PyErr_Occurred()) SWIG_fail;
24487 }
24488 Py_INCREF(Py_None); resultobj = Py_None;
24489 return resultobj;
24490 fail:
24491 return NULL;
24492 }
24493
24494
24495 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24496 PyObject *resultobj;
24497 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24498 wxKeyEvent *result;
24499 PyObject * obj0 = 0 ;
24500 char *kwnames[] = {
24501 (char *) "self", NULL
24502 };
24503
24504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24507 {
24508 PyThreadState* __tstate = wxPyBeginAllowThreads();
24509 {
24510 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24511 result = (wxKeyEvent *) &_result_ref;
24512 }
24513
24514 wxPyEndAllowThreads(__tstate);
24515 if (PyErr_Occurred()) SWIG_fail;
24516 }
24517 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24518 return resultobj;
24519 fail:
24520 return NULL;
24521 }
24522
24523
24524 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
24525 PyObject *resultobj;
24526 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24527 int result;
24528 PyObject * obj0 = 0 ;
24529 char *kwnames[] = {
24530 (char *) "self", NULL
24531 };
24532
24533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24536 {
24537 PyThreadState* __tstate = wxPyBeginAllowThreads();
24538 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
24539
24540 wxPyEndAllowThreads(__tstate);
24541 if (PyErr_Occurred()) SWIG_fail;
24542 }
24543 resultobj = SWIG_FromInt((int)result);
24544 return resultobj;
24545 fail:
24546 return NULL;
24547 }
24548
24549
24550 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24551 PyObject *resultobj;
24552 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24553 wxKeyEvent *arg2 = 0 ;
24554 PyObject * obj0 = 0 ;
24555 PyObject * obj1 = 0 ;
24556 char *kwnames[] = {
24557 (char *) "self",(char *) "evt", NULL
24558 };
24559
24560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
24561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24563 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
24564 SWIG_POINTER_EXCEPTION | 0)) == -1)
24565 SWIG_fail;
24566 if (arg2 == NULL) {
24567 PyErr_SetString(PyExc_TypeError,"null reference");
24568 SWIG_fail;
24569 }
24570 {
24571 PyThreadState* __tstate = wxPyBeginAllowThreads();
24572 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
24573
24574 wxPyEndAllowThreads(__tstate);
24575 if (PyErr_Occurred()) SWIG_fail;
24576 }
24577 Py_INCREF(Py_None); resultobj = Py_None;
24578 return resultobj;
24579 fail:
24580 return NULL;
24581 }
24582
24583
24584 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24585 PyObject *resultobj;
24586 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24587 wxString *result;
24588 PyObject * obj0 = 0 ;
24589 char *kwnames[] = {
24590 (char *) "self", NULL
24591 };
24592
24593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
24594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24596 {
24597 PyThreadState* __tstate = wxPyBeginAllowThreads();
24598 {
24599 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
24600 result = (wxString *) &_result_ref;
24601 }
24602
24603 wxPyEndAllowThreads(__tstate);
24604 if (PyErr_Occurred()) SWIG_fail;
24605 }
24606 {
24607 #if wxUSE_UNICODE
24608 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24609 #else
24610 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24611 #endif
24612 }
24613 return resultobj;
24614 fail:
24615 return NULL;
24616 }
24617
24618
24619 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24620 PyObject *resultobj;
24621 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24622 wxString *arg2 = 0 ;
24623 bool temp2 = False ;
24624 PyObject * obj0 = 0 ;
24625 PyObject * obj1 = 0 ;
24626 char *kwnames[] = {
24627 (char *) "self",(char *) "label", NULL
24628 };
24629
24630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
24631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24633 {
24634 arg2 = wxString_in_helper(obj1);
24635 if (arg2 == NULL) SWIG_fail;
24636 temp2 = True;
24637 }
24638 {
24639 PyThreadState* __tstate = wxPyBeginAllowThreads();
24640 (arg1)->SetLabel((wxString const &)*arg2);
24641
24642 wxPyEndAllowThreads(__tstate);
24643 if (PyErr_Occurred()) SWIG_fail;
24644 }
24645 Py_INCREF(Py_None); resultobj = Py_None;
24646 {
24647 if (temp2)
24648 delete arg2;
24649 }
24650 return resultobj;
24651 fail:
24652 {
24653 if (temp2)
24654 delete arg2;
24655 }
24656 return NULL;
24657 }
24658
24659
24660 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
24661 PyObject *resultobj;
24662 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24663 bool result;
24664 PyObject * obj0 = 0 ;
24665 char *kwnames[] = {
24666 (char *) "self", NULL
24667 };
24668
24669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
24670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24672 {
24673 PyThreadState* __tstate = wxPyBeginAllowThreads();
24674 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
24675
24676 wxPyEndAllowThreads(__tstate);
24677 if (PyErr_Occurred()) SWIG_fail;
24678 }
24679 {
24680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24681 }
24682 return resultobj;
24683 fail:
24684 return NULL;
24685 }
24686
24687
24688 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
24689 PyObject *resultobj;
24690 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24691 bool arg2 ;
24692 PyObject * obj0 = 0 ;
24693 PyObject * obj1 = 0 ;
24694 char *kwnames[] = {
24695 (char *) "self",(char *) "editCancelled", NULL
24696 };
24697
24698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
24699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24701 arg2 = (bool) SWIG_AsBool(obj1);
24702 if (PyErr_Occurred()) SWIG_fail;
24703 {
24704 PyThreadState* __tstate = wxPyBeginAllowThreads();
24705 (arg1)->SetEditCanceled(arg2);
24706
24707 wxPyEndAllowThreads(__tstate);
24708 if (PyErr_Occurred()) SWIG_fail;
24709 }
24710 Py_INCREF(Py_None); resultobj = Py_None;
24711 return resultobj;
24712 fail:
24713 return NULL;
24714 }
24715
24716
24717 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
24718 PyObject *resultobj;
24719 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24720 wxString *arg2 = 0 ;
24721 bool temp2 = False ;
24722 PyObject * obj0 = 0 ;
24723 PyObject * obj1 = 0 ;
24724 char *kwnames[] = {
24725 (char *) "self",(char *) "toolTip", NULL
24726 };
24727
24728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
24729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24731 {
24732 arg2 = wxString_in_helper(obj1);
24733 if (arg2 == NULL) SWIG_fail;
24734 temp2 = True;
24735 }
24736 {
24737 PyThreadState* __tstate = wxPyBeginAllowThreads();
24738 (arg1)->SetToolTip((wxString const &)*arg2);
24739
24740 wxPyEndAllowThreads(__tstate);
24741 if (PyErr_Occurred()) SWIG_fail;
24742 }
24743 Py_INCREF(Py_None); resultobj = Py_None;
24744 {
24745 if (temp2)
24746 delete arg2;
24747 }
24748 return resultobj;
24749 fail:
24750 {
24751 if (temp2)
24752 delete arg2;
24753 }
24754 return NULL;
24755 }
24756
24757
24758 static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
24759 PyObject *obj;
24760 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24761 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
24762 Py_INCREF(obj);
24763 return Py_BuildValue((char *)"");
24764 }
24765 static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24766 PyObject *resultobj;
24767 wxWindow *arg1 = (wxWindow *) 0 ;
24768 int arg2 = (int) -1 ;
24769 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24770 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24771 wxSize const &arg4_defvalue = wxDefaultSize ;
24772 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24773 long arg5 = (long) wxTR_DEFAULT_STYLE ;
24774 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24775 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24776 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
24777 wxString *arg7 = (wxString *) &arg7_defvalue ;
24778 wxPyTreeCtrl *result;
24779 wxPoint temp3 ;
24780 wxSize temp4 ;
24781 bool temp7 = False ;
24782 PyObject * obj0 = 0 ;
24783 PyObject * obj1 = 0 ;
24784 PyObject * obj2 = 0 ;
24785 PyObject * obj3 = 0 ;
24786 PyObject * obj4 = 0 ;
24787 PyObject * obj5 = 0 ;
24788 PyObject * obj6 = 0 ;
24789 char *kwnames[] = {
24790 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24791 };
24792
24793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24796 if (obj1) {
24797 arg2 = (int) SWIG_AsInt(obj1);
24798 if (PyErr_Occurred()) SWIG_fail;
24799 }
24800 if (obj2) {
24801 {
24802 arg3 = &temp3;
24803 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24804 }
24805 }
24806 if (obj3) {
24807 {
24808 arg4 = &temp4;
24809 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24810 }
24811 }
24812 if (obj4) {
24813 arg5 = (long) SWIG_AsLong(obj4);
24814 if (PyErr_Occurred()) SWIG_fail;
24815 }
24816 if (obj5) {
24817 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24818 SWIG_POINTER_EXCEPTION | 0)) == -1)
24819 SWIG_fail;
24820 if (arg6 == NULL) {
24821 PyErr_SetString(PyExc_TypeError,"null reference");
24822 SWIG_fail;
24823 }
24824 }
24825 if (obj6) {
24826 {
24827 arg7 = wxString_in_helper(obj6);
24828 if (arg7 == NULL) SWIG_fail;
24829 temp7 = True;
24830 }
24831 }
24832 {
24833 PyThreadState* __tstate = wxPyBeginAllowThreads();
24834 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24835
24836 wxPyEndAllowThreads(__tstate);
24837 if (PyErr_Occurred()) SWIG_fail;
24838 }
24839 {
24840 resultobj = wxPyMake_wxObject(result);
24841 }
24842 {
24843 if (temp7)
24844 delete arg7;
24845 }
24846 return resultobj;
24847 fail:
24848 {
24849 if (temp7)
24850 delete arg7;
24851 }
24852 return NULL;
24853 }
24854
24855
24856 static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24857 PyObject *resultobj;
24858 wxPyTreeCtrl *result;
24859 char *kwnames[] = {
24860 NULL
24861 };
24862
24863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
24864 {
24865 PyThreadState* __tstate = wxPyBeginAllowThreads();
24866 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
24867
24868 wxPyEndAllowThreads(__tstate);
24869 if (PyErr_Occurred()) SWIG_fail;
24870 }
24871 {
24872 resultobj = wxPyMake_wxObject(result);
24873 }
24874 return resultobj;
24875 fail:
24876 return NULL;
24877 }
24878
24879
24880 static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
24881 PyObject *resultobj;
24882 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24883 wxWindow *arg2 = (wxWindow *) 0 ;
24884 int arg3 = (int) -1 ;
24885 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24886 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24887 wxSize const &arg5_defvalue = wxDefaultSize ;
24888 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24889 long arg6 = (long) wxTR_DEFAULT_STYLE ;
24890 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24891 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24892 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
24893 wxString *arg8 = (wxString *) &arg8_defvalue ;
24894 bool result;
24895 wxPoint temp4 ;
24896 wxSize temp5 ;
24897 bool temp8 = False ;
24898 PyObject * obj0 = 0 ;
24899 PyObject * obj1 = 0 ;
24900 PyObject * obj2 = 0 ;
24901 PyObject * obj3 = 0 ;
24902 PyObject * obj4 = 0 ;
24903 PyObject * obj5 = 0 ;
24904 PyObject * obj6 = 0 ;
24905 PyObject * obj7 = 0 ;
24906 char *kwnames[] = {
24907 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24908 };
24909
24910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24913 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24915 if (obj2) {
24916 arg3 = (int) SWIG_AsInt(obj2);
24917 if (PyErr_Occurred()) SWIG_fail;
24918 }
24919 if (obj3) {
24920 {
24921 arg4 = &temp4;
24922 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24923 }
24924 }
24925 if (obj4) {
24926 {
24927 arg5 = &temp5;
24928 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24929 }
24930 }
24931 if (obj5) {
24932 arg6 = (long) SWIG_AsLong(obj5);
24933 if (PyErr_Occurred()) SWIG_fail;
24934 }
24935 if (obj6) {
24936 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24937 SWIG_POINTER_EXCEPTION | 0)) == -1)
24938 SWIG_fail;
24939 if (arg7 == NULL) {
24940 PyErr_SetString(PyExc_TypeError,"null reference");
24941 SWIG_fail;
24942 }
24943 }
24944 if (obj7) {
24945 {
24946 arg8 = wxString_in_helper(obj7);
24947 if (arg8 == NULL) SWIG_fail;
24948 temp8 = True;
24949 }
24950 }
24951 {
24952 PyThreadState* __tstate = wxPyBeginAllowThreads();
24953 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24954
24955 wxPyEndAllowThreads(__tstate);
24956 if (PyErr_Occurred()) SWIG_fail;
24957 }
24958 {
24959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24960 }
24961 {
24962 if (temp8)
24963 delete arg8;
24964 }
24965 return resultobj;
24966 fail:
24967 {
24968 if (temp8)
24969 delete arg8;
24970 }
24971 return NULL;
24972 }
24973
24974
24975 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24976 PyObject *resultobj;
24977 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24978 PyObject *arg2 = (PyObject *) 0 ;
24979 PyObject *arg3 = (PyObject *) 0 ;
24980 PyObject * obj0 = 0 ;
24981 PyObject * obj1 = 0 ;
24982 PyObject * obj2 = 0 ;
24983 char *kwnames[] = {
24984 (char *) "self",(char *) "self",(char *) "_class", NULL
24985 };
24986
24987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24990 arg2 = obj1;
24991 arg3 = obj2;
24992 {
24993 PyThreadState* __tstate = wxPyBeginAllowThreads();
24994 (arg1)->_setCallbackInfo(arg2,arg3);
24995
24996 wxPyEndAllowThreads(__tstate);
24997 if (PyErr_Occurred()) SWIG_fail;
24998 }
24999 Py_INCREF(Py_None); resultobj = Py_None;
25000 return resultobj;
25001 fail:
25002 return NULL;
25003 }
25004
25005
25006 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
25007 PyObject *resultobj;
25008 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25009 size_t result;
25010 PyObject * obj0 = 0 ;
25011 char *kwnames[] = {
25012 (char *) "self", NULL
25013 };
25014
25015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25018 {
25019 PyThreadState* __tstate = wxPyBeginAllowThreads();
25020 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25021
25022 wxPyEndAllowThreads(__tstate);
25023 if (PyErr_Occurred()) SWIG_fail;
25024 }
25025 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25026 return resultobj;
25027 fail:
25028 return NULL;
25029 }
25030
25031
25032 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25033 PyObject *resultobj;
25034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25035 unsigned int result;
25036 PyObject * obj0 = 0 ;
25037 char *kwnames[] = {
25038 (char *) "self", NULL
25039 };
25040
25041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25044 {
25045 PyThreadState* __tstate = wxPyBeginAllowThreads();
25046 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25047
25048 wxPyEndAllowThreads(__tstate);
25049 if (PyErr_Occurred()) SWIG_fail;
25050 }
25051 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25052 return resultobj;
25053 fail:
25054 return NULL;
25055 }
25056
25057
25058 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25059 PyObject *resultobj;
25060 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25061 unsigned int arg2 ;
25062 PyObject * obj0 = 0 ;
25063 PyObject * obj1 = 0 ;
25064 char *kwnames[] = {
25065 (char *) "self",(char *) "indent", NULL
25066 };
25067
25068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25071 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 {
25074 PyThreadState* __tstate = wxPyBeginAllowThreads();
25075 (arg1)->SetIndent(arg2);
25076
25077 wxPyEndAllowThreads(__tstate);
25078 if (PyErr_Occurred()) SWIG_fail;
25079 }
25080 Py_INCREF(Py_None); resultobj = Py_None;
25081 return resultobj;
25082 fail:
25083 return NULL;
25084 }
25085
25086
25087 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25088 PyObject *resultobj;
25089 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25090 unsigned int result;
25091 PyObject * obj0 = 0 ;
25092 char *kwnames[] = {
25093 (char *) "self", NULL
25094 };
25095
25096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25099 {
25100 PyThreadState* __tstate = wxPyBeginAllowThreads();
25101 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25102
25103 wxPyEndAllowThreads(__tstate);
25104 if (PyErr_Occurred()) SWIG_fail;
25105 }
25106 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25107 return resultobj;
25108 fail:
25109 return NULL;
25110 }
25111
25112
25113 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25114 PyObject *resultobj;
25115 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25116 unsigned int arg2 ;
25117 PyObject * obj0 = 0 ;
25118 PyObject * obj1 = 0 ;
25119 char *kwnames[] = {
25120 (char *) "self",(char *) "spacing", NULL
25121 };
25122
25123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25126 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25127 if (PyErr_Occurred()) SWIG_fail;
25128 {
25129 PyThreadState* __tstate = wxPyBeginAllowThreads();
25130 (arg1)->SetSpacing(arg2);
25131
25132 wxPyEndAllowThreads(__tstate);
25133 if (PyErr_Occurred()) SWIG_fail;
25134 }
25135 Py_INCREF(Py_None); resultobj = Py_None;
25136 return resultobj;
25137 fail:
25138 return NULL;
25139 }
25140
25141
25142 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25143 PyObject *resultobj;
25144 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25145 wxImageList *result;
25146 PyObject * obj0 = 0 ;
25147 char *kwnames[] = {
25148 (char *) "self", NULL
25149 };
25150
25151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25154 {
25155 PyThreadState* __tstate = wxPyBeginAllowThreads();
25156 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25157
25158 wxPyEndAllowThreads(__tstate);
25159 if (PyErr_Occurred()) SWIG_fail;
25160 }
25161 {
25162 resultobj = wxPyMake_wxObject(result);
25163 }
25164 return resultobj;
25165 fail:
25166 return NULL;
25167 }
25168
25169
25170 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25171 PyObject *resultobj;
25172 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25173 wxImageList *result;
25174 PyObject * obj0 = 0 ;
25175 char *kwnames[] = {
25176 (char *) "self", NULL
25177 };
25178
25179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25182 {
25183 PyThreadState* __tstate = wxPyBeginAllowThreads();
25184 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25185
25186 wxPyEndAllowThreads(__tstate);
25187 if (PyErr_Occurred()) SWIG_fail;
25188 }
25189 {
25190 resultobj = wxPyMake_wxObject(result);
25191 }
25192 return resultobj;
25193 fail:
25194 return NULL;
25195 }
25196
25197
25198 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25199 PyObject *resultobj;
25200 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25201 wxImageList *arg2 = (wxImageList *) 0 ;
25202 PyObject * obj0 = 0 ;
25203 PyObject * obj1 = 0 ;
25204 char *kwnames[] = {
25205 (char *) "self",(char *) "imageList", NULL
25206 };
25207
25208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25211 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25213 {
25214 PyThreadState* __tstate = wxPyBeginAllowThreads();
25215 (arg1)->SetImageList(arg2);
25216
25217 wxPyEndAllowThreads(__tstate);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 Py_INCREF(Py_None); resultobj = Py_None;
25221 return resultobj;
25222 fail:
25223 return NULL;
25224 }
25225
25226
25227 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25228 PyObject *resultobj;
25229 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25230 wxImageList *arg2 = (wxImageList *) 0 ;
25231 PyObject * obj0 = 0 ;
25232 PyObject * obj1 = 0 ;
25233 char *kwnames[] = {
25234 (char *) "self",(char *) "imageList", NULL
25235 };
25236
25237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25240 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25242 {
25243 PyThreadState* __tstate = wxPyBeginAllowThreads();
25244 (arg1)->SetStateImageList(arg2);
25245
25246 wxPyEndAllowThreads(__tstate);
25247 if (PyErr_Occurred()) SWIG_fail;
25248 }
25249 Py_INCREF(Py_None); resultobj = Py_None;
25250 return resultobj;
25251 fail:
25252 return NULL;
25253 }
25254
25255
25256 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25257 PyObject *resultobj;
25258 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25259 wxImageList *arg2 = (wxImageList *) 0 ;
25260 PyObject * obj0 = 0 ;
25261 PyObject * obj1 = 0 ;
25262 char *kwnames[] = {
25263 (char *) "self",(char *) "imageList", NULL
25264 };
25265
25266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25269 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25270 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25271 {
25272 PyThreadState* __tstate = wxPyBeginAllowThreads();
25273 (arg1)->AssignImageList(arg2);
25274
25275 wxPyEndAllowThreads(__tstate);
25276 if (PyErr_Occurred()) SWIG_fail;
25277 }
25278 Py_INCREF(Py_None); resultobj = Py_None;
25279 return resultobj;
25280 fail:
25281 return NULL;
25282 }
25283
25284
25285 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25286 PyObject *resultobj;
25287 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25288 wxImageList *arg2 = (wxImageList *) 0 ;
25289 PyObject * obj0 = 0 ;
25290 PyObject * obj1 = 0 ;
25291 char *kwnames[] = {
25292 (char *) "self",(char *) "imageList", NULL
25293 };
25294
25295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25298 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25299 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25300 {
25301 PyThreadState* __tstate = wxPyBeginAllowThreads();
25302 (arg1)->AssignStateImageList(arg2);
25303
25304 wxPyEndAllowThreads(__tstate);
25305 if (PyErr_Occurred()) SWIG_fail;
25306 }
25307 Py_INCREF(Py_None); resultobj = Py_None;
25308 return resultobj;
25309 fail:
25310 return NULL;
25311 }
25312
25313
25314 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25315 PyObject *resultobj;
25316 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25317 wxTreeItemId *arg2 = 0 ;
25318 wxString result;
25319 PyObject * obj0 = 0 ;
25320 PyObject * obj1 = 0 ;
25321 char *kwnames[] = {
25322 (char *) "self",(char *) "item", NULL
25323 };
25324
25325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25328 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25329 SWIG_POINTER_EXCEPTION | 0)) == -1)
25330 SWIG_fail;
25331 if (arg2 == NULL) {
25332 PyErr_SetString(PyExc_TypeError,"null reference");
25333 SWIG_fail;
25334 }
25335 {
25336 PyThreadState* __tstate = wxPyBeginAllowThreads();
25337 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25338
25339 wxPyEndAllowThreads(__tstate);
25340 if (PyErr_Occurred()) SWIG_fail;
25341 }
25342 {
25343 #if wxUSE_UNICODE
25344 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25345 #else
25346 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25347 #endif
25348 }
25349 return resultobj;
25350 fail:
25351 return NULL;
25352 }
25353
25354
25355 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25356 PyObject *resultobj;
25357 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25358 wxTreeItemId *arg2 = 0 ;
25359 int arg3 = (int) wxTreeItemIcon_Normal ;
25360 int result;
25361 PyObject * obj0 = 0 ;
25362 PyObject * obj1 = 0 ;
25363 PyObject * obj2 = 0 ;
25364 char *kwnames[] = {
25365 (char *) "self",(char *) "item",(char *) "which", NULL
25366 };
25367
25368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25371 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25372 SWIG_POINTER_EXCEPTION | 0)) == -1)
25373 SWIG_fail;
25374 if (arg2 == NULL) {
25375 PyErr_SetString(PyExc_TypeError,"null reference");
25376 SWIG_fail;
25377 }
25378 if (obj2) {
25379 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
25380 if (PyErr_Occurred()) SWIG_fail;
25381 }
25382 {
25383 PyThreadState* __tstate = wxPyBeginAllowThreads();
25384 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25385
25386 wxPyEndAllowThreads(__tstate);
25387 if (PyErr_Occurred()) SWIG_fail;
25388 }
25389 resultobj = SWIG_FromInt((int)result);
25390 return resultobj;
25391 fail:
25392 return NULL;
25393 }
25394
25395
25396 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25397 PyObject *resultobj;
25398 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25399 wxTreeItemId *arg2 = 0 ;
25400 wxPyTreeItemData *result;
25401 PyObject * obj0 = 0 ;
25402 PyObject * obj1 = 0 ;
25403 char *kwnames[] = {
25404 (char *) "self",(char *) "item", NULL
25405 };
25406
25407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25410 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25411 SWIG_POINTER_EXCEPTION | 0)) == -1)
25412 SWIG_fail;
25413 if (arg2 == NULL) {
25414 PyErr_SetString(PyExc_TypeError,"null reference");
25415 SWIG_fail;
25416 }
25417 {
25418 PyThreadState* __tstate = wxPyBeginAllowThreads();
25419 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25420
25421 wxPyEndAllowThreads(__tstate);
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25425 return resultobj;
25426 fail:
25427 return NULL;
25428 }
25429
25430
25431 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25432 PyObject *resultobj;
25433 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25434 wxTreeItemId *arg2 = 0 ;
25435 PyObject *result;
25436 PyObject * obj0 = 0 ;
25437 PyObject * obj1 = 0 ;
25438 char *kwnames[] = {
25439 (char *) "self",(char *) "item", NULL
25440 };
25441
25442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25446 SWIG_POINTER_EXCEPTION | 0)) == -1)
25447 SWIG_fail;
25448 if (arg2 == NULL) {
25449 PyErr_SetString(PyExc_TypeError,"null reference");
25450 SWIG_fail;
25451 }
25452 {
25453 PyThreadState* __tstate = wxPyBeginAllowThreads();
25454 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25455
25456 wxPyEndAllowThreads(__tstate);
25457 if (PyErr_Occurred()) SWIG_fail;
25458 }
25459 resultobj = result;
25460 return resultobj;
25461 fail:
25462 return NULL;
25463 }
25464
25465
25466 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25467 PyObject *resultobj;
25468 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25469 wxTreeItemId *arg2 = 0 ;
25470 wxColour result;
25471 PyObject * obj0 = 0 ;
25472 PyObject * obj1 = 0 ;
25473 char *kwnames[] = {
25474 (char *) "self",(char *) "item", NULL
25475 };
25476
25477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25480 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25481 SWIG_POINTER_EXCEPTION | 0)) == -1)
25482 SWIG_fail;
25483 if (arg2 == NULL) {
25484 PyErr_SetString(PyExc_TypeError,"null reference");
25485 SWIG_fail;
25486 }
25487 {
25488 PyThreadState* __tstate = wxPyBeginAllowThreads();
25489 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25490
25491 wxPyEndAllowThreads(__tstate);
25492 if (PyErr_Occurred()) SWIG_fail;
25493 }
25494 {
25495 wxColour * resultptr;
25496 resultptr = new wxColour((wxColour &) result);
25497 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25498 }
25499 return resultobj;
25500 fail:
25501 return NULL;
25502 }
25503
25504
25505 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25506 PyObject *resultobj;
25507 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25508 wxTreeItemId *arg2 = 0 ;
25509 wxColour result;
25510 PyObject * obj0 = 0 ;
25511 PyObject * obj1 = 0 ;
25512 char *kwnames[] = {
25513 (char *) "self",(char *) "item", NULL
25514 };
25515
25516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25519 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25520 SWIG_POINTER_EXCEPTION | 0)) == -1)
25521 SWIG_fail;
25522 if (arg2 == NULL) {
25523 PyErr_SetString(PyExc_TypeError,"null reference");
25524 SWIG_fail;
25525 }
25526 {
25527 PyThreadState* __tstate = wxPyBeginAllowThreads();
25528 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25529
25530 wxPyEndAllowThreads(__tstate);
25531 if (PyErr_Occurred()) SWIG_fail;
25532 }
25533 {
25534 wxColour * resultptr;
25535 resultptr = new wxColour((wxColour &) result);
25536 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25537 }
25538 return resultobj;
25539 fail:
25540 return NULL;
25541 }
25542
25543
25544 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25545 PyObject *resultobj;
25546 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25547 wxTreeItemId *arg2 = 0 ;
25548 wxFont result;
25549 PyObject * obj0 = 0 ;
25550 PyObject * obj1 = 0 ;
25551 char *kwnames[] = {
25552 (char *) "self",(char *) "item", NULL
25553 };
25554
25555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
25556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25558 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25559 SWIG_POINTER_EXCEPTION | 0)) == -1)
25560 SWIG_fail;
25561 if (arg2 == NULL) {
25562 PyErr_SetString(PyExc_TypeError,"null reference");
25563 SWIG_fail;
25564 }
25565 {
25566 PyThreadState* __tstate = wxPyBeginAllowThreads();
25567 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
25568
25569 wxPyEndAllowThreads(__tstate);
25570 if (PyErr_Occurred()) SWIG_fail;
25571 }
25572 {
25573 wxFont * resultptr;
25574 resultptr = new wxFont((wxFont &) result);
25575 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
25576 }
25577 return resultobj;
25578 fail:
25579 return NULL;
25580 }
25581
25582
25583 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25584 PyObject *resultobj;
25585 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25586 wxTreeItemId *arg2 = 0 ;
25587 wxString *arg3 = 0 ;
25588 bool temp3 = False ;
25589 PyObject * obj0 = 0 ;
25590 PyObject * obj1 = 0 ;
25591 PyObject * obj2 = 0 ;
25592 char *kwnames[] = {
25593 (char *) "self",(char *) "item",(char *) "text", NULL
25594 };
25595
25596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
25597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25600 SWIG_POINTER_EXCEPTION | 0)) == -1)
25601 SWIG_fail;
25602 if (arg2 == NULL) {
25603 PyErr_SetString(PyExc_TypeError,"null reference");
25604 SWIG_fail;
25605 }
25606 {
25607 arg3 = wxString_in_helper(obj2);
25608 if (arg3 == NULL) SWIG_fail;
25609 temp3 = True;
25610 }
25611 {
25612 PyThreadState* __tstate = wxPyBeginAllowThreads();
25613 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
25614
25615 wxPyEndAllowThreads(__tstate);
25616 if (PyErr_Occurred()) SWIG_fail;
25617 }
25618 Py_INCREF(Py_None); resultobj = Py_None;
25619 {
25620 if (temp3)
25621 delete arg3;
25622 }
25623 return resultobj;
25624 fail:
25625 {
25626 if (temp3)
25627 delete arg3;
25628 }
25629 return NULL;
25630 }
25631
25632
25633 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25634 PyObject *resultobj;
25635 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25636 wxTreeItemId *arg2 = 0 ;
25637 int arg3 ;
25638 int arg4 = (int) wxTreeItemIcon_Normal ;
25639 PyObject * obj0 = 0 ;
25640 PyObject * obj1 = 0 ;
25641 PyObject * obj2 = 0 ;
25642 PyObject * obj3 = 0 ;
25643 char *kwnames[] = {
25644 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
25645 };
25646
25647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25650 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25651 SWIG_POINTER_EXCEPTION | 0)) == -1)
25652 SWIG_fail;
25653 if (arg2 == NULL) {
25654 PyErr_SetString(PyExc_TypeError,"null reference");
25655 SWIG_fail;
25656 }
25657 arg3 = (int) SWIG_AsInt(obj2);
25658 if (PyErr_Occurred()) SWIG_fail;
25659 if (obj3) {
25660 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
25661 if (PyErr_Occurred()) SWIG_fail;
25662 }
25663 {
25664 PyThreadState* __tstate = wxPyBeginAllowThreads();
25665 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
25666
25667 wxPyEndAllowThreads(__tstate);
25668 if (PyErr_Occurred()) SWIG_fail;
25669 }
25670 Py_INCREF(Py_None); resultobj = Py_None;
25671 return resultobj;
25672 fail:
25673 return NULL;
25674 }
25675
25676
25677 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25678 PyObject *resultobj;
25679 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25680 wxTreeItemId *arg2 = 0 ;
25681 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
25682 PyObject * obj0 = 0 ;
25683 PyObject * obj1 = 0 ;
25684 PyObject * obj2 = 0 ;
25685 char *kwnames[] = {
25686 (char *) "self",(char *) "item",(char *) "data", NULL
25687 };
25688
25689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25693 SWIG_POINTER_EXCEPTION | 0)) == -1)
25694 SWIG_fail;
25695 if (arg2 == NULL) {
25696 PyErr_SetString(PyExc_TypeError,"null reference");
25697 SWIG_fail;
25698 }
25699 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
25700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25701 {
25702 PyThreadState* __tstate = wxPyBeginAllowThreads();
25703 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
25704
25705 wxPyEndAllowThreads(__tstate);
25706 if (PyErr_Occurred()) SWIG_fail;
25707 }
25708 Py_INCREF(Py_None); resultobj = Py_None;
25709 return resultobj;
25710 fail:
25711 return NULL;
25712 }
25713
25714
25715 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25716 PyObject *resultobj;
25717 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25718 wxTreeItemId *arg2 = 0 ;
25719 PyObject *arg3 = (PyObject *) 0 ;
25720 PyObject * obj0 = 0 ;
25721 PyObject * obj1 = 0 ;
25722 PyObject * obj2 = 0 ;
25723 char *kwnames[] = {
25724 (char *) "self",(char *) "item",(char *) "obj", NULL
25725 };
25726
25727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25731 SWIG_POINTER_EXCEPTION | 0)) == -1)
25732 SWIG_fail;
25733 if (arg2 == NULL) {
25734 PyErr_SetString(PyExc_TypeError,"null reference");
25735 SWIG_fail;
25736 }
25737 arg3 = obj2;
25738 {
25739 PyThreadState* __tstate = wxPyBeginAllowThreads();
25740 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
25741
25742 wxPyEndAllowThreads(__tstate);
25743 if (PyErr_Occurred()) SWIG_fail;
25744 }
25745 Py_INCREF(Py_None); resultobj = Py_None;
25746 return resultobj;
25747 fail:
25748 return NULL;
25749 }
25750
25751
25752 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25753 PyObject *resultobj;
25754 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25755 wxTreeItemId *arg2 = 0 ;
25756 bool arg3 = (bool) True ;
25757 PyObject * obj0 = 0 ;
25758 PyObject * obj1 = 0 ;
25759 PyObject * obj2 = 0 ;
25760 char *kwnames[] = {
25761 (char *) "self",(char *) "item",(char *) "has", NULL
25762 };
25763
25764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
25765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25767 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25768 SWIG_POINTER_EXCEPTION | 0)) == -1)
25769 SWIG_fail;
25770 if (arg2 == NULL) {
25771 PyErr_SetString(PyExc_TypeError,"null reference");
25772 SWIG_fail;
25773 }
25774 if (obj2) {
25775 arg3 = (bool) SWIG_AsBool(obj2);
25776 if (PyErr_Occurred()) SWIG_fail;
25777 }
25778 {
25779 PyThreadState* __tstate = wxPyBeginAllowThreads();
25780 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
25781
25782 wxPyEndAllowThreads(__tstate);
25783 if (PyErr_Occurred()) SWIG_fail;
25784 }
25785 Py_INCREF(Py_None); resultobj = Py_None;
25786 return resultobj;
25787 fail:
25788 return NULL;
25789 }
25790
25791
25792 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
25793 PyObject *resultobj;
25794 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25795 wxTreeItemId *arg2 = 0 ;
25796 bool arg3 = (bool) True ;
25797 PyObject * obj0 = 0 ;
25798 PyObject * obj1 = 0 ;
25799 PyObject * obj2 = 0 ;
25800 char *kwnames[] = {
25801 (char *) "self",(char *) "item",(char *) "bold", NULL
25802 };
25803
25804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
25805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25807 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25808 SWIG_POINTER_EXCEPTION | 0)) == -1)
25809 SWIG_fail;
25810 if (arg2 == NULL) {
25811 PyErr_SetString(PyExc_TypeError,"null reference");
25812 SWIG_fail;
25813 }
25814 if (obj2) {
25815 arg3 = (bool) SWIG_AsBool(obj2);
25816 if (PyErr_Occurred()) SWIG_fail;
25817 }
25818 {
25819 PyThreadState* __tstate = wxPyBeginAllowThreads();
25820 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
25821
25822 wxPyEndAllowThreads(__tstate);
25823 if (PyErr_Occurred()) SWIG_fail;
25824 }
25825 Py_INCREF(Py_None); resultobj = Py_None;
25826 return resultobj;
25827 fail:
25828 return NULL;
25829 }
25830
25831
25832 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25833 PyObject *resultobj;
25834 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25835 wxTreeItemId *arg2 = 0 ;
25836 wxColour *arg3 = 0 ;
25837 wxColour temp3 ;
25838 PyObject * obj0 = 0 ;
25839 PyObject * obj1 = 0 ;
25840 PyObject * obj2 = 0 ;
25841 char *kwnames[] = {
25842 (char *) "self",(char *) "item",(char *) "col", NULL
25843 };
25844
25845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
25846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25849 SWIG_POINTER_EXCEPTION | 0)) == -1)
25850 SWIG_fail;
25851 if (arg2 == NULL) {
25852 PyErr_SetString(PyExc_TypeError,"null reference");
25853 SWIG_fail;
25854 }
25855 {
25856 arg3 = &temp3;
25857 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25858 }
25859 {
25860 PyThreadState* __tstate = wxPyBeginAllowThreads();
25861 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
25862
25863 wxPyEndAllowThreads(__tstate);
25864 if (PyErr_Occurred()) SWIG_fail;
25865 }
25866 Py_INCREF(Py_None); resultobj = Py_None;
25867 return resultobj;
25868 fail:
25869 return NULL;
25870 }
25871
25872
25873 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25874 PyObject *resultobj;
25875 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25876 wxTreeItemId *arg2 = 0 ;
25877 wxColour *arg3 = 0 ;
25878 wxColour temp3 ;
25879 PyObject * obj0 = 0 ;
25880 PyObject * obj1 = 0 ;
25881 PyObject * obj2 = 0 ;
25882 char *kwnames[] = {
25883 (char *) "self",(char *) "item",(char *) "col", NULL
25884 };
25885
25886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
25887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25889 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25890 SWIG_POINTER_EXCEPTION | 0)) == -1)
25891 SWIG_fail;
25892 if (arg2 == NULL) {
25893 PyErr_SetString(PyExc_TypeError,"null reference");
25894 SWIG_fail;
25895 }
25896 {
25897 arg3 = &temp3;
25898 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25899 }
25900 {
25901 PyThreadState* __tstate = wxPyBeginAllowThreads();
25902 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
25903
25904 wxPyEndAllowThreads(__tstate);
25905 if (PyErr_Occurred()) SWIG_fail;
25906 }
25907 Py_INCREF(Py_None); resultobj = Py_None;
25908 return resultobj;
25909 fail:
25910 return NULL;
25911 }
25912
25913
25914 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25915 PyObject *resultobj;
25916 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25917 wxTreeItemId *arg2 = 0 ;
25918 wxFont *arg3 = 0 ;
25919 PyObject * obj0 = 0 ;
25920 PyObject * obj1 = 0 ;
25921 PyObject * obj2 = 0 ;
25922 char *kwnames[] = {
25923 (char *) "self",(char *) "item",(char *) "font", NULL
25924 };
25925
25926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
25927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25929 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25930 SWIG_POINTER_EXCEPTION | 0)) == -1)
25931 SWIG_fail;
25932 if (arg2 == NULL) {
25933 PyErr_SetString(PyExc_TypeError,"null reference");
25934 SWIG_fail;
25935 }
25936 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
25937 SWIG_POINTER_EXCEPTION | 0)) == -1)
25938 SWIG_fail;
25939 if (arg3 == NULL) {
25940 PyErr_SetString(PyExc_TypeError,"null reference");
25941 SWIG_fail;
25942 }
25943 {
25944 PyThreadState* __tstate = wxPyBeginAllowThreads();
25945 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
25946
25947 wxPyEndAllowThreads(__tstate);
25948 if (PyErr_Occurred()) SWIG_fail;
25949 }
25950 Py_INCREF(Py_None); resultobj = Py_None;
25951 return resultobj;
25952 fail:
25953 return NULL;
25954 }
25955
25956
25957 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25958 PyObject *resultobj;
25959 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25960 wxTreeItemId *arg2 = 0 ;
25961 bool result;
25962 PyObject * obj0 = 0 ;
25963 PyObject * obj1 = 0 ;
25964 char *kwnames[] = {
25965 (char *) "self",(char *) "item", NULL
25966 };
25967
25968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
25969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25971 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25972 SWIG_POINTER_EXCEPTION | 0)) == -1)
25973 SWIG_fail;
25974 if (arg2 == NULL) {
25975 PyErr_SetString(PyExc_TypeError,"null reference");
25976 SWIG_fail;
25977 }
25978 {
25979 PyThreadState* __tstate = wxPyBeginAllowThreads();
25980 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
25981
25982 wxPyEndAllowThreads(__tstate);
25983 if (PyErr_Occurred()) SWIG_fail;
25984 }
25985 {
25986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25987 }
25988 return resultobj;
25989 fail:
25990 return NULL;
25991 }
25992
25993
25994 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25995 PyObject *resultobj;
25996 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25997 wxTreeItemId *arg2 = 0 ;
25998 bool result;
25999 PyObject * obj0 = 0 ;
26000 PyObject * obj1 = 0 ;
26001 char *kwnames[] = {
26002 (char *) "self",(char *) "item", NULL
26003 };
26004
26005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26008 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26009 SWIG_POINTER_EXCEPTION | 0)) == -1)
26010 SWIG_fail;
26011 if (arg2 == NULL) {
26012 PyErr_SetString(PyExc_TypeError,"null reference");
26013 SWIG_fail;
26014 }
26015 {
26016 PyThreadState* __tstate = wxPyBeginAllowThreads();
26017 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26018
26019 wxPyEndAllowThreads(__tstate);
26020 if (PyErr_Occurred()) SWIG_fail;
26021 }
26022 {
26023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26024 }
26025 return resultobj;
26026 fail:
26027 return NULL;
26028 }
26029
26030
26031 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
26032 PyObject *resultobj;
26033 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26034 wxTreeItemId *arg2 = 0 ;
26035 bool result;
26036 PyObject * obj0 = 0 ;
26037 PyObject * obj1 = 0 ;
26038 char *kwnames[] = {
26039 (char *) "self",(char *) "item", NULL
26040 };
26041
26042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26046 SWIG_POINTER_EXCEPTION | 0)) == -1)
26047 SWIG_fail;
26048 if (arg2 == NULL) {
26049 PyErr_SetString(PyExc_TypeError,"null reference");
26050 SWIG_fail;
26051 }
26052 {
26053 PyThreadState* __tstate = wxPyBeginAllowThreads();
26054 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26055
26056 wxPyEndAllowThreads(__tstate);
26057 if (PyErr_Occurred()) SWIG_fail;
26058 }
26059 {
26060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26061 }
26062 return resultobj;
26063 fail:
26064 return NULL;
26065 }
26066
26067
26068 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
26069 PyObject *resultobj;
26070 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26071 wxTreeItemId *arg2 = 0 ;
26072 bool result;
26073 PyObject * obj0 = 0 ;
26074 PyObject * obj1 = 0 ;
26075 char *kwnames[] = {
26076 (char *) "self",(char *) "item", NULL
26077 };
26078
26079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26083 SWIG_POINTER_EXCEPTION | 0)) == -1)
26084 SWIG_fail;
26085 if (arg2 == NULL) {
26086 PyErr_SetString(PyExc_TypeError,"null reference");
26087 SWIG_fail;
26088 }
26089 {
26090 PyThreadState* __tstate = wxPyBeginAllowThreads();
26091 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26092
26093 wxPyEndAllowThreads(__tstate);
26094 if (PyErr_Occurred()) SWIG_fail;
26095 }
26096 {
26097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26098 }
26099 return resultobj;
26100 fail:
26101 return NULL;
26102 }
26103
26104
26105 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
26106 PyObject *resultobj;
26107 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26108 wxTreeItemId *arg2 = 0 ;
26109 bool result;
26110 PyObject * obj0 = 0 ;
26111 PyObject * obj1 = 0 ;
26112 char *kwnames[] = {
26113 (char *) "self",(char *) "item", NULL
26114 };
26115
26116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26119 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26120 SWIG_POINTER_EXCEPTION | 0)) == -1)
26121 SWIG_fail;
26122 if (arg2 == NULL) {
26123 PyErr_SetString(PyExc_TypeError,"null reference");
26124 SWIG_fail;
26125 }
26126 {
26127 PyThreadState* __tstate = wxPyBeginAllowThreads();
26128 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26129
26130 wxPyEndAllowThreads(__tstate);
26131 if (PyErr_Occurred()) SWIG_fail;
26132 }
26133 {
26134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26135 }
26136 return resultobj;
26137 fail:
26138 return NULL;
26139 }
26140
26141
26142 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
26143 PyObject *resultobj;
26144 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26145 wxTreeItemId *arg2 = 0 ;
26146 bool arg3 = (bool) True ;
26147 size_t result;
26148 PyObject * obj0 = 0 ;
26149 PyObject * obj1 = 0 ;
26150 PyObject * obj2 = 0 ;
26151 char *kwnames[] = {
26152 (char *) "self",(char *) "item",(char *) "recursively", NULL
26153 };
26154
26155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26158 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26159 SWIG_POINTER_EXCEPTION | 0)) == -1)
26160 SWIG_fail;
26161 if (arg2 == NULL) {
26162 PyErr_SetString(PyExc_TypeError,"null reference");
26163 SWIG_fail;
26164 }
26165 if (obj2) {
26166 arg3 = (bool) SWIG_AsBool(obj2);
26167 if (PyErr_Occurred()) SWIG_fail;
26168 }
26169 {
26170 PyThreadState* __tstate = wxPyBeginAllowThreads();
26171 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26172
26173 wxPyEndAllowThreads(__tstate);
26174 if (PyErr_Occurred()) SWIG_fail;
26175 }
26176 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
26177 return resultobj;
26178 fail:
26179 return NULL;
26180 }
26181
26182
26183 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26184 PyObject *resultobj;
26185 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26186 wxTreeItemId result;
26187 PyObject * obj0 = 0 ;
26188 char *kwnames[] = {
26189 (char *) "self", NULL
26190 };
26191
26192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26195 {
26196 PyThreadState* __tstate = wxPyBeginAllowThreads();
26197 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26198
26199 wxPyEndAllowThreads(__tstate);
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 {
26203 wxTreeItemId * resultptr;
26204 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26205 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26206 }
26207 return resultobj;
26208 fail:
26209 return NULL;
26210 }
26211
26212
26213 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26214 PyObject *resultobj;
26215 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26216 wxTreeItemId result;
26217 PyObject * obj0 = 0 ;
26218 char *kwnames[] = {
26219 (char *) "self", NULL
26220 };
26221
26222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26225 {
26226 PyThreadState* __tstate = wxPyBeginAllowThreads();
26227 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26228
26229 wxPyEndAllowThreads(__tstate);
26230 if (PyErr_Occurred()) SWIG_fail;
26231 }
26232 {
26233 wxTreeItemId * resultptr;
26234 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26235 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26236 }
26237 return resultobj;
26238 fail:
26239 return NULL;
26240 }
26241
26242
26243 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
26244 PyObject *resultobj;
26245 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26246 PyObject *result;
26247 PyObject * obj0 = 0 ;
26248 char *kwnames[] = {
26249 (char *) "self", NULL
26250 };
26251
26252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26255 {
26256 PyThreadState* __tstate = wxPyBeginAllowThreads();
26257 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26258
26259 wxPyEndAllowThreads(__tstate);
26260 if (PyErr_Occurred()) SWIG_fail;
26261 }
26262 resultobj = result;
26263 return resultobj;
26264 fail:
26265 return NULL;
26266 }
26267
26268
26269 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
26270 PyObject *resultobj;
26271 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26272 wxTreeItemId *arg2 = 0 ;
26273 wxTreeItemId result;
26274 PyObject * obj0 = 0 ;
26275 PyObject * obj1 = 0 ;
26276 char *kwnames[] = {
26277 (char *) "self",(char *) "item", NULL
26278 };
26279
26280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26283 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26284 SWIG_POINTER_EXCEPTION | 0)) == -1)
26285 SWIG_fail;
26286 if (arg2 == NULL) {
26287 PyErr_SetString(PyExc_TypeError,"null reference");
26288 SWIG_fail;
26289 }
26290 {
26291 PyThreadState* __tstate = wxPyBeginAllowThreads();
26292 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26293
26294 wxPyEndAllowThreads(__tstate);
26295 if (PyErr_Occurred()) SWIG_fail;
26296 }
26297 {
26298 wxTreeItemId * resultptr;
26299 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26300 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26301 }
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26309 PyObject *resultobj;
26310 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26311 wxTreeItemId *arg2 = 0 ;
26312 PyObject *result;
26313 PyObject * obj0 = 0 ;
26314 PyObject * obj1 = 0 ;
26315 char *kwnames[] = {
26316 (char *) "self",(char *) "item", NULL
26317 };
26318
26319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26322 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26323 SWIG_POINTER_EXCEPTION | 0)) == -1)
26324 SWIG_fail;
26325 if (arg2 == NULL) {
26326 PyErr_SetString(PyExc_TypeError,"null reference");
26327 SWIG_fail;
26328 }
26329 {
26330 PyThreadState* __tstate = wxPyBeginAllowThreads();
26331 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26332
26333 wxPyEndAllowThreads(__tstate);
26334 if (PyErr_Occurred()) SWIG_fail;
26335 }
26336 resultobj = result;
26337 return resultobj;
26338 fail:
26339 return NULL;
26340 }
26341
26342
26343 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26344 PyObject *resultobj;
26345 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26346 wxTreeItemId *arg2 = 0 ;
26347 void *arg3 = (void *) 0 ;
26348 PyObject *result;
26349 PyObject * obj0 = 0 ;
26350 PyObject * obj1 = 0 ;
26351 PyObject * obj2 = 0 ;
26352 char *kwnames[] = {
26353 (char *) "self",(char *) "item",(char *) "cookie", NULL
26354 };
26355
26356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26359 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26360 SWIG_POINTER_EXCEPTION | 0)) == -1)
26361 SWIG_fail;
26362 if (arg2 == NULL) {
26363 PyErr_SetString(PyExc_TypeError,"null reference");
26364 SWIG_fail;
26365 }
26366 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26367 {
26368 PyThreadState* __tstate = wxPyBeginAllowThreads();
26369 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26370
26371 wxPyEndAllowThreads(__tstate);
26372 if (PyErr_Occurred()) SWIG_fail;
26373 }
26374 resultobj = result;
26375 return resultobj;
26376 fail:
26377 return NULL;
26378 }
26379
26380
26381 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26382 PyObject *resultobj;
26383 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26384 wxTreeItemId *arg2 = 0 ;
26385 wxTreeItemId result;
26386 PyObject * obj0 = 0 ;
26387 PyObject * obj1 = 0 ;
26388 char *kwnames[] = {
26389 (char *) "self",(char *) "item", NULL
26390 };
26391
26392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
26393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26395 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26396 SWIG_POINTER_EXCEPTION | 0)) == -1)
26397 SWIG_fail;
26398 if (arg2 == NULL) {
26399 PyErr_SetString(PyExc_TypeError,"null reference");
26400 SWIG_fail;
26401 }
26402 {
26403 PyThreadState* __tstate = wxPyBeginAllowThreads();
26404 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26405
26406 wxPyEndAllowThreads(__tstate);
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 {
26410 wxTreeItemId * resultptr;
26411 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26412 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26413 }
26414 return resultobj;
26415 fail:
26416 return NULL;
26417 }
26418
26419
26420 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26421 PyObject *resultobj;
26422 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26423 wxTreeItemId *arg2 = 0 ;
26424 wxTreeItemId result;
26425 PyObject * obj0 = 0 ;
26426 PyObject * obj1 = 0 ;
26427 char *kwnames[] = {
26428 (char *) "self",(char *) "item", NULL
26429 };
26430
26431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26435 SWIG_POINTER_EXCEPTION | 0)) == -1)
26436 SWIG_fail;
26437 if (arg2 == NULL) {
26438 PyErr_SetString(PyExc_TypeError,"null reference");
26439 SWIG_fail;
26440 }
26441 {
26442 PyThreadState* __tstate = wxPyBeginAllowThreads();
26443 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26444
26445 wxPyEndAllowThreads(__tstate);
26446 if (PyErr_Occurred()) SWIG_fail;
26447 }
26448 {
26449 wxTreeItemId * resultptr;
26450 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26451 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26452 }
26453 return resultobj;
26454 fail:
26455 return NULL;
26456 }
26457
26458
26459 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26460 PyObject *resultobj;
26461 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26462 wxTreeItemId *arg2 = 0 ;
26463 wxTreeItemId result;
26464 PyObject * obj0 = 0 ;
26465 PyObject * obj1 = 0 ;
26466 char *kwnames[] = {
26467 (char *) "self",(char *) "item", NULL
26468 };
26469
26470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26473 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26474 SWIG_POINTER_EXCEPTION | 0)) == -1)
26475 SWIG_fail;
26476 if (arg2 == NULL) {
26477 PyErr_SetString(PyExc_TypeError,"null reference");
26478 SWIG_fail;
26479 }
26480 {
26481 PyThreadState* __tstate = wxPyBeginAllowThreads();
26482 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26483
26484 wxPyEndAllowThreads(__tstate);
26485 if (PyErr_Occurred()) SWIG_fail;
26486 }
26487 {
26488 wxTreeItemId * resultptr;
26489 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26490 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26491 }
26492 return resultobj;
26493 fail:
26494 return NULL;
26495 }
26496
26497
26498 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26499 PyObject *resultobj;
26500 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26501 wxTreeItemId result;
26502 PyObject * obj0 = 0 ;
26503 char *kwnames[] = {
26504 (char *) "self", NULL
26505 };
26506
26507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
26508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26510 {
26511 PyThreadState* __tstate = wxPyBeginAllowThreads();
26512 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
26513
26514 wxPyEndAllowThreads(__tstate);
26515 if (PyErr_Occurred()) SWIG_fail;
26516 }
26517 {
26518 wxTreeItemId * resultptr;
26519 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26520 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26521 }
26522 return resultobj;
26523 fail:
26524 return NULL;
26525 }
26526
26527
26528 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26529 PyObject *resultobj;
26530 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26531 wxTreeItemId *arg2 = 0 ;
26532 wxTreeItemId result;
26533 PyObject * obj0 = 0 ;
26534 PyObject * obj1 = 0 ;
26535 char *kwnames[] = {
26536 (char *) "self",(char *) "item", NULL
26537 };
26538
26539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
26540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26542 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26543 SWIG_POINTER_EXCEPTION | 0)) == -1)
26544 SWIG_fail;
26545 if (arg2 == NULL) {
26546 PyErr_SetString(PyExc_TypeError,"null reference");
26547 SWIG_fail;
26548 }
26549 {
26550 PyThreadState* __tstate = wxPyBeginAllowThreads();
26551 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
26552
26553 wxPyEndAllowThreads(__tstate);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 {
26557 wxTreeItemId * resultptr;
26558 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26559 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26560 }
26561 return resultobj;
26562 fail:
26563 return NULL;
26564 }
26565
26566
26567 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26568 PyObject *resultobj;
26569 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26570 wxTreeItemId *arg2 = 0 ;
26571 wxTreeItemId result;
26572 PyObject * obj0 = 0 ;
26573 PyObject * obj1 = 0 ;
26574 char *kwnames[] = {
26575 (char *) "self",(char *) "item", NULL
26576 };
26577
26578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
26579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26582 SWIG_POINTER_EXCEPTION | 0)) == -1)
26583 SWIG_fail;
26584 if (arg2 == NULL) {
26585 PyErr_SetString(PyExc_TypeError,"null reference");
26586 SWIG_fail;
26587 }
26588 {
26589 PyThreadState* __tstate = wxPyBeginAllowThreads();
26590 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
26591
26592 wxPyEndAllowThreads(__tstate);
26593 if (PyErr_Occurred()) SWIG_fail;
26594 }
26595 {
26596 wxTreeItemId * resultptr;
26597 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26598 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26599 }
26600 return resultobj;
26601 fail:
26602 return NULL;
26603 }
26604
26605
26606 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
26607 PyObject *resultobj;
26608 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26609 wxString *arg2 = 0 ;
26610 int arg3 = (int) -1 ;
26611 int arg4 = (int) -1 ;
26612 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
26613 wxTreeItemId result;
26614 bool temp2 = False ;
26615 PyObject * obj0 = 0 ;
26616 PyObject * obj1 = 0 ;
26617 PyObject * obj2 = 0 ;
26618 PyObject * obj3 = 0 ;
26619 PyObject * obj4 = 0 ;
26620 char *kwnames[] = {
26621 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26622 };
26623
26624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26627 {
26628 arg2 = wxString_in_helper(obj1);
26629 if (arg2 == NULL) SWIG_fail;
26630 temp2 = True;
26631 }
26632 if (obj2) {
26633 arg3 = (int) SWIG_AsInt(obj2);
26634 if (PyErr_Occurred()) SWIG_fail;
26635 }
26636 if (obj3) {
26637 arg4 = (int) SWIG_AsInt(obj3);
26638 if (PyErr_Occurred()) SWIG_fail;
26639 }
26640 if (obj4) {
26641 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
26642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26643 }
26644 {
26645 PyThreadState* __tstate = wxPyBeginAllowThreads();
26646 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
26647
26648 wxPyEndAllowThreads(__tstate);
26649 if (PyErr_Occurred()) SWIG_fail;
26650 }
26651 {
26652 wxTreeItemId * resultptr;
26653 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26654 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26655 }
26656 {
26657 if (temp2)
26658 delete arg2;
26659 }
26660 return resultobj;
26661 fail:
26662 {
26663 if (temp2)
26664 delete arg2;
26665 }
26666 return NULL;
26667 }
26668
26669
26670 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26671 PyObject *resultobj;
26672 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26673 wxTreeItemId *arg2 = 0 ;
26674 wxString *arg3 = 0 ;
26675 int arg4 = (int) -1 ;
26676 int arg5 = (int) -1 ;
26677 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26678 wxTreeItemId result;
26679 bool temp3 = False ;
26680 PyObject * obj0 = 0 ;
26681 PyObject * obj1 = 0 ;
26682 PyObject * obj2 = 0 ;
26683 PyObject * obj3 = 0 ;
26684 PyObject * obj4 = 0 ;
26685 PyObject * obj5 = 0 ;
26686 char *kwnames[] = {
26687 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26688 };
26689
26690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26693 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26694 SWIG_POINTER_EXCEPTION | 0)) == -1)
26695 SWIG_fail;
26696 if (arg2 == NULL) {
26697 PyErr_SetString(PyExc_TypeError,"null reference");
26698 SWIG_fail;
26699 }
26700 {
26701 arg3 = wxString_in_helper(obj2);
26702 if (arg3 == NULL) SWIG_fail;
26703 temp3 = True;
26704 }
26705 if (obj3) {
26706 arg4 = (int) SWIG_AsInt(obj3);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
26709 if (obj4) {
26710 arg5 = (int) SWIG_AsInt(obj4);
26711 if (PyErr_Occurred()) SWIG_fail;
26712 }
26713 if (obj5) {
26714 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26716 }
26717 {
26718 PyThreadState* __tstate = wxPyBeginAllowThreads();
26719 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26720
26721 wxPyEndAllowThreads(__tstate);
26722 if (PyErr_Occurred()) SWIG_fail;
26723 }
26724 {
26725 wxTreeItemId * resultptr;
26726 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26727 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26728 }
26729 {
26730 if (temp3)
26731 delete arg3;
26732 }
26733 return resultobj;
26734 fail:
26735 {
26736 if (temp3)
26737 delete arg3;
26738 }
26739 return NULL;
26740 }
26741
26742
26743 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26744 PyObject *resultobj;
26745 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26746 wxTreeItemId *arg2 = 0 ;
26747 wxTreeItemId *arg3 = 0 ;
26748 wxString *arg4 = 0 ;
26749 int arg5 = (int) -1 ;
26750 int arg6 = (int) -1 ;
26751 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26752 wxTreeItemId result;
26753 bool temp4 = False ;
26754 PyObject * obj0 = 0 ;
26755 PyObject * obj1 = 0 ;
26756 PyObject * obj2 = 0 ;
26757 PyObject * obj3 = 0 ;
26758 PyObject * obj4 = 0 ;
26759 PyObject * obj5 = 0 ;
26760 PyObject * obj6 = 0 ;
26761 char *kwnames[] = {
26762 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26763 };
26764
26765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26768 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26769 SWIG_POINTER_EXCEPTION | 0)) == -1)
26770 SWIG_fail;
26771 if (arg2 == NULL) {
26772 PyErr_SetString(PyExc_TypeError,"null reference");
26773 SWIG_fail;
26774 }
26775 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
26776 SWIG_POINTER_EXCEPTION | 0)) == -1)
26777 SWIG_fail;
26778 if (arg3 == NULL) {
26779 PyErr_SetString(PyExc_TypeError,"null reference");
26780 SWIG_fail;
26781 }
26782 {
26783 arg4 = wxString_in_helper(obj3);
26784 if (arg4 == NULL) SWIG_fail;
26785 temp4 = True;
26786 }
26787 if (obj4) {
26788 arg5 = (int) SWIG_AsInt(obj4);
26789 if (PyErr_Occurred()) SWIG_fail;
26790 }
26791 if (obj5) {
26792 arg6 = (int) SWIG_AsInt(obj5);
26793 if (PyErr_Occurred()) SWIG_fail;
26794 }
26795 if (obj6) {
26796 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26798 }
26799 {
26800 PyThreadState* __tstate = wxPyBeginAllowThreads();
26801 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26802
26803 wxPyEndAllowThreads(__tstate);
26804 if (PyErr_Occurred()) SWIG_fail;
26805 }
26806 {
26807 wxTreeItemId * resultptr;
26808 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26809 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26810 }
26811 {
26812 if (temp4)
26813 delete arg4;
26814 }
26815 return resultobj;
26816 fail:
26817 {
26818 if (temp4)
26819 delete arg4;
26820 }
26821 return NULL;
26822 }
26823
26824
26825 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
26826 PyObject *resultobj;
26827 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26828 wxTreeItemId *arg2 = 0 ;
26829 size_t arg3 ;
26830 wxString *arg4 = 0 ;
26831 int arg5 = (int) -1 ;
26832 int arg6 = (int) -1 ;
26833 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26834 wxTreeItemId result;
26835 bool temp4 = False ;
26836 PyObject * obj0 = 0 ;
26837 PyObject * obj1 = 0 ;
26838 PyObject * obj2 = 0 ;
26839 PyObject * obj3 = 0 ;
26840 PyObject * obj4 = 0 ;
26841 PyObject * obj5 = 0 ;
26842 PyObject * obj6 = 0 ;
26843 char *kwnames[] = {
26844 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26845 };
26846
26847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26850 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26851 SWIG_POINTER_EXCEPTION | 0)) == -1)
26852 SWIG_fail;
26853 if (arg2 == NULL) {
26854 PyErr_SetString(PyExc_TypeError,"null reference");
26855 SWIG_fail;
26856 }
26857 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
26858 if (PyErr_Occurred()) SWIG_fail;
26859 {
26860 arg4 = wxString_in_helper(obj3);
26861 if (arg4 == NULL) SWIG_fail;
26862 temp4 = True;
26863 }
26864 if (obj4) {
26865 arg5 = (int) SWIG_AsInt(obj4);
26866 if (PyErr_Occurred()) SWIG_fail;
26867 }
26868 if (obj5) {
26869 arg6 = (int) SWIG_AsInt(obj5);
26870 if (PyErr_Occurred()) SWIG_fail;
26871 }
26872 if (obj6) {
26873 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26875 }
26876 {
26877 PyThreadState* __tstate = wxPyBeginAllowThreads();
26878 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26879
26880 wxPyEndAllowThreads(__tstate);
26881 if (PyErr_Occurred()) SWIG_fail;
26882 }
26883 {
26884 wxTreeItemId * resultptr;
26885 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26886 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26887 }
26888 {
26889 if (temp4)
26890 delete arg4;
26891 }
26892 return resultobj;
26893 fail:
26894 {
26895 if (temp4)
26896 delete arg4;
26897 }
26898 return NULL;
26899 }
26900
26901
26902 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26903 PyObject *resultobj;
26904 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26905 wxTreeItemId *arg2 = 0 ;
26906 wxString *arg3 = 0 ;
26907 int arg4 = (int) -1 ;
26908 int arg5 = (int) -1 ;
26909 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26910 wxTreeItemId result;
26911 bool temp3 = False ;
26912 PyObject * obj0 = 0 ;
26913 PyObject * obj1 = 0 ;
26914 PyObject * obj2 = 0 ;
26915 PyObject * obj3 = 0 ;
26916 PyObject * obj4 = 0 ;
26917 PyObject * obj5 = 0 ;
26918 char *kwnames[] = {
26919 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26920 };
26921
26922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26925 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26926 SWIG_POINTER_EXCEPTION | 0)) == -1)
26927 SWIG_fail;
26928 if (arg2 == NULL) {
26929 PyErr_SetString(PyExc_TypeError,"null reference");
26930 SWIG_fail;
26931 }
26932 {
26933 arg3 = wxString_in_helper(obj2);
26934 if (arg3 == NULL) SWIG_fail;
26935 temp3 = True;
26936 }
26937 if (obj3) {
26938 arg4 = (int) SWIG_AsInt(obj3);
26939 if (PyErr_Occurred()) SWIG_fail;
26940 }
26941 if (obj4) {
26942 arg5 = (int) SWIG_AsInt(obj4);
26943 if (PyErr_Occurred()) SWIG_fail;
26944 }
26945 if (obj5) {
26946 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26948 }
26949 {
26950 PyThreadState* __tstate = wxPyBeginAllowThreads();
26951 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26952
26953 wxPyEndAllowThreads(__tstate);
26954 if (PyErr_Occurred()) SWIG_fail;
26955 }
26956 {
26957 wxTreeItemId * resultptr;
26958 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26959 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26960 }
26961 {
26962 if (temp3)
26963 delete arg3;
26964 }
26965 return resultobj;
26966 fail:
26967 {
26968 if (temp3)
26969 delete arg3;
26970 }
26971 return NULL;
26972 }
26973
26974
26975 static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
26976 PyObject *resultobj;
26977 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26978 wxTreeItemId *arg2 = 0 ;
26979 PyObject * obj0 = 0 ;
26980 PyObject * obj1 = 0 ;
26981 char *kwnames[] = {
26982 (char *) "self",(char *) "item", NULL
26983 };
26984
26985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
26986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26988 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26989 SWIG_POINTER_EXCEPTION | 0)) == -1)
26990 SWIG_fail;
26991 if (arg2 == NULL) {
26992 PyErr_SetString(PyExc_TypeError,"null reference");
26993 SWIG_fail;
26994 }
26995 {
26996 PyThreadState* __tstate = wxPyBeginAllowThreads();
26997 (arg1)->Delete((wxTreeItemId const &)*arg2);
26998
26999 wxPyEndAllowThreads(__tstate);
27000 if (PyErr_Occurred()) SWIG_fail;
27001 }
27002 Py_INCREF(Py_None); resultobj = Py_None;
27003 return resultobj;
27004 fail:
27005 return NULL;
27006 }
27007
27008
27009 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27010 PyObject *resultobj;
27011 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27012 wxTreeItemId *arg2 = 0 ;
27013 PyObject * obj0 = 0 ;
27014 PyObject * obj1 = 0 ;
27015 char *kwnames[] = {
27016 (char *) "self",(char *) "item", NULL
27017 };
27018
27019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27022 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27023 SWIG_POINTER_EXCEPTION | 0)) == -1)
27024 SWIG_fail;
27025 if (arg2 == NULL) {
27026 PyErr_SetString(PyExc_TypeError,"null reference");
27027 SWIG_fail;
27028 }
27029 {
27030 PyThreadState* __tstate = wxPyBeginAllowThreads();
27031 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27032
27033 wxPyEndAllowThreads(__tstate);
27034 if (PyErr_Occurred()) SWIG_fail;
27035 }
27036 Py_INCREF(Py_None); resultobj = Py_None;
27037 return resultobj;
27038 fail:
27039 return NULL;
27040 }
27041
27042
27043 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
27044 PyObject *resultobj;
27045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27046 PyObject * obj0 = 0 ;
27047 char *kwnames[] = {
27048 (char *) "self", NULL
27049 };
27050
27051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27054 {
27055 PyThreadState* __tstate = wxPyBeginAllowThreads();
27056 (arg1)->DeleteAllItems();
27057
27058 wxPyEndAllowThreads(__tstate);
27059 if (PyErr_Occurred()) SWIG_fail;
27060 }
27061 Py_INCREF(Py_None); resultobj = Py_None;
27062 return resultobj;
27063 fail:
27064 return NULL;
27065 }
27066
27067
27068 static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
27069 PyObject *resultobj;
27070 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27071 wxTreeItemId *arg2 = 0 ;
27072 PyObject * obj0 = 0 ;
27073 PyObject * obj1 = 0 ;
27074 char *kwnames[] = {
27075 (char *) "self",(char *) "item", NULL
27076 };
27077
27078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27082 SWIG_POINTER_EXCEPTION | 0)) == -1)
27083 SWIG_fail;
27084 if (arg2 == NULL) {
27085 PyErr_SetString(PyExc_TypeError,"null reference");
27086 SWIG_fail;
27087 }
27088 {
27089 PyThreadState* __tstate = wxPyBeginAllowThreads();
27090 (arg1)->Expand((wxTreeItemId const &)*arg2);
27091
27092 wxPyEndAllowThreads(__tstate);
27093 if (PyErr_Occurred()) SWIG_fail;
27094 }
27095 Py_INCREF(Py_None); resultobj = Py_None;
27096 return resultobj;
27097 fail:
27098 return NULL;
27099 }
27100
27101
27102 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
27103 PyObject *resultobj;
27104 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27105 wxTreeItemId *arg2 = 0 ;
27106 PyObject * obj0 = 0 ;
27107 PyObject * obj1 = 0 ;
27108 char *kwnames[] = {
27109 (char *) "self",(char *) "item", NULL
27110 };
27111
27112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27115 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27116 SWIG_POINTER_EXCEPTION | 0)) == -1)
27117 SWIG_fail;
27118 if (arg2 == NULL) {
27119 PyErr_SetString(PyExc_TypeError,"null reference");
27120 SWIG_fail;
27121 }
27122 {
27123 PyThreadState* __tstate = wxPyBeginAllowThreads();
27124 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27125
27126 wxPyEndAllowThreads(__tstate);
27127 if (PyErr_Occurred()) SWIG_fail;
27128 }
27129 Py_INCREF(Py_None); resultobj = Py_None;
27130 return resultobj;
27131 fail:
27132 return NULL;
27133 }
27134
27135
27136 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
27137 PyObject *resultobj;
27138 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27139 wxTreeItemId *arg2 = 0 ;
27140 PyObject * obj0 = 0 ;
27141 PyObject * obj1 = 0 ;
27142 char *kwnames[] = {
27143 (char *) "self",(char *) "item", NULL
27144 };
27145
27146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27149 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27150 SWIG_POINTER_EXCEPTION | 0)) == -1)
27151 SWIG_fail;
27152 if (arg2 == NULL) {
27153 PyErr_SetString(PyExc_TypeError,"null reference");
27154 SWIG_fail;
27155 }
27156 {
27157 PyThreadState* __tstate = wxPyBeginAllowThreads();
27158 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27159
27160 wxPyEndAllowThreads(__tstate);
27161 if (PyErr_Occurred()) SWIG_fail;
27162 }
27163 Py_INCREF(Py_None); resultobj = Py_None;
27164 return resultobj;
27165 fail:
27166 return NULL;
27167 }
27168
27169
27170 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
27171 PyObject *resultobj;
27172 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27173 wxTreeItemId *arg2 = 0 ;
27174 PyObject * obj0 = 0 ;
27175 PyObject * obj1 = 0 ;
27176 char *kwnames[] = {
27177 (char *) "self",(char *) "item", NULL
27178 };
27179
27180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27183 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27184 SWIG_POINTER_EXCEPTION | 0)) == -1)
27185 SWIG_fail;
27186 if (arg2 == NULL) {
27187 PyErr_SetString(PyExc_TypeError,"null reference");
27188 SWIG_fail;
27189 }
27190 {
27191 PyThreadState* __tstate = wxPyBeginAllowThreads();
27192 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27193
27194 wxPyEndAllowThreads(__tstate);
27195 if (PyErr_Occurred()) SWIG_fail;
27196 }
27197 Py_INCREF(Py_None); resultobj = Py_None;
27198 return resultobj;
27199 fail:
27200 return NULL;
27201 }
27202
27203
27204 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
27205 PyObject *resultobj;
27206 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27207 PyObject * obj0 = 0 ;
27208 char *kwnames[] = {
27209 (char *) "self", NULL
27210 };
27211
27212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27215 {
27216 PyThreadState* __tstate = wxPyBeginAllowThreads();
27217 (arg1)->Unselect();
27218
27219 wxPyEndAllowThreads(__tstate);
27220 if (PyErr_Occurred()) SWIG_fail;
27221 }
27222 Py_INCREF(Py_None); resultobj = Py_None;
27223 return resultobj;
27224 fail:
27225 return NULL;
27226 }
27227
27228
27229 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27230 PyObject *resultobj;
27231 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27232 wxTreeItemId *arg2 = 0 ;
27233 PyObject * obj0 = 0 ;
27234 PyObject * obj1 = 0 ;
27235 char *kwnames[] = {
27236 (char *) "self",(char *) "item", NULL
27237 };
27238
27239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27242 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27243 SWIG_POINTER_EXCEPTION | 0)) == -1)
27244 SWIG_fail;
27245 if (arg2 == NULL) {
27246 PyErr_SetString(PyExc_TypeError,"null reference");
27247 SWIG_fail;
27248 }
27249 {
27250 PyThreadState* __tstate = wxPyBeginAllowThreads();
27251 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27252
27253 wxPyEndAllowThreads(__tstate);
27254 if (PyErr_Occurred()) SWIG_fail;
27255 }
27256 Py_INCREF(Py_None); resultobj = Py_None;
27257 return resultobj;
27258 fail:
27259 return NULL;
27260 }
27261
27262
27263 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
27264 PyObject *resultobj;
27265 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27266 PyObject * obj0 = 0 ;
27267 char *kwnames[] = {
27268 (char *) "self", NULL
27269 };
27270
27271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27274 {
27275 PyThreadState* __tstate = wxPyBeginAllowThreads();
27276 (arg1)->UnselectAll();
27277
27278 wxPyEndAllowThreads(__tstate);
27279 if (PyErr_Occurred()) SWIG_fail;
27280 }
27281 Py_INCREF(Py_None); resultobj = Py_None;
27282 return resultobj;
27283 fail:
27284 return NULL;
27285 }
27286
27287
27288 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27289 PyObject *resultobj;
27290 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27291 wxTreeItemId *arg2 = 0 ;
27292 bool arg3 = (bool) True ;
27293 PyObject * obj0 = 0 ;
27294 PyObject * obj1 = 0 ;
27295 PyObject * obj2 = 0 ;
27296 char *kwnames[] = {
27297 (char *) "self",(char *) "item",(char *) "select", NULL
27298 };
27299
27300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27303 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27304 SWIG_POINTER_EXCEPTION | 0)) == -1)
27305 SWIG_fail;
27306 if (arg2 == NULL) {
27307 PyErr_SetString(PyExc_TypeError,"null reference");
27308 SWIG_fail;
27309 }
27310 if (obj2) {
27311 arg3 = (bool) SWIG_AsBool(obj2);
27312 if (PyErr_Occurred()) SWIG_fail;
27313 }
27314 {
27315 PyThreadState* __tstate = wxPyBeginAllowThreads();
27316 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27317
27318 wxPyEndAllowThreads(__tstate);
27319 if (PyErr_Occurred()) SWIG_fail;
27320 }
27321 Py_INCREF(Py_None); resultobj = Py_None;
27322 return resultobj;
27323 fail:
27324 return NULL;
27325 }
27326
27327
27328 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27329 PyObject *resultobj;
27330 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27331 wxTreeItemId *arg2 = 0 ;
27332 PyObject * obj0 = 0 ;
27333 PyObject * obj1 = 0 ;
27334 char *kwnames[] = {
27335 (char *) "self",(char *) "item", NULL
27336 };
27337
27338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27341 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27342 SWIG_POINTER_EXCEPTION | 0)) == -1)
27343 SWIG_fail;
27344 if (arg2 == NULL) {
27345 PyErr_SetString(PyExc_TypeError,"null reference");
27346 SWIG_fail;
27347 }
27348 {
27349 PyThreadState* __tstate = wxPyBeginAllowThreads();
27350 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27351
27352 wxPyEndAllowThreads(__tstate);
27353 if (PyErr_Occurred()) SWIG_fail;
27354 }
27355 Py_INCREF(Py_None); resultobj = Py_None;
27356 return resultobj;
27357 fail:
27358 return NULL;
27359 }
27360
27361
27362 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
27363 PyObject *resultobj;
27364 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27365 wxTreeItemId *arg2 = 0 ;
27366 PyObject * obj0 = 0 ;
27367 PyObject * obj1 = 0 ;
27368 char *kwnames[] = {
27369 (char *) "self",(char *) "item", NULL
27370 };
27371
27372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27376 SWIG_POINTER_EXCEPTION | 0)) == -1)
27377 SWIG_fail;
27378 if (arg2 == NULL) {
27379 PyErr_SetString(PyExc_TypeError,"null reference");
27380 SWIG_fail;
27381 }
27382 {
27383 PyThreadState* __tstate = wxPyBeginAllowThreads();
27384 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27385
27386 wxPyEndAllowThreads(__tstate);
27387 if (PyErr_Occurred()) SWIG_fail;
27388 }
27389 Py_INCREF(Py_None); resultobj = Py_None;
27390 return resultobj;
27391 fail:
27392 return NULL;
27393 }
27394
27395
27396 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
27397 PyObject *resultobj;
27398 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27399 wxTreeItemId *arg2 = 0 ;
27400 PyObject * obj0 = 0 ;
27401 PyObject * obj1 = 0 ;
27402 char *kwnames[] = {
27403 (char *) "self",(char *) "item", NULL
27404 };
27405
27406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27409 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27410 SWIG_POINTER_EXCEPTION | 0)) == -1)
27411 SWIG_fail;
27412 if (arg2 == NULL) {
27413 PyErr_SetString(PyExc_TypeError,"null reference");
27414 SWIG_fail;
27415 }
27416 {
27417 PyThreadState* __tstate = wxPyBeginAllowThreads();
27418 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27419
27420 wxPyEndAllowThreads(__tstate);
27421 if (PyErr_Occurred()) SWIG_fail;
27422 }
27423 Py_INCREF(Py_None); resultobj = Py_None;
27424 return resultobj;
27425 fail:
27426 return NULL;
27427 }
27428
27429
27430 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
27431 PyObject *resultobj;
27432 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27433 wxTreeItemId *arg2 = 0 ;
27434 PyObject * obj0 = 0 ;
27435 PyObject * obj1 = 0 ;
27436 char *kwnames[] = {
27437 (char *) "self",(char *) "item", NULL
27438 };
27439
27440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27443 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27444 SWIG_POINTER_EXCEPTION | 0)) == -1)
27445 SWIG_fail;
27446 if (arg2 == NULL) {
27447 PyErr_SetString(PyExc_TypeError,"null reference");
27448 SWIG_fail;
27449 }
27450 {
27451 PyThreadState* __tstate = wxPyBeginAllowThreads();
27452 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27453
27454 wxPyEndAllowThreads(__tstate);
27455 if (PyErr_Occurred()) SWIG_fail;
27456 }
27457 Py_INCREF(Py_None); resultobj = Py_None;
27458 return resultobj;
27459 fail:
27460 return NULL;
27461 }
27462
27463
27464 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27465 PyObject *resultobj;
27466 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27467 wxTextCtrl *result;
27468 PyObject * obj0 = 0 ;
27469 char *kwnames[] = {
27470 (char *) "self", NULL
27471 };
27472
27473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27476 {
27477 PyThreadState* __tstate = wxPyBeginAllowThreads();
27478 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27479
27480 wxPyEndAllowThreads(__tstate);
27481 if (PyErr_Occurred()) SWIG_fail;
27482 }
27483 {
27484 resultobj = wxPyMake_wxObject(result);
27485 }
27486 return resultobj;
27487 fail:
27488 return NULL;
27489 }
27490
27491
27492 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27493 PyObject *resultobj;
27494 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27495 wxTreeItemId *arg2 = 0 ;
27496 PyObject * obj0 = 0 ;
27497 PyObject * obj1 = 0 ;
27498 char *kwnames[] = {
27499 (char *) "self",(char *) "item", NULL
27500 };
27501
27502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
27503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27506 SWIG_POINTER_EXCEPTION | 0)) == -1)
27507 SWIG_fail;
27508 if (arg2 == NULL) {
27509 PyErr_SetString(PyExc_TypeError,"null reference");
27510 SWIG_fail;
27511 }
27512 {
27513 PyThreadState* __tstate = wxPyBeginAllowThreads();
27514 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
27515
27516 wxPyEndAllowThreads(__tstate);
27517 if (PyErr_Occurred()) SWIG_fail;
27518 }
27519 Py_INCREF(Py_None); resultobj = Py_None;
27520 return resultobj;
27521 fail:
27522 return NULL;
27523 }
27524
27525
27526 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
27527 PyObject *resultobj;
27528 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27529 wxPoint *arg2 = 0 ;
27530 int *arg3 = 0 ;
27531 wxTreeItemId result;
27532 wxPoint temp2 ;
27533 int temp3 ;
27534 PyObject * obj0 = 0 ;
27535 PyObject * obj1 = 0 ;
27536 char *kwnames[] = {
27537 (char *) "self",(char *) "point", NULL
27538 };
27539
27540 arg3 = &temp3;
27541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
27542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27544 {
27545 arg2 = &temp2;
27546 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27547 }
27548 {
27549 PyThreadState* __tstate = wxPyBeginAllowThreads();
27550 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
27551
27552 wxPyEndAllowThreads(__tstate);
27553 if (PyErr_Occurred()) SWIG_fail;
27554 }
27555 {
27556 wxTreeItemId * resultptr;
27557 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27558 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27559 }
27560 {
27561 PyObject *o = PyInt_FromLong((long) (*arg3));
27562 resultobj = t_output_helper(resultobj,o);
27563 }
27564 return resultobj;
27565 fail:
27566 return NULL;
27567 }
27568
27569
27570 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
27571 PyObject *resultobj;
27572 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27573 wxTreeItemId *arg2 = 0 ;
27574 bool arg3 = (bool) False ;
27575 PyObject *result;
27576 PyObject * obj0 = 0 ;
27577 PyObject * obj1 = 0 ;
27578 PyObject * obj2 = 0 ;
27579 char *kwnames[] = {
27580 (char *) "self",(char *) "item",(char *) "textOnly", NULL
27581 };
27582
27583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
27584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27586 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27587 SWIG_POINTER_EXCEPTION | 0)) == -1)
27588 SWIG_fail;
27589 if (arg2 == NULL) {
27590 PyErr_SetString(PyExc_TypeError,"null reference");
27591 SWIG_fail;
27592 }
27593 if (obj2) {
27594 arg3 = (bool) SWIG_AsBool(obj2);
27595 if (PyErr_Occurred()) SWIG_fail;
27596 }
27597 {
27598 PyThreadState* __tstate = wxPyBeginAllowThreads();
27599 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
27600
27601 wxPyEndAllowThreads(__tstate);
27602 if (PyErr_Occurred()) SWIG_fail;
27603 }
27604 resultobj = result;
27605 return resultobj;
27606 fail:
27607 return NULL;
27608 }
27609
27610
27611 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
27612 PyObject *resultobj;
27613 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
27614 wxVisualAttributes result;
27615 PyObject * obj0 = 0 ;
27616 char *kwnames[] = {
27617 (char *) "variant", NULL
27618 };
27619
27620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
27621 if (obj0) {
27622 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
27623 if (PyErr_Occurred()) SWIG_fail;
27624 }
27625 {
27626 PyThreadState* __tstate = wxPyBeginAllowThreads();
27627 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
27628
27629 wxPyEndAllowThreads(__tstate);
27630 if (PyErr_Occurred()) SWIG_fail;
27631 }
27632 {
27633 wxVisualAttributes * resultptr;
27634 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
27635 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
27636 }
27637 return resultobj;
27638 fail:
27639 return NULL;
27640 }
27641
27642
27643 static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
27644 PyObject *obj;
27645 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27646 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
27647 Py_INCREF(obj);
27648 return Py_BuildValue((char *)"");
27649 }
27650 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
27651 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
27652 return 1;
27653 }
27654
27655
27656 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
27657 PyObject *pyobj;
27658
27659 {
27660 #if wxUSE_UNICODE
27661 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27662 #else
27663 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27664 #endif
27665 }
27666 return pyobj;
27667 }
27668
27669
27670 static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27671 PyObject *resultobj;
27672 wxWindow *arg1 = (wxWindow *) 0 ;
27673 int arg2 = (int) (int)-1 ;
27674 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
27675 wxString *arg3 = (wxString *) &arg3_defvalue ;
27676 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27677 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27678 wxSize const &arg5_defvalue = wxDefaultSize ;
27679 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27680 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27681 wxString const &arg7_defvalue = wxPyEmptyString ;
27682 wxString *arg7 = (wxString *) &arg7_defvalue ;
27683 int arg8 = (int) 0 ;
27684 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
27685 wxString *arg9 = (wxString *) &arg9_defvalue ;
27686 wxGenericDirCtrl *result;
27687 bool temp3 = False ;
27688 wxPoint temp4 ;
27689 wxSize temp5 ;
27690 bool temp7 = False ;
27691 bool temp9 = False ;
27692 PyObject * obj0 = 0 ;
27693 PyObject * obj1 = 0 ;
27694 PyObject * obj2 = 0 ;
27695 PyObject * obj3 = 0 ;
27696 PyObject * obj4 = 0 ;
27697 PyObject * obj5 = 0 ;
27698 PyObject * obj6 = 0 ;
27699 PyObject * obj7 = 0 ;
27700 PyObject * obj8 = 0 ;
27701 char *kwnames[] = {
27702 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27703 };
27704
27705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
27706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27708 if (obj1) {
27709 arg2 = (int const) SWIG_AsInt(obj1);
27710 if (PyErr_Occurred()) SWIG_fail;
27711 }
27712 if (obj2) {
27713 {
27714 arg3 = wxString_in_helper(obj2);
27715 if (arg3 == NULL) SWIG_fail;
27716 temp3 = True;
27717 }
27718 }
27719 if (obj3) {
27720 {
27721 arg4 = &temp4;
27722 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27723 }
27724 }
27725 if (obj4) {
27726 {
27727 arg5 = &temp5;
27728 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27729 }
27730 }
27731 if (obj5) {
27732 arg6 = (long) SWIG_AsLong(obj5);
27733 if (PyErr_Occurred()) SWIG_fail;
27734 }
27735 if (obj6) {
27736 {
27737 arg7 = wxString_in_helper(obj6);
27738 if (arg7 == NULL) SWIG_fail;
27739 temp7 = True;
27740 }
27741 }
27742 if (obj7) {
27743 arg8 = (int) SWIG_AsInt(obj7);
27744 if (PyErr_Occurred()) SWIG_fail;
27745 }
27746 if (obj8) {
27747 {
27748 arg9 = wxString_in_helper(obj8);
27749 if (arg9 == NULL) SWIG_fail;
27750 temp9 = True;
27751 }
27752 }
27753 {
27754 PyThreadState* __tstate = wxPyBeginAllowThreads();
27755 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
27756
27757 wxPyEndAllowThreads(__tstate);
27758 if (PyErr_Occurred()) SWIG_fail;
27759 }
27760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27761 {
27762 if (temp3)
27763 delete arg3;
27764 }
27765 {
27766 if (temp7)
27767 delete arg7;
27768 }
27769 {
27770 if (temp9)
27771 delete arg9;
27772 }
27773 return resultobj;
27774 fail:
27775 {
27776 if (temp3)
27777 delete arg3;
27778 }
27779 {
27780 if (temp7)
27781 delete arg7;
27782 }
27783 {
27784 if (temp9)
27785 delete arg9;
27786 }
27787 return NULL;
27788 }
27789
27790
27791 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27792 PyObject *resultobj;
27793 wxGenericDirCtrl *result;
27794 char *kwnames[] = {
27795 NULL
27796 };
27797
27798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
27799 {
27800 PyThreadState* __tstate = wxPyBeginAllowThreads();
27801 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
27802
27803 wxPyEndAllowThreads(__tstate);
27804 if (PyErr_Occurred()) SWIG_fail;
27805 }
27806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27807 return resultobj;
27808 fail:
27809 return NULL;
27810 }
27811
27812
27813 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
27814 PyObject *resultobj;
27815 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27816 wxWindow *arg2 = (wxWindow *) 0 ;
27817 int arg3 = (int) (int)-1 ;
27818 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
27819 wxString *arg4 = (wxString *) &arg4_defvalue ;
27820 wxPoint const &arg5_defvalue = wxDefaultPosition ;
27821 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
27822 wxSize const &arg6_defvalue = wxDefaultSize ;
27823 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
27824 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27825 wxString const &arg8_defvalue = wxPyEmptyString ;
27826 wxString *arg8 = (wxString *) &arg8_defvalue ;
27827 int arg9 = (int) 0 ;
27828 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
27829 wxString *arg10 = (wxString *) &arg10_defvalue ;
27830 bool result;
27831 bool temp4 = False ;
27832 wxPoint temp5 ;
27833 wxSize temp6 ;
27834 bool temp8 = False ;
27835 bool temp10 = False ;
27836 PyObject * obj0 = 0 ;
27837 PyObject * obj1 = 0 ;
27838 PyObject * obj2 = 0 ;
27839 PyObject * obj3 = 0 ;
27840 PyObject * obj4 = 0 ;
27841 PyObject * obj5 = 0 ;
27842 PyObject * obj6 = 0 ;
27843 PyObject * obj7 = 0 ;
27844 PyObject * obj8 = 0 ;
27845 PyObject * obj9 = 0 ;
27846 char *kwnames[] = {
27847 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27848 };
27849
27850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
27851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27853 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
27854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27855 if (obj2) {
27856 arg3 = (int const) SWIG_AsInt(obj2);
27857 if (PyErr_Occurred()) SWIG_fail;
27858 }
27859 if (obj3) {
27860 {
27861 arg4 = wxString_in_helper(obj3);
27862 if (arg4 == NULL) SWIG_fail;
27863 temp4 = True;
27864 }
27865 }
27866 if (obj4) {
27867 {
27868 arg5 = &temp5;
27869 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
27870 }
27871 }
27872 if (obj5) {
27873 {
27874 arg6 = &temp6;
27875 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
27876 }
27877 }
27878 if (obj6) {
27879 arg7 = (long) SWIG_AsLong(obj6);
27880 if (PyErr_Occurred()) SWIG_fail;
27881 }
27882 if (obj7) {
27883 {
27884 arg8 = wxString_in_helper(obj7);
27885 if (arg8 == NULL) SWIG_fail;
27886 temp8 = True;
27887 }
27888 }
27889 if (obj8) {
27890 arg9 = (int) SWIG_AsInt(obj8);
27891 if (PyErr_Occurred()) SWIG_fail;
27892 }
27893 if (obj9) {
27894 {
27895 arg10 = wxString_in_helper(obj9);
27896 if (arg10 == NULL) SWIG_fail;
27897 temp10 = True;
27898 }
27899 }
27900 {
27901 PyThreadState* __tstate = wxPyBeginAllowThreads();
27902 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
27903
27904 wxPyEndAllowThreads(__tstate);
27905 if (PyErr_Occurred()) SWIG_fail;
27906 }
27907 {
27908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27909 }
27910 {
27911 if (temp4)
27912 delete arg4;
27913 }
27914 {
27915 if (temp8)
27916 delete arg8;
27917 }
27918 {
27919 if (temp10)
27920 delete arg10;
27921 }
27922 return resultobj;
27923 fail:
27924 {
27925 if (temp4)
27926 delete arg4;
27927 }
27928 {
27929 if (temp8)
27930 delete arg8;
27931 }
27932 {
27933 if (temp10)
27934 delete arg10;
27935 }
27936 return NULL;
27937 }
27938
27939
27940 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27941 PyObject *resultobj;
27942 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27943 wxString *arg2 = 0 ;
27944 bool result;
27945 bool temp2 = False ;
27946 PyObject * obj0 = 0 ;
27947 PyObject * obj1 = 0 ;
27948 char *kwnames[] = {
27949 (char *) "self",(char *) "path", NULL
27950 };
27951
27952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
27953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27955 {
27956 arg2 = wxString_in_helper(obj1);
27957 if (arg2 == NULL) SWIG_fail;
27958 temp2 = True;
27959 }
27960 {
27961 PyThreadState* __tstate = wxPyBeginAllowThreads();
27962 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
27963
27964 wxPyEndAllowThreads(__tstate);
27965 if (PyErr_Occurred()) SWIG_fail;
27966 }
27967 {
27968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27969 }
27970 {
27971 if (temp2)
27972 delete arg2;
27973 }
27974 return resultobj;
27975 fail:
27976 {
27977 if (temp2)
27978 delete arg2;
27979 }
27980 return NULL;
27981 }
27982
27983
27984 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27985 PyObject *resultobj;
27986 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27987 wxString result;
27988 PyObject * obj0 = 0 ;
27989 char *kwnames[] = {
27990 (char *) "self", NULL
27991 };
27992
27993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
27994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27996 {
27997 PyThreadState* __tstate = wxPyBeginAllowThreads();
27998 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
27999
28000 wxPyEndAllowThreads(__tstate);
28001 if (PyErr_Occurred()) SWIG_fail;
28002 }
28003 {
28004 #if wxUSE_UNICODE
28005 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28006 #else
28007 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28008 #endif
28009 }
28010 return resultobj;
28011 fail:
28012 return NULL;
28013 }
28014
28015
28016 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28017 PyObject *resultobj;
28018 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28019 wxString *arg2 = 0 ;
28020 bool temp2 = False ;
28021 PyObject * obj0 = 0 ;
28022 PyObject * obj1 = 0 ;
28023 char *kwnames[] = {
28024 (char *) "self",(char *) "path", NULL
28025 };
28026
28027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28030 {
28031 arg2 = wxString_in_helper(obj1);
28032 if (arg2 == NULL) SWIG_fail;
28033 temp2 = True;
28034 }
28035 {
28036 PyThreadState* __tstate = wxPyBeginAllowThreads();
28037 (arg1)->SetDefaultPath((wxString const &)*arg2);
28038
28039 wxPyEndAllowThreads(__tstate);
28040 if (PyErr_Occurred()) SWIG_fail;
28041 }
28042 Py_INCREF(Py_None); resultobj = Py_None;
28043 {
28044 if (temp2)
28045 delete arg2;
28046 }
28047 return resultobj;
28048 fail:
28049 {
28050 if (temp2)
28051 delete arg2;
28052 }
28053 return NULL;
28054 }
28055
28056
28057 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28058 PyObject *resultobj;
28059 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28060 wxString result;
28061 PyObject * obj0 = 0 ;
28062 char *kwnames[] = {
28063 (char *) "self", NULL
28064 };
28065
28066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28069 {
28070 PyThreadState* __tstate = wxPyBeginAllowThreads();
28071 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28072
28073 wxPyEndAllowThreads(__tstate);
28074 if (PyErr_Occurred()) SWIG_fail;
28075 }
28076 {
28077 #if wxUSE_UNICODE
28078 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28079 #else
28080 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28081 #endif
28082 }
28083 return resultobj;
28084 fail:
28085 return NULL;
28086 }
28087
28088
28089 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
28090 PyObject *resultobj;
28091 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28092 wxString result;
28093 PyObject * obj0 = 0 ;
28094 char *kwnames[] = {
28095 (char *) "self", NULL
28096 };
28097
28098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28101 {
28102 PyThreadState* __tstate = wxPyBeginAllowThreads();
28103 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28104
28105 wxPyEndAllowThreads(__tstate);
28106 if (PyErr_Occurred()) SWIG_fail;
28107 }
28108 {
28109 #if wxUSE_UNICODE
28110 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28111 #else
28112 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28113 #endif
28114 }
28115 return resultobj;
28116 fail:
28117 return NULL;
28118 }
28119
28120
28121 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28122 PyObject *resultobj;
28123 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28124 wxString *arg2 = 0 ;
28125 bool temp2 = False ;
28126 PyObject * obj0 = 0 ;
28127 PyObject * obj1 = 0 ;
28128 char *kwnames[] = {
28129 (char *) "self",(char *) "path", NULL
28130 };
28131
28132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28135 {
28136 arg2 = wxString_in_helper(obj1);
28137 if (arg2 == NULL) SWIG_fail;
28138 temp2 = True;
28139 }
28140 {
28141 PyThreadState* __tstate = wxPyBeginAllowThreads();
28142 (arg1)->SetPath((wxString const &)*arg2);
28143
28144 wxPyEndAllowThreads(__tstate);
28145 if (PyErr_Occurred()) SWIG_fail;
28146 }
28147 Py_INCREF(Py_None); resultobj = Py_None;
28148 {
28149 if (temp2)
28150 delete arg2;
28151 }
28152 return resultobj;
28153 fail:
28154 {
28155 if (temp2)
28156 delete arg2;
28157 }
28158 return NULL;
28159 }
28160
28161
28162 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28163 PyObject *resultobj;
28164 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28165 bool arg2 ;
28166 PyObject * obj0 = 0 ;
28167 PyObject * obj1 = 0 ;
28168 char *kwnames[] = {
28169 (char *) "self",(char *) "show", NULL
28170 };
28171
28172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28175 arg2 = (bool) SWIG_AsBool(obj1);
28176 if (PyErr_Occurred()) SWIG_fail;
28177 {
28178 PyThreadState* __tstate = wxPyBeginAllowThreads();
28179 (arg1)->ShowHidden(arg2);
28180
28181 wxPyEndAllowThreads(__tstate);
28182 if (PyErr_Occurred()) SWIG_fail;
28183 }
28184 Py_INCREF(Py_None); resultobj = Py_None;
28185 return resultobj;
28186 fail:
28187 return NULL;
28188 }
28189
28190
28191 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28192 PyObject *resultobj;
28193 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28194 bool result;
28195 PyObject * obj0 = 0 ;
28196 char *kwnames[] = {
28197 (char *) "self", NULL
28198 };
28199
28200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28203 {
28204 PyThreadState* __tstate = wxPyBeginAllowThreads();
28205 result = (bool)(arg1)->GetShowHidden();
28206
28207 wxPyEndAllowThreads(__tstate);
28208 if (PyErr_Occurred()) SWIG_fail;
28209 }
28210 {
28211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28212 }
28213 return resultobj;
28214 fail:
28215 return NULL;
28216 }
28217
28218
28219 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28220 PyObject *resultobj;
28221 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28222 wxString result;
28223 PyObject * obj0 = 0 ;
28224 char *kwnames[] = {
28225 (char *) "self", NULL
28226 };
28227
28228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28231 {
28232 PyThreadState* __tstate = wxPyBeginAllowThreads();
28233 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28234
28235 wxPyEndAllowThreads(__tstate);
28236 if (PyErr_Occurred()) SWIG_fail;
28237 }
28238 {
28239 #if wxUSE_UNICODE
28240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28241 #else
28242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28243 #endif
28244 }
28245 return resultobj;
28246 fail:
28247 return NULL;
28248 }
28249
28250
28251 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28252 PyObject *resultobj;
28253 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28254 wxString *arg2 = 0 ;
28255 bool temp2 = False ;
28256 PyObject * obj0 = 0 ;
28257 PyObject * obj1 = 0 ;
28258 char *kwnames[] = {
28259 (char *) "self",(char *) "filter", NULL
28260 };
28261
28262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28265 {
28266 arg2 = wxString_in_helper(obj1);
28267 if (arg2 == NULL) SWIG_fail;
28268 temp2 = True;
28269 }
28270 {
28271 PyThreadState* __tstate = wxPyBeginAllowThreads();
28272 (arg1)->SetFilter((wxString const &)*arg2);
28273
28274 wxPyEndAllowThreads(__tstate);
28275 if (PyErr_Occurred()) SWIG_fail;
28276 }
28277 Py_INCREF(Py_None); resultobj = Py_None;
28278 {
28279 if (temp2)
28280 delete arg2;
28281 }
28282 return resultobj;
28283 fail:
28284 {
28285 if (temp2)
28286 delete arg2;
28287 }
28288 return NULL;
28289 }
28290
28291
28292 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28293 PyObject *resultobj;
28294 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28295 int result;
28296 PyObject * obj0 = 0 ;
28297 char *kwnames[] = {
28298 (char *) "self", NULL
28299 };
28300
28301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28304 {
28305 PyThreadState* __tstate = wxPyBeginAllowThreads();
28306 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28307
28308 wxPyEndAllowThreads(__tstate);
28309 if (PyErr_Occurred()) SWIG_fail;
28310 }
28311 resultobj = SWIG_FromInt((int)result);
28312 return resultobj;
28313 fail:
28314 return NULL;
28315 }
28316
28317
28318 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28319 PyObject *resultobj;
28320 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28321 int arg2 ;
28322 PyObject * obj0 = 0 ;
28323 PyObject * obj1 = 0 ;
28324 char *kwnames[] = {
28325 (char *) "self",(char *) "n", NULL
28326 };
28327
28328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28331 arg2 = (int) SWIG_AsInt(obj1);
28332 if (PyErr_Occurred()) SWIG_fail;
28333 {
28334 PyThreadState* __tstate = wxPyBeginAllowThreads();
28335 (arg1)->SetFilterIndex(arg2);
28336
28337 wxPyEndAllowThreads(__tstate);
28338 if (PyErr_Occurred()) SWIG_fail;
28339 }
28340 Py_INCREF(Py_None); resultobj = Py_None;
28341 return resultobj;
28342 fail:
28343 return NULL;
28344 }
28345
28346
28347 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
28348 PyObject *resultobj;
28349 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28350 wxTreeItemId result;
28351 PyObject * obj0 = 0 ;
28352 char *kwnames[] = {
28353 (char *) "self", NULL
28354 };
28355
28356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28359 {
28360 PyThreadState* __tstate = wxPyBeginAllowThreads();
28361 result = (arg1)->GetRootId();
28362
28363 wxPyEndAllowThreads(__tstate);
28364 if (PyErr_Occurred()) SWIG_fail;
28365 }
28366 {
28367 wxTreeItemId * resultptr;
28368 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28369 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28370 }
28371 return resultobj;
28372 fail:
28373 return NULL;
28374 }
28375
28376
28377 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28378 PyObject *resultobj;
28379 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28380 wxPyTreeCtrl *result;
28381 PyObject * obj0 = 0 ;
28382 char *kwnames[] = {
28383 (char *) "self", NULL
28384 };
28385
28386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
28387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28389 {
28390 PyThreadState* __tstate = wxPyBeginAllowThreads();
28391 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
28392
28393 wxPyEndAllowThreads(__tstate);
28394 if (PyErr_Occurred()) SWIG_fail;
28395 }
28396 {
28397 resultobj = wxPyMake_wxObject(result);
28398 }
28399 return resultobj;
28400 fail:
28401 return NULL;
28402 }
28403
28404
28405 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28406 PyObject *resultobj;
28407 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28408 wxDirFilterListCtrl *result;
28409 PyObject * obj0 = 0 ;
28410 char *kwnames[] = {
28411 (char *) "self", NULL
28412 };
28413
28414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
28415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28417 {
28418 PyThreadState* __tstate = wxPyBeginAllowThreads();
28419 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
28420
28421 wxPyEndAllowThreads(__tstate);
28422 if (PyErr_Occurred()) SWIG_fail;
28423 }
28424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
28425 return resultobj;
28426 fail:
28427 return NULL;
28428 }
28429
28430
28431 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28432 PyObject *resultobj;
28433 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28434 wxTreeItemId arg2 ;
28435 wxString *arg3 = 0 ;
28436 bool *arg4 = 0 ;
28437 wxTreeItemId result;
28438 wxTreeItemId *argp2 ;
28439 bool temp3 = False ;
28440 bool temp4 ;
28441 PyObject * obj0 = 0 ;
28442 PyObject * obj1 = 0 ;
28443 PyObject * obj2 = 0 ;
28444 char *kwnames[] = {
28445 (char *) "self",(char *) "parentId",(char *) "path", NULL
28446 };
28447
28448 arg4 = &temp4;
28449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
28450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28452 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
28453 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
28454 arg2 = *argp2;
28455 {
28456 arg3 = wxString_in_helper(obj2);
28457 if (arg3 == NULL) SWIG_fail;
28458 temp3 = True;
28459 }
28460 {
28461 PyThreadState* __tstate = wxPyBeginAllowThreads();
28462 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
28463
28464 wxPyEndAllowThreads(__tstate);
28465 if (PyErr_Occurred()) SWIG_fail;
28466 }
28467 {
28468 wxTreeItemId * resultptr;
28469 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28471 }
28472 {
28473 PyObject *o = PyInt_FromLong((long) (*arg4));
28474 resultobj = t_output_helper(resultobj,o);
28475 }
28476 {
28477 if (temp3)
28478 delete arg3;
28479 }
28480 return resultobj;
28481 fail:
28482 {
28483 if (temp3)
28484 delete arg3;
28485 }
28486 return NULL;
28487 }
28488
28489
28490 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
28491 PyObject *resultobj;
28492 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28493 PyObject * obj0 = 0 ;
28494 char *kwnames[] = {
28495 (char *) "self", NULL
28496 };
28497
28498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
28499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28501 {
28502 PyThreadState* __tstate = wxPyBeginAllowThreads();
28503 (arg1)->DoResize();
28504
28505 wxPyEndAllowThreads(__tstate);
28506 if (PyErr_Occurred()) SWIG_fail;
28507 }
28508 Py_INCREF(Py_None); resultobj = Py_None;
28509 return resultobj;
28510 fail:
28511 return NULL;
28512 }
28513
28514
28515 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
28516 PyObject *resultobj;
28517 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28518 PyObject * obj0 = 0 ;
28519 char *kwnames[] = {
28520 (char *) "self", NULL
28521 };
28522
28523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
28524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28526 {
28527 PyThreadState* __tstate = wxPyBeginAllowThreads();
28528 (arg1)->ReCreateTree();
28529
28530 wxPyEndAllowThreads(__tstate);
28531 if (PyErr_Occurred()) SWIG_fail;
28532 }
28533 Py_INCREF(Py_None); resultobj = Py_None;
28534 return resultobj;
28535 fail:
28536 return NULL;
28537 }
28538
28539
28540 static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
28541 PyObject *obj;
28542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28543 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
28544 Py_INCREF(obj);
28545 return Py_BuildValue((char *)"");
28546 }
28547 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28548 PyObject *resultobj;
28549 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28550 int arg2 = (int) (int)-1 ;
28551 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28552 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28553 wxSize const &arg4_defvalue = wxDefaultSize ;
28554 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28555 long arg5 = (long) 0 ;
28556 wxDirFilterListCtrl *result;
28557 wxPoint temp3 ;
28558 wxSize temp4 ;
28559 PyObject * obj0 = 0 ;
28560 PyObject * obj1 = 0 ;
28561 PyObject * obj2 = 0 ;
28562 PyObject * obj3 = 0 ;
28563 PyObject * obj4 = 0 ;
28564 char *kwnames[] = {
28565 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28566 };
28567
28568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28571 if (obj1) {
28572 arg2 = (int const) SWIG_AsInt(obj1);
28573 if (PyErr_Occurred()) SWIG_fail;
28574 }
28575 if (obj2) {
28576 {
28577 arg3 = &temp3;
28578 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28579 }
28580 }
28581 if (obj3) {
28582 {
28583 arg4 = &temp4;
28584 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28585 }
28586 }
28587 if (obj4) {
28588 arg5 = (long) SWIG_AsLong(obj4);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 {
28592 PyThreadState* __tstate = wxPyBeginAllowThreads();
28593 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28594
28595 wxPyEndAllowThreads(__tstate);
28596 if (PyErr_Occurred()) SWIG_fail;
28597 }
28598 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28599 return resultobj;
28600 fail:
28601 return NULL;
28602 }
28603
28604
28605 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28606 PyObject *resultobj;
28607 wxDirFilterListCtrl *result;
28608 char *kwnames[] = {
28609 NULL
28610 };
28611
28612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
28613 {
28614 PyThreadState* __tstate = wxPyBeginAllowThreads();
28615 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
28616
28617 wxPyEndAllowThreads(__tstate);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28621 return resultobj;
28622 fail:
28623 return NULL;
28624 }
28625
28626
28627 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
28628 PyObject *resultobj;
28629 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28630 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
28631 int arg3 = (int) (int)-1 ;
28632 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28633 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28634 wxSize const &arg5_defvalue = wxDefaultSize ;
28635 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28636 long arg6 = (long) 0 ;
28637 bool result;
28638 wxPoint temp4 ;
28639 wxSize temp5 ;
28640 PyObject * obj0 = 0 ;
28641 PyObject * obj1 = 0 ;
28642 PyObject * obj2 = 0 ;
28643 PyObject * obj3 = 0 ;
28644 PyObject * obj4 = 0 ;
28645 PyObject * obj5 = 0 ;
28646 char *kwnames[] = {
28647 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28648 };
28649
28650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28653 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
28654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28655 if (obj2) {
28656 arg3 = (int const) SWIG_AsInt(obj2);
28657 if (PyErr_Occurred()) SWIG_fail;
28658 }
28659 if (obj3) {
28660 {
28661 arg4 = &temp4;
28662 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28663 }
28664 }
28665 if (obj4) {
28666 {
28667 arg5 = &temp5;
28668 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28669 }
28670 }
28671 if (obj5) {
28672 arg6 = (long) SWIG_AsLong(obj5);
28673 if (PyErr_Occurred()) SWIG_fail;
28674 }
28675 {
28676 PyThreadState* __tstate = wxPyBeginAllowThreads();
28677 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
28678
28679 wxPyEndAllowThreads(__tstate);
28680 if (PyErr_Occurred()) SWIG_fail;
28681 }
28682 {
28683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28684 }
28685 return resultobj;
28686 fail:
28687 return NULL;
28688 }
28689
28690
28691 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
28692 PyObject *resultobj;
28693 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28694 wxString *arg2 = 0 ;
28695 int arg3 ;
28696 bool temp2 = False ;
28697 PyObject * obj0 = 0 ;
28698 PyObject * obj1 = 0 ;
28699 PyObject * obj2 = 0 ;
28700 char *kwnames[] = {
28701 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
28702 };
28703
28704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
28705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28707 {
28708 arg2 = wxString_in_helper(obj1);
28709 if (arg2 == NULL) SWIG_fail;
28710 temp2 = True;
28711 }
28712 arg3 = (int) SWIG_AsInt(obj2);
28713 if (PyErr_Occurred()) SWIG_fail;
28714 {
28715 PyThreadState* __tstate = wxPyBeginAllowThreads();
28716 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
28717
28718 wxPyEndAllowThreads(__tstate);
28719 if (PyErr_Occurred()) SWIG_fail;
28720 }
28721 Py_INCREF(Py_None); resultobj = Py_None;
28722 {
28723 if (temp2)
28724 delete arg2;
28725 }
28726 return resultobj;
28727 fail:
28728 {
28729 if (temp2)
28730 delete arg2;
28731 }
28732 return NULL;
28733 }
28734
28735
28736 static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
28737 PyObject *obj;
28738 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28739 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
28740 Py_INCREF(obj);
28741 return Py_BuildValue((char *)"");
28742 }
28743 static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28744 PyObject *resultobj;
28745 wxWindow *arg1 = (wxWindow *) 0 ;
28746 int arg2 ;
28747 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28748 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28749 wxSize const &arg4_defvalue = wxDefaultSize ;
28750 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28751 long arg5 = (long) 0 ;
28752 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28753 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28754 wxString const &arg7_defvalue = wxPyControlNameStr ;
28755 wxString *arg7 = (wxString *) &arg7_defvalue ;
28756 wxPyControl *result;
28757 wxPoint temp3 ;
28758 wxSize temp4 ;
28759 bool temp7 = False ;
28760 PyObject * obj0 = 0 ;
28761 PyObject * obj1 = 0 ;
28762 PyObject * obj2 = 0 ;
28763 PyObject * obj3 = 0 ;
28764 PyObject * obj4 = 0 ;
28765 PyObject * obj5 = 0 ;
28766 PyObject * obj6 = 0 ;
28767 char *kwnames[] = {
28768 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28769 };
28770
28771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
28772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28774 arg2 = (int const) SWIG_AsInt(obj1);
28775 if (PyErr_Occurred()) SWIG_fail;
28776 if (obj2) {
28777 {
28778 arg3 = &temp3;
28779 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28780 }
28781 }
28782 if (obj3) {
28783 {
28784 arg4 = &temp4;
28785 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28786 }
28787 }
28788 if (obj4) {
28789 arg5 = (long) SWIG_AsLong(obj4);
28790 if (PyErr_Occurred()) SWIG_fail;
28791 }
28792 if (obj5) {
28793 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
28794 SWIG_POINTER_EXCEPTION | 0)) == -1)
28795 SWIG_fail;
28796 if (arg6 == NULL) {
28797 PyErr_SetString(PyExc_TypeError,"null reference");
28798 SWIG_fail;
28799 }
28800 }
28801 if (obj6) {
28802 {
28803 arg7 = wxString_in_helper(obj6);
28804 if (arg7 == NULL) SWIG_fail;
28805 temp7 = True;
28806 }
28807 }
28808 {
28809 PyThreadState* __tstate = wxPyBeginAllowThreads();
28810 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28811
28812 wxPyEndAllowThreads(__tstate);
28813 if (PyErr_Occurred()) SWIG_fail;
28814 }
28815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28816 {
28817 if (temp7)
28818 delete arg7;
28819 }
28820 return resultobj;
28821 fail:
28822 {
28823 if (temp7)
28824 delete arg7;
28825 }
28826 return NULL;
28827 }
28828
28829
28830 static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28831 PyObject *resultobj;
28832 wxPyControl *result;
28833 char *kwnames[] = {
28834 NULL
28835 };
28836
28837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
28838 {
28839 PyThreadState* __tstate = wxPyBeginAllowThreads();
28840 result = (wxPyControl *)new wxPyControl();
28841
28842 wxPyEndAllowThreads(__tstate);
28843 if (PyErr_Occurred()) SWIG_fail;
28844 }
28845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28846 return resultobj;
28847 fail:
28848 return NULL;
28849 }
28850
28851
28852 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
28853 PyObject *resultobj;
28854 wxPyControl *arg1 = (wxPyControl *) 0 ;
28855 PyObject *arg2 = (PyObject *) 0 ;
28856 PyObject *arg3 = (PyObject *) 0 ;
28857 PyObject * obj0 = 0 ;
28858 PyObject * obj1 = 0 ;
28859 PyObject * obj2 = 0 ;
28860 char *kwnames[] = {
28861 (char *) "self",(char *) "self",(char *) "_class", NULL
28862 };
28863
28864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
28865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28867 arg2 = obj1;
28868 arg3 = obj2;
28869 {
28870 PyThreadState* __tstate = wxPyBeginAllowThreads();
28871 (arg1)->_setCallbackInfo(arg2,arg3);
28872
28873 wxPyEndAllowThreads(__tstate);
28874 if (PyErr_Occurred()) SWIG_fail;
28875 }
28876 Py_INCREF(Py_None); resultobj = Py_None;
28877 return resultobj;
28878 fail:
28879 return NULL;
28880 }
28881
28882
28883 static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28884 PyObject *resultobj;
28885 wxPyControl *arg1 = (wxPyControl *) 0 ;
28886 wxSize *arg2 = 0 ;
28887 wxSize temp2 ;
28888 PyObject * obj0 = 0 ;
28889 PyObject * obj1 = 0 ;
28890 char *kwnames[] = {
28891 (char *) "self",(char *) "size", NULL
28892 };
28893
28894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
28895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28897 {
28898 arg2 = &temp2;
28899 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
28900 }
28901 {
28902 PyThreadState* __tstate = wxPyBeginAllowThreads();
28903 (arg1)->SetBestSize((wxSize const &)*arg2);
28904
28905 wxPyEndAllowThreads(__tstate);
28906 if (PyErr_Occurred()) SWIG_fail;
28907 }
28908 Py_INCREF(Py_None); resultobj = Py_None;
28909 return resultobj;
28910 fail:
28911 return NULL;
28912 }
28913
28914
28915 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28916 PyObject *resultobj;
28917 wxPyControl *arg1 = (wxPyControl *) 0 ;
28918 int arg2 ;
28919 int arg3 ;
28920 int arg4 ;
28921 int arg5 ;
28922 PyObject * obj0 = 0 ;
28923 PyObject * obj1 = 0 ;
28924 PyObject * obj2 = 0 ;
28925 PyObject * obj3 = 0 ;
28926 PyObject * obj4 = 0 ;
28927 char *kwnames[] = {
28928 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28929 };
28930
28931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28934 arg2 = (int) SWIG_AsInt(obj1);
28935 if (PyErr_Occurred()) SWIG_fail;
28936 arg3 = (int) SWIG_AsInt(obj2);
28937 if (PyErr_Occurred()) SWIG_fail;
28938 arg4 = (int) SWIG_AsInt(obj3);
28939 if (PyErr_Occurred()) SWIG_fail;
28940 arg5 = (int) SWIG_AsInt(obj4);
28941 if (PyErr_Occurred()) SWIG_fail;
28942 {
28943 PyThreadState* __tstate = wxPyBeginAllowThreads();
28944 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
28945
28946 wxPyEndAllowThreads(__tstate);
28947 if (PyErr_Occurred()) SWIG_fail;
28948 }
28949 Py_INCREF(Py_None); resultobj = Py_None;
28950 return resultobj;
28951 fail:
28952 return NULL;
28953 }
28954
28955
28956 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28957 PyObject *resultobj;
28958 wxPyControl *arg1 = (wxPyControl *) 0 ;
28959 int arg2 ;
28960 int arg3 ;
28961 int arg4 ;
28962 int arg5 ;
28963 int arg6 = (int) wxSIZE_AUTO ;
28964 PyObject * obj0 = 0 ;
28965 PyObject * obj1 = 0 ;
28966 PyObject * obj2 = 0 ;
28967 PyObject * obj3 = 0 ;
28968 PyObject * obj4 = 0 ;
28969 PyObject * obj5 = 0 ;
28970 char *kwnames[] = {
28971 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
28972 };
28973
28974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28977 arg2 = (int) SWIG_AsInt(obj1);
28978 if (PyErr_Occurred()) SWIG_fail;
28979 arg3 = (int) SWIG_AsInt(obj2);
28980 if (PyErr_Occurred()) SWIG_fail;
28981 arg4 = (int) SWIG_AsInt(obj3);
28982 if (PyErr_Occurred()) SWIG_fail;
28983 arg5 = (int) SWIG_AsInt(obj4);
28984 if (PyErr_Occurred()) SWIG_fail;
28985 if (obj5) {
28986 arg6 = (int) SWIG_AsInt(obj5);
28987 if (PyErr_Occurred()) SWIG_fail;
28988 }
28989 {
28990 PyThreadState* __tstate = wxPyBeginAllowThreads();
28991 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
28992
28993 wxPyEndAllowThreads(__tstate);
28994 if (PyErr_Occurred()) SWIG_fail;
28995 }
28996 Py_INCREF(Py_None); resultobj = Py_None;
28997 return resultobj;
28998 fail:
28999 return NULL;
29000 }
29001
29002
29003 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29004 PyObject *resultobj;
29005 wxPyControl *arg1 = (wxPyControl *) 0 ;
29006 int arg2 ;
29007 int arg3 ;
29008 PyObject * obj0 = 0 ;
29009 PyObject * obj1 = 0 ;
29010 PyObject * obj2 = 0 ;
29011 char *kwnames[] = {
29012 (char *) "self",(char *) "width",(char *) "height", NULL
29013 };
29014
29015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29018 arg2 = (int) SWIG_AsInt(obj1);
29019 if (PyErr_Occurred()) SWIG_fail;
29020 arg3 = (int) SWIG_AsInt(obj2);
29021 if (PyErr_Occurred()) SWIG_fail;
29022 {
29023 PyThreadState* __tstate = wxPyBeginAllowThreads();
29024 (arg1)->base_DoSetClientSize(arg2,arg3);
29025
29026 wxPyEndAllowThreads(__tstate);
29027 if (PyErr_Occurred()) SWIG_fail;
29028 }
29029 Py_INCREF(Py_None); resultobj = Py_None;
29030 return resultobj;
29031 fail:
29032 return NULL;
29033 }
29034
29035
29036 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29037 PyObject *resultobj;
29038 wxPyControl *arg1 = (wxPyControl *) 0 ;
29039 int arg2 ;
29040 int arg3 ;
29041 PyObject * obj0 = 0 ;
29042 PyObject * obj1 = 0 ;
29043 PyObject * obj2 = 0 ;
29044 char *kwnames[] = {
29045 (char *) "self",(char *) "x",(char *) "y", NULL
29046 };
29047
29048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29051 arg2 = (int) SWIG_AsInt(obj1);
29052 if (PyErr_Occurred()) SWIG_fail;
29053 arg3 = (int) SWIG_AsInt(obj2);
29054 if (PyErr_Occurred()) SWIG_fail;
29055 {
29056 PyThreadState* __tstate = wxPyBeginAllowThreads();
29057 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29058
29059 wxPyEndAllowThreads(__tstate);
29060 if (PyErr_Occurred()) SWIG_fail;
29061 }
29062 Py_INCREF(Py_None); resultobj = Py_None;
29063 return resultobj;
29064 fail:
29065 return NULL;
29066 }
29067
29068
29069 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29070 PyObject *resultobj;
29071 wxPyControl *arg1 = (wxPyControl *) 0 ;
29072 int *arg2 = (int *) 0 ;
29073 int *arg3 = (int *) 0 ;
29074 int temp2 ;
29075 int temp3 ;
29076 PyObject * obj0 = 0 ;
29077 char *kwnames[] = {
29078 (char *) "self", NULL
29079 };
29080
29081 arg2 = &temp2;
29082 arg3 = &temp3;
29083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29086 {
29087 PyThreadState* __tstate = wxPyBeginAllowThreads();
29088 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29089
29090 wxPyEndAllowThreads(__tstate);
29091 if (PyErr_Occurred()) SWIG_fail;
29092 }
29093 Py_INCREF(Py_None); resultobj = Py_None;
29094 {
29095 PyObject *o = PyInt_FromLong((long) (*arg2));
29096 resultobj = t_output_helper(resultobj,o);
29097 }
29098 {
29099 PyObject *o = PyInt_FromLong((long) (*arg3));
29100 resultobj = t_output_helper(resultobj,o);
29101 }
29102 return resultobj;
29103 fail:
29104 return NULL;
29105 }
29106
29107
29108 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29109 PyObject *resultobj;
29110 wxPyControl *arg1 = (wxPyControl *) 0 ;
29111 int *arg2 = (int *) 0 ;
29112 int *arg3 = (int *) 0 ;
29113 int temp2 ;
29114 int temp3 ;
29115 PyObject * obj0 = 0 ;
29116 char *kwnames[] = {
29117 (char *) "self", NULL
29118 };
29119
29120 arg2 = &temp2;
29121 arg3 = &temp3;
29122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29125 {
29126 PyThreadState* __tstate = wxPyBeginAllowThreads();
29127 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29128
29129 wxPyEndAllowThreads(__tstate);
29130 if (PyErr_Occurred()) SWIG_fail;
29131 }
29132 Py_INCREF(Py_None); resultobj = Py_None;
29133 {
29134 PyObject *o = PyInt_FromLong((long) (*arg2));
29135 resultobj = t_output_helper(resultobj,o);
29136 }
29137 {
29138 PyObject *o = PyInt_FromLong((long) (*arg3));
29139 resultobj = t_output_helper(resultobj,o);
29140 }
29141 return resultobj;
29142 fail:
29143 return NULL;
29144 }
29145
29146
29147 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29148 PyObject *resultobj;
29149 wxPyControl *arg1 = (wxPyControl *) 0 ;
29150 int *arg2 = (int *) 0 ;
29151 int *arg3 = (int *) 0 ;
29152 int temp2 ;
29153 int temp3 ;
29154 PyObject * obj0 = 0 ;
29155 char *kwnames[] = {
29156 (char *) "self", NULL
29157 };
29158
29159 arg2 = &temp2;
29160 arg3 = &temp3;
29161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29164 {
29165 PyThreadState* __tstate = wxPyBeginAllowThreads();
29166 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29167
29168 wxPyEndAllowThreads(__tstate);
29169 if (PyErr_Occurred()) SWIG_fail;
29170 }
29171 Py_INCREF(Py_None); resultobj = Py_None;
29172 {
29173 PyObject *o = PyInt_FromLong((long) (*arg2));
29174 resultobj = t_output_helper(resultobj,o);
29175 }
29176 {
29177 PyObject *o = PyInt_FromLong((long) (*arg3));
29178 resultobj = t_output_helper(resultobj,o);
29179 }
29180 return resultobj;
29181 fail:
29182 return NULL;
29183 }
29184
29185
29186 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29187 PyObject *resultobj;
29188 wxPyControl *arg1 = (wxPyControl *) 0 ;
29189 wxSize result;
29190 PyObject * obj0 = 0 ;
29191 char *kwnames[] = {
29192 (char *) "self", NULL
29193 };
29194
29195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29198 {
29199 PyThreadState* __tstate = wxPyBeginAllowThreads();
29200 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29201
29202 wxPyEndAllowThreads(__tstate);
29203 if (PyErr_Occurred()) SWIG_fail;
29204 }
29205 {
29206 wxSize * resultptr;
29207 resultptr = new wxSize((wxSize &) result);
29208 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29209 }
29210 return resultobj;
29211 fail:
29212 return NULL;
29213 }
29214
29215
29216 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29217 PyObject *resultobj;
29218 wxPyControl *arg1 = (wxPyControl *) 0 ;
29219 wxSize result;
29220 PyObject * obj0 = 0 ;
29221 char *kwnames[] = {
29222 (char *) "self", NULL
29223 };
29224
29225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29228 {
29229 PyThreadState* __tstate = wxPyBeginAllowThreads();
29230 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29231
29232 wxPyEndAllowThreads(__tstate);
29233 if (PyErr_Occurred()) SWIG_fail;
29234 }
29235 {
29236 wxSize * resultptr;
29237 resultptr = new wxSize((wxSize &) result);
29238 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29239 }
29240 return resultobj;
29241 fail:
29242 return NULL;
29243 }
29244
29245
29246 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
29247 PyObject *resultobj;
29248 wxPyControl *arg1 = (wxPyControl *) 0 ;
29249 PyObject * obj0 = 0 ;
29250 char *kwnames[] = {
29251 (char *) "self", NULL
29252 };
29253
29254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29257 {
29258 PyThreadState* __tstate = wxPyBeginAllowThreads();
29259 (arg1)->base_InitDialog();
29260
29261 wxPyEndAllowThreads(__tstate);
29262 if (PyErr_Occurred()) SWIG_fail;
29263 }
29264 Py_INCREF(Py_None); resultobj = Py_None;
29265 return resultobj;
29266 fail:
29267 return NULL;
29268 }
29269
29270
29271 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29272 PyObject *resultobj;
29273 wxPyControl *arg1 = (wxPyControl *) 0 ;
29274 bool result;
29275 PyObject * obj0 = 0 ;
29276 char *kwnames[] = {
29277 (char *) "self", NULL
29278 };
29279
29280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29283 {
29284 PyThreadState* __tstate = wxPyBeginAllowThreads();
29285 result = (bool)(arg1)->base_TransferDataToWindow();
29286
29287 wxPyEndAllowThreads(__tstate);
29288 if (PyErr_Occurred()) SWIG_fail;
29289 }
29290 {
29291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29292 }
29293 return resultobj;
29294 fail:
29295 return NULL;
29296 }
29297
29298
29299 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29300 PyObject *resultobj;
29301 wxPyControl *arg1 = (wxPyControl *) 0 ;
29302 bool result;
29303 PyObject * obj0 = 0 ;
29304 char *kwnames[] = {
29305 (char *) "self", NULL
29306 };
29307
29308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29311 {
29312 PyThreadState* __tstate = wxPyBeginAllowThreads();
29313 result = (bool)(arg1)->base_TransferDataFromWindow();
29314
29315 wxPyEndAllowThreads(__tstate);
29316 if (PyErr_Occurred()) SWIG_fail;
29317 }
29318 {
29319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29320 }
29321 return resultobj;
29322 fail:
29323 return NULL;
29324 }
29325
29326
29327 static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
29328 PyObject *resultobj;
29329 wxPyControl *arg1 = (wxPyControl *) 0 ;
29330 bool result;
29331 PyObject * obj0 = 0 ;
29332 char *kwnames[] = {
29333 (char *) "self", NULL
29334 };
29335
29336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29339 {
29340 PyThreadState* __tstate = wxPyBeginAllowThreads();
29341 result = (bool)(arg1)->base_Validate();
29342
29343 wxPyEndAllowThreads(__tstate);
29344 if (PyErr_Occurred()) SWIG_fail;
29345 }
29346 {
29347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29348 }
29349 return resultobj;
29350 fail:
29351 return NULL;
29352 }
29353
29354
29355 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
29356 PyObject *resultobj;
29357 wxPyControl *arg1 = (wxPyControl *) 0 ;
29358 bool result;
29359 PyObject * obj0 = 0 ;
29360 char *kwnames[] = {
29361 (char *) "self", NULL
29362 };
29363
29364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29367 {
29368 PyThreadState* __tstate = wxPyBeginAllowThreads();
29369 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29370
29371 wxPyEndAllowThreads(__tstate);
29372 if (PyErr_Occurred()) SWIG_fail;
29373 }
29374 {
29375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29376 }
29377 return resultobj;
29378 fail:
29379 return NULL;
29380 }
29381
29382
29383 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
29384 PyObject *resultobj;
29385 wxPyControl *arg1 = (wxPyControl *) 0 ;
29386 bool result;
29387 PyObject * obj0 = 0 ;
29388 char *kwnames[] = {
29389 (char *) "self", NULL
29390 };
29391
29392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
29393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29395 {
29396 PyThreadState* __tstate = wxPyBeginAllowThreads();
29397 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
29398
29399 wxPyEndAllowThreads(__tstate);
29400 if (PyErr_Occurred()) SWIG_fail;
29401 }
29402 {
29403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29404 }
29405 return resultobj;
29406 fail:
29407 return NULL;
29408 }
29409
29410
29411 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29412 PyObject *resultobj;
29413 wxPyControl *arg1 = (wxPyControl *) 0 ;
29414 wxSize result;
29415 PyObject * obj0 = 0 ;
29416 char *kwnames[] = {
29417 (char *) "self", NULL
29418 };
29419
29420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
29421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29423 {
29424 PyThreadState* __tstate = wxPyBeginAllowThreads();
29425 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
29426
29427 wxPyEndAllowThreads(__tstate);
29428 if (PyErr_Occurred()) SWIG_fail;
29429 }
29430 {
29431 wxSize * resultptr;
29432 resultptr = new wxSize((wxSize &) result);
29433 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29434 }
29435 return resultobj;
29436 fail:
29437 return NULL;
29438 }
29439
29440
29441 static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29442 PyObject *resultobj;
29443 wxPyControl *arg1 = (wxPyControl *) 0 ;
29444 wxWindow *arg2 = (wxWindow *) 0 ;
29445 PyObject * obj0 = 0 ;
29446 PyObject * obj1 = 0 ;
29447 char *kwnames[] = {
29448 (char *) "self",(char *) "child", NULL
29449 };
29450
29451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
29452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29456 {
29457 PyThreadState* __tstate = wxPyBeginAllowThreads();
29458 (arg1)->base_AddChild(arg2);
29459
29460 wxPyEndAllowThreads(__tstate);
29461 if (PyErr_Occurred()) SWIG_fail;
29462 }
29463 Py_INCREF(Py_None); resultobj = Py_None;
29464 return resultobj;
29465 fail:
29466 return NULL;
29467 }
29468
29469
29470 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29471 PyObject *resultobj;
29472 wxPyControl *arg1 = (wxPyControl *) 0 ;
29473 wxWindow *arg2 = (wxWindow *) 0 ;
29474 PyObject * obj0 = 0 ;
29475 PyObject * obj1 = 0 ;
29476 char *kwnames[] = {
29477 (char *) "self",(char *) "child", NULL
29478 };
29479
29480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
29481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29483 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29485 {
29486 PyThreadState* __tstate = wxPyBeginAllowThreads();
29487 (arg1)->base_RemoveChild(arg2);
29488
29489 wxPyEndAllowThreads(__tstate);
29490 if (PyErr_Occurred()) SWIG_fail;
29491 }
29492 Py_INCREF(Py_None); resultobj = Py_None;
29493 return resultobj;
29494 fail:
29495 return NULL;
29496 }
29497
29498
29499 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
29500 PyObject *resultobj;
29501 wxPyControl *arg1 = (wxPyControl *) 0 ;
29502 bool result;
29503 PyObject * obj0 = 0 ;
29504 char *kwnames[] = {
29505 (char *) "self", NULL
29506 };
29507
29508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
29509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29511 {
29512 PyThreadState* __tstate = wxPyBeginAllowThreads();
29513 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
29514
29515 wxPyEndAllowThreads(__tstate);
29516 if (PyErr_Occurred()) SWIG_fail;
29517 }
29518 {
29519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29520 }
29521 return resultobj;
29522 fail:
29523 return NULL;
29524 }
29525
29526
29527 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
29528 PyObject *resultobj;
29529 wxPyControl *arg1 = (wxPyControl *) 0 ;
29530 wxColour *arg2 = 0 ;
29531 wxColour temp2 ;
29532 PyObject * obj0 = 0 ;
29533 PyObject * obj1 = 0 ;
29534 char *kwnames[] = {
29535 (char *) "self",(char *) "c", NULL
29536 };
29537
29538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
29539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29541 {
29542 arg2 = &temp2;
29543 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29544 }
29545 {
29546 PyThreadState* __tstate = wxPyBeginAllowThreads();
29547 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
29548
29549 wxPyEndAllowThreads(__tstate);
29550 if (PyErr_Occurred()) SWIG_fail;
29551 }
29552 Py_INCREF(Py_None); resultobj = Py_None;
29553 return resultobj;
29554 fail:
29555 return NULL;
29556 }
29557
29558
29559 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
29560 PyObject *resultobj;
29561 wxPyControl *arg1 = (wxPyControl *) 0 ;
29562 wxVisualAttributes result;
29563 PyObject * obj0 = 0 ;
29564 char *kwnames[] = {
29565 (char *) "self", NULL
29566 };
29567
29568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
29569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29571 {
29572 PyThreadState* __tstate = wxPyBeginAllowThreads();
29573 result = (arg1)->base_GetDefaultAttributes();
29574
29575 wxPyEndAllowThreads(__tstate);
29576 if (PyErr_Occurred()) SWIG_fail;
29577 }
29578 {
29579 wxVisualAttributes * resultptr;
29580 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
29581 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
29582 }
29583 return resultobj;
29584 fail:
29585 return NULL;
29586 }
29587
29588
29589 static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
29590 PyObject *obj;
29591 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29592 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
29593 Py_INCREF(obj);
29594 return Py_BuildValue((char *)"");
29595 }
29596 static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
29597 PyObject *resultobj;
29598 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29599 int arg2 = (int) 0 ;
29600 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29601 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29602 wxHelpEvent *result;
29603 wxPoint temp3 ;
29604 PyObject * obj0 = 0 ;
29605 PyObject * obj1 = 0 ;
29606 PyObject * obj2 = 0 ;
29607 char *kwnames[] = {
29608 (char *) "type",(char *) "winid",(char *) "pt", NULL
29609 };
29610
29611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
29612 if (obj0) {
29613 arg1 = (wxEventType) SWIG_AsInt(obj0);
29614 if (PyErr_Occurred()) SWIG_fail;
29615 }
29616 if (obj1) {
29617 arg2 = (int) SWIG_AsInt(obj1);
29618 if (PyErr_Occurred()) SWIG_fail;
29619 }
29620 if (obj2) {
29621 {
29622 arg3 = &temp3;
29623 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29624 }
29625 }
29626 {
29627 PyThreadState* __tstate = wxPyBeginAllowThreads();
29628 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
29629
29630 wxPyEndAllowThreads(__tstate);
29631 if (PyErr_Occurred()) SWIG_fail;
29632 }
29633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
29634 return resultobj;
29635 fail:
29636 return NULL;
29637 }
29638
29639
29640 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29641 PyObject *resultobj;
29642 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29643 wxPoint result;
29644 PyObject * obj0 = 0 ;
29645 char *kwnames[] = {
29646 (char *) "self", NULL
29647 };
29648
29649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
29650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29652 {
29653 PyThreadState* __tstate = wxPyBeginAllowThreads();
29654 result = ((wxHelpEvent const *)arg1)->GetPosition();
29655
29656 wxPyEndAllowThreads(__tstate);
29657 if (PyErr_Occurred()) SWIG_fail;
29658 }
29659 {
29660 wxPoint * resultptr;
29661 resultptr = new wxPoint((wxPoint &) result);
29662 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
29663 }
29664 return resultobj;
29665 fail:
29666 return NULL;
29667 }
29668
29669
29670 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29671 PyObject *resultobj;
29672 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29673 wxPoint *arg2 = 0 ;
29674 wxPoint temp2 ;
29675 PyObject * obj0 = 0 ;
29676 PyObject * obj1 = 0 ;
29677 char *kwnames[] = {
29678 (char *) "self",(char *) "pos", NULL
29679 };
29680
29681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
29682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29684 {
29685 arg2 = &temp2;
29686 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29687 }
29688 {
29689 PyThreadState* __tstate = wxPyBeginAllowThreads();
29690 (arg1)->SetPosition((wxPoint const &)*arg2);
29691
29692 wxPyEndAllowThreads(__tstate);
29693 if (PyErr_Occurred()) SWIG_fail;
29694 }
29695 Py_INCREF(Py_None); resultobj = Py_None;
29696 return resultobj;
29697 fail:
29698 return NULL;
29699 }
29700
29701
29702 static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29703 PyObject *resultobj;
29704 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29705 wxString *result;
29706 PyObject * obj0 = 0 ;
29707 char *kwnames[] = {
29708 (char *) "self", NULL
29709 };
29710
29711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
29712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29714 {
29715 PyThreadState* __tstate = wxPyBeginAllowThreads();
29716 {
29717 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
29718 result = (wxString *) &_result_ref;
29719 }
29720
29721 wxPyEndAllowThreads(__tstate);
29722 if (PyErr_Occurred()) SWIG_fail;
29723 }
29724 {
29725 #if wxUSE_UNICODE
29726 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29727 #else
29728 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29729 #endif
29730 }
29731 return resultobj;
29732 fail:
29733 return NULL;
29734 }
29735
29736
29737 static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29738 PyObject *resultobj;
29739 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29740 wxString *arg2 = 0 ;
29741 bool temp2 = False ;
29742 PyObject * obj0 = 0 ;
29743 PyObject * obj1 = 0 ;
29744 char *kwnames[] = {
29745 (char *) "self",(char *) "link", NULL
29746 };
29747
29748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
29749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29751 {
29752 arg2 = wxString_in_helper(obj1);
29753 if (arg2 == NULL) SWIG_fail;
29754 temp2 = True;
29755 }
29756 {
29757 PyThreadState* __tstate = wxPyBeginAllowThreads();
29758 (arg1)->SetLink((wxString const &)*arg2);
29759
29760 wxPyEndAllowThreads(__tstate);
29761 if (PyErr_Occurred()) SWIG_fail;
29762 }
29763 Py_INCREF(Py_None); resultobj = Py_None;
29764 {
29765 if (temp2)
29766 delete arg2;
29767 }
29768 return resultobj;
29769 fail:
29770 {
29771 if (temp2)
29772 delete arg2;
29773 }
29774 return NULL;
29775 }
29776
29777
29778 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29779 PyObject *resultobj;
29780 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29781 wxString *result;
29782 PyObject * obj0 = 0 ;
29783 char *kwnames[] = {
29784 (char *) "self", NULL
29785 };
29786
29787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
29788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29790 {
29791 PyThreadState* __tstate = wxPyBeginAllowThreads();
29792 {
29793 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
29794 result = (wxString *) &_result_ref;
29795 }
29796
29797 wxPyEndAllowThreads(__tstate);
29798 if (PyErr_Occurred()) SWIG_fail;
29799 }
29800 {
29801 #if wxUSE_UNICODE
29802 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29803 #else
29804 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29805 #endif
29806 }
29807 return resultobj;
29808 fail:
29809 return NULL;
29810 }
29811
29812
29813 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29814 PyObject *resultobj;
29815 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29816 wxString *arg2 = 0 ;
29817 bool temp2 = False ;
29818 PyObject * obj0 = 0 ;
29819 PyObject * obj1 = 0 ;
29820 char *kwnames[] = {
29821 (char *) "self",(char *) "target", NULL
29822 };
29823
29824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
29825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29827 {
29828 arg2 = wxString_in_helper(obj1);
29829 if (arg2 == NULL) SWIG_fail;
29830 temp2 = True;
29831 }
29832 {
29833 PyThreadState* __tstate = wxPyBeginAllowThreads();
29834 (arg1)->SetTarget((wxString const &)*arg2);
29835
29836 wxPyEndAllowThreads(__tstate);
29837 if (PyErr_Occurred()) SWIG_fail;
29838 }
29839 Py_INCREF(Py_None); resultobj = Py_None;
29840 {
29841 if (temp2)
29842 delete arg2;
29843 }
29844 return resultobj;
29845 fail:
29846 {
29847 if (temp2)
29848 delete arg2;
29849 }
29850 return NULL;
29851 }
29852
29853
29854 static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
29855 PyObject *obj;
29856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29857 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
29858 Py_INCREF(obj);
29859 return Py_BuildValue((char *)"");
29860 }
29861 static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29862 PyObject *resultobj;
29863 wxWindow *arg1 = (wxWindow *) NULL ;
29864 bool arg2 = (bool) True ;
29865 wxContextHelp *result;
29866 PyObject * obj0 = 0 ;
29867 PyObject * obj1 = 0 ;
29868 char *kwnames[] = {
29869 (char *) "window",(char *) "doNow", NULL
29870 };
29871
29872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
29873 if (obj0) {
29874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29876 }
29877 if (obj1) {
29878 arg2 = (bool) SWIG_AsBool(obj1);
29879 if (PyErr_Occurred()) SWIG_fail;
29880 }
29881 {
29882 PyThreadState* __tstate = wxPyBeginAllowThreads();
29883 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
29884
29885 wxPyEndAllowThreads(__tstate);
29886 if (PyErr_Occurred()) SWIG_fail;
29887 }
29888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
29889 return resultobj;
29890 fail:
29891 return NULL;
29892 }
29893
29894
29895 static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29896 PyObject *resultobj;
29897 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29898 PyObject * obj0 = 0 ;
29899 char *kwnames[] = {
29900 (char *) "self", NULL
29901 };
29902
29903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
29904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29906 {
29907 PyThreadState* __tstate = wxPyBeginAllowThreads();
29908 delete arg1;
29909
29910 wxPyEndAllowThreads(__tstate);
29911 if (PyErr_Occurred()) SWIG_fail;
29912 }
29913 Py_INCREF(Py_None); resultobj = Py_None;
29914 return resultobj;
29915 fail:
29916 return NULL;
29917 }
29918
29919
29920 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29921 PyObject *resultobj;
29922 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29923 wxWindow *arg2 = (wxWindow *) NULL ;
29924 bool result;
29925 PyObject * obj0 = 0 ;
29926 PyObject * obj1 = 0 ;
29927 char *kwnames[] = {
29928 (char *) "self",(char *) "window", NULL
29929 };
29930
29931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
29932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29934 if (obj1) {
29935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29937 }
29938 {
29939 PyThreadState* __tstate = wxPyBeginAllowThreads();
29940 result = (bool)(arg1)->BeginContextHelp(arg2);
29941
29942 wxPyEndAllowThreads(__tstate);
29943 if (PyErr_Occurred()) SWIG_fail;
29944 }
29945 {
29946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29947 }
29948 return resultobj;
29949 fail:
29950 return NULL;
29951 }
29952
29953
29954 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29955 PyObject *resultobj;
29956 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29957 bool result;
29958 PyObject * obj0 = 0 ;
29959 char *kwnames[] = {
29960 (char *) "self", NULL
29961 };
29962
29963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
29964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29966 {
29967 PyThreadState* __tstate = wxPyBeginAllowThreads();
29968 result = (bool)(arg1)->EndContextHelp();
29969
29970 wxPyEndAllowThreads(__tstate);
29971 if (PyErr_Occurred()) SWIG_fail;
29972 }
29973 {
29974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29975 }
29976 return resultobj;
29977 fail:
29978 return NULL;
29979 }
29980
29981
29982 static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
29983 PyObject *obj;
29984 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29985 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
29986 Py_INCREF(obj);
29987 return Py_BuildValue((char *)"");
29988 }
29989 static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
29990 PyObject *resultobj;
29991 wxWindow *arg1 = (wxWindow *) 0 ;
29992 int arg2 = (int) wxID_CONTEXT_HELP ;
29993 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29994 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29995 wxSize const &arg4_defvalue = wxDefaultSize ;
29996 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29997 long arg5 = (long) wxBU_AUTODRAW ;
29998 wxContextHelpButton *result;
29999 wxPoint temp3 ;
30000 wxSize temp4 ;
30001 PyObject * obj0 = 0 ;
30002 PyObject * obj1 = 0 ;
30003 PyObject * obj2 = 0 ;
30004 PyObject * obj3 = 0 ;
30005 PyObject * obj4 = 0 ;
30006 char *kwnames[] = {
30007 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30008 };
30009
30010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30013 if (obj1) {
30014 arg2 = (int) SWIG_AsInt(obj1);
30015 if (PyErr_Occurred()) SWIG_fail;
30016 }
30017 if (obj2) {
30018 {
30019 arg3 = &temp3;
30020 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30021 }
30022 }
30023 if (obj3) {
30024 {
30025 arg4 = &temp4;
30026 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30027 }
30028 }
30029 if (obj4) {
30030 arg5 = (long) SWIG_AsLong(obj4);
30031 if (PyErr_Occurred()) SWIG_fail;
30032 }
30033 {
30034 PyThreadState* __tstate = wxPyBeginAllowThreads();
30035 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30036
30037 wxPyEndAllowThreads(__tstate);
30038 if (PyErr_Occurred()) SWIG_fail;
30039 }
30040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30041 return resultobj;
30042 fail:
30043 return NULL;
30044 }
30045
30046
30047 static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
30048 PyObject *obj;
30049 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30050 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30051 Py_INCREF(obj);
30052 return Py_BuildValue((char *)"");
30053 }
30054 static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
30055 PyObject *resultobj;
30056 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30057 wxHelpProvider *result;
30058 PyObject * obj0 = 0 ;
30059 char *kwnames[] = {
30060 (char *) "helpProvider", NULL
30061 };
30062
30063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30066 {
30067 PyThreadState* __tstate = wxPyBeginAllowThreads();
30068 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30069
30070 wxPyEndAllowThreads(__tstate);
30071 if (PyErr_Occurred()) SWIG_fail;
30072 }
30073 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30074 return resultobj;
30075 fail:
30076 return NULL;
30077 }
30078
30079
30080 static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
30081 PyObject *resultobj;
30082 wxHelpProvider *result;
30083 char *kwnames[] = {
30084 NULL
30085 };
30086
30087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30088 {
30089 PyThreadState* __tstate = wxPyBeginAllowThreads();
30090 result = (wxHelpProvider *)wxHelpProvider::Get();
30091
30092 wxPyEndAllowThreads(__tstate);
30093 if (PyErr_Occurred()) SWIG_fail;
30094 }
30095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30096 return resultobj;
30097 fail:
30098 return NULL;
30099 }
30100
30101
30102 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30103 PyObject *resultobj;
30104 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30105 wxWindow *arg2 = (wxWindow *) 0 ;
30106 wxString result;
30107 PyObject * obj0 = 0 ;
30108 PyObject * obj1 = 0 ;
30109 char *kwnames[] = {
30110 (char *) "self",(char *) "window", NULL
30111 };
30112
30113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30116 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30118 {
30119 PyThreadState* __tstate = wxPyBeginAllowThreads();
30120 result = (arg1)->GetHelp((wxWindow const *)arg2);
30121
30122 wxPyEndAllowThreads(__tstate);
30123 if (PyErr_Occurred()) SWIG_fail;
30124 }
30125 {
30126 #if wxUSE_UNICODE
30127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30128 #else
30129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30130 #endif
30131 }
30132 return resultobj;
30133 fail:
30134 return NULL;
30135 }
30136
30137
30138 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30139 PyObject *resultobj;
30140 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30141 wxWindow *arg2 = (wxWindow *) 0 ;
30142 bool result;
30143 PyObject * obj0 = 0 ;
30144 PyObject * obj1 = 0 ;
30145 char *kwnames[] = {
30146 (char *) "self",(char *) "window", NULL
30147 };
30148
30149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30152 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30154 {
30155 PyThreadState* __tstate = wxPyBeginAllowThreads();
30156 result = (bool)(arg1)->ShowHelp(arg2);
30157
30158 wxPyEndAllowThreads(__tstate);
30159 if (PyErr_Occurred()) SWIG_fail;
30160 }
30161 {
30162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30163 }
30164 return resultobj;
30165 fail:
30166 return NULL;
30167 }
30168
30169
30170 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30171 PyObject *resultobj;
30172 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30173 wxWindow *arg2 = (wxWindow *) 0 ;
30174 wxString *arg3 = 0 ;
30175 bool temp3 = False ;
30176 PyObject * obj0 = 0 ;
30177 PyObject * obj1 = 0 ;
30178 PyObject * obj2 = 0 ;
30179 char *kwnames[] = {
30180 (char *) "self",(char *) "window",(char *) "text", NULL
30181 };
30182
30183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30186 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30188 {
30189 arg3 = wxString_in_helper(obj2);
30190 if (arg3 == NULL) SWIG_fail;
30191 temp3 = True;
30192 }
30193 {
30194 PyThreadState* __tstate = wxPyBeginAllowThreads();
30195 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30196
30197 wxPyEndAllowThreads(__tstate);
30198 if (PyErr_Occurred()) SWIG_fail;
30199 }
30200 Py_INCREF(Py_None); resultobj = Py_None;
30201 {
30202 if (temp3)
30203 delete arg3;
30204 }
30205 return resultobj;
30206 fail:
30207 {
30208 if (temp3)
30209 delete arg3;
30210 }
30211 return NULL;
30212 }
30213
30214
30215 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
30216 PyObject *resultobj;
30217 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30218 int arg2 ;
30219 wxString *arg3 = 0 ;
30220 bool temp3 = False ;
30221 PyObject * obj0 = 0 ;
30222 PyObject * obj1 = 0 ;
30223 PyObject * obj2 = 0 ;
30224 char *kwnames[] = {
30225 (char *) "self",(char *) "id",(char *) "text", NULL
30226 };
30227
30228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30231 arg2 = (int) SWIG_AsInt(obj1);
30232 if (PyErr_Occurred()) SWIG_fail;
30233 {
30234 arg3 = wxString_in_helper(obj2);
30235 if (arg3 == NULL) SWIG_fail;
30236 temp3 = True;
30237 }
30238 {
30239 PyThreadState* __tstate = wxPyBeginAllowThreads();
30240 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30241
30242 wxPyEndAllowThreads(__tstate);
30243 if (PyErr_Occurred()) SWIG_fail;
30244 }
30245 Py_INCREF(Py_None); resultobj = Py_None;
30246 {
30247 if (temp3)
30248 delete arg3;
30249 }
30250 return resultobj;
30251 fail:
30252 {
30253 if (temp3)
30254 delete arg3;
30255 }
30256 return NULL;
30257 }
30258
30259
30260 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30261 PyObject *resultobj;
30262 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30263 wxWindow *arg2 = (wxWindow *) 0 ;
30264 PyObject * obj0 = 0 ;
30265 PyObject * obj1 = 0 ;
30266 char *kwnames[] = {
30267 (char *) "self",(char *) "window", NULL
30268 };
30269
30270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30275 {
30276 PyThreadState* __tstate = wxPyBeginAllowThreads();
30277 (arg1)->RemoveHelp(arg2);
30278
30279 wxPyEndAllowThreads(__tstate);
30280 if (PyErr_Occurred()) SWIG_fail;
30281 }
30282 Py_INCREF(Py_None); resultobj = Py_None;
30283 return resultobj;
30284 fail:
30285 return NULL;
30286 }
30287
30288
30289 static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
30290 PyObject *resultobj;
30291 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30292 PyObject * obj0 = 0 ;
30293 char *kwnames[] = {
30294 (char *) "self", NULL
30295 };
30296
30297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30300 {
30301 PyThreadState* __tstate = wxPyBeginAllowThreads();
30302 wxHelpProvider_Destroy(arg1);
30303
30304 wxPyEndAllowThreads(__tstate);
30305 if (PyErr_Occurred()) SWIG_fail;
30306 }
30307 Py_INCREF(Py_None); resultobj = Py_None;
30308 return resultobj;
30309 fail:
30310 return NULL;
30311 }
30312
30313
30314 static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
30315 PyObject *obj;
30316 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30317 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30318 Py_INCREF(obj);
30319 return Py_BuildValue((char *)"");
30320 }
30321 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
30322 PyObject *resultobj;
30323 wxSimpleHelpProvider *result;
30324 char *kwnames[] = {
30325 NULL
30326 };
30327
30328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30329 {
30330 PyThreadState* __tstate = wxPyBeginAllowThreads();
30331 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30332
30333 wxPyEndAllowThreads(__tstate);
30334 if (PyErr_Occurred()) SWIG_fail;
30335 }
30336 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30337 return resultobj;
30338 fail:
30339 return NULL;
30340 }
30341
30342
30343 static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
30344 PyObject *obj;
30345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30346 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30347 Py_INCREF(obj);
30348 return Py_BuildValue((char *)"");
30349 }
30350 static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30351 PyObject *resultobj;
30352 wxBitmap *arg1 = 0 ;
30353 wxCursor const &arg2_defvalue = wxNullCursor ;
30354 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30355 wxGenericDragImage *result;
30356 PyObject * obj0 = 0 ;
30357 PyObject * obj1 = 0 ;
30358 char *kwnames[] = {
30359 (char *) "image",(char *) "cursor", NULL
30360 };
30361
30362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30364 SWIG_POINTER_EXCEPTION | 0)) == -1)
30365 SWIG_fail;
30366 if (arg1 == NULL) {
30367 PyErr_SetString(PyExc_TypeError,"null reference");
30368 SWIG_fail;
30369 }
30370 if (obj1) {
30371 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30372 SWIG_POINTER_EXCEPTION | 0)) == -1)
30373 SWIG_fail;
30374 if (arg2 == NULL) {
30375 PyErr_SetString(PyExc_TypeError,"null reference");
30376 SWIG_fail;
30377 }
30378 }
30379 {
30380 PyThreadState* __tstate = wxPyBeginAllowThreads();
30381 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30382
30383 wxPyEndAllowThreads(__tstate);
30384 if (PyErr_Occurred()) SWIG_fail;
30385 }
30386 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30387 return resultobj;
30388 fail:
30389 return NULL;
30390 }
30391
30392
30393 static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
30394 PyObject *resultobj;
30395 wxIcon *arg1 = 0 ;
30396 wxCursor const &arg2_defvalue = wxNullCursor ;
30397 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30398 wxGenericDragImage *result;
30399 PyObject * obj0 = 0 ;
30400 PyObject * obj1 = 0 ;
30401 char *kwnames[] = {
30402 (char *) "image",(char *) "cursor", NULL
30403 };
30404
30405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
30406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
30407 SWIG_POINTER_EXCEPTION | 0)) == -1)
30408 SWIG_fail;
30409 if (arg1 == NULL) {
30410 PyErr_SetString(PyExc_TypeError,"null reference");
30411 SWIG_fail;
30412 }
30413 if (obj1) {
30414 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30415 SWIG_POINTER_EXCEPTION | 0)) == -1)
30416 SWIG_fail;
30417 if (arg2 == NULL) {
30418 PyErr_SetString(PyExc_TypeError,"null reference");
30419 SWIG_fail;
30420 }
30421 }
30422 {
30423 PyThreadState* __tstate = wxPyBeginAllowThreads();
30424 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
30425
30426 wxPyEndAllowThreads(__tstate);
30427 if (PyErr_Occurred()) SWIG_fail;
30428 }
30429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30430 return resultobj;
30431 fail:
30432 return NULL;
30433 }
30434
30435
30436 static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
30437 PyObject *resultobj;
30438 wxString *arg1 = 0 ;
30439 wxCursor const &arg2_defvalue = wxNullCursor ;
30440 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30441 wxGenericDragImage *result;
30442 bool temp1 = False ;
30443 PyObject * obj0 = 0 ;
30444 PyObject * obj1 = 0 ;
30445 char *kwnames[] = {
30446 (char *) "str",(char *) "cursor", NULL
30447 };
30448
30449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
30450 {
30451 arg1 = wxString_in_helper(obj0);
30452 if (arg1 == NULL) SWIG_fail;
30453 temp1 = True;
30454 }
30455 if (obj1) {
30456 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30457 SWIG_POINTER_EXCEPTION | 0)) == -1)
30458 SWIG_fail;
30459 if (arg2 == NULL) {
30460 PyErr_SetString(PyExc_TypeError,"null reference");
30461 SWIG_fail;
30462 }
30463 }
30464 {
30465 PyThreadState* __tstate = wxPyBeginAllowThreads();
30466 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
30467
30468 wxPyEndAllowThreads(__tstate);
30469 if (PyErr_Occurred()) SWIG_fail;
30470 }
30471 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30472 {
30473 if (temp1)
30474 delete arg1;
30475 }
30476 return resultobj;
30477 fail:
30478 {
30479 if (temp1)
30480 delete arg1;
30481 }
30482 return NULL;
30483 }
30484
30485
30486 static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30487 PyObject *resultobj;
30488 wxPyTreeCtrl *arg1 = 0 ;
30489 wxTreeItemId *arg2 = 0 ;
30490 wxGenericDragImage *result;
30491 PyObject * obj0 = 0 ;
30492 PyObject * obj1 = 0 ;
30493 char *kwnames[] = {
30494 (char *) "treeCtrl",(char *) "id", NULL
30495 };
30496
30497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
30498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
30499 SWIG_POINTER_EXCEPTION | 0)) == -1)
30500 SWIG_fail;
30501 if (arg1 == NULL) {
30502 PyErr_SetString(PyExc_TypeError,"null reference");
30503 SWIG_fail;
30504 }
30505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
30506 SWIG_POINTER_EXCEPTION | 0)) == -1)
30507 SWIG_fail;
30508 if (arg2 == NULL) {
30509 PyErr_SetString(PyExc_TypeError,"null reference");
30510 SWIG_fail;
30511 }
30512 {
30513 PyThreadState* __tstate = wxPyBeginAllowThreads();
30514 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
30515
30516 wxPyEndAllowThreads(__tstate);
30517 if (PyErr_Occurred()) SWIG_fail;
30518 }
30519 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30520 return resultobj;
30521 fail:
30522 return NULL;
30523 }
30524
30525
30526 static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30527 PyObject *resultobj;
30528 wxPyListCtrl *arg1 = 0 ;
30529 long arg2 ;
30530 wxGenericDragImage *result;
30531 PyObject * obj0 = 0 ;
30532 PyObject * obj1 = 0 ;
30533 char *kwnames[] = {
30534 (char *) "listCtrl",(char *) "id", NULL
30535 };
30536
30537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
30538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
30539 SWIG_POINTER_EXCEPTION | 0)) == -1)
30540 SWIG_fail;
30541 if (arg1 == NULL) {
30542 PyErr_SetString(PyExc_TypeError,"null reference");
30543 SWIG_fail;
30544 }
30545 arg2 = (long) SWIG_AsLong(obj1);
30546 if (PyErr_Occurred()) SWIG_fail;
30547 {
30548 PyThreadState* __tstate = wxPyBeginAllowThreads();
30549 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
30550
30551 wxPyEndAllowThreads(__tstate);
30552 if (PyErr_Occurred()) SWIG_fail;
30553 }
30554 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30555 return resultobj;
30556 fail:
30557 return NULL;
30558 }
30559
30560
30561 static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30562 PyObject *resultobj;
30563 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30564 PyObject * obj0 = 0 ;
30565 char *kwnames[] = {
30566 (char *) "self", NULL
30567 };
30568
30569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
30570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30572 {
30573 PyThreadState* __tstate = wxPyBeginAllowThreads();
30574 delete arg1;
30575
30576 wxPyEndAllowThreads(__tstate);
30577 if (PyErr_Occurred()) SWIG_fail;
30578 }
30579 Py_INCREF(Py_None); resultobj = Py_None;
30580 return resultobj;
30581 fail:
30582 return NULL;
30583 }
30584
30585
30586 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
30587 PyObject *resultobj;
30588 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30589 wxBitmap *arg2 = (wxBitmap *) 0 ;
30590 PyObject * obj0 = 0 ;
30591 PyObject * obj1 = 0 ;
30592 char *kwnames[] = {
30593 (char *) "self",(char *) "bitmap", NULL
30594 };
30595
30596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
30597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
30600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30601 {
30602 PyThreadState* __tstate = wxPyBeginAllowThreads();
30603 (arg1)->SetBackingBitmap(arg2);
30604
30605 wxPyEndAllowThreads(__tstate);
30606 if (PyErr_Occurred()) SWIG_fail;
30607 }
30608 Py_INCREF(Py_None); resultobj = Py_None;
30609 return resultobj;
30610 fail:
30611 return NULL;
30612 }
30613
30614
30615 static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30616 PyObject *resultobj;
30617 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30618 wxPoint *arg2 = 0 ;
30619 wxWindow *arg3 = (wxWindow *) 0 ;
30620 bool arg4 = (bool) False ;
30621 wxRect *arg5 = (wxRect *) NULL ;
30622 bool result;
30623 wxPoint temp2 ;
30624 PyObject * obj0 = 0 ;
30625 PyObject * obj1 = 0 ;
30626 PyObject * obj2 = 0 ;
30627 PyObject * obj3 = 0 ;
30628 PyObject * obj4 = 0 ;
30629 char *kwnames[] = {
30630 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
30631 };
30632
30633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30636 {
30637 arg2 = &temp2;
30638 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30639 }
30640 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30642 if (obj3) {
30643 arg4 = (bool) SWIG_AsBool(obj3);
30644 if (PyErr_Occurred()) SWIG_fail;
30645 }
30646 if (obj4) {
30647 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
30648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30649 }
30650 {
30651 PyThreadState* __tstate = wxPyBeginAllowThreads();
30652 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
30653
30654 wxPyEndAllowThreads(__tstate);
30655 if (PyErr_Occurred()) SWIG_fail;
30656 }
30657 {
30658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30659 }
30660 return resultobj;
30661 fail:
30662 return NULL;
30663 }
30664
30665
30666 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
30667 PyObject *resultobj;
30668 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30669 wxPoint *arg2 = 0 ;
30670 wxWindow *arg3 = (wxWindow *) 0 ;
30671 wxWindow *arg4 = (wxWindow *) 0 ;
30672 bool result;
30673 wxPoint temp2 ;
30674 PyObject * obj0 = 0 ;
30675 PyObject * obj1 = 0 ;
30676 PyObject * obj2 = 0 ;
30677 PyObject * obj3 = 0 ;
30678 char *kwnames[] = {
30679 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
30680 };
30681
30682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30685 {
30686 arg2 = &temp2;
30687 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30688 }
30689 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30691 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
30692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30693 {
30694 PyThreadState* __tstate = wxPyBeginAllowThreads();
30695 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
30696
30697 wxPyEndAllowThreads(__tstate);
30698 if (PyErr_Occurred()) SWIG_fail;
30699 }
30700 {
30701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30702 }
30703 return resultobj;
30704 fail:
30705 return NULL;
30706 }
30707
30708
30709 static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30710 PyObject *resultobj;
30711 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30712 bool result;
30713 PyObject * obj0 = 0 ;
30714 char *kwnames[] = {
30715 (char *) "self", NULL
30716 };
30717
30718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
30719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30721 {
30722 PyThreadState* __tstate = wxPyBeginAllowThreads();
30723 result = (bool)(arg1)->EndDrag();
30724
30725 wxPyEndAllowThreads(__tstate);
30726 if (PyErr_Occurred()) SWIG_fail;
30727 }
30728 {
30729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30730 }
30731 return resultobj;
30732 fail:
30733 return NULL;
30734 }
30735
30736
30737 static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
30738 PyObject *resultobj;
30739 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30740 wxPoint *arg2 = 0 ;
30741 bool result;
30742 wxPoint temp2 ;
30743 PyObject * obj0 = 0 ;
30744 PyObject * obj1 = 0 ;
30745 char *kwnames[] = {
30746 (char *) "self",(char *) "pt", NULL
30747 };
30748
30749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
30750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30752 {
30753 arg2 = &temp2;
30754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30755 }
30756 {
30757 PyThreadState* __tstate = wxPyBeginAllowThreads();
30758 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
30759
30760 wxPyEndAllowThreads(__tstate);
30761 if (PyErr_Occurred()) SWIG_fail;
30762 }
30763 {
30764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30765 }
30766 return resultobj;
30767 fail:
30768 return NULL;
30769 }
30770
30771
30772 static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
30773 PyObject *resultobj;
30774 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30775 bool result;
30776 PyObject * obj0 = 0 ;
30777 char *kwnames[] = {
30778 (char *) "self", NULL
30779 };
30780
30781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
30782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30784 {
30785 PyThreadState* __tstate = wxPyBeginAllowThreads();
30786 result = (bool)(arg1)->Show();
30787
30788 wxPyEndAllowThreads(__tstate);
30789 if (PyErr_Occurred()) SWIG_fail;
30790 }
30791 {
30792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30793 }
30794 return resultobj;
30795 fail:
30796 return NULL;
30797 }
30798
30799
30800 static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
30801 PyObject *resultobj;
30802 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30803 bool result;
30804 PyObject * obj0 = 0 ;
30805 char *kwnames[] = {
30806 (char *) "self", NULL
30807 };
30808
30809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
30810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30812 {
30813 PyThreadState* __tstate = wxPyBeginAllowThreads();
30814 result = (bool)(arg1)->Hide();
30815
30816 wxPyEndAllowThreads(__tstate);
30817 if (PyErr_Occurred()) SWIG_fail;
30818 }
30819 {
30820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30821 }
30822 return resultobj;
30823 fail:
30824 return NULL;
30825 }
30826
30827
30828 static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
30829 PyObject *resultobj;
30830 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30831 wxPoint *arg2 = 0 ;
30832 wxRect result;
30833 wxPoint temp2 ;
30834 PyObject * obj0 = 0 ;
30835 PyObject * obj1 = 0 ;
30836 char *kwnames[] = {
30837 (char *) "self",(char *) "pos", NULL
30838 };
30839
30840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
30841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30843 {
30844 arg2 = &temp2;
30845 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30846 }
30847 {
30848 PyThreadState* __tstate = wxPyBeginAllowThreads();
30849 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
30850
30851 wxPyEndAllowThreads(__tstate);
30852 if (PyErr_Occurred()) SWIG_fail;
30853 }
30854 {
30855 wxRect * resultptr;
30856 resultptr = new wxRect((wxRect &) result);
30857 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
30858 }
30859 return resultobj;
30860 fail:
30861 return NULL;
30862 }
30863
30864
30865 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30866 PyObject *resultobj;
30867 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30868 wxDC *arg2 = 0 ;
30869 wxPoint *arg3 = 0 ;
30870 bool result;
30871 wxPoint temp3 ;
30872 PyObject * obj0 = 0 ;
30873 PyObject * obj1 = 0 ;
30874 PyObject * obj2 = 0 ;
30875 char *kwnames[] = {
30876 (char *) "self",(char *) "dc",(char *) "pos", NULL
30877 };
30878
30879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
30880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30882 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
30883 SWIG_POINTER_EXCEPTION | 0)) == -1)
30884 SWIG_fail;
30885 if (arg2 == NULL) {
30886 PyErr_SetString(PyExc_TypeError,"null reference");
30887 SWIG_fail;
30888 }
30889 {
30890 arg3 = &temp3;
30891 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30892 }
30893 {
30894 PyThreadState* __tstate = wxPyBeginAllowThreads();
30895 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
30896
30897 wxPyEndAllowThreads(__tstate);
30898 if (PyErr_Occurred()) SWIG_fail;
30899 }
30900 {
30901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30902 }
30903 return resultobj;
30904 fail:
30905 return NULL;
30906 }
30907
30908
30909 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30910 PyObject *resultobj;
30911 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30912 wxDC *arg2 = 0 ;
30913 wxMemoryDC *arg3 = 0 ;
30914 wxRect *arg4 = 0 ;
30915 wxRect *arg5 = 0 ;
30916 bool result;
30917 wxRect temp4 ;
30918 wxRect temp5 ;
30919 PyObject * obj0 = 0 ;
30920 PyObject * obj1 = 0 ;
30921 PyObject * obj2 = 0 ;
30922 PyObject * obj3 = 0 ;
30923 PyObject * obj4 = 0 ;
30924 char *kwnames[] = {
30925 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
30926 };
30927
30928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30931 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
30932 SWIG_POINTER_EXCEPTION | 0)) == -1)
30933 SWIG_fail;
30934 if (arg2 == NULL) {
30935 PyErr_SetString(PyExc_TypeError,"null reference");
30936 SWIG_fail;
30937 }
30938 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
30939 SWIG_POINTER_EXCEPTION | 0)) == -1)
30940 SWIG_fail;
30941 if (arg3 == NULL) {
30942 PyErr_SetString(PyExc_TypeError,"null reference");
30943 SWIG_fail;
30944 }
30945 {
30946 arg4 = &temp4;
30947 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30948 }
30949 {
30950 arg5 = &temp5;
30951 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
30952 }
30953 {
30954 PyThreadState* __tstate = wxPyBeginAllowThreads();
30955 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
30956
30957 wxPyEndAllowThreads(__tstate);
30958 if (PyErr_Occurred()) SWIG_fail;
30959 }
30960 {
30961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30962 }
30963 return resultobj;
30964 fail:
30965 return NULL;
30966 }
30967
30968
30969 static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30970 PyObject *resultobj;
30971 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30972 wxPoint *arg2 = 0 ;
30973 wxPoint *arg3 = 0 ;
30974 bool arg4 ;
30975 bool arg5 ;
30976 bool result;
30977 wxPoint temp2 ;
30978 wxPoint temp3 ;
30979 PyObject * obj0 = 0 ;
30980 PyObject * obj1 = 0 ;
30981 PyObject * obj2 = 0 ;
30982 PyObject * obj3 = 0 ;
30983 PyObject * obj4 = 0 ;
30984 char *kwnames[] = {
30985 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
30986 };
30987
30988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30991 {
30992 arg2 = &temp2;
30993 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30994 }
30995 {
30996 arg3 = &temp3;
30997 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30998 }
30999 arg4 = (bool) SWIG_AsBool(obj3);
31000 if (PyErr_Occurred()) SWIG_fail;
31001 arg5 = (bool) SWIG_AsBool(obj4);
31002 if (PyErr_Occurred()) SWIG_fail;
31003 {
31004 PyThreadState* __tstate = wxPyBeginAllowThreads();
31005 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31006
31007 wxPyEndAllowThreads(__tstate);
31008 if (PyErr_Occurred()) SWIG_fail;
31009 }
31010 {
31011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31012 }
31013 return resultobj;
31014 fail:
31015 return NULL;
31016 }
31017
31018
31019 static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
31020 PyObject *obj;
31021 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31022 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31023 Py_INCREF(obj);
31024 return Py_BuildValue((char *)"");
31025 }
31026 static PyMethodDef SwigMethods[] = {
31027 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
31028 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
31029 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
31030 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
31031 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
31032 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31033 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
31034 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
31035 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
31036 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
31037 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
31038 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
31039 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
31040 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
31041 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
31042 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
31043 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
31044 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
31045 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
31046 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
31047 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
31048 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
31049 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
31050 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
31051 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
31052 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31053 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31054 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31055 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
31056 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
31057 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
31058 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
31059 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31060 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
31061 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
31062 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
31063 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
31064 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
31065 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31066 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
31067 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31068 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
31069 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
31070 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
31071 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
31072 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31073 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31074 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
31075 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
31076 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
31077 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31078 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31079 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31080 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
31081 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31082 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
31083 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31084 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS },
31085 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
31086 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31087 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
31088 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31089 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
31090 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
31091 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
31092 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
31093 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
31094 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
31095 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
31096 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
31097 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
31098 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31099 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31100 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
31101 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
31102 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31103 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
31104 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
31105 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
31106 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
31107 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31108 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
31109 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
31110 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
31111 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
31112 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
31113 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
31114 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31115 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
31116 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
31117 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
31118 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
31119 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31120 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
31121 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
31122 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
31123 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
31124 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31125 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
31126 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
31127 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31128 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
31129 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
31130 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
31131 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
31132 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
31133 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
31134 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
31135 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
31136 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31137 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
31138 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
31139 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
31140 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31141 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
31142 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
31143 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
31144 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31145 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
31146 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
31147 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
31148 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31149 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31150 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31151 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
31152 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
31153 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
31154 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
31155 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31156 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
31157 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
31158 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
31159 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
31160 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
31161 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
31162 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
31163 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31164 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31165 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31166 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
31167 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
31168 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31169 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
31170 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
31171 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31172 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31173 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31174 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
31175 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
31176 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
31177 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
31178 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
31179 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31180 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31181 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31182 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
31183 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
31184 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31185 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS },
31186 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
31187 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
31188 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
31189 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
31190 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
31191 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
31192 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
31193 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31194 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31195 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31196 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
31197 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
31198 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
31199 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
31200 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
31201 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
31202 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
31203 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
31204 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31205 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31206 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
31207 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
31208 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
31209 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
31210 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
31211 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
31212 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
31213 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
31214 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
31215 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
31216 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
31217 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
31218 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
31219 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31220 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31221 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
31222 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
31223 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
31224 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31225 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
31226 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
31227 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
31228 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
31229 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
31230 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
31231 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
31232 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
31233 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
31234 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
31235 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31236 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31237 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31238 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31239 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31240 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
31241 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
31242 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
31243 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
31244 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31245 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
31246 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
31247 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
31248 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
31249 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
31250 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
31251 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
31252 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
31253 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
31254 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31255 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
31256 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31257 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
31258 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
31259 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31260 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
31261 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31262 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
31263 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
31264 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
31265 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
31266 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31267 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
31268 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
31269 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31270 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
31271 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
31272 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
31273 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
31274 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31275 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
31276 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
31277 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
31278 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31279 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31280 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31281 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
31282 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
31283 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
31284 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
31285 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31286 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31287 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
31288 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
31289 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31290 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31291 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
31292 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
31293 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
31294 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
31295 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31296 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
31297 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31298 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31299 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
31300 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
31301 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
31302 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
31303 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
31304 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
31305 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31306 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31307 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31308 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31309 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
31310 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
31311 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
31312 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
31313 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31314 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31315 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31316 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
31317 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
31318 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
31319 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
31320 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
31321 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
31322 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
31323 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
31324 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
31325 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
31326 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
31327 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
31328 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31329 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
31330 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31331 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
31332 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
31333 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
31334 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
31335 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
31336 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
31337 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
31338 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
31339 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
31340 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
31341 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31342 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
31343 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
31344 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
31345 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
31346 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31347 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31348 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
31349 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31350 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
31351 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
31352 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
31353 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31354 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
31355 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
31356 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31357 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31358 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31359 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
31360 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
31361 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31362 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31363 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
31364 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
31365 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
31366 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
31367 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
31368 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31369 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
31370 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31371 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
31372 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
31373 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
31374 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
31375 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
31376 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
31377 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
31378 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
31379 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
31380 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
31381 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31382 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
31383 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
31384 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
31385 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31386 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31387 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
31388 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
31389 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
31390 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
31391 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
31392 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
31393 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
31394 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
31395 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
31396 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
31397 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
31398 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31399 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31400 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
31401 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
31402 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
31403 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31404 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31405 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
31406 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
31407 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
31408 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
31409 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
31410 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
31411 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
31412 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
31413 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
31414 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
31415 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
31416 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
31417 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
31418 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31419 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31420 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31421 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
31422 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
31423 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
31424 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
31425 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
31426 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31427 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
31428 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
31429 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31430 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31431 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
31432 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
31433 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
31434 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
31435 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
31436 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
31437 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
31438 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
31439 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
31440 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
31441 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
31442 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
31443 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
31444 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
31445 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
31446 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
31447 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
31448 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
31449 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
31450 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
31451 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
31452 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
31453 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31454 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
31455 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
31456 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
31457 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
31458 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
31459 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31460 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31461 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31462 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31463 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
31464 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
31465 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
31466 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31467 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
31468 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
31469 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
31470 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31471 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
31472 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
31473 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
31474 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
31475 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31476 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31477 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
31478 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31479 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
31480 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
31481 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
31482 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
31483 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
31484 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
31485 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31486 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31487 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
31488 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
31489 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31490 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31491 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31492 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31493 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31494 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31495 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31496 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31497 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31498 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
31499 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
31500 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
31501 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
31502 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
31503 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
31504 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
31505 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
31506 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
31507 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
31508 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
31509 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
31510 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
31511 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
31512 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
31513 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
31514 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31515 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31516 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
31517 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
31518 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
31519 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
31520 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
31521 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
31522 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
31523 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
31524 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
31525 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
31526 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
31527 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
31528 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31529 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31530 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
31531 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
31532 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
31533 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
31534 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
31535 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
31536 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
31537 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
31538 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
31539 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
31540 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
31541 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
31542 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
31543 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
31544 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
31545 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
31546 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
31547 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
31548 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
31549 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
31550 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
31551 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
31552 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
31553 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
31554 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
31555 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
31556 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
31557 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
31558 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
31559 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
31560 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
31561 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
31562 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
31563 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
31564 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31565 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
31566 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
31567 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31568 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31569 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
31570 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
31571 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
31572 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
31573 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31574 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
31575 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
31576 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31577 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31578 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
31579 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
31580 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
31581 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31582 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31583 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
31584 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31585 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
31586 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
31587 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31588 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31589 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
31590 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
31591 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
31592 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
31593 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
31594 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
31595 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
31596 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31597 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31598 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31599 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31600 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31601 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
31602 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
31603 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
31604 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
31605 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31606 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31607 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31608 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
31609 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31610 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31611 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
31612 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
31613 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
31614 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31615 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31616 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31617 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31618 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS },
31619 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
31620 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
31621 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
31622 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
31623 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
31624 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31625 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
31626 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
31627 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
31628 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31629 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31630 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
31631 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
31632 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
31633 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31634 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31635 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
31636 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
31637 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
31638 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
31639 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
31640 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
31641 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
31642 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31643 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31644 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31645 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31646 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
31647 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
31648 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31649 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
31650 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
31651 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
31652 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
31653 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
31654 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
31655 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
31656 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
31657 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
31658 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
31659 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
31660 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
31661 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
31662 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31663 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31664 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
31665 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
31666 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
31667 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
31668 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
31669 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
31670 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
31671 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
31672 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
31673 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
31674 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
31675 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
31676 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
31677 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
31678 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31679 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
31680 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
31681 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
31682 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31683 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
31684 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31685 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31686 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31687 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31688 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
31689 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31690 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31691 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
31692 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
31693 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
31694 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31695 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31696 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31697 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
31698 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
31699 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
31700 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
31701 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
31702 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31703 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
31704 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31705 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
31706 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31707 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
31708 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31709 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
31710 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31711 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
31712 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31713 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31714 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
31715 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31716 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31717 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31718 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
31719 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31720 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
31721 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31722 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31723 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31724 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
31725 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31726 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
31727 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
31728 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
31729 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
31730 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
31731 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31732 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
31733 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
31734 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
31735 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
31736 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
31737 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
31738 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
31739 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
31740 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
31741 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
31742 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
31743 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
31744 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31745 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
31746 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
31747 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
31748 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
31749 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31750 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
31751 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
31752 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
31753 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
31754 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
31755 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
31756 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
31757 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
31758 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
31759 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31760 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
31761 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31762 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
31763 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
31764 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31765 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
31766 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31767 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
31768 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31769 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31770 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31771 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
31772 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31773 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31774 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
31775 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
31776 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
31777 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
31778 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
31779 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
31780 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
31781 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31782 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31783 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
31784 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31785 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31786 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
31787 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
31788 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
31789 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
31790 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31791 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31792 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31793 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
31794 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
31795 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
31796 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS },
31797 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31798 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS },
31799 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
31800 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
31801 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
31802 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31803 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
31804 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
31805 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
31806 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31807 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
31808 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
31809 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
31810 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
31811 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
31812 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
31813 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
31814 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
31815 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
31816 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
31817 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
31818 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS },
31819 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31820 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
31821 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
31822 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31823 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31824 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
31825 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
31826 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
31827 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
31828 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
31829 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31830 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31831 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
31832 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
31833 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
31834 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
31835 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
31836 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
31837 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
31838 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
31839 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
31840 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
31841 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
31842 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS },
31843 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
31844 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
31845 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
31846 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
31847 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
31848 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
31849 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
31850 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
31851 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
31852 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
31853 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
31854 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
31855 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
31856 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
31857 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
31858 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
31859 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
31860 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
31861 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
31862 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
31863 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
31864 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
31865 { NULL, NULL }
31866 };
31867
31868
31869 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
31870
31871 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
31872 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31873 }
31874 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
31875 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
31876 }
31877 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
31878 return (void *)((wxSizer *) ((wxBoxSizer *) x));
31879 }
31880 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
31881 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
31882 }
31883 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
31884 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31885 }
31886 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
31887 return (void *)((wxSizer *) ((wxGridSizer *) x));
31888 }
31889 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
31890 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
31891 }
31892 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
31893 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
31894 }
31895 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
31896 return (void *)((wxSizer *) ((wxPySizer *) x));
31897 }
31898 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
31899 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
31900 }
31901 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
31902 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
31903 }
31904 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
31905 return (void *)((wxEvent *) ((wxMenuEvent *) x));
31906 }
31907 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
31908 return (void *)((wxEvent *) ((wxCloseEvent *) x));
31909 }
31910 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
31911 return (void *)((wxEvent *) ((wxMouseEvent *) x));
31912 }
31913 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
31914 return (void *)((wxEvent *) ((wxEraseEvent *) x));
31915 }
31916 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
31917 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
31918 }
31919 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
31920 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
31921 }
31922 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
31923 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
31924 }
31925 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
31926 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
31927 }
31928 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
31929 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
31930 }
31931 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
31932 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31933 }
31934 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
31935 return (void *)((wxEvent *) ((wxPyEvent *) x));
31936 }
31937 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
31938 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
31939 }
31940 static void *_p_wxListEventTo_p_wxEvent(void *x) {
31941 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
31942 }
31943 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
31944 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31945 }
31946 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
31947 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31948 }
31949 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
31950 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
31951 }
31952 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
31953 return (void *)((wxEvent *) ((wxIdleEvent *) x));
31954 }
31955 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
31956 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
31957 }
31958 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
31959 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
31960 }
31961 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
31962 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
31963 }
31964 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
31965 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
31966 }
31967 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
31968 return (void *)((wxEvent *) ((wxActivateEvent *) x));
31969 }
31970 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
31971 return (void *)((wxEvent *) ((wxSizeEvent *) x));
31972 }
31973 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
31974 return (void *)((wxEvent *) ((wxMoveEvent *) x));
31975 }
31976 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
31977 return (void *)((wxEvent *) ((wxPaintEvent *) x));
31978 }
31979 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
31980 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
31981 }
31982 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
31983 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
31984 }
31985 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
31986 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
31987 }
31988 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
31989 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
31990 }
31991 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
31992 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31993 }
31994 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
31995 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
31996 }
31997 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
31998 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
31999 }
32000 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32001 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32002 }
32003 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32004 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32005 }
32006 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32007 return (void *)((wxEvent *) ((wxShowEvent *) x));
32008 }
32009 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32010 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32011 }
32012 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32013 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32014 }
32015 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32016 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32017 }
32018 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32019 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32020 }
32021 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32022 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32023 }
32024 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32025 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32026 }
32027 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32028 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32029 }
32030 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32031 return (void *)((wxItemContainer *) ((wxComboBox *) x));
32032 }
32033 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32034 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32035 }
32036 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32037 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32038 }
32039 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32040 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32041 }
32042 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32043 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32044 }
32045 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32046 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32047 }
32048 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32049 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32050 }
32051 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
32052 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32053 }
32054 static void *_p_wxListBoxTo_p_wxControl(void *x) {
32055 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
32056 }
32057 static void *_p_wxChoiceTo_p_wxControl(void *x) {
32058 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
32059 }
32060 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32061 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32062 }
32063 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
32064 return (void *)((wxControl *) ((wxStaticBitmap *) x));
32065 }
32066 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32067 return (void *)((wxControl *) ((wxComboBox *) x));
32068 }
32069 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
32070 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32071 }
32072 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32073 return (void *)((wxControl *) ((wxStaticBox *) x));
32074 }
32075 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32076 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32077 }
32078 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32079 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32080 }
32081 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32082 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32083 }
32084 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32085 return (void *)((wxControl *) ((wxScrollBar *) x));
32086 }
32087 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32088 return (void *)((wxControl *) ((wxBookCtrl *) x));
32089 }
32090 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32091 return (void *)((wxControl *) ((wxRadioButton *) x));
32092 }
32093 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32094 return (void *)((wxControl *) ((wxToggleButton *) x));
32095 }
32096 static void *_p_wxGaugeTo_p_wxControl(void *x) {
32097 return (void *)((wxControl *) ((wxGauge *) x));
32098 }
32099 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32100 return (void *)((wxControl *) ((wxToolBarBase *) x));
32101 }
32102 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32103 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32104 }
32105 static void *_p_wxButtonTo_p_wxControl(void *x) {
32106 return (void *)((wxControl *) ((wxButton *) x));
32107 }
32108 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32109 return (void *)((wxControl *) ((wxSpinButton *) x));
32110 }
32111 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32112 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32113 }
32114 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32115 return (void *)((wxControl *) ((wxControlWithItems *) x));
32116 }
32117 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32118 return (void *)((wxControl *) ((wxRadioBox *) x));
32119 }
32120 static void *_p_wxNotebookTo_p_wxControl(void *x) {
32121 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32122 }
32123 static void *_p_wxListbookTo_p_wxControl(void *x) {
32124 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32125 }
32126 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32127 return (void *)((wxControl *) ((wxCheckBox *) x));
32128 }
32129 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32130 return (void *)((wxControl *) ((wxTextCtrl *) x));
32131 }
32132 static void *_p_wxListViewTo_p_wxControl(void *x) {
32133 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32134 }
32135 static void *_p_wxSliderTo_p_wxControl(void *x) {
32136 return (void *)((wxControl *) ((wxSlider *) x));
32137 }
32138 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32139 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32140 }
32141 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32142 return (void *)((wxControl *) ((wxPyControl *) x));
32143 }
32144 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32145 return (void *)((wxControl *) ((wxStaticLine *) x));
32146 }
32147 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32148 return (void *)((wxControl *) ((wxStaticText *) x));
32149 }
32150 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32151 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32152 }
32153 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32154 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32155 }
32156 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32157 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32158 }
32159 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32160 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32161 }
32162 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32163 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32164 }
32165 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32166 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32167 }
32168 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32169 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32170 }
32171 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32172 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32173 }
32174 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32175 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32176 }
32177 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32178 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32179 }
32180 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32181 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32182 }
32183 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32184 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32185 }
32186 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32187 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32188 }
32189 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32190 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32191 }
32192 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32193 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32194 }
32195 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32196 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32197 }
32198 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32199 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32200 }
32201 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32202 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32203 }
32204 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32205 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32206 }
32207 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32208 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32209 }
32210 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32211 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
32212 }
32213 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32214 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32215 }
32216 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32217 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32218 }
32219 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32220 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32221 }
32222 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32223 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32224 }
32225 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32226 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32227 }
32228 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32229 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32230 }
32231 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32232 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32233 }
32234 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32235 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32236 }
32237 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32238 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32239 }
32240 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32241 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32242 }
32243 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32244 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32245 }
32246 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32247 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32248 }
32249 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32250 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32251 }
32252 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32253 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32254 }
32255 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32256 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32257 }
32258 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32259 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32260 }
32261 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32262 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32263 }
32264 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32265 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32266 }
32267 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32268 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32269 }
32270 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32271 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32272 }
32273 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32274 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32275 }
32276 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32277 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32278 }
32279 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32280 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32281 }
32282 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32283 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32284 }
32285 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32286 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32287 }
32288 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32289 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32290 }
32291 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32292 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32293 }
32294 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32295 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32296 }
32297 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32298 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32299 }
32300 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32301 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32302 }
32303 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32304 return (void *)((wxButton *) ((wxBitmapButton *) x));
32305 }
32306 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32307 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32308 }
32309 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32310 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32311 }
32312 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32313 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32314 }
32315 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32316 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32317 }
32318 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32319 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32320 }
32321 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32322 return (void *)((wxObject *) ((wxSizerItem *) x));
32323 }
32324 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32325 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32326 }
32327 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32328 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32329 }
32330 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32331 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32332 }
32333 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32334 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32335 }
32336 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32337 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32338 }
32339 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32340 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32341 }
32342 static void *_p_wxSizerTo_p_wxObject(void *x) {
32343 return (void *)((wxObject *) ((wxSizer *) x));
32344 }
32345 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32346 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32347 }
32348 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32349 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32350 }
32351 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32352 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32353 }
32354 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32355 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32356 }
32357 static void *_p_wxEventTo_p_wxObject(void *x) {
32358 return (void *)((wxObject *) ((wxEvent *) x));
32359 }
32360 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32361 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32362 }
32363 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32364 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32365 }
32366 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32367 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32368 }
32369 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
32370 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32371 }
32372 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
32373 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32374 }
32375 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
32376 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32377 }
32378 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32379 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32380 }
32381 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32382 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32383 }
32384 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32385 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32386 }
32387 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32388 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32389 }
32390 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32391 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32392 }
32393 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32394 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32395 }
32396 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
32397 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
32398 }
32399 static void *_p_wxControlTo_p_wxObject(void *x) {
32400 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32401 }
32402 static void *_p_wxPyControlTo_p_wxObject(void *x) {
32403 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
32404 }
32405 static void *_p_wxGaugeTo_p_wxObject(void *x) {
32406 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
32407 }
32408 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
32409 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
32410 }
32411 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
32412 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
32413 }
32414 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
32415 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32416 }
32417 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32418 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32419 }
32420 static void *_p_wxChoiceTo_p_wxObject(void *x) {
32421 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32422 }
32423 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32424 return (void *)((wxObject *) ((wxFSFile *) x));
32425 }
32426 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32427 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32428 }
32429 static void *_p_wxListViewTo_p_wxObject(void *x) {
32430 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32431 }
32432 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
32433 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32434 }
32435 static void *_p_wxNotebookTo_p_wxObject(void *x) {
32436 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32437 }
32438 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32439 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32440 }
32441 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32442 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32443 }
32444 static void *_p_wxListbookTo_p_wxObject(void *x) {
32445 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32446 }
32447 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32448 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32449 }
32450 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
32451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32452 }
32453 static void *_p_wxSliderTo_p_wxObject(void *x) {
32454 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
32455 }
32456 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32457 return (void *)((wxObject *) ((wxMenuItem *) x));
32458 }
32459 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32460 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32461 }
32462 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32463 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32464 }
32465 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32466 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32467 }
32468 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32469 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32470 }
32471 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32472 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32473 }
32474 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32475 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32476 }
32477 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32478 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32479 }
32480 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32481 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32482 }
32483 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
32484 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
32485 }
32486 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
32487 return (void *)((wxObject *) ((wxContextHelp *) x));
32488 }
32489 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32490 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32491 }
32492 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32493 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32494 }
32495 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32496 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32497 }
32498 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32499 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32500 }
32501 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32502 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32503 }
32504 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32505 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32506 }
32507 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32508 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32509 }
32510 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32511 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32512 }
32513 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32514 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32515 }
32516 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32517 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32518 }
32519 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32520 return (void *)((wxObject *) ((wxImageHandler *) x));
32521 }
32522 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32523 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32524 }
32525 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32526 return (void *)((wxObject *) ((wxEvtHandler *) x));
32527 }
32528 static void *_p_wxListEventTo_p_wxObject(void *x) {
32529 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32530 }
32531 static void *_p_wxListBoxTo_p_wxObject(void *x) {
32532 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32533 }
32534 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
32535 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32536 }
32537 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
32538 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32539 }
32540 static void *_p_wxButtonTo_p_wxObject(void *x) {
32541 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
32542 }
32543 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
32544 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32545 }
32546 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
32547 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
32548 }
32549 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
32550 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32551 }
32552 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32553 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32554 }
32555 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
32556 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
32557 }
32558 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
32559 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
32560 }
32561 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
32562 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
32563 }
32564 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
32565 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
32566 }
32567 static void *_p_wxListItemTo_p_wxObject(void *x) {
32568 return (void *)((wxObject *) ((wxListItem *) x));
32569 }
32570 static void *_p_wxImageTo_p_wxObject(void *x) {
32571 return (void *)((wxObject *) ((wxImage *) x));
32572 }
32573 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
32574 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
32575 }
32576 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32577 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32578 }
32579 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
32580 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32581 }
32582 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
32583 return (void *)((wxObject *) ((wxGenericDragImage *) x));
32584 }
32585 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
32586 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32587 }
32588 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
32589 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32590 }
32591 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
32592 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32593 }
32594 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32595 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32596 }
32597 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32598 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32599 }
32600 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32601 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32602 }
32603 static void *_p_wxWindowTo_p_wxObject(void *x) {
32604 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32605 }
32606 static void *_p_wxMenuTo_p_wxObject(void *x) {
32607 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32608 }
32609 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32610 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32611 }
32612 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32613 return (void *)((wxObject *) ((wxFileSystem *) x));
32614 }
32615 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32616 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32617 }
32618 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32619 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32620 }
32621 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32622 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32623 }
32624 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32625 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32626 }
32627 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32628 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32629 }
32630 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32631 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32632 }
32633 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
32634 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32635 }
32636 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32637 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32638 }
32639 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32640 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32641 }
32642 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
32643 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
32644 }
32645 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32646 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32647 }
32648 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32649 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32650 }
32651 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32652 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32653 }
32654 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32655 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32656 }
32657 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
32658 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
32659 }
32660 static void *_p_wxToolBarTo_p_wxObject(void *x) {
32661 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32662 }
32663 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32664 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32665 }
32666 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32667 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32668 }
32669 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
32670 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
32671 }
32672 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
32673 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
32674 }
32675 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32676 return (void *)((wxWindow *) ((wxMenuBar *) x));
32677 }
32678 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
32679 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32680 }
32681 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
32682 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
32683 }
32684 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
32685 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
32686 }
32687 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
32688 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
32689 }
32690 static void *_p_wxControlTo_p_wxWindow(void *x) {
32691 return (void *)((wxWindow *) ((wxControl *) x));
32692 }
32693 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
32694 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
32695 }
32696 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
32697 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32698 }
32699 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
32700 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
32701 }
32702 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
32703 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
32704 }
32705 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
32706 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
32707 }
32708 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
32709 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
32710 }
32711 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32712 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32713 }
32714 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
32715 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
32716 }
32717 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
32718 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
32719 }
32720 static void *_p_wxListbookTo_p_wxWindow(void *x) {
32721 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32722 }
32723 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
32724 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
32725 }
32726 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
32727 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
32728 }
32729 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
32730 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
32731 }
32732 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
32733 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32734 }
32735 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
32736 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32737 }
32738 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
32739 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32740 }
32741 static void *_p_wxListViewTo_p_wxWindow(void *x) {
32742 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32743 }
32744 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
32745 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32746 }
32747 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
32748 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
32749 }
32750 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
32751 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
32752 }
32753 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
32754 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
32755 }
32756 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
32757 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
32758 }
32759 static void *_p_wxSliderTo_p_wxWindow(void *x) {
32760 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
32761 }
32762 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
32763 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
32764 }
32765 static void *_p_wxButtonTo_p_wxWindow(void *x) {
32766 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
32767 }
32768 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
32769 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
32770 }
32771 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
32772 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32773 }
32774 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
32775 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
32776 }
32777 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
32778 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32779 }
32780 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
32781 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32782 }
32783 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
32784 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
32785 }
32786 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
32787 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
32788 }
32789 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
32790 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
32791 }
32792 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
32793 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
32794 }
32795 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
32796 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
32797 }
32798 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
32799 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32800 }
32801 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
32802 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32803 }
32804 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
32805 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
32806 }
32807 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
32808 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
32809 }
32810 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
32811 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
32812 }
32813 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
32814 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
32815 }
32816 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
32817 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
32818 }
32819 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
32820 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
32821 }
32822 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
32823 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
32824 }
32825 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
32826 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
32827 }
32828 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
32829 return (void *)((wxControlWithItems *) ((wxChoice *) x));
32830 }
32831 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
32832 return (void *)((wxControlWithItems *) ((wxListBox *) x));
32833 }
32834 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
32835 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
32836 }
32837 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
32838 return (void *)((wxValidator *) ((wxPyValidator *) x));
32839 }
32840 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}};
32841 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}};
32842 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}};
32843 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}};
32844 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}};
32845 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}};
32846 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}};
32847 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}};
32848 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}};
32849 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}};
32850 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}};
32851 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}};
32852 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}};
32853 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}};
32854 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}};
32855 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}};
32856 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}};
32857 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}};
32858 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}};
32859 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}};
32860 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}};
32861 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}};
32862 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}};
32863 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}};
32864 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}};
32865 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}};
32866 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}};
32867 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}};
32868 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}};
32869 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}};
32870 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}};
32871 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}};
32872 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}};
32873 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}};
32874 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}};
32875 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}};
32876 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}};
32877 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}};
32878 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}};
32879 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}};
32880 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}};
32881 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}};
32882 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}};
32883 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}};
32884 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}};
32885 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}};
32886 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}};
32887 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}};
32888 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}};
32889 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}};
32890 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}};
32891 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}};
32892 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}};
32893 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}};
32894 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}};
32895 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}};
32896 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}};
32897 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}};
32898 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}};
32899 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}};
32900 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}};
32901 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}};
32902 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}};
32903 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}};
32904 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}};
32905 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}};
32906 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}};
32907 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}};
32908 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}};
32909 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}};
32910 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}};
32911 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}};
32912 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}};
32913 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}};
32914 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}};
32915 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}};
32916 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}};
32917 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}};
32918 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}};
32919 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}};
32920 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}};
32921 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}};
32922 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}};
32923 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}};
32924 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}};
32925
32926 static swig_type_info *swig_types_initial[] = {
32927 _swigt__p_wxTextUrlEvent,
32928 _swigt__p_wxBookCtrlEvent,
32929 _swigt__p_wxSizer,
32930 _swigt__p_wxCheckBox,
32931 _swigt__p_wxPyTreeCtrl,
32932 _swigt__p_wxEvent,
32933 _swigt__p_wxGenericDirCtrl,
32934 _swigt__p_bool,
32935 _swigt__p_wxPyTreeItemData,
32936 _swigt__p_wxItemContainer,
32937 _swigt__p_wxPyListCtrl,
32938 _swigt__p_wxDirFilterListCtrl,
32939 _swigt__p_wxStaticLine,
32940 _swigt__p_wxControl,
32941 _swigt__p_wxPyControl,
32942 _swigt__p_wxGauge,
32943 _swigt__p_wxToolBarBase,
32944 _swigt__p_wxFont,
32945 _swigt__p_wxToggleButton,
32946 _swigt__p_wxRadioButton,
32947 _swigt__p_wxChoice,
32948 _swigt__p_wxMemoryDC,
32949 _swigt__p_wxListItemAttr,
32950 _swigt__p_void,
32951 _swigt__p_int,
32952 _swigt__p_wxSize,
32953 _swigt__p_wxDC,
32954 _swigt__p_wxListView,
32955 _swigt__p_wxIcon,
32956 _swigt__p_wxVisualAttributes,
32957 _swigt__p_wxTextCtrl,
32958 _swigt__p_wxNotebook,
32959 _swigt__p_wxNotifyEvent,
32960 _swigt__p_wxArrayString,
32961 _swigt__p_wxListbook,
32962 _swigt__p_wxStaticBitmap,
32963 _swigt__p_wxSlider,
32964 _swigt__p_wxStaticBox,
32965 _swigt__p_wxArrayInt,
32966 _swigt__p_wxContextHelp,
32967 _swigt__p_long,
32968 _swigt__p_wxEvtHandler,
32969 _swigt__p_wxListEvent,
32970 _swigt__p_wxCheckListBox,
32971 _swigt__p_wxListBox,
32972 _swigt__p_wxBookCtrl,
32973 _swigt__p_wxSpinButton,
32974 _swigt__p_wxButton,
32975 _swigt__p_wxBitmapButton,
32976 _swigt__p_wxRect,
32977 _swigt__p_wxContextHelpButton,
32978 _swigt__p_wxRadioBox,
32979 _swigt__p_wxScrollBar,
32980 _swigt__p_char,
32981 _swigt__p_wxTreeItemId,
32982 _swigt__p_wxComboBox,
32983 _swigt__p_wxHelpEvent,
32984 _swigt__p_wxListItem,
32985 _swigt__p_wxNotebookSizer,
32986 _swigt__p_wxSpinEvent,
32987 _swigt__p_wxGenericDragImage,
32988 _swigt__p_wxSpinCtrl,
32989 _swigt__p_wxImageList,
32990 _swigt__p_wxHelpProvider,
32991 _swigt__p_wxTextAttr,
32992 _swigt__p_wxSimpleHelpProvider,
32993 _swigt__p_wxPoint,
32994 _swigt__p_wxListbookEvent,
32995 _swigt__p_wxNotebookEvent,
32996 _swigt__p_wxObject,
32997 _swigt__p_wxCursor,
32998 _swigt__p_wxKeyEvent,
32999 _swigt__p_wxWindow,
33000 _swigt__p_wxString,
33001 _swigt__p_wxBitmap,
33002 _swigt__p_wxTreeEvent,
33003 _swigt__p_wxMouseEvent,
33004 _swigt__p_wxCommandEvent,
33005 _swigt__p_wxStaticText,
33006 _swigt__p_wxControlWithItems,
33007 _swigt__p_wxToolBarToolBase,
33008 _swigt__p_wxColour,
33009 _swigt__p_wxToolBar,
33010 _swigt__p_wxBookCtrlSizer,
33011 _swigt__p_wxValidator,
33012 0
33013 };
33014
33015
33016 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33017
33018 static swig_const_info swig_const_table[] = {
33019 {0}};
33020
33021 #ifdef __cplusplus
33022 }
33023 #endif
33024
33025 #ifdef __cplusplus
33026 extern "C"
33027 #endif
33028 SWIGEXPORT(void) SWIG_init(void) {
33029 static PyObject *SWIG_globals = 0;
33030 static int typeinit = 0;
33031 PyObject *m, *d;
33032 int i;
33033 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33034 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33035 d = PyModule_GetDict(m);
33036
33037 if (!typeinit) {
33038 for (i = 0; swig_types_initial[i]; i++) {
33039 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33040 }
33041 typeinit = 1;
33042 }
33043 SWIG_InstallConstants(d,swig_const_table);
33044
33045 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33046 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33047 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
33048 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
33049 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
33050 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
33051 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
33052 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
33053 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33054 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
33055 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
33056 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
33057 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
33058 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
33059 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
33060 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
33061 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
33062 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
33063 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
33064 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
33065 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
33066 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
33067 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
33068 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
33069 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
33070 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33071 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33072 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
33073 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
33074 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
33075 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
33076 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
33077 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
33078 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
33079 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
33080 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
33081 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
33082 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
33083 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
33084 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
33085 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
33086 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
33087 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
33088 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
33089 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
33090 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
33091 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
33092 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
33093 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
33094 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
33095 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33096 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
33097 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33098 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
33099 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
33100 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
33101 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
33102 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
33103 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
33104 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
33105 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
33106 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
33107 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
33108 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
33109 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
33110 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
33111 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
33112 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
33113 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33114 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33115 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33116 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33117 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33118 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33119 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33120 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
33121 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
33122 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
33123 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
33124 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33125 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33126 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33127 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33128 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33129 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33130 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33131 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
33132 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
33133 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
33134 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
33135 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
33136 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
33137 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
33138 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
33139 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
33140 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
33141 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33142 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33143 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
33144 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
33145 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
33146 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
33147 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
33148 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
33149 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33150 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33151 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
33152 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
33153 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
33154 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
33155 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
33156 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
33157 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
33158 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
33159 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
33160 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
33161 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
33162 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
33163 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
33164 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
33165 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33166 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
33167 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
33168 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
33169 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
33170 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
33171 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
33172 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
33173 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
33174 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
33175 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
33176 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
33177 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
33178 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
33179 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
33180 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
33181 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
33182 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
33183 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
33184 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
33185 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
33186 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
33187 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
33188 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
33189 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
33190 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
33191 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
33192 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
33193 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
33194 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
33195 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
33196 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
33197 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
33198 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
33199 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
33200 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
33201 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
33202 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
33203 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
33204 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
33205 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
33206 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
33207 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
33208 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
33209 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
33210 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
33211 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
33212 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
33213 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
33214 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
33215 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
33216 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
33217 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
33218 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
33219 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
33220 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
33221 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
33222 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
33223 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
33224 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
33225 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
33226 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
33227 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
33228 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
33229 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
33230 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
33231 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
33232 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
33233 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
33234 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33235 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33236 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33237 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33238 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33239 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33240 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33241 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33242 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33243 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33244 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33245 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33246 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33247 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33248 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33249 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33250 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33251 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33252 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33253 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33254 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33255 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33256
33257 // Map renamed classes back to their common name for OOR
33258 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33259
33260 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33261 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
33262 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
33263 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
33264 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
33265 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
33266 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
33267 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
33268 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33269 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
33270 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
33271 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
33272 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
33273 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
33274 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
33275 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
33276 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
33277 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
33278 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
33279 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
33280 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
33281 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
33282 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
33283 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
33284 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
33285 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
33286 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
33287 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
33288 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
33289 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
33290 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
33291 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
33292 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
33293 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
33294 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
33295 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
33296 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33297 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33298 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33299 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33300 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33301 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33302 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33303 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33304 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33305 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33306 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33307 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33308 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33309 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33310 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33311 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33312 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33313 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33314 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33315 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33316
33317 // Map renamed classes back to their common name for OOR
33318 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33319 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33320
33321 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33322 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
33323 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
33324 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
33325 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
33326 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
33327 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
33328 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
33329 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33330 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33331
33332 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33333
33334 }
33335